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/se_sv2.py
| def put_account_pricing_attributes(
self,
plan: "capo_sesv2.types.pricing_plan.PricingPlan",
*,
config_overrides: Optional[SESv2ClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_sesv2.types.put_account_pricing_attributes_request.PutAccountPricingAttributesRequest]",
) -> OperationResponse[
"capo_sesv2.types.put_account_pricing_attributes_response.PutAccountPricingAttributesResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.put_account_pricing_attributes
output, http_response = (
capo_sesv2._operations.simple_email_service_v2.put_account_pricing_attributes.put_account_pricing_attributes(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|