Skip to content

get_notifications_access_for_organization

get_notifications_access_for_organization(
    *, config_overrides: Optional[NotificationsClientConfig] = None
) -> GetNotificationsAccessForOrganizationResponse

Returns the AccessStatus of Service Trust Enablement for User Notifications and Amazon Web Services Organizations.

Raises:

Source code in docs_src/capo_notifications/_services/notifications.py
def get_notifications_access_for_organization(
    self, *, config_overrides: Optional[NotificationsClientConfig] = None
) -> "capo_notifications.types.get_notifications_access_for_organization_response.GetNotificationsAccessForOrganizationResponse":
    """<p>Returns the AccessStatus of Service Trust Enablement for User Notifications and Amazon Web Services Organizations.</p>

    Raises:
        capo_notifications.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_notifications.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</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.get_notifications_access_for_organization_request.GetNotificationsAccessForOrganizationRequest]",
    ) -> OperationResponse[
        "capo_notifications.types.get_notifications_access_for_organization_response.GetNotificationsAccessForOrganizationResponse"
    ]:
        import capo_notifications._operations.notifications.get_notifications_access_for_organization

        output, http_response = (
            capo_notifications._operations.notifications.get_notifications_access_for_organization.get_notifications_access_for_organization(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetNotificationsAccessForOrganization")
    )
    input_: capo_notifications.types.get_notifications_access_for_organization_request.GetNotificationsAccessForOrganizationRequest = {}

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output