| 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.WorkMail.PutEmailMonitoringConfiguration
Description
Creates or updates the email monitoring configuration for a specified organization.
Synopsis
- data PutEmailMonitoringConfiguration = PutEmailMonitoringConfiguration' {
- organizationId :: Text
- roleArn :: Text
- logGroupArn :: Text
- newPutEmailMonitoringConfiguration :: Text -> Text -> Text -> PutEmailMonitoringConfiguration
- putEmailMonitoringConfiguration_organizationId :: Lens' PutEmailMonitoringConfiguration Text
- putEmailMonitoringConfiguration_roleArn :: Lens' PutEmailMonitoringConfiguration Text
- putEmailMonitoringConfiguration_logGroupArn :: Lens' PutEmailMonitoringConfiguration Text
- data PutEmailMonitoringConfigurationResponse = PutEmailMonitoringConfigurationResponse' {
- httpStatus :: Int
- newPutEmailMonitoringConfigurationResponse :: Int -> PutEmailMonitoringConfigurationResponse
- putEmailMonitoringConfigurationResponse_httpStatus :: Lens' PutEmailMonitoringConfigurationResponse Int
Creating a Request
data PutEmailMonitoringConfiguration Source #
See: newPutEmailMonitoringConfiguration smart constructor.
Constructors
| PutEmailMonitoringConfiguration' | |
Fields
| |
Instances
newPutEmailMonitoringConfiguration Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> PutEmailMonitoringConfiguration |
Create a value of PutEmailMonitoringConfiguration 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:
PutEmailMonitoringConfiguration, putEmailMonitoringConfiguration_organizationId - The ID of the organization for which the email monitoring configuration
is set.
$sel:roleArn:PutEmailMonitoringConfiguration', putEmailMonitoringConfiguration_roleArn - The Amazon Resource Name (ARN) of the IAM Role associated with the email
monitoring configuration.
$sel:logGroupArn:PutEmailMonitoringConfiguration', putEmailMonitoringConfiguration_logGroupArn - The Amazon Resource Name (ARN) of the CloudWatch Log group associated
with the email monitoring configuration.
Request Lenses
putEmailMonitoringConfiguration_organizationId :: Lens' PutEmailMonitoringConfiguration Text Source #
The ID of the organization for which the email monitoring configuration is set.
putEmailMonitoringConfiguration_roleArn :: Lens' PutEmailMonitoringConfiguration Text Source #
The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration.
putEmailMonitoringConfiguration_logGroupArn :: Lens' PutEmailMonitoringConfiguration Text Source #
The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.
Destructuring the Response
data PutEmailMonitoringConfigurationResponse Source #
See: newPutEmailMonitoringConfigurationResponse smart constructor.
Constructors
| PutEmailMonitoringConfigurationResponse' | |
Fields
| |
Instances
newPutEmailMonitoringConfigurationResponse Source #
Arguments
| :: Int | |
| -> PutEmailMonitoringConfigurationResponse |
Create a value of PutEmailMonitoringConfigurationResponse 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:PutEmailMonitoringConfigurationResponse', putEmailMonitoringConfigurationResponse_httpStatus - The response's http status code.
Response Lenses
putEmailMonitoringConfigurationResponse_httpStatus :: Lens' PutEmailMonitoringConfigurationResponse Int Source #
The response's http status code.