amazonka-marketplace-analytics 1.4.5 → 1.5.0
raw patch · 11 files changed
+189/−163 lines, 11 filesdep ~amazonka-coredep ~amazonka-marketplace-analyticsdep ~amazonka-testPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-core, amazonka-marketplace-analytics, amazonka-test
API changes (from Hackage documentation)
+ Network.AWS.MarketplaceAnalytics: DisbursedAmountByInstanceHours :: DataSetType
+ Network.AWS.MarketplaceAnalytics: SalesCompensationBilledRevenue :: DataSetType
+ Network.AWS.MarketplaceAnalytics: UsSalesAndUseTaxRecords :: DataSetType
+ Network.AWS.MarketplaceAnalytics.Types: DisbursedAmountByInstanceHours :: DataSetType
+ Network.AWS.MarketplaceAnalytics.Types: SalesCompensationBilledRevenue :: DataSetType
+ Network.AWS.MarketplaceAnalytics.Types: UsSalesAndUseTaxRecords :: DataSetType
Files
- README.md +1/−1
- amazonka-marketplace-analytics.cabal +16/−11
- gen/Network/AWS/MarketplaceAnalytics.hs +6/−6
- gen/Network/AWS/MarketplaceAnalytics/GenerateDataSet.hs +39/−37
- gen/Network/AWS/MarketplaceAnalytics/StartSupportDataExport.hs +41/−39
- gen/Network/AWS/MarketplaceAnalytics/Types.hs +32/−26
- gen/Network/AWS/MarketplaceAnalytics/Types/Product.hs +5/−5
- gen/Network/AWS/MarketplaceAnalytics/Types/Sum.hs +37/−26
- gen/Network/AWS/MarketplaceAnalytics/Waiters.hs +6/−6
- test/Main.hs +2/−2
- test/Test/AWS/Gen/MarketplaceAnalytics.hs +4/−4
README.md view
@@ -8,7 +8,7 @@ ## Version -`1.4.5`+`1.5.0` ## Description
amazonka-marketplace-analytics.cabal view
@@ -1,13 +1,13 @@ name: amazonka-marketplace-analytics-version: 1.4.5+version: 1.5.0 synopsis: Amazon Marketplace Commerce Analytics SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues-license: OtherLicense+license: MPL-2.0 license-file: LICENSE author: Brendan Hay-maintainer: Brendan Hay <brendan.g.hay@gmail.com>-copyright: Copyright (c) 2013-2016 Brendan Hay+maintainer: Brendan Hay <brendan.g.hay+amazonka@gmail.com>+copyright: Copyright (c) 2013-2017 Brendan Hay category: Network, AWS, Cloud, Distributed Computing build-type: Simple cabal-version: >= 1.10@@ -29,14 +29,19 @@ to get started. source-repository head- type: git- location: git://github.com/brendanhay/amazonka.git+ type: git+ location: git://github.com/brendanhay/amazonka.git+ subdir: amazonka-marketplace-analytics library default-language: Haskell2010 hs-source-dirs: src gen - ghc-options: -Wall+ ghc-options:+ -Wall+ -fwarn-incomplete-uni-patterns+ -fwarn-incomplete-record-updates+ -funbox-strict-fields exposed-modules: Network.AWS.MarketplaceAnalytics@@ -50,7 +55,7 @@ , Network.AWS.MarketplaceAnalytics.Types.Sum build-depends:- amazonka-core == 1.4.5.*+ amazonka-core == 1.5.0.* , base >= 4.7 && < 5 test-suite amazonka-marketplace-analytics-test@@ -70,9 +75,9 @@ , Test.AWS.MarketplaceAnalytics.Internal build-depends:- amazonka-core == 1.4.5.*- , amazonka-test == 1.4.5.*- , amazonka-marketplace-analytics == 1.4.5.*+ amazonka-core == 1.5.0.*+ , amazonka-test == 1.5.0.*+ , amazonka-marketplace-analytics , base , bytestring , tasty
gen/Network/AWS/MarketplaceAnalytics.hs view
@@ -5,9 +5,9 @@ -- | -- Module : Network.AWS.MarketplaceAnalytics--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) --@@ -44,10 +44,10 @@ , SupportDataSetType (..) ) where -import Network.AWS.MarketplaceAnalytics.GenerateDataSet-import Network.AWS.MarketplaceAnalytics.StartSupportDataExport-import Network.AWS.MarketplaceAnalytics.Types-import Network.AWS.MarketplaceAnalytics.Waiters+import Network.AWS.MarketplaceAnalytics.GenerateDataSet+import Network.AWS.MarketplaceAnalytics.StartSupportDataExport+import Network.AWS.MarketplaceAnalytics.Types+import Network.AWS.MarketplaceAnalytics.Waiters {- $errors Error matchers are designed for use with the functions provided by
gen/Network/AWS/MarketplaceAnalytics/GenerateDataSet.hs view
@@ -12,9 +12,9 @@ -- | -- Module : Network.AWS.MarketplaceAnalytics.GenerateDataSet--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,26 +41,27 @@ , gdsrsResponseStatus ) where -import Network.AWS.Lens-import Network.AWS.MarketplaceAnalytics.Types-import Network.AWS.MarketplaceAnalytics.Types.Product-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response+import Network.AWS.Lens+import Network.AWS.MarketplaceAnalytics.Types+import Network.AWS.MarketplaceAnalytics.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response -- | Container for the parameters to the GenerateDataSet operation. -- -- /See:/ 'generateDataSet' smart constructor. data GenerateDataSet = GenerateDataSet'- { _gdsCustomerDefinedValues :: !(Maybe (Map Text Text))- , _gdsDestinationS3Prefix :: !(Maybe Text)- , _gdsDataSetType :: !DataSetType- , _gdsDataSetPublicationDate :: !POSIX- , _gdsRoleNameARN :: !Text- , _gdsDestinationS3BucketName :: !Text- , _gdsSnsTopicARN :: !Text- } deriving (Eq,Read,Show,Data,Typeable,Generic)+ { _gdsCustomerDefinedValues :: !(Maybe (Map Text Text))+ , _gdsDestinationS3Prefix :: !(Maybe Text)+ , _gdsDataSetType :: !DataSetType+ , _gdsDataSetPublicationDate :: !POSIX+ , _gdsRoleNameARN :: !Text+ , _gdsDestinationS3BucketName :: !Text+ , _gdsSnsTopicARN :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GenerateDataSet' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -69,7 +70,7 @@ -- -- * 'gdsDestinationS3Prefix' - (Optional) The desired S3 prefix for the published data set, similar to a directory path in standard file systems. For example, if given the bucket name "mybucket" and the prefix "myprefix/mydatasets", the output file "outputfile" would be published to "s3://mybucket/myprefix/mydatasets/outputfile". If the prefix directory structure does not exist, it will be created. If no prefix is provided, the data set will be published to the S3 bucket root. ----- * 'gdsDataSetType' - The desired data set type. * /customer_subscriber_hourly_monthly_subscriptions/ - Available daily by 5:00 PM Pacific Time since 2014-07-21. * /customer_subscriber_annual_subscriptions/ - Available daily by 5:00 PM Pacific Time since 2014-07-21. * /daily_business_usage_by_instance_type/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_fees/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_free_trial_conversions/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_new_instances/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_new_product_subscribers/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_canceled_product_subscribers/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /monthly_revenue_billing_and_revenue_data/ - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02. * /monthly_revenue_annual_subscriptions/ - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02. * /disbursed_amount_by_product/ - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. * /disbursed_amount_by_product_with_uncollected_funds/ -This data set is only available from 2012-04-19 until 2015-01-25. After 2015-01-25, this data set was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds. * /disbursed_amount_by_customer_geo/ - Available every 30 days by 5:00 PM Pacific Time since 2012-04-19. * /disbursed_amount_by_age_of_uncollected_funds/ - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. * /disbursed_amount_by_age_of_disbursed_funds/ - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. * /customer_profile_by_industry/ - Available daily by 5:00 PM Pacific Time since 2015-10-01. * /customer_profile_by_revenue/ - Available daily by 5:00 PM Pacific Time since 2015-10-01. * /customer_profile_by_geography/ - Available daily by 5:00 PM Pacific Time since 2015-10-01.+-- * 'gdsDataSetType' - The desired data set type. * __customer_subscriber_hourly_monthly_subscriptions__ From 2014-07-21 to present: Available daily by 5:00 PM Pacific Time. * __customer_subscriber_annual_subscriptions__ From 2014-07-21 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_usage_by_instance_type__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_fees__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_free_trial_conversions__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_new_instances__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_new_product_subscribers__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_canceled_product_subscribers__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __monthly_revenue_billing_and_revenue_data__ From 2015-02 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from two months prior. From 2017-07 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from one month prior. * __monthly_revenue_annual_subscriptions__ From 2015-02 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes up-front software charges (e.g. annual) from one month prior. From 2017-07 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes up-front software charges (e.g. annual) from one month prior. * __disbursed_amount_by_product__ From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time. * __disbursed_amount_by_product_with_uncollected_funds__ From 2012-04-19 to 2015-01-25: Available every 30 days by 5:00 PM Pacific Time. From 2015-01-26 to present: This data set was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds. * __disbursed_amount_by_instance_hours__ From 2012-09-04 to present: Available every 30 days by 5:00 PM Pacific Time. * __disbursed_amount_by_customer_geo__ From 2012-04-19 to present: Available every 30 days by 5:00 PM Pacific Time. * __disbursed_amount_by_age_of_uncollected_funds__ From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time. * __disbursed_amount_by_age_of_disbursed_funds__ From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time. * __customer_profile_by_industry__ From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time. From 2017-06-30 to present: This data set is no longer available. * __customer_profile_by_revenue__ From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time. From 2017-06-30 to present: This data set is no longer available. * __customer_profile_by_geography__ From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time. From 2017-06-30 to present: This data set is no longer available. * __sales_compensation_billed_revenue__ From 2016-12 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from two months prior, and up-front software charges (e.g. annual) from one month prior. From 2017-06 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from one month prior, and up-front software charges (e.g. annual) from one month prior. * __us_sales_and_use_tax_records__ From 2017-02-15 to present: Available monthly on the 15th day of the month by 5:00 PM Pacific Time. -- -- * 'gdsDataSetPublicationDate' - The date a data set was published. For daily data sets, provide a date with day-level granularity for the desired day. For weekly data sets, provide a date with day-level granularity within the desired week (the day value will be ignored). For monthly data sets, provide a date with month-level granularity for the desired month (the day value will be ignored). --@@ -86,16 +87,17 @@ -> Text -- ^ 'gdsSnsTopicARN' -> GenerateDataSet generateDataSet pDataSetType_ pDataSetPublicationDate_ pRoleNameARN_ pDestinationS3BucketName_ pSnsTopicARN_ =- GenerateDataSet'- { _gdsCustomerDefinedValues = Nothing- , _gdsDestinationS3Prefix = Nothing- , _gdsDataSetType = pDataSetType_- , _gdsDataSetPublicationDate = _Time # pDataSetPublicationDate_- , _gdsRoleNameARN = pRoleNameARN_- , _gdsDestinationS3BucketName = pDestinationS3BucketName_- , _gdsSnsTopicARN = pSnsTopicARN_- }+ GenerateDataSet'+ { _gdsCustomerDefinedValues = Nothing+ , _gdsDestinationS3Prefix = Nothing+ , _gdsDataSetType = pDataSetType_+ , _gdsDataSetPublicationDate = _Time # pDataSetPublicationDate_+ , _gdsRoleNameARN = pRoleNameARN_+ , _gdsDestinationS3BucketName = pDestinationS3BucketName_+ , _gdsSnsTopicARN = pSnsTopicARN_+ } + -- | (Optional) Key-value pairs which will be returned, unmodified, in the Amazon SNS notification message and the data set metadata file. These key-value pairs can be used to correlated responses with tracking information from other systems. gdsCustomerDefinedValues :: Lens' GenerateDataSet (HashMap Text Text) gdsCustomerDefinedValues = lens _gdsCustomerDefinedValues (\ s a -> s{_gdsCustomerDefinedValues = a}) . _Default . _Map;@@ -104,7 +106,7 @@ gdsDestinationS3Prefix :: Lens' GenerateDataSet (Maybe Text) gdsDestinationS3Prefix = lens _gdsDestinationS3Prefix (\ s a -> s{_gdsDestinationS3Prefix = a}); --- | The desired data set type. * /customer_subscriber_hourly_monthly_subscriptions/ - Available daily by 5:00 PM Pacific Time since 2014-07-21. * /customer_subscriber_annual_subscriptions/ - Available daily by 5:00 PM Pacific Time since 2014-07-21. * /daily_business_usage_by_instance_type/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_fees/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_free_trial_conversions/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_new_instances/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_new_product_subscribers/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /daily_business_canceled_product_subscribers/ - Available daily by 5:00 PM Pacific Time since 2015-01-26. * /monthly_revenue_billing_and_revenue_data/ - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02. * /monthly_revenue_annual_subscriptions/ - Available monthly on the 4th day of the month by 5:00 PM Pacific Time since 2015-02. * /disbursed_amount_by_product/ - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. * /disbursed_amount_by_product_with_uncollected_funds/ -This data set is only available from 2012-04-19 until 2015-01-25. After 2015-01-25, this data set was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds. * /disbursed_amount_by_customer_geo/ - Available every 30 days by 5:00 PM Pacific Time since 2012-04-19. * /disbursed_amount_by_age_of_uncollected_funds/ - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. * /disbursed_amount_by_age_of_disbursed_funds/ - Available every 30 days by 5:00 PM Pacific Time since 2015-01-26. * /customer_profile_by_industry/ - Available daily by 5:00 PM Pacific Time since 2015-10-01. * /customer_profile_by_revenue/ - Available daily by 5:00 PM Pacific Time since 2015-10-01. * /customer_profile_by_geography/ - Available daily by 5:00 PM Pacific Time since 2015-10-01.+-- | The desired data set type. * __customer_subscriber_hourly_monthly_subscriptions__ From 2014-07-21 to present: Available daily by 5:00 PM Pacific Time. * __customer_subscriber_annual_subscriptions__ From 2014-07-21 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_usage_by_instance_type__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_fees__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_free_trial_conversions__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_new_instances__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_new_product_subscribers__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __daily_business_canceled_product_subscribers__ From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time. * __monthly_revenue_billing_and_revenue_data__ From 2015-02 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from two months prior. From 2017-07 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from one month prior. * __monthly_revenue_annual_subscriptions__ From 2015-02 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes up-front software charges (e.g. annual) from one month prior. From 2017-07 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes up-front software charges (e.g. annual) from one month prior. * __disbursed_amount_by_product__ From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time. * __disbursed_amount_by_product_with_uncollected_funds__ From 2012-04-19 to 2015-01-25: Available every 30 days by 5:00 PM Pacific Time. From 2015-01-26 to present: This data set was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds. * __disbursed_amount_by_instance_hours__ From 2012-09-04 to present: Available every 30 days by 5:00 PM Pacific Time. * __disbursed_amount_by_customer_geo__ From 2012-04-19 to present: Available every 30 days by 5:00 PM Pacific Time. * __disbursed_amount_by_age_of_uncollected_funds__ From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time. * __disbursed_amount_by_age_of_disbursed_funds__ From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time. * __customer_profile_by_industry__ From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time. From 2017-06-30 to present: This data set is no longer available. * __customer_profile_by_revenue__ From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time. From 2017-06-30 to present: This data set is no longer available. * __customer_profile_by_geography__ From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time. From 2017-06-30 to present: This data set is no longer available. * __sales_compensation_billed_revenue__ From 2016-12 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from two months prior, and up-front software charges (e.g. annual) from one month prior. From 2017-06 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from one month prior, and up-front software charges (e.g. annual) from one month prior. * __us_sales_and_use_tax_records__ From 2017-02-15 to present: Available monthly on the 15th day of the month by 5:00 PM Pacific Time. gdsDataSetType :: Lens' GenerateDataSet DataSetType gdsDataSetType = lens _gdsDataSetType (\ s a -> s{_gdsDataSetType = a}); @@ -133,9 +135,9 @@ GenerateDataSetResponse' <$> (x .?> "dataSetRequestId") <*> (pure (fromEnum s))) -instance Hashable GenerateDataSet+instance Hashable GenerateDataSet where -instance NFData GenerateDataSet+instance NFData GenerateDataSet where instance ToHeaders GenerateDataSet where toHeaders@@ -175,10 +177,11 @@ -- -- /See:/ 'generateDataSetResponse' smart constructor. data GenerateDataSetResponse = GenerateDataSetResponse'- { _gdsrsDataSetRequestId :: !(Maybe Text)- , _gdsrsResponseStatus :: !Int- } deriving (Eq,Read,Show,Data,Typeable,Generic)+ { _gdsrsDataSetRequestId :: !(Maybe Text)+ , _gdsrsResponseStatus :: !Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'GenerateDataSetResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -190,11 +193,10 @@ :: Int -- ^ 'gdsrsResponseStatus' -> GenerateDataSetResponse generateDataSetResponse pResponseStatus_ =- GenerateDataSetResponse'- { _gdsrsDataSetRequestId = Nothing- , _gdsrsResponseStatus = pResponseStatus_- }+ GenerateDataSetResponse'+ {_gdsrsDataSetRequestId = Nothing, _gdsrsResponseStatus = pResponseStatus_} + -- | A unique identifier representing a specific request to the GenerateDataSet operation. This identifier can be used to correlate a request with notifications from the SNS topic. gdsrsDataSetRequestId :: Lens' GenerateDataSetResponse (Maybe Text) gdsrsDataSetRequestId = lens _gdsrsDataSetRequestId (\ s a -> s{_gdsrsDataSetRequestId = a});@@ -203,4 +205,4 @@ gdsrsResponseStatus :: Lens' GenerateDataSetResponse Int gdsrsResponseStatus = lens _gdsrsResponseStatus (\ s a -> s{_gdsrsResponseStatus = a}); -instance NFData GenerateDataSetResponse+instance NFData GenerateDataSetResponse where
gen/Network/AWS/MarketplaceAnalytics/StartSupportDataExport.hs view
@@ -12,9 +12,9 @@ -- | -- Module : Network.AWS.MarketplaceAnalytics.StartSupportDataExport--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) --@@ -41,26 +41,27 @@ , ssdersResponseStatus ) where -import Network.AWS.Lens-import Network.AWS.MarketplaceAnalytics.Types-import Network.AWS.MarketplaceAnalytics.Types.Product-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response+import Network.AWS.Lens+import Network.AWS.MarketplaceAnalytics.Types+import Network.AWS.MarketplaceAnalytics.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response -- | Container for the parameters to the StartSupportDataExport operation. -- -- /See:/ 'startSupportDataExport' smart constructor. data StartSupportDataExport = StartSupportDataExport'- { _ssdeCustomerDefinedValues :: !(Maybe (Map Text Text))- , _ssdeDestinationS3Prefix :: !(Maybe Text)- , _ssdeDataSetType :: !SupportDataSetType- , _ssdeFromDate :: !POSIX- , _ssdeRoleNameARN :: !Text- , _ssdeDestinationS3BucketName :: !Text- , _ssdeSnsTopicARN :: !Text- } deriving (Eq,Read,Show,Data,Typeable,Generic)+ { _ssdeCustomerDefinedValues :: !(Maybe (Map Text Text))+ , _ssdeDestinationS3Prefix :: !(Maybe Text)+ , _ssdeDataSetType :: !SupportDataSetType+ , _ssdeFromDate :: !POSIX+ , _ssdeRoleNameARN :: !Text+ , _ssdeDestinationS3BucketName :: !Text+ , _ssdeSnsTopicARN :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'StartSupportDataExport' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -69,9 +70,9 @@ -- -- * 'ssdeDestinationS3Prefix' - (Optional) The desired S3 prefix for the published data set, similar to a directory path in standard file systems. For example, if given the bucket name "mybucket" and the prefix "myprefix/mydatasets", the output file "outputfile" would be published to "s3://mybucket/myprefix/mydatasets/outputfile". If the prefix directory structure does not exist, it will be created. If no prefix is provided, the data set will be published to the S3 bucket root. ----- * 'ssdeDataSetType' - Specifies the data set type to be written to the output csv file. The data set types customer_support_contacts_data and test_customer_support_contacts_data both result in a csv file containing the following fields: Product Id, Customer Guid, Subscription Guid, Subscription Start Date, Organization, AWS Account Id, Given Name, Surname, Telephone Number, Email, Title, Country Code, ZIP Code, Operation Type, and Operation Time. Currently, only the test_customer_support_contacts_data value is supported * /customer_support_contacts_data/ Customer support contact data. The data set will contain all changes (Creates, Updates, and Deletes) to customer support contact data from the date specified in the from_date parameter. * /test_customer_support_contacts_data/ An example data set containing static test data in the same format as customer_support_contacts_data+-- * 'ssdeDataSetType' - Specifies the data set type to be written to the output csv file. The data set types customer_support_contacts_data and test_customer_support_contacts_data both result in a csv file containing the following fields: Product Id, Product Code, Customer Guid, Subscription Guid, Subscription Start Date, Organization, AWS Account Id, Given Name, Surname, Telephone Number, Email, Title, Country Code, ZIP Code, Operation Type, and Operation Time. * /customer_support_contacts_data/ Customer support contact data. The data set will contain all changes (Creates, Updates, and Deletes) to customer support contact data from the date specified in the from_date parameter. * /test_customer_support_contacts_data/ An example data set containing static test data in the same format as customer_support_contacts_data ----- * 'ssdeFromDate' - The start date from which to retrieve the data set. This parameter only affects the customer_support_contacts_data data set type.+-- * 'ssdeFromDate' - The start date from which to retrieve the data set in UTC. This parameter only affects the customer_support_contacts_data data set type. -- -- * 'ssdeRoleNameARN' - The Amazon Resource Name (ARN) of the Role with an attached permissions policy to interact with the provided AWS services. --@@ -86,16 +87,17 @@ -> Text -- ^ 'ssdeSnsTopicARN' -> StartSupportDataExport startSupportDataExport pDataSetType_ pFromDate_ pRoleNameARN_ pDestinationS3BucketName_ pSnsTopicARN_ =- StartSupportDataExport'- { _ssdeCustomerDefinedValues = Nothing- , _ssdeDestinationS3Prefix = Nothing- , _ssdeDataSetType = pDataSetType_- , _ssdeFromDate = _Time # pFromDate_- , _ssdeRoleNameARN = pRoleNameARN_- , _ssdeDestinationS3BucketName = pDestinationS3BucketName_- , _ssdeSnsTopicARN = pSnsTopicARN_- }+ StartSupportDataExport'+ { _ssdeCustomerDefinedValues = Nothing+ , _ssdeDestinationS3Prefix = Nothing+ , _ssdeDataSetType = pDataSetType_+ , _ssdeFromDate = _Time # pFromDate_+ , _ssdeRoleNameARN = pRoleNameARN_+ , _ssdeDestinationS3BucketName = pDestinationS3BucketName_+ , _ssdeSnsTopicARN = pSnsTopicARN_+ } + -- | (Optional) Key-value pairs which will be returned, unmodified, in the Amazon SNS notification message and the data set metadata file. ssdeCustomerDefinedValues :: Lens' StartSupportDataExport (HashMap Text Text) ssdeCustomerDefinedValues = lens _ssdeCustomerDefinedValues (\ s a -> s{_ssdeCustomerDefinedValues = a}) . _Default . _Map;@@ -104,11 +106,11 @@ ssdeDestinationS3Prefix :: Lens' StartSupportDataExport (Maybe Text) ssdeDestinationS3Prefix = lens _ssdeDestinationS3Prefix (\ s a -> s{_ssdeDestinationS3Prefix = a}); --- | Specifies the data set type to be written to the output csv file. The data set types customer_support_contacts_data and test_customer_support_contacts_data both result in a csv file containing the following fields: Product Id, Customer Guid, Subscription Guid, Subscription Start Date, Organization, AWS Account Id, Given Name, Surname, Telephone Number, Email, Title, Country Code, ZIP Code, Operation Type, and Operation Time. Currently, only the test_customer_support_contacts_data value is supported * /customer_support_contacts_data/ Customer support contact data. The data set will contain all changes (Creates, Updates, and Deletes) to customer support contact data from the date specified in the from_date parameter. * /test_customer_support_contacts_data/ An example data set containing static test data in the same format as customer_support_contacts_data+-- | Specifies the data set type to be written to the output csv file. The data set types customer_support_contacts_data and test_customer_support_contacts_data both result in a csv file containing the following fields: Product Id, Product Code, Customer Guid, Subscription Guid, Subscription Start Date, Organization, AWS Account Id, Given Name, Surname, Telephone Number, Email, Title, Country Code, ZIP Code, Operation Type, and Operation Time. * /customer_support_contacts_data/ Customer support contact data. The data set will contain all changes (Creates, Updates, and Deletes) to customer support contact data from the date specified in the from_date parameter. * /test_customer_support_contacts_data/ An example data set containing static test data in the same format as customer_support_contacts_data ssdeDataSetType :: Lens' StartSupportDataExport SupportDataSetType ssdeDataSetType = lens _ssdeDataSetType (\ s a -> s{_ssdeDataSetType = a}); --- | The start date from which to retrieve the data set. This parameter only affects the customer_support_contacts_data data set type.+-- | The start date from which to retrieve the data set in UTC. This parameter only affects the customer_support_contacts_data data set type. ssdeFromDate :: Lens' StartSupportDataExport UTCTime ssdeFromDate = lens _ssdeFromDate (\ s a -> s{_ssdeFromDate = a}) . _Time; @@ -134,9 +136,9 @@ StartSupportDataExportResponse' <$> (x .?> "dataSetRequestId") <*> (pure (fromEnum s))) -instance Hashable StartSupportDataExport+instance Hashable StartSupportDataExport where -instance NFData StartSupportDataExport+instance NFData StartSupportDataExport where instance ToHeaders StartSupportDataExport where toHeaders@@ -174,10 +176,11 @@ -- -- /See:/ 'startSupportDataExportResponse' smart constructor. data StartSupportDataExportResponse = StartSupportDataExportResponse'- { _ssdersDataSetRequestId :: !(Maybe Text)- , _ssdersResponseStatus :: !Int- } deriving (Eq,Read,Show,Data,Typeable,Generic)+ { _ssdersDataSetRequestId :: !(Maybe Text)+ , _ssdersResponseStatus :: !Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic) + -- | Creates a value of 'StartSupportDataExportResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired:@@ -189,11 +192,10 @@ :: Int -- ^ 'ssdersResponseStatus' -> StartSupportDataExportResponse startSupportDataExportResponse pResponseStatus_ =- StartSupportDataExportResponse'- { _ssdersDataSetRequestId = Nothing- , _ssdersResponseStatus = pResponseStatus_- }+ StartSupportDataExportResponse'+ {_ssdersDataSetRequestId = Nothing, _ssdersResponseStatus = pResponseStatus_} + -- | A unique identifier representing a specific request to the StartSupportDataExport operation. This identifier can be used to correlate a request with notifications from the SNS topic. ssdersDataSetRequestId :: Lens' StartSupportDataExportResponse (Maybe Text) ssdersDataSetRequestId = lens _ssdersDataSetRequestId (\ s a -> s{_ssdersDataSetRequestId = a});@@ -202,4 +204,4 @@ ssdersResponseStatus :: Lens' StartSupportDataExportResponse Int ssdersResponseStatus = lens _ssdersResponseStatus (\ s a -> s{_ssdersResponseStatus = a}); -instance NFData StartSupportDataExportResponse+instance NFData StartSupportDataExportResponse where
gen/Network/AWS/MarketplaceAnalytics/Types.hs view
@@ -4,9 +4,9 @@ -- | -- Module : Network.AWS.MarketplaceAnalytics.Types--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) --@@ -25,38 +25,40 @@ , SupportDataSetType (..) ) where -import Network.AWS.Lens-import Network.AWS.MarketplaceAnalytics.Types.Product-import Network.AWS.MarketplaceAnalytics.Types.Sum-import Network.AWS.Prelude-import Network.AWS.Sign.V4+import Network.AWS.Lens+import Network.AWS.MarketplaceAnalytics.Types.Product+import Network.AWS.MarketplaceAnalytics.Types.Sum+import Network.AWS.Prelude+import Network.AWS.Sign.V4 -- | API version @2015-07-01@ of the Amazon Marketplace Commerce Analytics SDK configuration. marketplaceAnalytics :: Service marketplaceAnalytics =- Service- { _svcAbbrev = "MarketplaceAnalytics"- , _svcSigner = v4- , _svcPrefix = "marketplacecommerceanalytics"- , _svcVersion = "2015-07-01"- , _svcEndpoint = defaultEndpoint marketplaceAnalytics- , _svcTimeout = Just 70- , _svcCheck = statusSuccess- , _svcError = parseJSONError "MarketplaceAnalytics"- , _svcRetry = retry- }+ Service+ { _svcAbbrev = "MarketplaceAnalytics"+ , _svcSigner = v4+ , _svcPrefix = "marketplacecommerceanalytics"+ , _svcVersion = "2015-07-01"+ , _svcEndpoint = defaultEndpoint marketplaceAnalytics+ , _svcTimeout = Just 70+ , _svcCheck = statusSuccess+ , _svcError = parseJSONError "MarketplaceAnalytics"+ , _svcRetry = retry+ } where retry =- Exponential- { _retryBase = 5.0e-2- , _retryGrowth = 2- , _retryAttempts = 5- , _retryCheck = check- }+ Exponential+ { _retryBase = 5.0e-2+ , _retryGrowth = 2+ , _retryAttempts = 5+ , _retryCheck = check+ } check e+ | has (hasCode "ThrottledException" . hasStatus 400) e =+ Just "throttled_exception" | has (hasStatus 429) e = Just "too_many_requests" | has (hasCode "ThrottlingException" . hasStatus 400) e =- Just "throttling_exception"+ Just "throttling_exception" | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling" | has (hasStatus 504) e = Just "gateway_timeout" | has (hasStatus 502) e = Just "bad_gateway"@@ -65,7 +67,11 @@ | has (hasStatus 509) e = Just "limit_exceeded" | otherwise = Nothing + -- | This exception is thrown when an internal service error occurs. _MarketplaceCommerceAnalyticsException :: AsError a => Getting (First ServiceError) a ServiceError _MarketplaceCommerceAnalyticsException =- _ServiceError . hasCode "MarketplaceCommerceAnalyticsException"+ _MatchServiceError+ marketplaceAnalytics+ "MarketplaceCommerceAnalyticsException"+
gen/Network/AWS/MarketplaceAnalytics/Types/Product.hs view
@@ -9,14 +9,14 @@ -- | -- Module : Network.AWS.MarketplaceAnalytics.Types.Product--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.AWS.MarketplaceAnalytics.Types.Product where -import Network.AWS.Lens-import Network.AWS.MarketplaceAnalytics.Types.Sum-import Network.AWS.Prelude+import Network.AWS.Lens+import Network.AWS.MarketplaceAnalytics.Types.Sum+import Network.AWS.Prelude
gen/Network/AWS/MarketplaceAnalytics/Types/Sum.hs view
@@ -9,37 +9,41 @@ -- | -- Module : Network.AWS.MarketplaceAnalytics.Types.Sum--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.AWS.MarketplaceAnalytics.Types.Sum where -import Network.AWS.Prelude+import Network.AWS.Prelude data DataSetType- = CustomerProfileByGeography- | CustomerProfileByIndustry- | CustomerProfileByRevenue- | CustomerSubscriberAnnualSubscriptions- | CustomerSubscriberHourlyMonthlySubscriptions- | DailyBusinessCanceledProductSubscribers- | DailyBusinessFees- | DailyBusinessFreeTrialConversions- | DailyBusinessNewInstances- | DailyBusinessNewProductSubscribers- | DailyBusinessUsageByInstanceType- | DisbursedAmountByAgeOfDisbursedFunds- | DisbursedAmountByAgeOfUncollectedFunds- | DisbursedAmountByCustomerGeo- | DisbursedAmountByProduct- | DisbursedAmountByProductWithUncollectedFunds- | MonthlyRevenueAnnualSubscriptions- | MonthlyRevenueBillingAndRevenueData- deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+ = CustomerProfileByGeography+ | CustomerProfileByIndustry+ | CustomerProfileByRevenue+ | CustomerSubscriberAnnualSubscriptions+ | CustomerSubscriberHourlyMonthlySubscriptions+ | DailyBusinessCanceledProductSubscribers+ | DailyBusinessFees+ | DailyBusinessFreeTrialConversions+ | DailyBusinessNewInstances+ | DailyBusinessNewProductSubscribers+ | DailyBusinessUsageByInstanceType+ | DisbursedAmountByAgeOfDisbursedFunds+ | DisbursedAmountByAgeOfUncollectedFunds+ | DisbursedAmountByCustomerGeo+ | DisbursedAmountByInstanceHours+ | DisbursedAmountByProduct+ | DisbursedAmountByProductWithUncollectedFunds+ | MonthlyRevenueAnnualSubscriptions+ | MonthlyRevenueBillingAndRevenueData+ | SalesCompensationBilledRevenue+ | UsSalesAndUseTaxRecords+ deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) + instance FromText DataSetType where parser = takeLowerText >>= \case "customer_profile_by_geography" -> pure CustomerProfileByGeography@@ -56,12 +60,15 @@ "disbursed_amount_by_age_of_disbursed_funds" -> pure DisbursedAmountByAgeOfDisbursedFunds "disbursed_amount_by_age_of_uncollected_funds" -> pure DisbursedAmountByAgeOfUncollectedFunds "disbursed_amount_by_customer_geo" -> pure DisbursedAmountByCustomerGeo+ "disbursed_amount_by_instance_hours" -> pure DisbursedAmountByInstanceHours "disbursed_amount_by_product" -> pure DisbursedAmountByProduct "disbursed_amount_by_product_with_uncollected_funds" -> pure DisbursedAmountByProductWithUncollectedFunds "monthly_revenue_annual_subscriptions" -> pure MonthlyRevenueAnnualSubscriptions "monthly_revenue_billing_and_revenue_data" -> pure MonthlyRevenueBillingAndRevenueData+ "sales_compensation_billed_revenue" -> pure SalesCompensationBilledRevenue+ "us_sales_and_use_tax_records" -> pure UsSalesAndUseTaxRecords e -> fromTextError $ "Failure parsing DataSetType from value: '" <> e- <> "'. Accepted values: customer_profile_by_geography, customer_profile_by_industry, customer_profile_by_revenue, customer_subscriber_annual_subscriptions, customer_subscriber_hourly_monthly_subscriptions, daily_business_canceled_product_subscribers, daily_business_fees, daily_business_free_trial_conversions, daily_business_new_instances, daily_business_new_product_subscribers, daily_business_usage_by_instance_type, disbursed_amount_by_age_of_disbursed_funds, disbursed_amount_by_age_of_uncollected_funds, disbursed_amount_by_customer_geo, disbursed_amount_by_product, disbursed_amount_by_product_with_uncollected_funds, monthly_revenue_annual_subscriptions, monthly_revenue_billing_and_revenue_data"+ <> "'. Accepted values: customer_profile_by_geography, customer_profile_by_industry, customer_profile_by_revenue, customer_subscriber_annual_subscriptions, customer_subscriber_hourly_monthly_subscriptions, daily_business_canceled_product_subscribers, daily_business_fees, daily_business_free_trial_conversions, daily_business_new_instances, daily_business_new_product_subscribers, daily_business_usage_by_instance_type, disbursed_amount_by_age_of_disbursed_funds, disbursed_amount_by_age_of_uncollected_funds, disbursed_amount_by_customer_geo, disbursed_amount_by_instance_hours, disbursed_amount_by_product, disbursed_amount_by_product_with_uncollected_funds, monthly_revenue_annual_subscriptions, monthly_revenue_billing_and_revenue_data, sales_compensation_billed_revenue, us_sales_and_use_tax_records" instance ToText DataSetType where toText = \case@@ -79,10 +86,13 @@ DisbursedAmountByAgeOfDisbursedFunds -> "disbursed_amount_by_age_of_disbursed_funds" DisbursedAmountByAgeOfUncollectedFunds -> "disbursed_amount_by_age_of_uncollected_funds" DisbursedAmountByCustomerGeo -> "disbursed_amount_by_customer_geo"+ DisbursedAmountByInstanceHours -> "disbursed_amount_by_instance_hours" DisbursedAmountByProduct -> "disbursed_amount_by_product" DisbursedAmountByProductWithUncollectedFunds -> "disbursed_amount_by_product_with_uncollected_funds" MonthlyRevenueAnnualSubscriptions -> "monthly_revenue_annual_subscriptions" MonthlyRevenueBillingAndRevenueData -> "monthly_revenue_billing_and_revenue_data"+ SalesCompensationBilledRevenue -> "sales_compensation_billed_revenue"+ UsSalesAndUseTaxRecords -> "us_sales_and_use_tax_records" instance Hashable DataSetType instance NFData DataSetType@@ -94,9 +104,10 @@ toJSON = toJSONText data SupportDataSetType- = CustomerSupportContactsData- | TestCustomerSupportContactsData- deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)+ = CustomerSupportContactsData+ | TestCustomerSupportContactsData+ deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+ instance FromText SupportDataSetType where parser = takeLowerText >>= \case
gen/Network/AWS/MarketplaceAnalytics/Waiters.hs view
@@ -7,15 +7,15 @@ -- | -- Module : Network.AWS.MarketplaceAnalytics.Waiters--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.AWS.MarketplaceAnalytics.Waiters where -import Network.AWS.Lens-import Network.AWS.MarketplaceAnalytics.Types-import Network.AWS.Prelude-import Network.AWS.Waiter+import Network.AWS.Lens+import Network.AWS.MarketplaceAnalytics.Types+import Network.AWS.Prelude+import Network.AWS.Waiter
test/Main.hs view
@@ -2,9 +2,9 @@ -- | -- Module : Main--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) --
test/Test/AWS/Gen/MarketplaceAnalytics.hs view
@@ -5,20 +5,20 @@ -- | -- Module : Test.AWS.Gen.MarketplaceAnalytics--- Copyright : (c) 2013-2016 Brendan Hay+-- Copyright : (c) 2013-2017 Brendan Hay -- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- module Test.AWS.Gen.MarketplaceAnalytics where import Data.Proxy+import Network.AWS.MarketplaceAnalytics import Test.AWS.Fixture+import Test.AWS.MarketplaceAnalytics.Internal import Test.AWS.Prelude import Test.Tasty-import Network.AWS.MarketplaceAnalytics-import Test.AWS.MarketplaceAnalytics.Internal -- Auto-generated: the actual test selection needs to be manually placed into -- the top-level so that real test data can be incrementally added.