Stops advertising an address range that is provisioned as an address pool. You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.
It can take a few minutes before traffic to the specified addresses stops routing to Amazon Web Services because of propagation delays.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
Parameters:
Raises:
Source code in docs_src/capo_global_accelerator/_services/async_global_accelerator.py
| async def withdraw_byoip_cidr(
self,
cidr: "capo_global_accelerator.types.generic_string.GenericString",
*,
config_overrides: Optional[AsyncGlobalAcceleratorClientConfig] = None,
) -> "capo_global_accelerator.types.withdraw_byoip_cidr_response.WithdrawByoipCidrResponse":
"""<p>Stops advertising an address range that is provisioned as an address pool. You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.</p> <p>It can take a few minutes before traffic to the specified addresses stops routing to Amazon Web Services because of propagation delays.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html">Bring your own IP addresses (BYOIP)</a> in the <i>Global Accelerator Developer Guide</i>.</p>
Args:
cidr: <p>The address range, in CIDR notation.</p> <p> For more information, see <a href="https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html">Bring your own IP addresses (BYOIP)</a> in the Global Accelerator Developer Guide.</p>
Raises:
capo_global_accelerator.errors.access_denied_exception.AccessDeniedException: <p>You don't have access permission.</p>
capo_global_accelerator.errors.byoip_cidr_not_found_exception.ByoipCidrNotFoundException: <p>The CIDR that you specified was not found or is incorrect.</p>
capo_global_accelerator.errors.incorrect_cidr_state_exception.IncorrectCidrStateException: <p>The CIDR that you specified is not valid for this action. For example, the state of the CIDR might be incorrect for this action.</p>
capo_global_accelerator.errors.internal_service_error_exception.InternalServiceErrorException: <p>There was an internal error for Global Accelerator.</p>
capo_global_accelerator.errors.invalid_argument_exception.InvalidArgumentException: <p>An argument that you specified is invalid.</p>
capo_global_accelerator.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_global_accelerator.types.withdraw_byoip_cidr_request.WithdrawByoipCidrRequest]",
) -> AsyncOperationResponse[
"capo_global_accelerator.types.withdraw_byoip_cidr_response.WithdrawByoipCidrResponse"
]:
import capo_global_accelerator._operations.global_accelerator_v20180706.withdraw_byoip_cidr
(
output,
http_response,
) = await capo_global_accelerator._operations.global_accelerator_v20180706.withdraw_byoip_cidr.async_withdraw_byoip_cidr(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("WithdrawByoipCidr")
)
input_: capo_global_accelerator.types.withdraw_byoip_cidr_request.WithdrawByoipCidrRequest = {
"cidr": cidr
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|