Skip to content

put_configuration_set_vdm_options async

put_configuration_set_vdm_options(
    configuration_set_name: ConfigurationSetName,
    *,
    config_overrides: Optional[AsyncSESv2ClientConfig] = None,
    vdm_options: Optional[VdmOptions] = None,
) -> PutConfigurationSetVdmOptionsResponse

Specify VDM preferences for email that you send using the configuration set.

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

Parameters:

  • configuration_set_name (ConfigurationSetName) –

    The name of the configuration set.

  • vdm_options (Optional[VdmOptions], default: None ) –

    The VDM options to apply to the configuration set.

Raises:

Source code in docs_src/capo_sesv2/_services/async_se_sv2.py
async def put_configuration_set_vdm_options(
    self,
    configuration_set_name: "capo_sesv2.types.configuration_set_name.ConfigurationSetName",
    *,
    config_overrides: Optional[AsyncSESv2ClientConfig] = None,
    vdm_options: Optional["capo_sesv2.types.vdm_options.VdmOptions"] = None,
) -> "capo_sesv2.types.put_configuration_set_vdm_options_response.PutConfigurationSetVdmOptionsResponse":
    """<p>Specify VDM preferences for email that you send using the configuration set.</p> <p>You can execute this operation no more than once per second.</p>

    Args:
        configuration_set_name: <p>The name of the configuration set.</p>
        vdm_options: <p>The VDM options to apply to the configuration set.</p>

    Raises:
        capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
        capo_sesv2.errors.not_found_exception.NotFoundException: <p>The resource you attempted to access doesn't exist.</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_configuration_set_vdm_options_request.PutConfigurationSetVdmOptionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_sesv2.types.put_configuration_set_vdm_options_response.PutConfigurationSetVdmOptionsResponse"
    ]:
        import capo_sesv2._operations.simple_email_service_v2.put_configuration_set_vdm_options

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutConfigurationSetVdmOptions")
    )
    input_: capo_sesv2.types.put_configuration_set_vdm_options_request.PutConfigurationSetVdmOptionsRequest = {
        "configuration_set_name": configuration_set_name
    }
    if vdm_options is not None:
        input_["vdm_options"] = vdm_options

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