Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Tests a custom data identifier.
Synopsis
- data TestCustomDataIdentifier = TestCustomDataIdentifier' {
- ignoreWords :: Maybe [Text]
- keywords :: Maybe [Text]
- maximumMatchDistance :: Maybe Int
- regex :: Text
- sampleText :: Text
- newTestCustomDataIdentifier :: Text -> Text -> TestCustomDataIdentifier
- testCustomDataIdentifier_ignoreWords :: Lens' TestCustomDataIdentifier (Maybe [Text])
- testCustomDataIdentifier_keywords :: 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: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
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:TestCustomDataIdentifier'
, testCustomDataIdentifier_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:TestCustomDataIdentifier'
, testCustomDataIdentifier_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.
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_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 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.
testCustomDataIdentifier_keywords :: Lens' TestCustomDataIdentifier (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.
testCustomDataIdentifier_maximumMatchDistance :: Lens' TestCustomDataIdentifier (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.
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
Generic TestCustomDataIdentifierResponse Source # | |
Read TestCustomDataIdentifierResponse Source # | |
Show TestCustomDataIdentifierResponse Source # | |
Defined in Amazonka.MacieV2.TestCustomDataIdentifier | |
NFData TestCustomDataIdentifierResponse Source # | |
Defined in Amazonka.MacieV2.TestCustomDataIdentifier rnf :: TestCustomDataIdentifierResponse -> () # | |
Eq TestCustomDataIdentifierResponse Source # | |
type Rep TestCustomDataIdentifierResponse Source # | |
Defined in Amazonka.MacieV2.TestCustomDataIdentifier type Rep TestCustomDataIdentifierResponse = D1 ('MetaData "TestCustomDataIdentifierResponse" "Amazonka.MacieV2.TestCustomDataIdentifier" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" '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 occurrences of sample text that matched the criteria
specified by 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 occurrences of sample text that matched the criteria specified by the custom data identifier.
testCustomDataIdentifierResponse_httpStatus :: Lens' TestCustomDataIdentifierResponse Int Source #
The response's http status code.