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 |
Create logging configuration.
Synopsis
- data CreateLoggingConfiguration = CreateLoggingConfiguration' {
- clientToken :: Maybe Text
- logGroupArn :: Text
- workspaceId :: Text
- newCreateLoggingConfiguration :: Text -> Text -> CreateLoggingConfiguration
- createLoggingConfiguration_clientToken :: Lens' CreateLoggingConfiguration (Maybe Text)
- createLoggingConfiguration_logGroupArn :: Lens' CreateLoggingConfiguration Text
- createLoggingConfiguration_workspaceId :: Lens' CreateLoggingConfiguration Text
- data CreateLoggingConfigurationResponse = CreateLoggingConfigurationResponse' {}
- newCreateLoggingConfigurationResponse :: Int -> LoggingConfigurationStatus -> CreateLoggingConfigurationResponse
- createLoggingConfigurationResponse_httpStatus :: Lens' CreateLoggingConfigurationResponse Int
- createLoggingConfigurationResponse_status :: Lens' CreateLoggingConfigurationResponse LoggingConfigurationStatus
Creating a Request
data CreateLoggingConfiguration Source #
Represents the input of a CreateLoggingConfiguration operation.
See: newCreateLoggingConfiguration
smart constructor.
CreateLoggingConfiguration' | |
|
Instances
newCreateLoggingConfiguration Source #
Create a value of CreateLoggingConfiguration
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:clientToken:CreateLoggingConfiguration'
, createLoggingConfiguration_clientToken
- Optional, unique, case-sensitive, user-provided identifier to ensure the
idempotency of the request.
CreateLoggingConfiguration
, createLoggingConfiguration_logGroupArn
- The ARN of the CW log group to which the vended log data will be
published.
CreateLoggingConfiguration
, createLoggingConfiguration_workspaceId
- The ID of the workspace to vend logs to.
Request Lenses
createLoggingConfiguration_clientToken :: Lens' CreateLoggingConfiguration (Maybe Text) Source #
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
createLoggingConfiguration_logGroupArn :: Lens' CreateLoggingConfiguration Text Source #
The ARN of the CW log group to which the vended log data will be published.
createLoggingConfiguration_workspaceId :: Lens' CreateLoggingConfiguration Text Source #
The ID of the workspace to vend logs to.
Destructuring the Response
data CreateLoggingConfigurationResponse Source #
Represents the output of a CreateLoggingConfiguration operation.
See: newCreateLoggingConfigurationResponse
smart constructor.
CreateLoggingConfigurationResponse' | |
|
Instances
Generic CreateLoggingConfigurationResponse Source # | |
Read CreateLoggingConfigurationResponse Source # | |
Show CreateLoggingConfigurationResponse Source # | |
NFData CreateLoggingConfigurationResponse Source # | |
Defined in Amazonka.AMP.CreateLoggingConfiguration rnf :: CreateLoggingConfigurationResponse -> () # | |
Eq CreateLoggingConfigurationResponse Source # | |
type Rep CreateLoggingConfigurationResponse Source # | |
Defined in Amazonka.AMP.CreateLoggingConfiguration type Rep CreateLoggingConfigurationResponse = D1 ('MetaData "CreateLoggingConfigurationResponse" "Amazonka.AMP.CreateLoggingConfiguration" "amazonka-amp-2.0-5Nt9wsU74T2I91dslthaby" 'False) (C1 ('MetaCons "CreateLoggingConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LoggingConfigurationStatus))) |
newCreateLoggingConfigurationResponse Source #
Create a value of CreateLoggingConfigurationResponse
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:httpStatus:CreateLoggingConfigurationResponse'
, createLoggingConfigurationResponse_httpStatus
- The response's http status code.
CreateLoggingConfigurationResponse
, createLoggingConfigurationResponse_status
- The status of the logging configuration.
Response Lenses
createLoggingConfigurationResponse_httpStatus :: Lens' CreateLoggingConfigurationResponse Int Source #
The response's http status code.
createLoggingConfigurationResponse_status :: Lens' CreateLoggingConfigurationResponse LoggingConfigurationStatus Source #
The status of the logging configuration.