Copyright | (c) 2013-2021 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 |
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 Amazon Web Services Billing and Cost Management User Guide.
This operation returns paginated results.
Synopsis
- data GetAttributeValues = GetAttributeValues' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- serviceCode :: Text
- attributeName :: Text
- newGetAttributeValues :: Text -> Text -> GetAttributeValues
- getAttributeValues_nextToken :: Lens' GetAttributeValues (Maybe Text)
- getAttributeValues_maxResults :: Lens' GetAttributeValues (Maybe Natural)
- getAttributeValues_serviceCode :: Lens' GetAttributeValues Text
- getAttributeValues_attributeName :: Lens' GetAttributeValues Text
- data GetAttributeValuesResponse = GetAttributeValuesResponse' {}
- newGetAttributeValuesResponse :: Int -> GetAttributeValuesResponse
- getAttributeValuesResponse_attributeValues :: Lens' GetAttributeValuesResponse (Maybe [AttributeValue])
- getAttributeValuesResponse_nextToken :: Lens' GetAttributeValuesResponse (Maybe Text)
- getAttributeValuesResponse_httpStatus :: Lens' GetAttributeValuesResponse Int
Creating a Request
data GetAttributeValues Source #
See: newGetAttributeValues
smart constructor.
GetAttributeValues' | |
|
Instances
newGetAttributeValues Source #
:: Text | |
-> Text | |
-> GetAttributeValues |
Create a value of GetAttributeValues
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:GetAttributeValues'
, getAttributeValues_nextToken
- The pagination token that indicates the next set of results that you
want to retrieve.
$sel:maxResults:GetAttributeValues'
, getAttributeValues_maxResults
- The maximum number of results to return in response.
$sel:serviceCode:GetAttributeValues'
, getAttributeValues_serviceCode
- The service code for the service whose attributes you want to retrieve.
For example, if you want the retrieve an EC2 attribute, use AmazonEC2
.
$sel:attributeName:GetAttributeValues'
, getAttributeValues_attributeName
- The name of the attribute that you want to retrieve the values for, such
as volumeType
.
Request Lenses
getAttributeValues_nextToken :: Lens' GetAttributeValues (Maybe Text) Source #
The pagination token that indicates the next set of results that you want to retrieve.
getAttributeValues_maxResults :: Lens' GetAttributeValues (Maybe Natural) Source #
The maximum number of results to return in response.
getAttributeValues_serviceCode :: 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
.
getAttributeValues_attributeName :: Lens' GetAttributeValues Text Source #
The name of the attribute that you want to retrieve the values for, such
as volumeType
.
Destructuring the Response
data GetAttributeValuesResponse Source #
See: newGetAttributeValuesResponse
smart constructor.
GetAttributeValuesResponse' | |
|
Instances
newGetAttributeValuesResponse Source #
Create a value of GetAttributeValuesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attributeValues:GetAttributeValuesResponse'
, getAttributeValuesResponse_attributeValues
- The list of values for an attribute. For example,
Throughput Optimized HDD
and Provisioned IOPS
are two available
values for the AmazonEC2
volumeType
.
$sel:nextToken:GetAttributeValues'
, getAttributeValuesResponse_nextToken
- The pagination token that indicates the next set of results to retrieve.
$sel:httpStatus:GetAttributeValuesResponse'
, getAttributeValuesResponse_httpStatus
- The response's http status code.
Response Lenses
getAttributeValuesResponse_attributeValues :: Lens' GetAttributeValuesResponse (Maybe [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
.
getAttributeValuesResponse_nextToken :: Lens' GetAttributeValuesResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
getAttributeValuesResponse_httpStatus :: Lens' GetAttributeValuesResponse Int Source #
The response's http status code.