| 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.GetBucketOwnershipControls
Description
Retrieves OwnershipControls for an Amazon S3 bucket. To use this
operation, you must have the s3:GetBucketOwnershipControls permission.
For more information about Amazon S3 permissions, see
Specifying permissions in a policy.
For information about Amazon S3 Object Ownership, see Using Object Ownership.
The following operations are related to GetBucketOwnershipControls:
- PutBucketOwnershipControls
- DeleteBucketOwnershipControls
Synopsis
- data GetBucketOwnershipControls = GetBucketOwnershipControls' {}
- newGetBucketOwnershipControls :: BucketName -> GetBucketOwnershipControls
- getBucketOwnershipControls_expectedBucketOwner :: Lens' GetBucketOwnershipControls (Maybe Text)
- getBucketOwnershipControls_bucket :: Lens' GetBucketOwnershipControls BucketName
- data GetBucketOwnershipControlsResponse = GetBucketOwnershipControlsResponse' {}
- newGetBucketOwnershipControlsResponse :: Int -> GetBucketOwnershipControlsResponse
- getBucketOwnershipControlsResponse_ownershipControls :: Lens' GetBucketOwnershipControlsResponse (Maybe OwnershipControls)
- getBucketOwnershipControlsResponse_httpStatus :: Lens' GetBucketOwnershipControlsResponse Int
Creating a Request
data GetBucketOwnershipControls Source #
See: newGetBucketOwnershipControls smart constructor.
Constructors
| GetBucketOwnershipControls' | |
Fields
| |
Instances
newGetBucketOwnershipControls Source #
Create a value of GetBucketOwnershipControls 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:GetBucketOwnershipControls', getBucketOwnershipControls_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).
GetBucketOwnershipControls, getBucketOwnershipControls_bucket - The name of the Amazon S3 bucket whose OwnershipControls you want to
retrieve.
Request Lenses
getBucketOwnershipControls_expectedBucketOwner :: Lens' GetBucketOwnershipControls (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).
getBucketOwnershipControls_bucket :: Lens' GetBucketOwnershipControls BucketName Source #
The name of the Amazon S3 bucket whose OwnershipControls you want to
retrieve.
Destructuring the Response
data GetBucketOwnershipControlsResponse Source #
See: newGetBucketOwnershipControlsResponse smart constructor.
Constructors
| GetBucketOwnershipControlsResponse' | |
Fields
| |
Instances
newGetBucketOwnershipControlsResponse Source #
Arguments
| :: Int | |
| -> GetBucketOwnershipControlsResponse |
Create a value of GetBucketOwnershipControlsResponse 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:ownershipControls:GetBucketOwnershipControlsResponse', getBucketOwnershipControlsResponse_ownershipControls - The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or
ObjectWriter) currently in effect for this Amazon S3 bucket.
$sel:httpStatus:GetBucketOwnershipControlsResponse', getBucketOwnershipControlsResponse_httpStatus - The response's http status code.
Response Lenses
getBucketOwnershipControlsResponse_ownershipControls :: Lens' GetBucketOwnershipControlsResponse (Maybe OwnershipControls) Source #
The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or
ObjectWriter) currently in effect for this Amazon S3 bucket.
getBucketOwnershipControlsResponse_httpStatus :: Lens' GetBucketOwnershipControlsResponse Int Source #
The response's http status code.