Skip to content

Commit

Permalink
feat(client-marketplace-commerce-analytics): The StartSupportDataExpo…
Browse files Browse the repository at this point in the history
…rt operation has been deprecated as part of the Product Support Connection deprecation. As of December 2022, Product Support Connection is no longer supported.
  • Loading branch information
awstools committed Oct 23, 2023
1 parent 4f9715e commit 2ec8d4f
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export interface StartSupportDataExportCommandOutput extends StartSupportDataExp

/**
* @public
* Given a data set type and a from date, asynchronously publishes the requested customer support data
* @deprecated
*
* <i>This target has been deprecated.</i> 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,27 @@ import { RuleSetObject } from "@smithy/types";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/marketplace-commerce-analytics.json */

const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[{[t]:"Region"}];
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]},{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://marketplacecommerceanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://marketplacecommerceanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"Invalid Configuration: Missing Region",type:c}]};
const s="required",
t="fn",
u="argv",
v="ref";
const a=true,
b="isSet",
c="booleanEquals",
d="error",
e="endpoint",
f="tree",
g="PartitionResult",
h={[s]:false,"type":"String"},
i={[s]:true,"default":false,"type":"Boolean"},
j={[v]:"Endpoint"},
k={[t]:c,[u]:[{[v]:"UseFIPS"},true]},
l={[t]:c,[u]:[{[v]:"UseDualStack"},true]},
m={},
n={[t]:"getAttr",[u]:[{[v]:g},"supportsFIPS"]},
o={[t]:c,[u]:[true,{[t]:"getAttr",[u]:[{[v]:g},"supportsDualStack"]}]},
p=[k],
q=[l],
r=[{[v]:"Region"}];
const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[t]:b,[u]:[j]}],rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:j,properties:m,headers:m},type:e}],type:f},{conditions:[{[t]:b,[u]:r}],rules:[{conditions:[{[t]:"aws.partition",[u]:r,assign:g}],rules:[{conditions:[k,l],rules:[{conditions:[{[t]:c,[u]:[a,n]},o],rules:[{endpoint:{url:"https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:p,rules:[{conditions:[{[t]:c,[u]:[n,a]}],rules:[{endpoint:{url:"https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:q,rules:[{conditions:[o],rules:[{endpoint:{url:"https://marketplacecommerceanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://marketplacecommerceanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]};
export const ruleSet: RuleSetObject = _data;
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,15 @@ export type SupportDataSetType = (typeof SupportDataSetType)[keyof typeof Suppor

/**
* @public
* Container for the parameters to the StartSupportDataExport operation.
* @deprecated
*
* <i>This target has been deprecated.</i> Container for the parameters to the StartSupportDataExport operation.
*/
export interface StartSupportDataExportRequest {
/**
* @public
* <p>
* Specifies the data set type to be written to the output csv file. The data set types customer_support_contacts_data and
* <i>This target has been deprecated.</i> 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.
Expand All @@ -275,26 +277,26 @@ export interface StartSupportDataExportRequest {

/**
* @public
* The start date from which to retrieve the data set in UTC. This parameter only affects the customer_support_contacts_data data set type.
* <i>This target has been deprecated.</i> The start date from which to retrieve the data set in UTC. This parameter only affects the customer_support_contacts_data data set type.
*/
fromDate: Date | undefined;

/**
* @public
* The Amazon Resource Name (ARN) of the Role with an attached permissions policy to interact with the provided
* <i>This target has been deprecated.</i> The Amazon Resource Name (ARN) of the Role with an attached permissions policy to interact with the provided
* AWS services.
*/
roleNameArn: string | undefined;

/**
* @public
* The name (friendly name, not ARN) of the destination S3 bucket.
* <i>This target has been deprecated.</i> The name (friendly name, not ARN) of the destination S3 bucket.
*/
destinationS3BucketName: string | undefined;

/**
* @public
* (Optional) The desired S3 prefix for the published data set, similar to a directory path in standard file systems.
* <i>This target has been deprecated.</i> (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.
Expand All @@ -304,27 +306,29 @@ export interface StartSupportDataExportRequest {

/**
* @public
* Amazon Resource Name (ARN) for the SNS Topic that will be notified when the data set has been published or if an
* <i>This target has been deprecated.</i> 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.
*/
snsTopicArn: string | undefined;

/**
* @public
* (Optional) Key-value pairs which will be returned, unmodified, in the
* <i>This target has been deprecated.</i> (Optional) Key-value pairs which will be returned, unmodified, in the
* Amazon SNS notification message and the data set metadata file.
*/
customerDefinedValues?: Record<string, string>;
}

/**
* @public
* Container for the result of the StartSupportDataExport operation.
* @deprecated
*
* <i>This target has been deprecated.</i> Container for the result of the StartSupportDataExport operation.
*/
export interface StartSupportDataExportResult {
/**
* @public
* A unique identifier representing a specific request to the StartSupportDataExport operation. This identifier can be
* <i>This target has been deprecated.</i> 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.
*/
dataSetRequestId?: string;
Expand Down
Loading

0 comments on commit 2ec8d4f

Please sign in to comment.