Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns an inventory configuration (identified by the inventory configuration ID) from the bucket.
To use this operation, you must have permissions to perform the
s3:GetInventoryConfiguration
action. The bucket owner has this
permission by default and can grant this permission to others. For more
information about permissions, see
Permissions Related to Bucket Subresource Operations
and
Managing Access Permissions to Your Amazon S3 Resources.
For information about the Amazon S3 inventory feature, see Amazon S3 Inventory.
The following operations are related to
GetBucketInventoryConfiguration
:
Synopsis
- data GetBucketInventoryConfiguration = GetBucketInventoryConfiguration' {
- expectedBucketOwner :: Maybe Text
- bucket :: BucketName
- id :: Text
- newGetBucketInventoryConfiguration :: BucketName -> Text -> GetBucketInventoryConfiguration
- getBucketInventoryConfiguration_expectedBucketOwner :: Lens' GetBucketInventoryConfiguration (Maybe Text)
- getBucketInventoryConfiguration_bucket :: Lens' GetBucketInventoryConfiguration BucketName
- getBucketInventoryConfiguration_id :: Lens' GetBucketInventoryConfiguration Text
- data GetBucketInventoryConfigurationResponse = GetBucketInventoryConfigurationResponse' {}
- newGetBucketInventoryConfigurationResponse :: Int -> GetBucketInventoryConfigurationResponse
- getBucketInventoryConfigurationResponse_inventoryConfiguration :: Lens' GetBucketInventoryConfigurationResponse (Maybe InventoryConfiguration)
- getBucketInventoryConfigurationResponse_httpStatus :: Lens' GetBucketInventoryConfigurationResponse Int
Creating a Request
data GetBucketInventoryConfiguration Source #
See: newGetBucketInventoryConfiguration
smart constructor.
GetBucketInventoryConfiguration' | |
|
Instances
newGetBucketInventoryConfiguration Source #
Create a value of GetBucketInventoryConfiguration
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:GetBucketInventoryConfiguration'
, getBucketInventoryConfiguration_expectedBucketOwner
- The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
$sel:bucket:GetBucketInventoryConfiguration'
, getBucketInventoryConfiguration_bucket
- The name of the bucket containing the inventory configuration to
retrieve.
$sel:id:GetBucketInventoryConfiguration'
, getBucketInventoryConfiguration_id
- The ID used to identify the inventory configuration.
Request Lenses
getBucketInventoryConfiguration_expectedBucketOwner :: Lens' GetBucketInventoryConfiguration (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
getBucketInventoryConfiguration_bucket :: Lens' GetBucketInventoryConfiguration BucketName Source #
The name of the bucket containing the inventory configuration to retrieve.
getBucketInventoryConfiguration_id :: Lens' GetBucketInventoryConfiguration Text Source #
The ID used to identify the inventory configuration.
Destructuring the Response
data GetBucketInventoryConfigurationResponse Source #
See: newGetBucketInventoryConfigurationResponse
smart constructor.
GetBucketInventoryConfigurationResponse' | |
|
Instances
newGetBucketInventoryConfigurationResponse Source #
Create a value of GetBucketInventoryConfigurationResponse
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:inventoryConfiguration:GetBucketInventoryConfigurationResponse'
, getBucketInventoryConfigurationResponse_inventoryConfiguration
- Specifies the inventory configuration.
$sel:httpStatus:GetBucketInventoryConfigurationResponse'
, getBucketInventoryConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
getBucketInventoryConfigurationResponse_inventoryConfiguration :: Lens' GetBucketInventoryConfigurationResponse (Maybe InventoryConfiguration) Source #
Specifies the inventory configuration.
getBucketInventoryConfigurationResponse_httpStatus :: Lens' GetBucketInventoryConfigurationResponse Int Source #
The response's http status code.