Skip to content

put_account_vdm_attributes async

put_account_vdm_attributes(
    vdm_attributes: VdmAttributes,
    *,
    config_overrides: Optional[AsyncSESv2ClientConfig] = None,
) -> PutAccountVdmAttributesResponse

Update your Amazon SES account VDM attributes.

You can execute this operation no more than once per second.

Parameters:

  • vdm_attributes (VdmAttributes) –

    The VDM attributes that you wish to apply to your Amazon SES account.

Raises:

Source code in docs_src/capo_sesv2/_services/async_se_sv2.py
async def put_account_vdm_attributes(
    self,
    vdm_attributes: "capo_sesv2.types.vdm_attributes.VdmAttributes",
    *,
    config_overrides: Optional[AsyncSESv2ClientConfig] = None,
) -> "capo_sesv2.types.put_account_vdm_attributes_response.PutAccountVdmAttributesResponse":
    """<p>Update your Amazon SES account VDM attributes.</p> <p>You can execute this operation no more than once per second.</p>

    Args:
        vdm_attributes: <p>The VDM attributes that you wish to apply to your Amazon SES account.</p>

    Raises:
        capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
        capo_sesv2.errors.too_many_requests_exception.TooManyRequestsException: <p>Too many requests have been made to the operation.</p>
        capo_sesv2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_sesv2.types.put_account_vdm_attributes_request.PutAccountVdmAttributesRequest]",
    ) -> AsyncOperationResponse[
        "capo_sesv2.types.put_account_vdm_attributes_response.PutAccountVdmAttributesResponse"
    ]:
        import capo_sesv2._operations.simple_email_service_v2.put_account_vdm_attributes

        (
            output,
            http_response,
        ) = await capo_sesv2._operations.simple_email_service_v2.put_account_vdm_attributes.async_put_account_vdm_attributes(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutAccountVdmAttributes")
    )
    input_: capo_sesv2.types.put_account_vdm_attributes_request.PutAccountVdmAttributesRequest = {
        "vdm_attributes": vdm_attributes
    }

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