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 |
Amazonka.AMP.CreateLoggingConfiguration
Description
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.
Constructors
CreateLoggingConfiguration' | |
Fields
|
Instances
newCreateLoggingConfiguration Source #
Arguments
:: Text | |
-> Text | |
-> CreateLoggingConfiguration |
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.
Constructors
CreateLoggingConfigurationResponse' | |
Fields
|
Instances
newCreateLoggingConfigurationResponse Source #
Arguments
:: Int | |
-> LoggingConfigurationStatus | |
-> CreateLoggingConfigurationResponse |
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.