Set the shared pool delivery mode for your Amazon SES account in the current Amazon Web Services Region. The mode controls whether Amazon SES can deliver your email from shared IP addresses in other Amazon Web Services Regions within the same Amazon Web Services partition.
A change may take a few minutes to take effect. Messages that are already queued for delivery keep the mode that they were sent with.
Parameters:
-
shared_pool_delivery_mode
(AccountSharedPoolDeliveryMode)
–
The shared pool delivery mode for your Amazon SES account in the current Amazon Web Services Region. This mode applies to email that you send from shared IP addresses. Can be one of the following:
-
GLOBAL – Amazon SES delivers from your sending Region first and, when it improves your deliverability, also uses Amazon SES shared IP addresses with established sending history in other Amazon Web Services Regions within the same Amazon Web Services partition.
-
REGIONAL – Amazon SES delivers your email only from shared IP addresses in your sending Region.
Raises:
Source code in docs_src/capo_sesv2/_services/se_sv2.py
| def put_account_delivery_attributes(
self,
shared_pool_delivery_mode: "capo_sesv2.types.account_shared_pool_delivery_mode.AccountSharedPoolDeliveryMode",
*,
config_overrides: Optional[SESv2ClientConfig] = None,
) -> "capo_sesv2.types.put_account_delivery_attributes_response.PutAccountDeliveryAttributesResponse":
"""<p>Set the shared pool delivery mode for your Amazon SES account in the current Amazon Web Services Region. The mode controls whether Amazon SES can deliver your email from shared IP addresses in other Amazon Web Services Regions within the same Amazon Web Services partition.</p> <p>A change may take a few minutes to take effect. Messages that are already queued for delivery keep the mode that they were sent with.</p>
Args:
shared_pool_delivery_mode: <p>The shared pool delivery mode for your Amazon SES account in the current Amazon Web Services Region. This mode applies to email that you send from shared IP addresses. Can be one of the following:</p> <ul> <li> <p> <code>GLOBAL</code> – Amazon SES delivers from your sending Region first and, when it improves your deliverability, also uses Amazon SES shared IP addresses with established sending history in other Amazon Web Services Regions within the same Amazon Web Services partition.</p> </li> <li> <p> <code>REGIONAL</code> – Amazon SES delivers your email only from shared IP addresses in your sending Region.</p> </li> </ul>
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_delivery_attributes_request.PutAccountDeliveryAttributesRequest]",
) -> OperationResponse[
"capo_sesv2.types.put_account_delivery_attributes_response.PutAccountDeliveryAttributesResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.put_account_delivery_attributes
output, http_response = (
capo_sesv2._operations.simple_email_service_v2.put_account_delivery_attributes.put_account_delivery_attributes(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutAccountDeliveryAttributes")
)
input_: capo_sesv2.types.put_account_delivery_attributes_request.PutAccountDeliveryAttributesRequest = {
"shared_pool_delivery_mode": shared_pool_delivery_mode
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|