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.DescribeServices

Contents

Description

Returns the metadata for one service or a list of the metadata for all services. Use this without a service code to get the service codes for all services. Use it with a service code, such as AmazonEC2 , to get information specific to that service, such as the attribute names available for that service. For example, some of the attribute names available for EC2 are volumeType , maxIopsVolume , operation , locationType , and instanceCapacity10xlarge .

This operation returns paginated results.

Synopsis

Creating a Request

describeServices :: DescribeServices Source #

Creates a value of DescribeServices with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dsFormatVersion - The format version that you want the response to be in. Valid values are: aws_v1
  • dsNextToken - The pagination token that indicates the next set of results that you want to retrieve.
  • dsServiceCode - The code for the service whose information you want to retrieve, such as AmazonEC2 . You can use the ServiceCode to filter the results in a GetProducts call. To retrieve a list of all services, leave this blank.
  • dsMaxResults - The maximum number of results that you want returned in the response.

data DescribeServices Source #

See: describeServices smart constructor.

Instances
Eq DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Data DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Methods

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

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

toConstr :: DescribeServices -> Constr #

dataTypeOf :: DescribeServices -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Show DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Generic DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Associated Types

type Rep DescribeServices :: Type -> Type #

Hashable DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

ToJSON DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

AWSPager DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

AWSRequest DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Associated Types

type Rs DescribeServices :: Type #

ToHeaders DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

ToPath DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

ToQuery DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

NFData DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Methods

rnf :: DescribeServices -> () #

type Rep DescribeServices Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

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

Defined in Network.AWS.Pricing.DescribeServices

Request Lenses

dsFormatVersion :: Lens' DescribeServices (Maybe Text) Source #

The format version that you want the response to be in. Valid values are: aws_v1

dsNextToken :: Lens' DescribeServices (Maybe Text) Source #

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

dsServiceCode :: Lens' DescribeServices (Maybe Text) Source #

The code for the service whose information you want to retrieve, such as AmazonEC2 . You can use the ServiceCode to filter the results in a GetProducts call. To retrieve a list of all services, leave this blank.

dsMaxResults :: Lens' DescribeServices (Maybe Natural) Source #

The maximum number of results that you want returned in the response.

Destructuring the Response

describeServicesResponse Source #

Creates a value of DescribeServicesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeServicesResponse Source #

See: describeServicesResponse smart constructor.

Instances
Eq DescribeServicesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Data DescribeServicesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Methods

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

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

toConstr :: DescribeServicesResponse -> Constr #

dataTypeOf :: DescribeServicesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeServicesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Show DescribeServicesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Generic DescribeServicesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

Associated Types

type Rep DescribeServicesResponse :: Type -> Type #

NFData DescribeServicesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

type Rep DescribeServicesResponse Source # 
Instance details

Defined in Network.AWS.Pricing.DescribeServices

type Rep DescribeServicesResponse = D1 (MetaData "DescribeServicesResponse" "Network.AWS.Pricing.DescribeServices" "amazonka-pricing-1.6.1-Dyxi59x0Kr282O1nD8KF82" False) (C1 (MetaCons "DescribeServicesResponse'" PrefixI True) ((S1 (MetaSel (Just "_dsrsFormatVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_dsrsServices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PricingService])) :*: S1 (MetaSel (Just "_dsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dsrsFormatVersion :: Lens' DescribeServicesResponse (Maybe Text) Source #

The format version of the response. For example, aws_v1 .

dsrsNextToken :: Lens' DescribeServicesResponse (Maybe Text) Source #

The pagination token for the next set of retreivable results.

dsrsServices :: Lens' DescribeServicesResponse [PricingService] Source #

The service metadata for the service or services in the response.