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

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

CLI로 DescribeVolumeAttribute 사용

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

CLI
AWS CLI

볼륨 속성 설명

이 예시 명령은 ID가 vol-049df61146c4d7901인 볼륨의 autoEnableIo 속성을 설명합니다.

명령:

aws ec2 describe-volume-attribute --volume-id vol-049df61146c4d7901 --attribute autoEnableIO

출력:

{ "AutoEnableIO": { "Value": false }, "VolumeId": "vol-049df61146c4d7901" }
PowerShell
Tools for PowerShell V4

예제 1: 이 예제에서는 지정된 볼륨의 지정된 속성을 설명합니다.

Get-EC2VolumeAttribute -VolumeId vol-12345678 -Attribute AutoEnableIO

출력:

AutoEnableIO ProductCodes VolumeId ------------ ------------ -------- False {} vol-12345678
Tools for PowerShell V5

예제 1: 이 예제에서는 지정된 볼륨의 지정된 속성을 설명합니다.

Get-EC2VolumeAttribute -VolumeId vol-12345678 -Attribute AutoEnableIO

출력:

AutoEnableIO ProductCodes VolumeId ------------ ------------ -------- False {} vol-12345678