There are more AWS SDK examples available in the AWS Doc SDK Examples
Use GetAttributeValues with a CLI
The following code examples show how to use GetAttributeValues.
- CLI
- 
            - AWS CLI
- 
             
                    To retrieve a list of attribute values The following get-attribute-valuesexample retrieves a list of values available for the given attribute.aws pricing get-attribute-values \ --service-codeAmazonEC2\ --attribute-namevolumeType\ --max-items2Output: { "NextToken": "eyJOZXh0VG9rZW4iOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAyfQ==", "AttributeValues": [ { "Value": "Cold HDD" }, { "Value": "General Purpose" } ] }- 
                    For API details, see GetAttributeValues in AWS CLI Command Reference. 
 
- 
                    
 
- PowerShell
- 
            - Tools for PowerShell V4
- 
             
                    Example 1: Returns the values for the attribute 'volumeType' for Amazon EC2 in the us-east-1 region. Get-PLSAttributeValue -ServiceCode AmazonEC2 -AttributeName "volumeType" -region us-east-1Output: Value ----- Cold HDD General Purpose Magnetic Provisioned IOPS Throughput Optimized HDD- 
                    For API details, see GetAttributeValues in AWS Tools for PowerShell Cmdlet Reference (V4). 
 
- 
                    
- Tools for PowerShell V5
- 
             
                    Example 1: Returns the values for the attribute 'volumeType' for Amazon EC2 in the us-east-1 region. Get-PLSAttributeValue -ServiceCode AmazonEC2 -AttributeName "volumeType" -region us-east-1Output: Value ----- Cold HDD General Purpose Magnetic Provisioned IOPS Throughput Optimized HDD- 
                    For API details, see GetAttributeValues in AWS Tools for PowerShell Cmdlet Reference (V5). 
 
-