amazonka-marketplace-metering 1.4.2 → 1.4.3
raw patch · 6 files changed
+28/−47 lines, 6 filesdep ~amazonka-coredep ~amazonka-marketplace-meteringdep ~amazonka-testPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-core, amazonka-marketplace-metering, amazonka-test
API changes (from Hackage documentation)
Files
- README.md +3/−5
- amazonka-marketplace-metering.cabal +7/−9
- gen/Network/AWS/MarketplaceMetering.hs +2/−4
- gen/Network/AWS/MarketplaceMetering/MeterUsage.hs +5/−12
- gen/Network/AWS/MarketplaceMetering/Types.hs +5/−11
- test/Test/AWS/Gen/MarketplaceMetering.hs +6/−6
README.md view
@@ -8,18 +8,16 @@ ## Version -`1.4.2`+`1.4.3` ## Description AWS Marketplace Metering Service -This reference provides descriptions of the low-level AWS Marketplace-Metering Service API.+This reference provides descriptions of the low-level AWS Marketplace Metering Service API. -AWS Marketplace sellers can use this API to submit usage data for custom-usage dimensions.+AWS Marketplace sellers can use this API to submit usage data for custom usage dimensions. __Submitting Metering Records__
amazonka-marketplace-metering.cabal view
@@ -1,5 +1,5 @@ name: amazonka-marketplace-metering-version: 1.4.2+version: 1.4.3 synopsis: Amazon Marketplace Metering SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -15,11 +15,9 @@ description: AWS Marketplace Metering Service - This reference provides descriptions of the low-level AWS Marketplace- Metering Service API.+ This reference provides descriptions of the low-level AWS Marketplace Metering Service API. - AWS Marketplace sellers can use this API to submit usage data for custom- usage dimensions.+ AWS Marketplace sellers can use this API to submit usage data for custom usage dimensions. __Submitting Metering Records__ @@ -60,7 +58,7 @@ , Network.AWS.MarketplaceMetering.Types.Sum build-depends:- amazonka-core == 1.4.2.*+ amazonka-core == 1.4.3.* , base >= 4.7 && < 5 test-suite amazonka-marketplace-metering-test@@ -80,9 +78,9 @@ , Test.AWS.MarketplaceMetering.Internal build-depends:- amazonka-core == 1.4.2.*- , amazonka-test == 1.4.2.*- , amazonka-marketplace-metering == 1.4.2.*+ amazonka-core == 1.4.3.*+ , amazonka-test == 1.4.3.*+ , amazonka-marketplace-metering == 1.4.3.* , base , bytestring , tasty
gen/Network/AWS/MarketplaceMetering.hs view
@@ -13,11 +13,9 @@ -- -- AWS Marketplace Metering Service ----- This reference provides descriptions of the low-level AWS Marketplace--- Metering Service API.+-- This reference provides descriptions of the low-level AWS Marketplace Metering Service API. ----- AWS Marketplace sellers can use this API to submit usage data for custom--- usage dimensions.+-- AWS Marketplace sellers can use this API to submit usage data for custom usage dimensions. -- -- __Submitting Metering Records__ --
gen/Network/AWS/MarketplaceMetering/MeterUsage.hs view
@@ -18,8 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- API to emit metering records. For identical requests, the API is--- idempotent. It simply returns the metering record ID.+-- API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID. module Network.AWS.MarketplaceMetering.MeterUsage ( -- * Creating a Request@@ -85,19 +84,15 @@ , _muDryRun = pDryRun_ } --- | Product code is used to uniquely identify a product in AWS Marketplace.--- The product code should be the same as the one used during the--- publishing of a new product.+-- | Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product. muProductCode :: Lens' MeterUsage Text muProductCode = lens _muProductCode (\ s a -> s{_muProductCode = a}); --- | Timestamp of the hour, recorded in UTC. The seconds and milliseconds--- portions of the timestamp will be ignored.+-- | Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored. muTimestamp :: Lens' MeterUsage UTCTime muTimestamp = lens _muTimestamp (\ s a -> s{_muTimestamp = a}) . _Time; --- | It will be one of the \'fcp dimension name\' provided during the--- publishing of the product.+-- | It will be one of the \'fcp dimension name\' provided during the publishing of the product. muUsageDimension :: Lens' MeterUsage Text muUsageDimension = lens _muUsageDimension (\ s a -> s{_muUsageDimension = a}); @@ -105,9 +100,7 @@ muUsageQuantity :: Lens' MeterUsage Natural muUsageQuantity = lens _muUsageQuantity (\ s a -> s{_muUsageQuantity = a}) . _Nat; --- | Checks whether you have the permissions required for the action, but--- does not make the request. If you have the permissions, the request--- returns DryRunOperation; otherwise, it returns UnauthorizedException.+-- | Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException. muDryRun :: Lens' MeterUsage Bool muDryRun = lens _muDryRun (\ s a -> s{_muDryRun = a});
gen/Network/AWS/MarketplaceMetering/Types.hs view
@@ -65,27 +65,22 @@ | has (hasStatus 509) e = Just "limit_exceeded" | otherwise = Nothing --- | The endpoint being called is in a region different from your EC2--- instance. The region of the Metering service endpoint and the region of--- the EC2 instance must match.+-- | The endpoint being called is in a region different from your EC2 instance. The region of the Metering service endpoint and the region of the EC2 instance must match. _InvalidEndpointRegionException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidEndpointRegionException = _ServiceError . hasCode "InvalidEndpointRegionException" --- | The product code passed does not match the product code used for--- publishing the product.+-- | The product code passed does not match the product code used for publishing the product. _InvalidProductCodeException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidProductCodeException = _ServiceError . hasCode "InvalidProductCodeException" --- | The usage dimension does not match one of the UsageDimensions associated--- with products.+-- | The usage dimension does not match one of the UsageDimensions associated with products. _InvalidUsageDimensionException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidUsageDimensionException = _ServiceError . hasCode "InvalidUsageDimensionException" --- | A metering record has already been emitted by the same EC2 instance for--- the given {usageDimension, timestamp} with a different usageQuantity.+-- | A metering record has already been emitted by the same EC2 instance for the given {usageDimension, timestamp} with a different usageQuantity. _DuplicateRequestException :: AsError a => Getting (First ServiceError) a ServiceError _DuplicateRequestException = _ServiceError . hasCode "DuplicateRequestException"@@ -99,8 +94,7 @@ _ThrottlingException :: AsError a => Getting (First ServiceError) a ServiceError _ThrottlingException = _ServiceError . hasCode "ThrottlingException" --- | An internal error has occurred. Retry your request. If the problem--- persists, post a message with details on the AWS forums.+-- | An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums. _InternalServiceErrorException :: AsError a => Getting (First ServiceError) a ServiceError _InternalServiceErrorException = _ServiceError . hasCode "InternalServiceErrorException"
test/Test/AWS/Gen/MarketplaceMetering.hs view
@@ -28,13 +28,13 @@ -- fixtures :: TestTree -- fixtures = -- [ testGroup "request"--- [ testMeterUsage $+-- [ requestMeterUsage $ -- meterUsage -- -- ] -- , testGroup "response"--- [ testMeterUsageResponse $+-- [ responseMeterUsage $ -- meterUsageResponse -- -- ]@@ -42,15 +42,15 @@ -- Requests -testMeterUsage :: MeterUsage -> TestTree-testMeterUsage = req+requestMeterUsage :: MeterUsage -> TestTree+requestMeterUsage = req "MeterUsage" "fixture/MeterUsage.yaml" -- Responses -testMeterUsageResponse :: MeterUsageResponse -> TestTree-testMeterUsageResponse = res+responseMeterUsage :: MeterUsageResponse -> TestTree+responseMeterUsage = res "MeterUsageResponse" "fixture/MeterUsageResponse.proto" marketplaceMetering