Skip to content

get_account_settings async

get_account_settings(
    *, config_overrides: Optional[AsyncevsClientConfig] = None
) -> GetAccountSettingsResponse

Returns the configured EVS settings for your Amazon Web Services account in the specified Amazon Web Services Region. If no settings have been set, an empty list is returned.

Raises:

  • InternalServerException –

    An internal server error occurred. Retry your request.

  • ThrottlingException –

    The operation could not be performed because the service is throttling requests. This exception is thrown when the service endpoint receives too many concurrent requests.

  • ValidationException –

    The input fails to satisfy the specified constraints. You will see this exception if invalid inputs are provided for any of the Amazon EVS environment operations, or if a list operation is performed on an environment resource that is still initializing.

  • UnknownServiceError –

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

Source code in docs_src/capo_evs/_services/async_evs.py
async def get_account_settings(
    self, *, config_overrides: Optional[AsyncevsClientConfig] = None
) -> "capo_evs.types.get_account_settings_response.GetAccountSettingsResponse":
    """<p>Returns the configured EVS settings for your Amazon Web Services account in the specified Amazon Web Services Region. If no settings have been set, an empty list is returned.</p>

    Raises:
        capo_evs.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
        capo_evs.errors.throttling_exception.ThrottlingException: <p>The operation could not be performed because the service is throttling requests. This exception is thrown when the service endpoint receives too many concurrent requests.</p>
        capo_evs.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints. You will see this exception if invalid inputs are provided for any of the Amazon EVS environment operations, or if a list operation is performed on an environment resource that is still initializing.</p>
        capo_evs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_evs.types.get_account_settings_request.GetAccountSettingsRequest]",
    ) -> AsyncOperationResponse[
        "capo_evs.types.get_account_settings_response.GetAccountSettingsResponse"
    ]:
        import capo_evs._operations.amazon_elastic_v_mware_service.get_account_settings

        (
            output,
            http_response,
        ) = await capo_evs._operations.amazon_elastic_v_mware_service.get_account_settings.async_get_account_settings(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAccountSettings")
    )
    input_: capo_evs.types.get_account_settings_request.GetAccountSettingsRequest = {}

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