amazonka-maciev2-2.0: Amazon Macie 2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MacieV2.CreateCustomDataIdentifier

Description

Creates and defines the criteria and other settings for a custom data identifier.

Synopsis

Creating a Request

data CreateCustomDataIdentifier Source #

See: newCreateCustomDataIdentifier smart constructor.

Constructors

CreateCustomDataIdentifier' 

Fields

  • clientToken :: Maybe Text

    A unique, case-sensitive token that you provide to ensure the idempotency of the request.

  • description :: Maybe Text

    A custom description of the custom data identifier. The description can contain as many as 512 characters.

    We strongly recommend that you avoid including any sensitive data in the description of a custom data identifier. Other users of your account might be able to see this description, depending on the actions that they're allowed to perform in Amazon Macie.

  • ignoreWords :: Maybe [Text]

    An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.

  • keywords :: Maybe [Text]

    An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

  • maximumMatchDistance :: Maybe Int

    The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50.

  • severityLevels :: Maybe [SeverityLevel]

    The severity to assign to findings that the custom data identifier produces, based on the number of occurrences of text that matches the custom data identifier's detection criteria. You can specify as many as three SeverityLevel objects in this array, one for each severity: LOW, MEDIUM, or HIGH. If you specify more than one, the occurrences thresholds must be in ascending order by severity, moving from LOW to HIGH. For example, 1 for LOW, 50 for MEDIUM, and 100 for HIGH. If an S3 object contains fewer occurrences than the lowest specified threshold, Amazon Macie doesn't create a finding.

    If you don't specify any values for this array, Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.

  • tags :: Maybe (HashMap Text Text)

    A map of key-value pairs that specifies the tags to associate with the custom data identifier.

    A custom data identifier can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

  • regex :: Text

    The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.

  • name :: Text

    A custom name for the custom data identifier. The name can contain as many as 128 characters.

    We strongly recommend that you avoid including any sensitive data in the name of a custom data identifier. Other users of your account might be able to see this name, depending on the actions that they're allowed to perform in Amazon Macie.

Instances

Instances details
ToJSON CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

ToHeaders CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

ToPath CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

ToQuery CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

AWSRequest CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

Generic CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

Associated Types

type Rep CreateCustomDataIdentifier :: Type -> Type #

Read CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

Show CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

NFData CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

Eq CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

Hashable CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

type AWSResponse CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

type Rep CreateCustomDataIdentifier Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

newCreateCustomDataIdentifier Source #

Create a value of CreateCustomDataIdentifier with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clientToken:CreateCustomDataIdentifier', createCustomDataIdentifier_clientToken - A unique, case-sensitive token that you provide to ensure the idempotency of the request.

CreateCustomDataIdentifier, createCustomDataIdentifier_description - A custom description of the custom data identifier. The description can contain as many as 512 characters.

We strongly recommend that you avoid including any sensitive data in the description of a custom data identifier. Other users of your account might be able to see this description, depending on the actions that they're allowed to perform in Amazon Macie.

$sel:ignoreWords:CreateCustomDataIdentifier', createCustomDataIdentifier_ignoreWords - An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.

$sel:keywords:CreateCustomDataIdentifier', createCustomDataIdentifier_keywords - An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

$sel:maximumMatchDistance:CreateCustomDataIdentifier', createCustomDataIdentifier_maximumMatchDistance - The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50.

$sel:severityLevels:CreateCustomDataIdentifier', createCustomDataIdentifier_severityLevels - The severity to assign to findings that the custom data identifier produces, based on the number of occurrences of text that matches the custom data identifier's detection criteria. You can specify as many as three SeverityLevel objects in this array, one for each severity: LOW, MEDIUM, or HIGH. If you specify more than one, the occurrences thresholds must be in ascending order by severity, moving from LOW to HIGH. For example, 1 for LOW, 50 for MEDIUM, and 100 for HIGH. If an S3 object contains fewer occurrences than the lowest specified threshold, Amazon Macie doesn't create a finding.

If you don't specify any values for this array, Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.

CreateCustomDataIdentifier, createCustomDataIdentifier_tags - A map of key-value pairs that specifies the tags to associate with the custom data identifier.

A custom data identifier can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

