Deletes an existing access point scope for a directory bucket.
When you delete the scope of an access point, all prefixes and permissions are deleted.
To use this operation, you must have the permission to perform the s3express:DeleteAccessPointScope action.
For information about REST API errors, see REST error responses.
Parameters:
-
account_id
(AccountId)
–
The Amazon Web Services account ID that owns the access point with the scope that you want to delete.
-
name
(AccessPointName)
–
The name of the access point with the scope that you want to delete.
Raises:
Source code in docs_src/capo_s3_control/_services/s3_control.py
| def delete_access_point_scope(
self,
account_id: "capo_s3_control.types.account_id.AccountId",
name: "capo_s3_control.types.access_point_name.AccessPointName",
*,
config_overrides: Optional[S3ControlClientConfig] = None,
) -> None:
"""<p> Deletes an existing access point scope for a directory bucket.</p> <note> <p>When you delete the scope of an access point, all prefixes and permissions are deleted.</p> </note> <p>To use this operation, you must have the permission to perform the <code>s3express:DeleteAccessPointScope</code> action.</p> <p>For information about REST API errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses">REST error responses</a>.</p>
Args:
account_id: <p> The Amazon Web Services account ID that owns the access point with the scope that you want to delete. </p>
name: <p> The name of the access point with the scope that you want to delete. </p>
Raises:
capo_s3_control.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_s3_control.types.delete_access_point_scope_request.DeleteAccessPointScopeRequest]",
) -> OperationResponse[None]:
import capo_s3_control._operations.awss3_control_service_v20180820.delete_access_point_scope
output, http_response = (
capo_s3_control._operations.awss3_control_service_v20180820.delete_access_point_scope.delete_access_point_scope(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteAccessPointScope")
)
input_: capo_s3_control.types.delete_access_point_scope_request.DeleteAccessPointScopeRequest = {
"account_id": account_id,
"name": name,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|