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/se_sv2.py
| def put_account_vdm_attributes(
self,
vdm_attributes: "capo_sesv2.types.vdm_attributes.VdmAttributes",
*,
config_overrides: Optional[SESv2ClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_sesv2.types.put_account_vdm_attributes_request.PutAccountVdmAttributesRequest]",
) -> OperationResponse[
"capo_sesv2.types.put_account_vdm_attributes_response.PutAccountVdmAttributesResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.put_account_vdm_attributes
output, http_response = (
capo_sesv2._operations.simple_email_service_v2.put_account_vdm_attributes.put_account_vdm_attributes(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|