Updates the isSensitiveEventsSubscribed property of a particular ManagedNotification channel association.
Parameters:
-
managed_notification_configuration_arn
(ManagedNotificationConfigurationOsArn)
–
The Amazon Resource Name (ARN) of the ManagedNotificationConfiguration whose Channel association property you want to update.
-
channel_identifier
(ManagedNotificationChannelIdentifier)
–
The identifier of the channel association to update. You can specify one of the following:
-
is_sensitive_events_subscribed
(Optional[bool], default:
None
)
–
Specifies whether the association is subscribed to sensitive events. The notifications:SubscribeSensitiveEvents permission controls access to sensitive events.
Raises:
Source code in docs_src/capo_notifications/_services/notifications.py
| def update_managed_notification_channel_association(
self,
managed_notification_configuration_arn: "capo_notifications.types.managed_notification_configuration_os_arn.ManagedNotificationConfigurationOsArn",
channel_identifier: "capo_notifications.types.managed_notification_channel_identifier.ManagedNotificationChannelIdentifier",
*,
config_overrides: Optional[NotificationsClientConfig] = None,
is_sensitive_events_subscribed: Optional[bool] = None,
) -> "capo_notifications.types.update_managed_notification_channel_association_response.UpdateManagedNotificationChannelAssociationResponse":
"""<p>Updates the <code>isSensitiveEventsSubscribed</code> property of a particular ManagedNotification channel association.</p>
Args:
managed_notification_configuration_arn: <p>The Amazon Resource Name (ARN) of the <code>ManagedNotificationConfiguration</code> whose Channel association property you want to update.</p>
channel_identifier: <p>The identifier of the channel association to update. You can specify one of the following:</p> <ul> <li> <p>An Account contact identifier.</p> </li> <li> <p>A Channel ARN.</p> </li> </ul>
is_sensitive_events_subscribed: <p>Specifies whether the association is subscribed to sensitive events. The <code>notifications:SubscribeSensitiveEvents</code> permission controls access to sensitive events.</p>
Raises:
capo_notifications.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
capo_notifications.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
capo_notifications.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_notifications.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist. </p>
capo_notifications.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling. </p>
capo_notifications.errors.validation_exception.ValidationException: <p>This exception is thrown when the notification event fails validation.</p>
capo_notifications.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_notifications.types.update_managed_notification_channel_association_request.UpdateManagedNotificationChannelAssociationRequest]",
) -> OperationResponse[
"capo_notifications.types.update_managed_notification_channel_association_response.UpdateManagedNotificationChannelAssociationResponse"
]:
import capo_notifications._operations.notifications.update_managed_notification_channel_association
output, http_response = (
capo_notifications._operations.notifications.update_managed_notification_channel_association.update_managed_notification_channel_association(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("UpdateManagedNotificationChannelAssociation"),
)
input_: capo_notifications.types.update_managed_notification_channel_association_request.UpdateManagedNotificationChannelAssociationRequest = {
"managed_notification_configuration_arn": managed_notification_configuration_arn,
"channel_identifier": channel_identifier,
}
if is_sensitive_events_subscribed is not None:
input_["is_sensitive_events_subscribed"] = is_sensitive_events_subscribed
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|