CLI로 DeleteBucketEncryption 사용 - AWS SDK 코드 예제

AWS SDK 예제 GitHub 리포지토리에 더 많은 AWS문서 SDK 예제가 있습니다.

CLI로 DeleteBucketEncryption 사용

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

CLI
AWS CLI

버킷의 서버 측 암호화 구성 삭제

다음 delete-bucket-encryption 예시에서는 지정된 버킷의 서버 측 암호화 구성을 삭제합니다.

aws s3api delete-bucket-encryption \ --bucket amzn-s3-demo-bucket

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

PowerShell
Tools for PowerShell V4

예시 1: 이렇게 하면 제공된 S3 버킷에 대해 활성화된 암호화가 비활성화됩니다.

Remove-S3BucketEncryption -BucketName 'amzn-s3-demo-bucket'

출력:

Confirm Are you sure you want to perform this action? Performing the operation "Remove-S3BucketEncryption (DeleteBucketEncryption)" on target "s3casetestbucket". [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)DeleteBucketEncryption을 참조하세요.

Tools for PowerShell V5

예시 1: 이렇게 하면 제공된 S3 버킷에 대해 활성화된 암호화가 비활성화됩니다.

Remove-S3BucketEncryption -BucketName 'amzn-s3-demo-bucket'

출력:

Confirm Are you sure you want to perform this action? Performing the operation "Remove-S3BucketEncryption (DeleteBucketEncryption)" on target "s3casetestbucket". [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)DeleteBucketEncryption을 참조하세요.