amazonka-pricing-1.6.1: Amazon Price List Service SDK.

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

Network.AWS.Pricing.GetAttributeValues

Contents

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 AWS Billing and Cost Management User Guide .

This operation returns paginated results.

Synopsis

Creating a Request

getAttributeValues Source #

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, use AmazonEC2 .
  • gavAttributeName - The name of the attribute that you want to retrieve the values for, such as volumeType .

data GetAttributeValues Source #

See: getAttributeValues smart constructor.

Instances
Eq GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Data GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetAttributeValues -> c GetAttributeValues #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetAttributeValues #

toConstr :: GetAttributeValues -> Constr #

dataTypeOf :: GetAttributeValues -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetAttributeValues) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetAttributeValues) #

gmapT :: (forall b. Data b => b -> b) -> GetAttributeValues -> GetAttributeValues #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetAttributeValues -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetAttributeValues -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetAttributeValues -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetAttributeValues -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetAttributeValues -> m GetAttributeValues #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetAttributeValues -> m GetAttributeValues #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetAttributeValues -> m GetAttributeValues #

Read GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Show GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Generic GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Associated Types

type Rep GetAttributeValues :: Type -> Type #

Hashable GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

ToJSON GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

AWSPager GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

AWSRequest GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Associated Types

type Rs GetAttributeValues :: Type #

ToHeaders GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

ToPath GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

ToQuery GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

NFData GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Methods

rnf :: GetAttributeValues -> () #

type Rep GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

type Rep GetAttributeValues = D1 (MetaData "GetAttributeValues" "Network.AWS.Pricing.GetAttributeValues" "amazonka-pricing-1.6.1-Dyxi59x0Kr282O1nD8KF82" False) (C1 (MetaCons "GetAttributeValues'" PrefixI True) ((S1 (MetaSel (Just "_gavNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gavMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) :*: (S1 (MetaSel (Just "_gavServiceCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_gavAttributeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetAttributeValues Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

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 and Provisioned IOPS are two available values for the AmazonEC2 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
Eq GetAttributeValuesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Data GetAttributeValuesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetAttributeValuesResponse -> c GetAttributeValuesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetAttributeValuesResponse #

toConstr :: GetAttributeValuesResponse -> Constr #

dataTypeOf :: GetAttributeValuesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetAttributeValuesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetAttributeValuesResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetAttributeValuesResponse -> GetAttributeValuesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetAttributeValuesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetAttributeValuesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetAttributeValuesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetAttributeValuesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetAttributeValuesResponse -> m GetAttributeValuesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetAttributeValuesResponse -> m GetAttributeValuesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetAttributeValuesResponse -> m GetAttributeValuesResponse #

Read GetAttributeValuesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Show GetAttributeValuesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Generic GetAttributeValuesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

Associated Types

type Rep GetAttributeValuesResponse :: Type -> Type #

NFData GetAttributeValuesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

type Rep GetAttributeValuesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.GetAttributeValues

type Rep GetAttributeValuesResponse = D1 (MetaData "GetAttributeValuesResponse" "Network.AWS.Pricing.GetAttributeValues" "amazonka-pricing-1.6.1-Dyxi59x0Kr282O1nD8KF82" False) (C1 (MetaCons "GetAttributeValuesResponse'" PrefixI True) (S1 (MetaSel (Just "_gavrsAttributeValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AttributeValue])) :*: (S1 (MetaSel (Just "_gavrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gavrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

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.