Doc AWS SDK 예제 GitHub 리포지토리에서 더 많은 SDK 예제를 사용할 수 있습니다. AWS
기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
CLI로 DeleteBucketTagging 사용
다음 코드 예시는 DeleteBucketTagging의 사용 방법을 보여 줍니다.
- CLI
-
- AWS CLI
-
다음 명령은
amzn-s3-demo-bucket이라는 버킷에서 태그 지정 구성을 삭제합니다.aws s3api delete-bucket-tagging --bucketamzn-s3-demo-bucket-
API 세부 정보는 AWS CLI 명령 참조의 DeleteBucketTagging
을 참조하세요.
-
- PowerShell
-
- Tools for PowerShell V4
-
예시 1: 이 명령은 지정된 S3 버킷과 연결된 모든 태그를 제거합니다.
Remove-S3BucketTagging -BucketName 'amzn-s3-demo-bucket'출력:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-S3BucketTagging (DeleteBucketTagging)" on target "amzn-s3-demo-bucket". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y-
API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V4)의 DeleteBucketTagging을 참조하세요.
-
- Tools for PowerShell V5
-
예시 1: 이 명령은 지정된 S3 버킷과 연결된 모든 태그를 제거합니다.
Remove-S3BucketTagging -BucketName 'amzn-s3-demo-bucket'출력:
Confirm Are you sure you want to perform this action? Performing the operation "Remove-S3BucketTagging (DeleteBucketTagging)" on target "amzn-s3-demo-bucket". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y-
API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V5)의 DeleteBucketTagging을 참조하세요.
-
DeleteBucketReplication
DeleteBucketWebsite