Skip to content

put_account_settings async

put_account_settings(
    settings: AccountSettingList,
    *,
    config_overrides: Optional[AsyncevsClientConfig] = None,
) -> PutAccountSettingsResponse

Creates or updates account-level EVS settings for your Amazon Web Services account in the specified Amazon Web Services Region.

EVS settings included in the request are created or overwritten. Settings omitted from the request retain their current values.

Parameters:

  • settings (AccountSettingList) –

    A list of regional account-level EVS settings to create or update. Only the settings included in this list are modified.

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 put_account_settings(
    self,
    settings: "capo_evs.types.account_setting_list.AccountSettingList",
    *,
    config_overrides: Optional[AsyncevsClientConfig] = None,
) -> "capo_evs.types.put_account_settings_response.PutAccountSettingsResponse":
    """<p>Creates or updates account-level EVS settings for your Amazon Web Services account in the specified Amazon Web Services Region.</p> <p>EVS settings included in the request are created or overwritten. Settings omitted from the request retain their current values.</p>

    Args:
        settings: <p>A list of regional account-level EVS settings to create or update. Only the settings included in this list are modified.</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.put_account_settings_request.PutAccountSettingsRequest]",
    ) -> AsyncOperationResponse[
        "capo_evs.types.put_account_settings_response.PutAccountSettingsResponse"
    ]:
        import capo_evs._operations.amazon_elastic_v_mware_service.put_account_settings

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutAccountSettings")
    )
    input_: capo_evs.types.put_account_settings_request.PutAccountSettingsRequest = {
        "settings": settings
    }

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