Used to convert a dedicated IP pool to a different scaling mode.
MANAGED pools cannot be converted to STANDARD scaling mode.
Parameters:
-
pool_name
(PoolName)
–
The name of the dedicated IP pool.
-
scaling_mode
(ScalingMode)
–
The scaling mode to apply to the dedicated IP pool.
Changing the scaling mode from MANAGED to STANDARD is not supported.
Raises:
Examples:
Used to convert a dedicated IP pool to a different scaling mode.
This example converts a dedicated IP pool from STANDARD to MANAGED.
>>> await client.put_dedicated_ip_pool_scaling_attributes(pool_name='sample-ses-pool', scaling_mode='MANAGED')
Source code in docs_src/capo_sesv2/_services/async_se_sv2.py
| async def put_dedicated_ip_pool_scaling_attributes(
self,
pool_name: "capo_sesv2.types.pool_name.PoolName",
scaling_mode: "capo_sesv2.types.scaling_mode.ScalingMode",
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = None,
) -> "capo_sesv2.types.put_dedicated_ip_pool_scaling_attributes_response.PutDedicatedIpPoolScalingAttributesResponse":
"""<p>Used to convert a dedicated IP pool to a different scaling mode.</p> <note> <p> <code>MANAGED</code> pools cannot be converted to <code>STANDARD</code> scaling mode.</p> </note>
Args:
pool_name: <p>The name of the dedicated IP pool.</p>
scaling_mode: <p>The scaling mode to apply to the dedicated IP pool.</p> <note> <p>Changing the scaling mode from <code>MANAGED</code> to <code>STANDARD</code> is not supported.</p> </note>
Raises:
capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
capo_sesv2.errors.concurrent_modification_exception.ConcurrentModificationException: <p>The resource is being modified by another operation or thread.</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.
Examples:
Used to convert a dedicated IP pool to a different scaling mode.
This example converts a dedicated IP pool from STANDARD to MANAGED.
>>> await client.put_dedicated_ip_pool_scaling_attributes(pool_name='sample-ses-pool', scaling_mode='MANAGED')
"""
async def _handler(
req: "AsyncOperationRequest[capo_sesv2.types.put_dedicated_ip_pool_scaling_attributes_request.PutDedicatedIpPoolScalingAttributesRequest]",
) -> AsyncOperationResponse[
"capo_sesv2.types.put_dedicated_ip_pool_scaling_attributes_response.PutDedicatedIpPoolScalingAttributesResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.put_dedicated_ip_pool_scaling_attributes
(
output,
http_response,
) = await capo_sesv2._operations.simple_email_service_v2.put_dedicated_ip_pool_scaling_attributes.async_put_dedicated_ip_pool_scaling_attributes(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutDedicatedIpPoolScalingAttributes")
)
input_: capo_sesv2.types.put_dedicated_ip_pool_scaling_attributes_request.PutDedicatedIpPoolScalingAttributesRequest = {
"pool_name": pool_name,
"scaling_mode": scaling_mode,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|