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 a log pattern to a LogPatternSet
.
Synopsis
- data UpdateLogPattern = UpdateLogPattern' {
- pattern' :: Maybe Text
- rank :: Maybe Int
- resourceGroupName :: Text
- patternSetName :: Text
- patternName :: Text
- newUpdateLogPattern :: Text -> Text -> Text -> UpdateLogPattern
- updateLogPattern_pattern :: Lens' UpdateLogPattern (Maybe Text)
- updateLogPattern_rank :: Lens' UpdateLogPattern (Maybe Int)
- updateLogPattern_resourceGroupName :: Lens' UpdateLogPattern Text
- updateLogPattern_patternSetName :: Lens' UpdateLogPattern Text
- updateLogPattern_patternName :: Lens' UpdateLogPattern Text
- data UpdateLogPatternResponse = UpdateLogPatternResponse' {}
- newUpdateLogPatternResponse :: Int -> UpdateLogPatternResponse
- updateLogPatternResponse_logPattern :: Lens' UpdateLogPatternResponse (Maybe LogPattern)
- updateLogPatternResponse_resourceGroupName :: Lens' UpdateLogPatternResponse (Maybe Text)
- updateLogPatternResponse_httpStatus :: Lens' UpdateLogPatternResponse Int
Creating a Request
data UpdateLogPattern Source #
See: newUpdateLogPattern
smart constructor.
UpdateLogPattern' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> UpdateLogPattern |
Create a value of UpdateLogPattern
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:pattern':UpdateLogPattern'
, updateLogPattern_pattern
- The log pattern. The pattern must be DFA compatible. Patterns that
utilize forward lookahead or backreference constructions are not
supported.
$sel:rank:UpdateLogPattern'
, updateLogPattern_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.
$sel:resourceGroupName:UpdateLogPattern'
, updateLogPattern_resourceGroupName
- The name of the resource group.
$sel:patternSetName:UpdateLogPattern'
, updateLogPattern_patternSetName
- The name of the log pattern set.
$sel:patternName:UpdateLogPattern'
, updateLogPattern_patternName
- The name of the log pattern.
Request Lenses
updateLogPattern_pattern :: Lens' UpdateLogPattern (Maybe Text) Source #
The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.
updateLogPattern_rank :: Lens' UpdateLogPattern (Maybe 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.
updateLogPattern_resourceGroupName :: Lens' UpdateLogPattern Text Source #
The name of the resource group.
updateLogPattern_patternSetName :: Lens' UpdateLogPattern Text Source #
The name of the log pattern set.
updateLogPattern_patternName :: Lens' UpdateLogPattern Text Source #
The name of the log pattern.
Destructuring the Response
data UpdateLogPatternResponse Source #
See: newUpdateLogPatternResponse
smart constructor.
UpdateLogPatternResponse' | |
|
Instances
newUpdateLogPatternResponse Source #
Create a value of UpdateLogPatternResponse
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:UpdateLogPatternResponse'
, updateLogPatternResponse_logPattern
- The successfully created log pattern.
$sel:resourceGroupName:UpdateLogPattern'
, updateLogPatternResponse_resourceGroupName
- The name of the resource group.
$sel:httpStatus:UpdateLogPatternResponse'
, updateLogPatternResponse_httpStatus
- The response's http status code.
Response Lenses
updateLogPatternResponse_logPattern :: Lens' UpdateLogPatternResponse (Maybe LogPattern) Source #
The successfully created log pattern.
updateLogPatternResponse_resourceGroupName :: Lens' UpdateLogPatternResponse (Maybe Text) Source #
The name of the resource group.
updateLogPatternResponse_httpStatus :: Lens' UpdateLogPatternResponse Int Source #
The response's http status code.