delete_endpoint(
endpoint_id: EndpointId,
outpost_id: OutpostId,
*,
config_overrides: Optional[AsyncS3OutpostsClientConfig] = None,
) -> None
Deletes an endpoint.
It can take up to 5 minutes for this action to finish.
Related actions include:
Parameters:
Raises:
Source code in docs_src/capo_s3outposts/_services/async_s3_outposts.py
| async def delete_endpoint(
self,
endpoint_id: "capo_s3outposts.types.endpoint_id.EndpointId",
outpost_id: "capo_s3outposts.types.outpost_id.OutpostId",
*,
config_overrides: Optional[AsyncS3OutpostsClientConfig] = None,
) -> None:
"""<p>Deletes an endpoint.</p> <note> <p>It can take up to 5 minutes for this action to finish.</p> </note> <p></p> <p>Related actions include:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html">ListEndpoints</a> </p> </li> </ul>
Args:
endpoint_id: <p>The ID of the endpoint.</p>
outpost_id: <p>The ID of the Outposts. </p>
Raises:
capo_s3outposts.errors.access_denied_exception.AccessDeniedException: <p>Access was denied for this action.</p>
capo_s3outposts.errors.internal_server_exception.InternalServerException: <p>There was an exception with the internal server.</p>
capo_s3outposts.errors.outpost_offline_exception.OutpostOfflineException: <p>The service link connection to your Outposts home Region is down. Check your connection and try again.</p>
capo_s3outposts.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found.</p>
capo_s3outposts.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_s3outposts.errors.validation_exception.ValidationException: <p>There was an exception validating this data.</p>
capo_s3outposts.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_s3outposts.types.delete_endpoint_request.DeleteEndpointRequest]",
) -> AsyncOperationResponse[None]:
import capo_s3outposts._operations.s3_outposts.delete_endpoint
(
output,
http_response,
) = await capo_s3outposts._operations.s3_outposts.delete_endpoint.async_delete_endpoint(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteEndpoint")
)
input_: capo_s3outposts.types.delete_endpoint_request.DeleteEndpointRequest = {
"endpoint_id": endpoint_id,
"outpost_id": outpost_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|