libZSservicesZSamazonka-pricingZSamazonka-pricing
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Pricing.GetAttributeValues

Description

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

Creating a Request

data GetAttributeValues Source #

See: newGetAttributeValues smart constructor.

Constructors

GetAttributeValues' 

Fields

  • nextToken :: Maybe Text

    The pagination token that indicates the next set of results that you want to retrieve.

  • maxResults :: Maybe Natural

    The maximum number of results to return in response.

  • serviceCode :: Text

    The service code for the service whose attributes you want to retrieve. For example, if you want the retrieve an EC2 attribute, use AmazonEC2.

  • attributeName :: Text

    The name of the attribute that you want to retrieve the values for, such as volumeType.

Instances

Instances details
Eq GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Read GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Show GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Generic GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Associated Types

type Rep GetAttributeValues :: Type -> Type #

NFData GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Methods

rnf :: GetAttributeValues -> () #

Hashable GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

ToJSON GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

AWSPager GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

AWSRequest GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Associated Types

type AWSResponse GetAttributeValues #

ToHeaders GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

ToPath GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

ToQuery GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

type Rep GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

type Rep GetAttributeValues = D1 ('MetaData "GetAttributeValues" "Amazonka.Pricing.GetAttributeValues" "libZSservicesZSamazonka-pricingZSamazonka-pricing" 'False) (C1 ('MetaCons "GetAttributeValues'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "serviceCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "attributeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetAttributeValues Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

newGetAttributeValues Source #

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.

Constructors

GetAttributeValuesResponse' 

Fields

  • attributeValues :: Maybe [AttributeValue]

    The list of values for an attribute. For example, Throughput Optimized HDD and Provisioned IOPS are two available values for the AmazonEC2 volumeType.

  • nextToken :: Maybe Text

    The pagination token that indicates the next set of results to retrieve.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetAttributeValuesResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Read GetAttributeValuesResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Show GetAttributeValuesResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Generic GetAttributeValuesResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

Associated Types

type Rep GetAttributeValuesResponse :: Type -> Type #

NFData GetAttributeValuesResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

type Rep GetAttributeValuesResponse Source # 
Instance details

Defined in Amazonka.Pricing.GetAttributeValues

type Rep GetAttributeValuesResponse = D1 ('MetaData "GetAttributeValuesResponse" "Amazonka.Pricing.GetAttributeValues" "libZSservicesZSamazonka-pricingZSamazonka-pricing" 'False) (C1 ('MetaCons "GetAttributeValuesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributeValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AttributeValue])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.