Set the pricing plan for your Amazon SES account.
Parameters:
-
plan
(PricingPlan)
–
The pricing plan to apply to your Amazon SES account. For details about each plan, see Amazon SES Pricing. Can be one of the following:
-
NONE
-
ESSENTIALS
-
PRO
-
ENTERPRISE
Raises:
Source code in docs_src/capo_sesv2/_services/async_se_sv2.py
| async def put_account_pricing_attributes(
self,
plan: "capo_sesv2.types.pricing_plan.PricingPlan",
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = None,
) -> "capo_sesv2.types.put_account_pricing_attributes_response.PutAccountPricingAttributesResponse":
"""<p>Set the pricing plan for your Amazon SES account.</p>
Args:
plan: <p>The pricing plan to apply to your Amazon SES account. For details about each plan, see <a href="http://aws.amazon.com/ses/pricing/">Amazon SES Pricing</a>. Can be one of the following:</p> <ul> <li> <p> <code>NONE</code> </p> </li> <li> <p> <code>ESSENTIALS</code> </p> </li> <li> <p> <code>PRO</code> </p> </li> <li> <p> <code>ENTERPRISE</code> </p> </li> </ul>
Raises:
capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
capo_sesv2.errors.conflict_exception.ConflictException: <p>If there is already an ongoing account details update under review.</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_pricing_attributes_request.PutAccountPricingAttributesRequest]",
) -> AsyncOperationResponse[
"capo_sesv2.types.put_account_pricing_attributes_response.PutAccountPricingAttributesResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.put_account_pricing_attributes
(
output,
http_response,
) = await capo_sesv2._operations.simple_email_service_v2.put_account_pricing_attributes.async_put_account_pricing_attributes(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutAccountPricingAttributes")
)
input_: capo_sesv2.types.put_account_pricing_attributes_request.PutAccountPricingAttributesRequest = {
"plan": plan
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|