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 |
Sets the logging options for the V2 logging service.
Requires permission to access the SetV2LoggingOptions action.
Synopsis
- data SetV2LoggingOptions = SetV2LoggingOptions' {}
- newSetV2LoggingOptions :: SetV2LoggingOptions
- setV2LoggingOptions_disableAllLogs :: Lens' SetV2LoggingOptions (Maybe Bool)
- setV2LoggingOptions_defaultLogLevel :: Lens' SetV2LoggingOptions (Maybe LogLevel)
- setV2LoggingOptions_roleArn :: Lens' SetV2LoggingOptions (Maybe Text)
- data SetV2LoggingOptionsResponse = SetV2LoggingOptionsResponse' {
- newSetV2LoggingOptionsResponse :: SetV2LoggingOptionsResponse
Creating a Request
data SetV2LoggingOptions Source #
See: newSetV2LoggingOptions
smart constructor.
SetV2LoggingOptions' | |
|
Instances
newSetV2LoggingOptions :: SetV2LoggingOptions Source #
Create a value of SetV2LoggingOptions
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:disableAllLogs:SetV2LoggingOptions'
, setV2LoggingOptions_disableAllLogs
- If true all logs are disabled. The default is false.
$sel:defaultLogLevel:SetV2LoggingOptions'
, setV2LoggingOptions_defaultLogLevel
- The default logging level.
$sel:roleArn:SetV2LoggingOptions'
, setV2LoggingOptions_roleArn
- The ARN of the role that allows IoT to write to Cloudwatch logs.
Request Lenses
setV2LoggingOptions_disableAllLogs :: Lens' SetV2LoggingOptions (Maybe Bool) Source #
If true all logs are disabled. The default is false.
setV2LoggingOptions_defaultLogLevel :: Lens' SetV2LoggingOptions (Maybe LogLevel) Source #
The default logging level.
setV2LoggingOptions_roleArn :: Lens' SetV2LoggingOptions (Maybe Text) Source #
The ARN of the role that allows IoT to write to Cloudwatch logs.
Destructuring the Response
data SetV2LoggingOptionsResponse Source #
See: newSetV2LoggingOptionsResponse
smart constructor.
Instances
newSetV2LoggingOptionsResponse :: SetV2LoggingOptionsResponse Source #
Create a value of SetV2LoggingOptionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.