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/s3_outposts.py
| def delete_endpoint(
self,
endpoint_id: "capo_s3outposts.types.endpoint_id.EndpointId",
outpost_id: "capo_s3outposts.types.outpost_id.OutpostId",
*,
config_overrides: Optional[S3OutpostsClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_s3outposts.types.delete_endpoint_request.DeleteEndpointRequest]",
) -> OperationResponse[None]:
import capo_s3outposts._operations.s3_outposts.delete_endpoint
output, http_response = (
capo_s3outposts._operations.s3_outposts.delete_endpoint.delete_endpoint(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|