Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Tests a custom data identifier.
Synopsis
- data TestCustomDataIdentifier = TestCustomDataIdentifier' {
- keywords :: Maybe [Text]
- ignoreWords :: Maybe [Text]
- maximumMatchDistance :: Maybe Int
- regex :: Text
- sampleText :: Text
- newTestCustomDataIdentifier :: Text -> Text -> TestCustomDataIdentifier
- testCustomDataIdentifier_keywords :: Lens' TestCustomDataIdentifier (Maybe [Text])
- testCustomDataIdentifier_ignoreWords :: Lens' TestCustomDataIdentifier (Maybe [Text])
- testCustomDataIdentifier_maximumMatchDistance :: Lens' TestCustomDataIdentifier (Maybe Int)
- testCustomDataIdentifier_regex :: Lens' TestCustomDataIdentifier Text
- testCustomDataIdentifier_sampleText :: Lens' TestCustomDataIdentifier Text
- data TestCustomDataIdentifierResponse = TestCustomDataIdentifierResponse' {
- matchCount :: Maybe Int
- httpStatus :: Int
- newTestCustomDataIdentifierResponse :: Int -> TestCustomDataIdentifierResponse
- testCustomDataIdentifierResponse_matchCount :: Lens' TestCustomDataIdentifierResponse (Maybe Int)
- testCustomDataIdentifierResponse_httpStatus :: Lens' TestCustomDataIdentifierResponse Int
Creating a Request
data TestCustomDataIdentifier Source #
See: newTestCustomDataIdentifier
smart constructor.
TestCustomDataIdentifier' | |
|
Instances
newTestCustomDataIdentifier Source #
:: Text | |
-> Text | |
-> TestCustomDataIdentifier |
Create a value of TestCustomDataIdentifier
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:keywords:TestCustomDataIdentifier'
, testCustomDataIdentifier_keywords
- An array that lists specific character sequences (keywords), one of
which must 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:ignoreWords:TestCustomDataIdentifier'
, testCustomDataIdentifier_ignoreWords
- An array that lists specific character sequences (ignore words) to
exclude from the results. If the text matched by the regular expression
is the same as 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:maximumMatchDistance:TestCustomDataIdentifier'
, testCustomDataIdentifier_maximumMatchDistance
- The maximum number of characters that can exist between text that
matches the regex pattern and the character sequences specified by the
keywords array. Amazon Macie includes or excludes a result based on the
proximity of a keyword to text that matches the regex pattern. The
distance can be 1-300 characters. The default value is 50.
$sel:regex:TestCustomDataIdentifier'
, testCustomDataIdentifier_regex
- The regular expression (regex) that defines the pattern to match. The
expression can contain as many as 512 characters.
$sel:sampleText:TestCustomDataIdentifier'
, testCustomDataIdentifier_sampleText
- The sample text to inspect by using the custom data identifier. The text
can contain as many as 1,000 characters.
Request Lenses
testCustomDataIdentifier_keywords :: Lens' TestCustomDataIdentifier (Maybe [Text]) Source #
An array that lists specific character sequences (keywords), one of which must 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.
testCustomDataIdentifier_ignoreWords :: Lens' TestCustomDataIdentifier (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 is the same as 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.
testCustomDataIdentifier_maximumMatchDistance :: Lens' TestCustomDataIdentifier (Maybe Int) Source #
The maximum number of characters that can exist between text that matches the regex pattern and the character sequences specified by the keywords array. Amazon Macie includes or excludes a result based on the proximity of a keyword to text that matches the regex pattern. The distance can be 1-300 characters. The default value is 50.
testCustomDataIdentifier_regex :: Lens' TestCustomDataIdentifier Text Source #
The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.
testCustomDataIdentifier_sampleText :: Lens' TestCustomDataIdentifier Text Source #
The sample text to inspect by using the custom data identifier. The text can contain as many as 1,000 characters.
Destructuring the Response
data TestCustomDataIdentifierResponse Source #
See: newTestCustomDataIdentifierResponse
smart constructor.
TestCustomDataIdentifierResponse' | |
|
Instances
Eq TestCustomDataIdentifierResponse Source # | |
Read TestCustomDataIdentifierResponse Source # | |
Show TestCustomDataIdentifierResponse Source # | |
Defined in Amazonka.MacieV2.TestCustomDataIdentifier | |
Generic TestCustomDataIdentifierResponse Source # | |
NFData TestCustomDataIdentifierResponse Source # | |
Defined in Amazonka.MacieV2.TestCustomDataIdentifier rnf :: TestCustomDataIdentifierResponse -> () # | |
type Rep TestCustomDataIdentifierResponse Source # | |
Defined in Amazonka.MacieV2.TestCustomDataIdentifier type Rep TestCustomDataIdentifierResponse = D1 ('MetaData "TestCustomDataIdentifierResponse" "Amazonka.MacieV2.TestCustomDataIdentifier" "libZSservicesZSamazonka-maciev2ZSamazonka-maciev2" 'False) (C1 ('MetaCons "TestCustomDataIdentifierResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "matchCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newTestCustomDataIdentifierResponse Source #
Create a value of TestCustomDataIdentifierResponse
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:matchCount:TestCustomDataIdentifierResponse'
, testCustomDataIdentifierResponse_matchCount
- The number of instances of sample text that matched the detection
criteria specified in the custom data identifier.
$sel:httpStatus:TestCustomDataIdentifierResponse'
, testCustomDataIdentifierResponse_httpStatus
- The response's http status code.
Response Lenses
testCustomDataIdentifierResponse_matchCount :: Lens' TestCustomDataIdentifierResponse (Maybe Int) Source #
The number of instances of sample text that matched the detection criteria specified in the custom data identifier.
testCustomDataIdentifierResponse_httpStatus :: Lens' TestCustomDataIdentifierResponse Int Source #
The response's http status code.