| 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 |
Network.AWS.Pricing.Types
Description
Synopsis
- 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 #
Constructors
| TermMatch |
Instances
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.
Instances
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.
Instances
| Eq Filter Source # | |
| Data Filter Source # | |
Defined in Network.AWS.Pricing.Types.Product Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Filter -> c Filter # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Filter # toConstr :: Filter -> Constr # dataTypeOf :: Filter -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Filter) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Filter) # gmapT :: (forall b. Data b => b -> b) -> Filter -> Filter # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Filter -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Filter -> r # gmapQ :: (forall d. Data d => d -> u) -> Filter -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Filter -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Filter -> m Filter # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Filter -> m Filter # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Filter -> m Filter # | |
| Read Filter Source # | |
| Show Filter Source # | |
| Generic Filter Source # | |
| Hashable Filter Source # | |
Defined in Network.AWS.Pricing.Types.Product | |
| ToJSON Filter Source # | |
Defined in Network.AWS.Pricing.Types.Product | |
| NFData Filter Source # | |
Defined in Network.AWS.Pricing.Types.Product | |
| type Rep Filter Source # | |
Defined in Network.AWS.Pricing.Types.Product type Rep Filter = D1 (MetaData "Filter" "Network.AWS.Pricing.Types.Product" "amazonka-pricing-1.6.1-Dyxi59x0Kr282O1nD8KF82" False) (C1 (MetaCons "Filter'" PrefixI True) (S1 (MetaSel (Just "_fType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 FilterType) :*: (S1 (MetaSel (Just "_fField") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_fValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) | |
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_MATCHreturns 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 theAmazonEC2service code and thevolumeTypeattribute 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 IOPSvolume.
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.
Instances
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.