create_custom_entity_type
¶
create_custom_entity_type(
name: NameString,
regex_string: NameString,
*,
config_overrides: Optional[GlueClientConfig] = None,
context_words: Optional[ContextWords] = None,
tags: Optional[TagsMap] = None,
) -> CreateCustomEntityTypeResponse
Creates a custom pattern that is used to detect sensitive data across the columns and rows of your structured data.
Each custom pattern you create specifies a regular expression and an optional list of context words. If no context words are passed only a regular expression is checked.
Parameters:
-
name(NameString) –A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
-
regex_string(NameString) –A regular expression string that is used for detecting sensitive data in a custom pattern.
-
context_words(Optional[ContextWords], default:None) –A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
-
tags(Optional[TagsMap], default:None) –A list of tags applied to the custom entity type.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
AlreadyExistsException–A resource to be created or added already exists.
-
IdempotentParameterMismatchException–The same unique identifier was associated with two different records.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 | |