Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- pricing :: Service
- _InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError
- _ExpiredNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- _NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- data FilterType = TermMatch
- data AttributeValue
- attributeValue :: AttributeValue
- avValue :: Lens' AttributeValue (Maybe Text)
- data Filter
- filter' :: FilterType -> Text -> Text -> Filter
- fType :: Lens' Filter FilterType
- fField :: Lens' Filter Text
- fValue :: Lens' Filter Text
- data PricingService
- pricingService :: PricingService
- psAttributeNames :: Lens' PricingService [Text]
- psServiceCode :: Lens' PricingService (Maybe Text)
Service Configuration
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
data FilterType Source #
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: attributeValue
smart constructor.
attributeValue :: AttributeValue Source #
Creates a value of AttributeValue
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
avValue
- The specific value of anattributeName
.
Filter
The constraints that you want all returned products to match.
See: filter'
smart constructor.
Creates a value of Filter
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fType
- 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.fField
- 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 theAmazonEC2
service code and thevolumeType
attribute name to get the prices for only Amazon EC2 volumes.fValue
- 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 asAmazonEC2
. If you are filtering by attribute name, this is the attribute value that you want the returned products to match, such as aProvisioned IOPS
volume.
fType :: 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.
fField :: 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.
fValue :: 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: pricingService
smart constructor.
pricingService :: PricingService Source #
Creates a value of PricingService
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
psAttributeNames
- The attributes that are available for this service.psServiceCode
- The code for the AWS service.
psAttributeNames :: Lens' PricingService [Text] Source #
The attributes that are available for this service.
psServiceCode :: Lens' PricingService (Maybe Text) Source #
The code for the AWS service.