aws s3api list-bucket-inventory-configurations
Returns a list of S3 Inventory configurations for the bucket. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To retrieve a list of inventory configurations for a bucket
The following list-bucket-inventory-configurations example lists the inventory configurations for the specified bucket.
aws s3api list-bucket-inventory-configurations --bucket amzn-s3-demo-bucketIdentify--bucketThe name of the bucket containing the inventory configurations to retrieve.Its output, shortened
{
"InventoryConfigurationList": [
{
"IsEnabled": true,
"Destination": {
"S3BucketDestination": {
"Format": "ORC",
"Bucket": "arn:aws:s3:::amzn-s3-demo-bucket",
"AccountId": "123456789012"
}
},
"IncludedObjectVersions": "Current",
"Id": "1",
"Schedule": {
"Frequency": "Weekly"
}
},
{
"IsEnabled": true,
"Destination": {
"S3BucketDestination": {
"Format": "CSV",
"Bucket": "arn:aws:s3:::amzn-s3-demo-bucket",
"AccountId": "123456789012"
}
},
"IncludedObjectVersions": "Current",
"Id": "2",
"Schedule": {
"Frequency": "Daily"
… 5 more linesFor more information, see Cataloging and analyzing your data with S3 Inventory in the Amazon S3 User Guide.
Options
--bucketThe name of the bucket containing the inventory configurations to retrieve.--continuation-tokenThe marker used to continue an inventory configuration listing that has been truncated.--expected-bucket-ownerThe account ID of the expected bucket owner.