1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package marketplacecommerceanalytics_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleMarketplaceCommerceAnalytics_GenerateDataSet() {
svc := marketplacecommerceanalytics.New(session.New())
params := &marketplacecommerceanalytics.GenerateDataSetInput{
DataSetPublicationDate: aws.Time(time.Now()), // Required
DataSetType: aws.String("DataSetType"), // Required
DestinationS3BucketName: aws.String("DestinationS3BucketName"), // Required
RoleNameArn: aws.String("RoleNameArn"), // Required
SnsTopicArn: aws.String("SnsTopicArn"), // Required
CustomerDefinedValues: map[string]*string{
"Key": aws.String("OptionalValue"), // Required
// More values...
},
DestinationS3Prefix: aws.String("DestinationS3Prefix"),
}
resp, err := svc.GenerateDataSet(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
|