AWS SDK 또는 CLI와 함께 DeleteBucketInventoryConfiguration 사용 - Amazon Simple Storage Service

AWS SDK 또는 CLI와 함께 DeleteBucketInventoryConfiguration 사용

다음 코드 예제는 DeleteBucketInventoryConfiguration의 사용 방법을 보여 줍니다.

CLI
AWS CLI

버킷의 인벤토리 구성을 삭제하려면

다음 delete-bucket-inventory-configuration 예시는 지정된 버킷에 대해 ID가 1인 인벤토리 구성을 삭제합니다.

aws s3api delete-bucket-inventory-configuration \ --bucket my-bucket \ --id 1

이 명령은 출력을 생성하지 않습니다.

PowerShell
PowerShell용 도구

예시 1: 이 명령은 지정된 S3 버킷에 해당하는 'testInventoryName'이라는 이름의 인벤토리를 제거합니다.

Remove-S3BucketInventoryConfiguration -BucketName 's3testbucket' -InventoryId 'testInventoryName'

출력:

Confirm Are you sure you want to perform this action? Performing the operation "Remove-S3BucketInventoryConfiguration (DeleteBucketInventoryConfiguration)" on target "s3testbucket". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y

AWS SDK 개발자 가이드 및 코드 예시의 전체 목록은 AWS SDK와 함께 이 서비스 사용 단원을 참조하세요. 이 주제에는 시작하기에 대한 정보와 이전 SDK 버전에 대한 세부 정보도 포함되어 있습니다.