put_email_monitoring_configuration
async
¶
put_email_monitoring_configuration(
organization_id: OrganizationId,
log_group_arn: LogGroupArn,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
role_arn: Optional[RoleArn] = None,
) -> PutEmailMonitoringConfigurationResponse
Creates or updates the email monitoring configuration for a specified organization.
Parameters:
-
organization_id(OrganizationId) –The ID of the organization for which the email monitoring configuration is set.
-
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration. If absent, the IAM Role Arn of AWSServiceRoleForAmazonWorkMailEvents will be used.
-
log_group_arn(LogGroupArn) –The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.
Raises:
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
ResourceNotFoundException–The resource cannot be found.
-
UnknownServiceError–The service returned an error code this client does not model.