create_custom_entity_type
async
¶
create_custom_entity_type(
name: NameString,
regex_string: NameString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = 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/async_glue.py
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 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 | |