AWS SDK 또는 CLI와 함께 GetBucketInventoryConfiguration
사용
다음 코드 예제는 GetBucketInventoryConfiguration
의 사용 방법을 보여 줍니다.
- CLI
-
- AWS CLI
-
버킷의 인벤토리 구성을 검색하려면
다음
get-bucket-inventory-configuration
예시는 지정된 버킷에 대해 ID가1
인 인벤토리 구성을 검색합니다.aws s3api get-bucket-inventory-configuration \ --bucket
my-bucket
\ --id1
출력:
{ "InventoryConfiguration": { "IsEnabled": true, "Destination": { "S3BucketDestination": { "Format": "ORC", "Bucket": "arn:aws:s3:::my-bucket", "AccountId": "123456789012" } }, "IncludedObjectVersions": "Current", "Id": "1", "Schedule": { "Frequency": "Weekly" } } }
-
API 세부 정보는 AWS CLI 명령 참조의 GetBucketInventoryConfiguration
을 참조하세요.
-
- PowerShell
-
- PowerShell용 도구
-
예시 1: 이 명령은 지정된 S3 버킷에 대해 이름이 'testinventory'인 인벤토리의 세부 정보를 반환합니다.
Get-S3BucketInventoryConfiguration -BucketName 's3testbucket' -InventoryId 'testinventory'
-
API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조의 GetBucketInventoryConfiguration을 참조하세요.
-
AWS SDK 개발자 가이드 및 코드 예시의 전체 목록은 AWS SDK와 함께 이 서비스 사용 단원을 참조하세요. 이 주제에는 시작하기에 대한 정보와 이전 SDK 버전에 대한 세부 정보도 포함되어 있습니다.
GetBucketEncryption
GetBucketLifecycleConfiguration