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

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

API version 2017-10-15 of the Amazon Price List Service SDK configuration.

Errors

_InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError Source #

One or more parameters had an invalid value.

_InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError Source #

An error on the server occurred during the processing of your request. Try again later.

_ExpiredNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The pagination token expired. Try again without a pagination token.

_NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The requested resource can't be found.

_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The pagination token is invalid. Try again without a pagination token.

FilterType

newtype FilterType Source #

Constructors

FilterType' 

Fields

Bundled Patterns

pattern FilterType_TERM_MATCH :: FilterType 

Instances

Instances details
Eq FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

Ord FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

Read FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

Show FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

Generic FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

Associated Types

type Rep FilterType :: Type -> Type #

NFData FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

Methods

rnf :: FilterType -> () #

Hashable FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

ToJSON FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

ToJSONKey FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

FromJSON FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

FromJSONKey FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

ToLog FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

ToHeader FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

ToQuery FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

FromXML FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

ToXML FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

Methods

toXML :: FilterType -> XML #

ToByteString FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

FromText FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

ToText FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

Methods

toText :: FilterType -> Text #

type Rep FilterType Source # 
Instance details

Defined in Amazonka.Pricing.Types.FilterType

type Rep FilterType = D1 ('MetaData "FilterType" "Amazonka.Pricing.Types.FilterType" "libZSservicesZSamazonka-pricingZSamazonka-pricing" 'True) (C1 ('MetaCons "FilterType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromFilterType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

AttributeValue

data AttributeValue Source #

The values of a given attribute, such as Throughput Optimized HDD or Provisioned IOPS for the Amazon EC2 volumeType attribute.

See: newAttributeValue smart constructor.

Constructors

AttributeValue' 

Fields

Instances

Instances details
Eq AttributeValue Source # 
Instance details

Defined in Amazonka.Pricing.Types.AttributeValue

Read AttributeValue Source # 
Instance details

Defined in Amazonka.Pricing.Types.AttributeValue

Show AttributeValue Source # 
Instance details

Defined in Amazonka.Pricing.Types.AttributeValue

Generic AttributeValue Source # 
Instance details

Defined in Amazonka.Pricing.Types.AttributeValue

Associated Types

type Rep AttributeValue :: Type -> Type #

NFData AttributeValue Source # 
Instance details

Defined in Amazonka.Pricing.Types.AttributeValue

Methods

rnf :: AttributeValue -> () #

Hashable AttributeValue Source # 
Instance details

Defined in Amazonka.Pricing.Types.AttributeValue

FromJSON AttributeValue Source # 
Instance details

Defined in Amazonka.Pricing.Types.AttributeValue

type Rep AttributeValue Source # 
Instance details

Defined in Amazonka.Pricing.Types.AttributeValue

type Rep AttributeValue = D1 ('MetaData "AttributeValue" "Amazonka.Pricing.Types.AttributeValue" "libZSservicesZSamazonka-pricingZSamazonka-pricing" 'False) (C1 ('MetaCons "AttributeValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newAttributeValue :: AttributeValue Source #

Create a value of AttributeValue 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:value:AttributeValue', attributeValue_value - The specific value of an attributeName.

attributeValue_value :: Lens' AttributeValue (Maybe Text) Source #

The specific value of an attributeName.

Filter

data Filter Source #

The constraints that you want all returned products to match.

See: newFilter smart constructor.

Constructors

Filter' 

Fields

  • type' :: FilterType

    The type of filter that you want to use.

    Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both the given filter field and the given value.

  • field :: Text

    The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields.

    Valid values include: ServiceCode, and all attribute names

    For example, you can filter by the AmazonEC2 service code and the volumeType attribute name to get the prices for only Amazon EC2 volumes.

  • value :: Text

    The service code or attribute value that you want to filter by. If you are filtering by service code this is the actual service code, such as AmazonEC2. If you are filtering by attribute name, this is the attribute value that you want the returned products to match, such as a Provisioned IOPS volume.

Instances

Instances details
Eq Filter Source # 
Instance details

Defined in Amazonka.Pricing.Types.Filter

Methods

(==) :: Filter -> Filter -> Bool #

(/=) :: Filter -> Filter -> Bool #

Read Filter Source # 
Instance details

Defined in Amazonka.Pricing.Types.Filter

Show Filter Source # 
Instance details

Defined in Amazonka.Pricing.Types.Filter

Generic Filter Source # 
Instance details

Defined in Amazonka.Pricing.Types.Filter

Associated Types

type Rep Filter :: Type -> Type #

Methods

from :: Filter -> Rep Filter x #

to :: Rep Filter x -> Filter #

NFData Filter Source # 
Instance details

Defined in Amazonka.Pricing.Types.Filter

Methods

rnf :: Filter -> () #

Hashable Filter Source # 
Instance details

Defined in Amazonka.Pricing.Types.Filter

Methods

hashWithSalt :: Int -> Filter -> Int #

hash :: Filter -> Int #

ToJSON Filter Source # 
Instance details

Defined in Amazonka.Pricing.Types.Filter

type Rep Filter Source # 
Instance details

Defined in Amazonka.Pricing.Types.Filter

type Rep Filter = D1 ('MetaData "Filter" "Amazonka.Pricing.Types.Filter" "libZSservicesZSamazonka-pricingZSamazonka-pricing" 'False) (C1 ('MetaCons "Filter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FilterType) :*: (S1 ('MetaSel ('Just "field") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newFilter Source #

Create a value of Filter 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:type':Filter', filter_type - The type of filter that you want to use.

Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both the given filter field and the given value.

$sel:field:Filter', filter_field - The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields.

Valid values include: ServiceCode, and all attribute names

For example, you can filter by the AmazonEC2 service code and the volumeType attribute name to get the prices for only Amazon EC2 volumes.

$sel:value:Filter', filter_value - The service code or attribute value that you want to filter by. If you are filtering by service code this is the actual service code, such as AmazonEC2. If you are filtering by attribute name, this is the attribute value that you want the returned products to match, such as a Provisioned IOPS volume.

filter_type :: Lens' Filter FilterType Source #

The type of filter that you want to use.

Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both the given filter field and the given value.

filter_field :: Lens' Filter Text Source #

The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields.

Valid values include: ServiceCode, and all attribute names

For example, you can filter by the AmazonEC2 service code and the volumeType attribute name to get the prices for only Amazon EC2 volumes.

filter_value :: Lens' Filter Text Source #

The service code or attribute value that you want to filter by. If you are filtering by service code this is the actual service code, such as AmazonEC2. If you are filtering by attribute name, this is the attribute value that you want the returned products to match, such as a Provisioned IOPS volume.

PricingService

data PricingService Source #

The metadata for a service, such as the service code and available attribute names.

See: newPricingService smart constructor.

Constructors

PricingService' 

Fields

Instances

Instances details
Eq PricingService Source # 
Instance details

Defined in Amazonka.Pricing.Types.PricingService

Read PricingService Source # 
Instance details

Defined in Amazonka.Pricing.Types.PricingService

Show PricingService Source # 
Instance details

Defined in Amazonka.Pricing.Types.PricingService

Generic PricingService Source # 
Instance details

Defined in Amazonka.Pricing.Types.PricingService

Associated Types

type Rep PricingService :: Type -> Type #

NFData PricingService Source # 
Instance details

Defined in Amazonka.Pricing.Types.PricingService

Methods

rnf :: PricingService -> () #

Hashable PricingService Source # 
Instance details

Defined in Amazonka.Pricing.Types.PricingService

FromJSON PricingService Source # 
Instance details

Defined in Amazonka.Pricing.Types.PricingService

type Rep PricingService Source # 
Instance details

Defined in Amazonka.Pricing.Types.PricingService

type Rep PricingService = D1 ('MetaData "PricingService" "Amazonka.Pricing.Types.PricingService" "libZSservicesZSamazonka-pricingZSamazonka-pricing" 'False) (C1 ('MetaCons "PricingService'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "serviceCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newPricingService :: PricingService Source #

Create a value of PricingService 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:attributeNames:PricingService', pricingService_attributeNames - The attributes that are available for this service.

$sel:serviceCode:PricingService', pricingService_serviceCode - The code for the Amazon Web Services service.

pricingService_attributeNames :: Lens' PricingService (Maybe [Text]) Source #

The attributes that are available for this service.

pricingService_serviceCode :: Lens' PricingService (Maybe Text) Source #

The code for the Amazon Web Services service.