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
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 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 | |