This operation is not supported by directory buckets.
Removes the resource policy for an Object Lambda Access Point.
The following actions are related to DeleteAccessPointPolicyForObjectLambda:
Parameters:
-
account_id
(AccountId)
–
The account ID for the account that owns the specified Object Lambda Access Point.
-
name
(ObjectLambdaAccessPointName)
–
The name of the Object Lambda Access Point you want to delete the policy for.
Raises:
Source code in docs_src/capo_s3_control/_services/s3_control.py
| def delete_access_point_policy_for_object_lambda(
self,
account_id: "capo_s3_control.types.account_id.AccountId",
name: "capo_s3_control.types.object_lambda_access_point_name.ObjectLambdaAccessPointName",
*,
config_overrides: Optional[S3ControlClientConfig] = None,
) -> None:
"""<note> <p>This operation is not supported by directory buckets.</p> </note> <p>Removes the resource policy for an Object Lambda Access Point.</p> <p>The following actions are related to <code>DeleteAccessPointPolicyForObjectLambda</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointPolicyForObjectLambda.html">GetAccessPointPolicyForObjectLambda</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicyForObjectLambda.html">PutAccessPointPolicyForObjectLambda</a> </p> </li> </ul>
Args:
account_id: <p>The account ID for the account that owns the specified Object Lambda Access Point.</p>
name: <p>The name of the Object Lambda Access Point you want to delete the policy for.</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_policy_for_object_lambda_request.DeleteAccessPointPolicyForObjectLambdaRequest]",
) -> OperationResponse[None]:
import capo_s3_control._operations.awss3_control_service_v20180820.delete_access_point_policy_for_object_lambda
output, http_response = (
capo_s3_control._operations.awss3_control_service_v20180820.delete_access_point_policy_for_object_lambda.delete_access_point_policy_for_object_lambda(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteAccessPointPolicyForObjectLambda")
)
input_: capo_s3_control.types.delete_access_point_policy_for_object_lambda_request.DeleteAccessPointPolicyForObjectLambdaRequest = {
"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
|