CreateCustomDataIdentifier, createCustomDataIdentifier_regex - The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.

CreateCustomDataIdentifier, createCustomDataIdentifier_name - A custom name for the custom data identifier. The name can contain as many as 128 characters.

We strongly recommend that you avoid including any sensitive data in the name of a custom data identifier. Other users of your account might be able to see this name, depending on the actions that they're allowed to perform in Amazon Macie.

Request Lenses

createCustomDataIdentifier_clientToken :: Lens' CreateCustomDataIdentifier (Maybe Text) Source #

A unique, case-sensitive token that you provide to ensure the idempotency of the request.

createCustomDataIdentifier_description :: Lens' CreateCustomDataIdentifier (Maybe Text) Source #

A custom description of the custom data identifier. The description can contain as many as 512 characters.

We strongly recommend that you avoid including any sensitive data in the description of a custom data identifier. Other users of your account might be able to see this description, depending on the actions that they're allowed to perform in Amazon Macie.

createCustomDataIdentifier_ignoreWords :: Lens' CreateCustomDataIdentifier (Maybe [Text]) Source #

An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.

createCustomDataIdentifier_keywords :: Lens' CreateCustomDataIdentifier (Maybe [Text]) Source #

An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

createCustomDataIdentifier_maximumMatchDistance :: Lens' CreateCustomDataIdentifier (Maybe Int) Source #

The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50.

createCustomDataIdentifier_severityLevels :: Lens' CreateCustomDataIdentifier (Maybe [SeverityLevel]) Source #

The severity to assign to findings that the custom data identifier produces, based on the number of occurrences of text that matches the custom data identifier's detection criteria. You can specify as many as three SeverityLevel objects in this array, one for each severity: LOW, MEDIUM, or HIGH. If you specify more than one, the occurrences thresholds must be in ascending order by severity, moving from LOW to HIGH. For example, 1 for LOW, 50 for MEDIUM, and 100 for HIGH. If an S3 object contains fewer occurrences than the lowest specified threshold, Amazon Macie doesn't create a finding.

If you don't specify any values for this array, Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.

createCustomDataIdentifier_tags :: Lens' CreateCustomDataIdentifier (Maybe (HashMap Text Text)) Source #

A map of key-value pairs that specifies the tags to associate with the custom data identifier.

A custom data identifier can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

createCustomDataIdentifier_regex :: Lens' CreateCustomDataIdentifier Text Source #

The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.

createCustomDataIdentifier_name :: Lens' CreateCustomDataIdentifier Text Source #

A custom name for the custom data identifier. The name can contain as many as 128 characters.

We strongly recommend that you avoid including any sensitive data in the name of a custom data identifier. Other users of your account might be able to see this name, depending on the actions that they're allowed to perform in Amazon Macie.

Destructuring the Response

data CreateCustomDataIdentifierResponse Source #

Constructors

CreateCustomDataIdentifierResponse' 

Fields

Instances

Instances details
Generic CreateCustomDataIdentifierResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

Associated Types

type Rep CreateCustomDataIdentifierResponse :: Type -> Type #

Read CreateCustomDataIdentifierResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

Show CreateCustomDataIdentifierResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

NFData CreateCustomDataIdentifierResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

Eq CreateCustomDataIdentifierResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

type Rep CreateCustomDataIdentifierResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateCustomDataIdentifier

type Rep CreateCustomDataIdentifierResponse = D1 ('MetaData "CreateCustomDataIdentifierResponse" "Amazonka.MacieV2.CreateCustomDataIdentifier" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "CreateCustomDataIdentifierResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "customDataIdentifierId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateCustomDataIdentifierResponse Source #

Create a value of CreateCustomDataIdentifierResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:customDataIdentifierId:CreateCustomDataIdentifierResponse', createCustomDataIdentifierResponse_customDataIdentifierId - The unique identifier for the custom data identifier that was created.

$sel:httpStatus:CreateCustomDataIdentifierResponse', createCustomDataIdentifierResponse_httpStatus - The response's http status code.

Response Lenses

createCustomDataIdentifierResponse_customDataIdentifierId :: Lens' CreateCustomDataIdentifierResponse (Maybe Text) Source #

The unique identifier for the custom data identifier that was created.