Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns a list of attribute values. Attibutes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the AWS Billing and Cost Management User Guide .
This operation returns paginated results.
Synopsis
- getAttributeValues :: Text -> Text -> GetAttributeValues
- data GetAttributeValues
- gavNextToken :: Lens' GetAttributeValues (Maybe Text)
- gavMaxResults :: Lens' GetAttributeValues (Maybe Natural)
- gavServiceCode :: Lens' GetAttributeValues Text
- gavAttributeName :: Lens' GetAttributeValues Text
- getAttributeValuesResponse :: Int -> GetAttributeValuesResponse
- data GetAttributeValuesResponse
- gavrsAttributeValues :: Lens' GetAttributeValuesResponse [AttributeValue]
- gavrsNextToken :: Lens' GetAttributeValuesResponse (Maybe Text)
- gavrsResponseStatus :: Lens' GetAttributeValuesResponse Int
Creating a Request
Creates a value of GetAttributeValues
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gavNextToken
- The pagination token that indicates the next set of results that you want to retrieve.gavMaxResults
- The maximum number of results to return in response.gavServiceCode
- The service code for the service whose attributes you want to retrieve. For example, if you want the retrieve an EC2 attribute, useAmazonEC2
.gavAttributeName
- The name of the attribute that you want to retrieve the values for, such asvolumeType
.
data GetAttributeValues Source #
See: getAttributeValues
smart constructor.
Instances
Request Lenses
gavNextToken :: Lens' GetAttributeValues (Maybe Text) Source #
The pagination token that indicates the next set of results that you want to retrieve.
gavMaxResults :: Lens' GetAttributeValues (Maybe Natural) Source #
The maximum number of results to return in response.
gavServiceCode :: Lens' GetAttributeValues Text Source #
The service code for the service whose attributes you want to retrieve. For example, if you want the retrieve an EC2 attribute, use AmazonEC2
.
gavAttributeName :: Lens' GetAttributeValues Text Source #
The name of the attribute that you want to retrieve the values for, such as volumeType
.
Destructuring the Response
getAttributeValuesResponse Source #
Creates a value of GetAttributeValuesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gavrsAttributeValues
- The list of values for an attribute. For example,Throughput Optimized HDD
andProvisioned IOPS
are two available values for theAmazonEC2
volumeType
.gavrsNextToken
- The pagination token that indicates the next set of results to retrieve.gavrsResponseStatus
- -- | The response status code.
data GetAttributeValuesResponse Source #
See: getAttributeValuesResponse
smart constructor.
Instances
Response Lenses
gavrsAttributeValues :: Lens' GetAttributeValuesResponse [AttributeValue] Source #
The list of values for an attribute. For example, Throughput Optimized HDD
and Provisioned IOPS
are two available values for the AmazonEC2
volumeType
.
gavrsNextToken :: Lens' GetAttributeValuesResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
gavrsResponseStatus :: Lens' GetAttributeValuesResponse Int Source #
- - | The response status code.