Skip to content

get_service_settings async

get_service_settings(
    *, config_overrides: Optional[AsyncSSMQuickSetupClientConfig] = None
) -> GetServiceSettingsOutput

Returns settings configured for Quick Setup in the requesting Amazon Web Services account and Amazon Web Services Region.

Raises:

  • AccessDeniedException –

    The requester has insufficient permissions to perform the operation.

  • ConflictException –

    Another request is being processed. Wait a few minutes and try again.

  • InternalServerException –

    An error occurred on the server side.

  • ThrottlingException –

    The request or operation exceeds the maximum allowed request rate per Amazon Web Services account and Amazon Web Services Region.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_ssm_quicksetup/_services/async_ssm_quick_setup.py
async def get_service_settings(
    self, *, config_overrides: Optional[AsyncSSMQuickSetupClientConfig] = None
) -> (
    "capo_ssm_quicksetup.types.get_service_settings_output.GetServiceSettingsOutput"
):
    """<p>Returns settings configured for Quick Setup in the requesting Amazon Web Services account and Amazon Web Services Region.</p>

    Raises:
        capo_ssm_quicksetup.errors.access_denied_exception.AccessDeniedException: <p>The requester has insufficient permissions to perform the operation.</p>
        capo_ssm_quicksetup.errors.conflict_exception.ConflictException: <p>Another request is being processed. Wait a few minutes and try again.</p>
        capo_ssm_quicksetup.errors.internal_server_exception.InternalServerException: <p>An error occurred on the server side.</p>
        capo_ssm_quicksetup.errors.throttling_exception.ThrottlingException: <p>The request or operation exceeds the maximum allowed request rate per Amazon Web Services account and Amazon Web Services Region.</p>
        capo_ssm_quicksetup.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[None]",
    ) -> AsyncOperationResponse[
        "capo_ssm_quicksetup.types.get_service_settings_output.GetServiceSettingsOutput"
    ]:
        import capo_ssm_quicksetup._operations.quick_setup.get_service_settings

        (
            output,
            http_response,
        ) = await capo_ssm_quicksetup._operations.quick_setup.get_service_settings.async_get_service_settings(
            req.options
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetServiceSettings")
    )

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=None, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output