| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Pricing.GetAttributeValues
Description
Returns a list of attribute values. Attributes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the Billing and Cost Management User Guide.
This operation returns paginated results.
Synopsis
- data GetAttributeValues = GetAttributeValues' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- serviceCode :: Text
- attributeName :: Text
- newGetAttributeValues :: Text -> Text -> GetAttributeValues
- getAttributeValues_maxResults :: Lens' GetAttributeValues (Maybe Natural)
- getAttributeValues_nextToken :: Lens' GetAttributeValues (Maybe Text)
- 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.
Constructors
| GetAttributeValues' | |
Fields
| |
Instances
newGetAttributeValues Source #
Arguments
| :: 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:maxResults:GetAttributeValues', getAttributeValues_maxResults - The maximum number of results to return in response.
GetAttributeValues, getAttributeValues_nextToken - The pagination token that indicates the next set of results that you
want to retrieve.
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_maxResults :: Lens' GetAttributeValues (Maybe Natural) Source #
The maximum number of results to return in response.
getAttributeValues_nextToken :: Lens' GetAttributeValues (Maybe Text) Source #
The pagination token that indicates the next set of results that you want to retrieve.
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.
Constructors
| GetAttributeValuesResponse' | |
Fields
| |
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.
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.