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
3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 | |