Deletes the specified access point. After deletion is complete, new clients can no longer connect to the access points. Clients connected to the access point at the time of deletion will continue to function until they terminate their connection.
This operation requires permissions for the elasticfilesystem:DeleteAccessPoint action.
Parameters:
-
access_point_id
(AccessPointId)
–
The ID of the access point that you want to delete.
Raises:
-
AccessPointNotFound
–
Returned if the specified AccessPointId value doesn't exist in the requester's Amazon Web Services account.
-
BadRequest
–
Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter.
-
InternalServerError
–
Returned if an error occurred on the server side.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_efs/_services/efs.py
| def delete_access_point(
self,
access_point_id: "capo_efs.types.access_point_id.AccessPointId",
*,
config_overrides: Optional[EFSClientConfig] = None,
) -> None:
"""<p>Deletes the specified access point. After deletion is complete, new clients can no longer connect to the access points. Clients connected to the access point at the time of deletion will continue to function until they terminate their connection.</p> <p>This operation requires permissions for the <code>elasticfilesystem:DeleteAccessPoint</code> action.</p>
Args:
access_point_id: <p>The ID of the access point that you want to delete.</p>
Raises:
capo_efs.errors.access_point_not_found.AccessPointNotFound: <p>Returned if the specified <code>AccessPointId</code> value doesn't exist in the requester's Amazon Web Services account.</p>
capo_efs.errors.bad_request.BadRequest: <p>Returned if the request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
capo_efs.errors.internal_server_error.InternalServerError: <p>Returned if an error occurred on the server side.</p>
capo_efs.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_efs.types.delete_access_point_request.DeleteAccessPointRequest]",
) -> OperationResponse[None]:
import capo_efs._operations.magnolio_api_service_v20150201.delete_access_point
output, http_response = (
capo_efs._operations.magnolio_api_service_v20150201.delete_access_point.delete_access_point(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteAccessPoint")
)
input_: capo_efs.types.delete_access_point_request.DeleteAccessPointRequest = {
"access_point_id": access_point_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|