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 a list of inventory configurations for the bucket. You can have up to 1,000 analytics configurations per bucket.
This action supports list pagination and does not return more than 100
configurations at a time. Always check the IsTruncated
element in the
response. If there are no more configurations to list, IsTruncated
is
set to false. If there are more configurations to list, IsTruncated
is
set to true, and there is a value in NextContinuationToken
. You use
the NextContinuationToken
value to continue the pagination of the list
by passing the value in continuation-token in the request to GET
the
next page.
To use this operation, you must have permissions to perform the
s3:GetInventoryConfiguration
action. The bucket owner has this
permission by default. The bucket owner 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
ListBucketInventoryConfigurations
:
Synopsis
- data ListBucketInventoryConfigurations = ListBucketInventoryConfigurations' {}
- newListBucketInventoryConfigurations :: BucketName -> ListBucketInventoryConfigurations
- listBucketInventoryConfigurations_continuationToken :: Lens' ListBucketInventoryConfigurations (Maybe Text)
- listBucketInventoryConfigurations_expectedBucketOwner :: Lens' ListBucketInventoryConfigurations (Maybe Text)
- listBucketInventoryConfigurations_bucket :: Lens' ListBucketInventoryConfigurations BucketName
- data ListBucketInventoryConfigurationsResponse = ListBucketInventoryConfigurationsResponse' {}
- newListBucketInventoryConfigurationsResponse :: Int -> ListBucketInventoryConfigurationsResponse
- listBucketInventoryConfigurationsResponse_continuationToken :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Text)
- listBucketInventoryConfigurationsResponse_inventoryConfigurationList :: Lens' ListBucketInventoryConfigurationsResponse (Maybe [InventoryConfiguration])
- listBucketInventoryConfigurationsResponse_nextContinuationToken :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Text)
- listBucketInventoryConfigurationsResponse_isTruncated :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Bool)
- listBucketInventoryConfigurationsResponse_httpStatus :: Lens' ListBucketInventoryConfigurationsResponse Int
Creating a Request
data ListBucketInventoryConfigurations Source #
See: newListBucketInventoryConfigurations
smart constructor.
ListBucketInventoryConfigurations' | |
|
Instances
newListBucketInventoryConfigurations Source #
Create a value of ListBucketInventoryConfigurations
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:continuationToken:ListBucketInventoryConfigurations'
, listBucketInventoryConfigurations_continuationToken
- The marker used to continue an inventory configuration listing that has
been truncated. Use the NextContinuationToken from a previously
truncated list response to continue the listing. The continuation token
is an opaque value that Amazon S3 understands.
$sel:expectedBucketOwner:ListBucketInventoryConfigurations'
, listBucketInventoryConfigurations_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:ListBucketInventoryConfigurations'
, listBucketInventoryConfigurations_bucket
- The name of the bucket containing the inventory configurations to
retrieve.
Request Lenses
listBucketInventoryConfigurations_continuationToken :: Lens' ListBucketInventoryConfigurations (Maybe Text) Source #
The marker used to continue an inventory configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.
listBucketInventoryConfigurations_expectedBucketOwner :: Lens' ListBucketInventoryConfigurations (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.
listBucketInventoryConfigurations_bucket :: Lens' ListBucketInventoryConfigurations BucketName Source #
The name of the bucket containing the inventory configurations to retrieve.
Destructuring the Response
data ListBucketInventoryConfigurationsResponse Source #
See: newListBucketInventoryConfigurationsResponse
smart constructor.
ListBucketInventoryConfigurationsResponse' | |
|
Instances
newListBucketInventoryConfigurationsResponse Source #
Create a value of ListBucketInventoryConfigurationsResponse
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:continuationToken:ListBucketInventoryConfigurations'
, listBucketInventoryConfigurationsResponse_continuationToken
- If sent in the request, the marker that is used as a starting point for
this inventory configuration list response.
$sel:inventoryConfigurationList:ListBucketInventoryConfigurationsResponse'
, listBucketInventoryConfigurationsResponse_inventoryConfigurationList
- The list of inventory configurations for a bucket.
$sel:nextContinuationToken:ListBucketInventoryConfigurationsResponse'
, listBucketInventoryConfigurationsResponse_nextContinuationToken
- The marker used to continue this inventory configuration listing. Use
the NextContinuationToken
from this response to continue the listing
in a subsequent request. The continuation token is an opaque value that
Amazon S3 understands.
$sel:isTruncated:ListBucketInventoryConfigurationsResponse'
, listBucketInventoryConfigurationsResponse_isTruncated
- Tells whether the returned list of inventory configurations is complete.
A value of true indicates that the list is not complete and the
NextContinuationToken is provided for a subsequent request.
$sel:httpStatus:ListBucketInventoryConfigurationsResponse'
, listBucketInventoryConfigurationsResponse_httpStatus
- The response's http status code.
Response Lenses
listBucketInventoryConfigurationsResponse_continuationToken :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Text) Source #
If sent in the request, the marker that is used as a starting point for this inventory configuration list response.
listBucketInventoryConfigurationsResponse_inventoryConfigurationList :: Lens' ListBucketInventoryConfigurationsResponse (Maybe [InventoryConfiguration]) Source #
The list of inventory configurations for a bucket.
listBucketInventoryConfigurationsResponse_nextContinuationToken :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Text) Source #
The marker used to continue this inventory configuration listing. Use
the NextContinuationToken
from this response to continue the listing
in a subsequent request. The continuation token is an opaque value that
Amazon S3 understands.
listBucketInventoryConfigurationsResponse_isTruncated :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Bool) Source #
Tells whether the returned list of inventory configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken is provided for a subsequent request.
listBucketInventoryConfigurationsResponse_httpStatus :: Lens' ListBucketInventoryConfigurationsResponse Int Source #
The response's http status code.