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 |
Adds an log pattern to a LogPatternSet
.
Synopsis
- data CreateLogPattern = CreateLogPattern' {
- resourceGroupName :: Text
- patternSetName :: Text
- patternName :: Text
- pattern' :: Text
- rank :: Int
- newCreateLogPattern :: Text -> Text -> Text -> Text -> Int -> CreateLogPattern
- createLogPattern_resourceGroupName :: Lens' CreateLogPattern Text
- createLogPattern_patternSetName :: Lens' CreateLogPattern Text
- createLogPattern_patternName :: Lens' CreateLogPattern Text
- createLogPattern_pattern :: Lens' CreateLogPattern Text
- createLogPattern_rank :: Lens' CreateLogPattern Int
- data CreateLogPatternResponse = CreateLogPatternResponse' {}
- newCreateLogPatternResponse :: Int -> CreateLogPatternResponse
- createLogPatternResponse_logPattern :: Lens' CreateLogPatternResponse (Maybe LogPattern)
- createLogPatternResponse_resourceGroupName :: Lens' CreateLogPatternResponse (Maybe Text)
- createLogPatternResponse_httpStatus :: Lens' CreateLogPatternResponse Int
Creating a Request
data CreateLogPattern Source #
See: newCreateLogPattern
smart constructor.
CreateLogPattern' | |
|
Instances
Create a value of CreateLogPattern
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:resourceGroupName:CreateLogPattern'
, createLogPattern_resourceGroupName
- The name of the resource group.
$sel:patternSetName:CreateLogPattern'
, createLogPattern_patternSetName
- The name of the log pattern set.
$sel:patternName:CreateLogPattern'
, createLogPattern_patternName
- The name of the log pattern.
$sel:pattern':CreateLogPattern'
, createLogPattern_pattern
- The log pattern. The pattern must be DFA compatible. Patterns that
utilize forward lookahead or backreference constructions are not
supported.
$sel:rank:CreateLogPattern'
, createLogPattern_rank
- Rank of the log pattern. Must be a value between 1
and 1,000,000
.
The patterns are sorted by rank, so we recommend that you set your
highest priority patterns with the lowest rank. A pattern of rank 1
will be the first to get matched to a log line. A pattern of rank
1,000,000
will be last to get matched. When you configure custom log
patterns from the console, a Low
severity pattern translates to a
750,000
rank. A Medium
severity pattern translates to a 500,000
rank. And a High
severity pattern translates to a 250,000
rank. Rank
values less than 1
or greater than 1,000,000
are reserved for
AWS-provided patterns.
Request Lenses
createLogPattern_resourceGroupName :: Lens' CreateLogPattern Text Source #
The name of the resource group.
createLogPattern_patternSetName :: Lens' CreateLogPattern Text Source #
The name of the log pattern set.
createLogPattern_patternName :: Lens' CreateLogPattern Text Source #
The name of the log pattern.
createLogPattern_pattern :: Lens' CreateLogPattern Text Source #
The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.
createLogPattern_rank :: Lens' CreateLogPattern Int Source #
Rank of the log pattern. Must be a value between 1
and 1,000,000
.
The patterns are sorted by rank, so we recommend that you set your
highest priority patterns with the lowest rank. A pattern of rank 1
will be the first to get matched to a log line. A pattern of rank
1,000,000
will be last to get matched. When you configure custom log
patterns from the console, a Low
severity pattern translates to a
750,000
rank. A Medium
severity pattern translates to a 500,000
rank. And a High
severity pattern translates to a 250,000
rank. Rank
values less than 1
or greater than 1,000,000
are reserved for
AWS-provided patterns.
Destructuring the Response
data CreateLogPatternResponse Source #
See: newCreateLogPatternResponse
smart constructor.
CreateLogPatternResponse' | |
|
Instances
newCreateLogPatternResponse Source #
Create a value of CreateLogPatternResponse
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:logPattern:CreateLogPatternResponse'
, createLogPatternResponse_logPattern
- The successfully created log pattern.
$sel:resourceGroupName:CreateLogPattern'
, createLogPatternResponse_resourceGroupName
- The name of the resource group.
$sel:httpStatus:CreateLogPatternResponse'
, createLogPatternResponse_httpStatus
- The response's http status code.
Response Lenses
createLogPatternResponse_logPattern :: Lens' CreateLogPatternResponse (Maybe LogPattern) Source #
The successfully created log pattern.
createLogPatternResponse_resourceGroupName :: Lens' CreateLogPatternResponse (Maybe Text) Source #
The name of the resource group.
createLogPatternResponse_httpStatus :: Lens' CreateLogPatternResponse Int Source #
The response's http status code.