| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.S3.DeleteBucketReplication
Description
Deletes the replication configuration from the bucket.
To use this operation, you must have permissions to perform the s3:PutReplicationConfiguration action. The bucket owner has these permissions by default and can grant it to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.
It can take a while for the deletion of a replication configuration to fully propagate.
For information about replication configuration, see Replication in the Amazon S3 User Guide.
The following operations are related to DeleteBucketReplication:
Synopsis
- data DeleteBucketReplication = DeleteBucketReplication' {}
- newDeleteBucketReplication :: BucketName -> DeleteBucketReplication
- deleteBucketReplication_expectedBucketOwner :: Lens' DeleteBucketReplication (Maybe Text)
- deleteBucketReplication_bucket :: Lens' DeleteBucketReplication BucketName
- data DeleteBucketReplicationResponse = DeleteBucketReplicationResponse' {
- newDeleteBucketReplicationResponse :: DeleteBucketReplicationResponse
Creating a Request
data DeleteBucketReplication Source #
See: newDeleteBucketReplication smart constructor.
Constructors
| DeleteBucketReplication' | |
Fields
| |
Instances
newDeleteBucketReplication Source #
Arguments
| :: BucketName | |
| -> DeleteBucketReplication |
Create a value of DeleteBucketReplication with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:expectedBucketOwner:DeleteBucketReplication', deleteBucketReplication_expectedBucketOwner - The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).
DeleteBucketReplication, deleteBucketReplication_bucket - The bucket name.
Request Lenses
deleteBucketReplication_expectedBucketOwner :: Lens' DeleteBucketReplication (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).
deleteBucketReplication_bucket :: Lens' DeleteBucketReplication BucketName Source #
The bucket name.
Destructuring the Response
data DeleteBucketReplicationResponse Source #
See: newDeleteBucketReplicationResponse smart constructor.
Constructors
| DeleteBucketReplicationResponse' | |
Instances
| Generic DeleteBucketReplicationResponse Source # | |
Defined in Amazonka.S3.DeleteBucketReplication Associated Types type Rep DeleteBucketReplicationResponse :: Type -> Type # | |
| Read DeleteBucketReplicationResponse Source # | |
| Show DeleteBucketReplicationResponse Source # | |
Defined in Amazonka.S3.DeleteBucketReplication Methods showsPrec :: Int -> DeleteBucketReplicationResponse -> ShowS # | |
| NFData DeleteBucketReplicationResponse Source # | |
Defined in Amazonka.S3.DeleteBucketReplication Methods rnf :: DeleteBucketReplicationResponse -> () # | |
| Eq DeleteBucketReplicationResponse Source # | |
Defined in Amazonka.S3.DeleteBucketReplication | |
| type Rep DeleteBucketReplicationResponse Source # | |
Defined in Amazonka.S3.DeleteBucketReplication | |
newDeleteBucketReplicationResponse :: DeleteBucketReplicationResponse Source #
Create a value of DeleteBucketReplicationResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.