amazonka-marketplace-analytics-1.6.1: Amazon Marketplace Commerce Analytics SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Contents

Description

Given a data set type and a from date, asynchronously publishes the requested customer support data to the specified S3 bucket and notifies the specified SNS topic once the data is available. Returns a unique request identifier that can be used to correlate requests with notifications from the SNS topic. Data sets will be published in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv. If a file with the same name already exists (e.g. if the same data set is requested twice), the original file will be overwritten by the new file. Requires a Role with an attached permissions policy providing Allow permissions for the following actions: s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.

Synopsis

Creating a Request

startSupportDataExport Source #

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:

  • ssdeCustomerDefinedValues - (Optional) Key-value pairs which will be returned, unmodified, in the Amazon SNS notification message and the data set metadata file.
  • 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 "myprefixmydatasets", the output file "outputfile" would be published to "s3:mybucketmyprefixmydatasetsoutputfile". 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, 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 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.
  • ssdeDestinationS3BucketName - The name (friendly name, not ARN) of the destination S3 bucket.
  • ssdeSnsTopicARN - Amazon Resource Name (ARN) for the SNS Topic that will be notified when the data set has been published or if an error has occurred.

data StartSupportDataExport Source #

Container for the parameters to the StartSupportDataExport operation.

See: startSupportDataExport smart constructor.

Instances
Eq StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Data StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StartSupportDataExport -> c StartSupportDataExport #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StartSupportDataExport #

toConstr :: StartSupportDataExport -> Constr #

dataTypeOf :: StartSupportDataExport -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c StartSupportDataExport) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StartSupportDataExport) #

gmapT :: (forall b. Data b => b -> b) -> StartSupportDataExport -> StartSupportDataExport #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StartSupportDataExport -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StartSupportDataExport -> r #

gmapQ :: (forall d. Data d => d -> u) -> StartSupportDataExport -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StartSupportDataExport -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StartSupportDataExport -> m StartSupportDataExport #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StartSupportDataExport -> m StartSupportDataExport #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StartSupportDataExport -> m StartSupportDataExport #

Read StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Show StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Generic StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Associated Types

type Rep StartSupportDataExport :: Type -> Type #

Hashable StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

ToJSON StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

AWSRequest StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Associated Types

type Rs StartSupportDataExport :: Type #

ToHeaders StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

ToPath StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

ToQuery StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

NFData StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Methods

rnf :: StartSupportDataExport -> () #

type Rep StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

type Rep StartSupportDataExport = D1 (MetaData "StartSupportDataExport" "Network.AWS.MarketplaceAnalytics.StartSupportDataExport" "amazonka-marketplace-analytics-1.6.1-5EaT4jqvaNX3WknPp8GBV5" False) (C1 (MetaCons "StartSupportDataExport'" PrefixI True) ((S1 (MetaSel (Just "_ssdeCustomerDefinedValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: (S1 (MetaSel (Just "_ssdeDestinationS3Prefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ssdeDataSetType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SupportDataSetType))) :*: ((S1 (MetaSel (Just "_ssdeFromDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 POSIX) :*: S1 (MetaSel (Just "_ssdeRoleNameARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_ssdeDestinationS3BucketName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ssdeSnsTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs StartSupportDataExport Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Request Lenses

ssdeCustomerDefinedValues :: Lens' StartSupportDataExport (HashMap Text Text) Source #

(Optional) Key-value pairs which will be returned, unmodified, in the Amazon SNS notification message and the data set metadata file.

ssdeDestinationS3Prefix :: Lens' StartSupportDataExport (Maybe Text) Source #

(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 "myprefixmydatasets", the output file "outputfile" would be published to "s3:mybucketmyprefixmydatasetsoutputfile". 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 :: Lens' StartSupportDataExport SupportDataSetType Source #

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 :: Lens' StartSupportDataExport UTCTime Source #

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 :: Lens' StartSupportDataExport Text Source #

The Amazon Resource Name (ARN) of the Role with an attached permissions policy to interact with the provided AWS services.

ssdeDestinationS3BucketName :: Lens' StartSupportDataExport Text Source #

The name (friendly name, not ARN) of the destination S3 bucket.

ssdeSnsTopicARN :: Lens' StartSupportDataExport Text Source #

Amazon Resource Name (ARN) for the SNS Topic that will be notified when the data set has been published or if an error has occurred.

Destructuring the Response

startSupportDataExportResponse Source #

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:

  • ssdersDataSetRequestId - 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.
  • ssdersResponseStatus - -- | The response status code.

data StartSupportDataExportResponse Source #

Container for the result of the StartSupportDataExport operation.

See: startSupportDataExportResponse smart constructor.

Instances
Eq StartSupportDataExportResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Data StartSupportDataExportResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StartSupportDataExportResponse -> c StartSupportDataExportResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StartSupportDataExportResponse #

toConstr :: StartSupportDataExportResponse -> Constr #

dataTypeOf :: StartSupportDataExportResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c StartSupportDataExportResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StartSupportDataExportResponse) #

gmapT :: (forall b. Data b => b -> b) -> StartSupportDataExportResponse -> StartSupportDataExportResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StartSupportDataExportResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StartSupportDataExportResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> StartSupportDataExportResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StartSupportDataExportResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StartSupportDataExportResponse -> m StartSupportDataExportResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StartSupportDataExportResponse -> m StartSupportDataExportResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StartSupportDataExportResponse -> m StartSupportDataExportResponse #

Read StartSupportDataExportResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Show StartSupportDataExportResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Generic StartSupportDataExportResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

Associated Types

type Rep StartSupportDataExportResponse :: Type -> Type #

NFData StartSupportDataExportResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

type Rep StartSupportDataExportResponse Source # 
Instance details

Defined in Network.AWS.MarketplaceAnalytics.StartSupportDataExport

type Rep StartSupportDataExportResponse = D1 (MetaData "StartSupportDataExportResponse" "Network.AWS.MarketplaceAnalytics.StartSupportDataExport" "amazonka-marketplace-analytics-1.6.1-5EaT4jqvaNX3WknPp8GBV5" False) (C1 (MetaCons "StartSupportDataExportResponse'" PrefixI True) (S1 (MetaSel (Just "_ssdersDataSetRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ssdersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

ssdersDataSetRequestId :: Lens' StartSupportDataExportResponse (Maybe Text) Source #

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.