// Deletes the access point policy for the specified access point. All Amazon S3 on
// Outposts REST API requests for this action require an additional parameter of
// outpost-id to be passed with the request and an S3 on Outposts endpoint hostname
// prefix instead of s3-control. For an example of the request syntax for Amazon S3
// on Outposts that uses the S3 on Outposts endpoint hostname prefix and the
// outpost-id derived using the access point ARN, see the  Example
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API__control_DeleteAccessPointPolicy.html#API_control_DeleteAccessPointPolicy_Examples)
// section below. The following actions are related to DeleteAccessPointPolicy:
//
// *
// PutAccessPointPolicy
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicy.html)
//
// *
// GetAccessPointPolicy
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointPolicy.html)
Deletes the access point policy for the specified access point. All Amazon S3 on
Outposts REST API requests for this action require an additional parameter of
outpost-id to be passed with the request and an S3 on Outposts endpoint hostname
prefix instead of s3-control. For an example of the request syntax for Amazon S3
on Outposts that uses the S3 on Outposts endpoint hostname prefix and the
outpost-id derived using the access point ARN, see the  Example

section below. The following actions are related to DeleteAccessPointPolicy.

PutAccessPointPolicy

GetAccessPointPolicy
// Deletes the access point policy for the specified access point . All Amazon S3 on // Outposts REST API requests for this action require an additional parameter of // outpost - id to be passed with the request and an S3 on Outposts endpoint hostname // prefix instead of s3 - control . For an example of the request syntax for Amazon S3 // on Outposts that uses the S3 on Outposts endpoint hostname prefix and the // outpost - id derived using the access point ARN see the Example // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API__control_DeleteAccessPointPolicy . html#API_control_DeleteAccessPointPolicy_Examples ) // section below . The following actions are related to DeleteAccessPointPolicy : // // * // PutAccessPointPolicy // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_control_PutAccessPointPolicy . html ) // // * // GetAccessPointPolicy // ( https : // docs . aws . amazon . com / AmazonS3 / latest / API / API_control_GetAccessPointPolicy . html )
func (c *Client) DeleteAccessPointPolicy(ctx context.Context, params *DeleteAccessPointPolicyInput, optFns ...func(*Options)) (*DeleteAccessPointPolicyOutput, error) {
	if params == nil {
		params = &DeleteAccessPointPolicyInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DeleteAccessPointPolicy", params, optFns, addOperationDeleteAccessPointPolicyMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DeleteAccessPointPolicyOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DeleteAccessPointPolicy ( ctx context . Context , params * DeleteAccessPointPolicyInput , optFns ... func ( * Options ) ) ( * DeleteAccessPointPolicyOutput , error ) { if params == nil { params = & DeleteAccessPointPolicyInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDeleteAccessPointPolicyMiddlewares ) if err != nil { return nil , err } out := result . ( * DeleteAccessPointPolicyOutput ) out . ResultMetadata = metadata return out , nil }
Deletes the access point policy for the specified access point.
Deletes the access point policy for the specified access point .