// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DeleteAccessPointPolicy`](crate::operation::delete_access_point_policy::builders::DeleteAccessPointPolicyFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`account_id(impl Into<String>)`](crate::operation::delete_access_point_policy::builders::DeleteAccessPointPolicyFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::delete_access_point_policy::builders::DeleteAccessPointPolicyFluentBuilder::set_account_id): <p>The account ID for the account that owns the specified access point.</p>
/// - [`name(impl Into<String>)`](crate::operation::delete_access_point_policy::builders::DeleteAccessPointPolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::delete_access_point_policy::builders::DeleteAccessPointPolicyFluentBuilder::set_name): <p>The name of the access point whose policy you want to delete.</p> <p>For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.</p> <p>For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format <code>arn:aws:s3-outposts: <region> : <account-id> :outpost/ <outpost-id> /accesspoint/ <my-accesspoint-name></my-accesspoint-name> </outpost-id> </account-id> </region></code>. For example, to access the access point <code>reports-ap</code> through Outpost <code>my-outpost</code> owned by account <code>123456789012</code> in Region <code>us-west-2</code>, use the URL encoding of <code>arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap</code>. The value must be URL encoded. </p>
/// - On success, responds with [`DeleteAccessPointPolicyOutput`](crate::operation::delete_access_point_policy::DeleteAccessPointPolicyOutput)
/// - On failure, responds with [`SdkError<DeleteAccessPointPolicyError>`](crate::operation::delete_access_point_policy::DeleteAccessPointPolicyError)
pub fn delete_access_point_policy(
&self,
) -> crate::operation::delete_access_point_policy::builders::DeleteAccessPointPolicyFluentBuilder
{
crate::operation::delete_access_point_policy::builders::DeleteAccessPointPolicyFluentBuilder::new(self.handle.clone())
}
}