Skip to content

Commit 43896f5

Browse files
author
awstools
committed
feat(client-dataexchange): Support Tags for AWS Data Exchange resource Assets
1 parent 4fd3187 commit 43896f5

28 files changed

Lines changed: 469 additions & 563 deletions

clients/client-dataexchange/README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,7 @@
66

77
AWS SDK for JavaScript DataExchange Client for Node.js, Browser and React Native.
88

9-
<p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in
10-
the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access
11-
file-based data set in the AWS Cloud.</p>
12-
<p>As a subscriber, you can view and access the data sets that you have an entitlement to
13-
through a subscription. You can use the APIs to download or copy your entitled data sets to
14-
Amazon Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and
15-
machine learning services.</p>
16-
<p>As a provider, you can create and manage your data sets that you would like to publish
17-
to a product. Being able to package and provide your data sets into products requires a few
18-
steps to determine eligibility. For more information, visit the <i>AWS Data Exchange
19-
User Guide</i>.</p>
20-
<p>A data set is a collection of data that can be changed or updated over time. Data sets
21-
can be updated using revisions, which represent a new version or incremental change to a
22-
data set. A revision contains one or more assets. An asset in AWS Data Exchange is a piece
23-
of data that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS
24-
Lake Formation data permission, or Amazon S3 data access. The asset can be a structured
25-
data file, an image file, or some other data file. Jobs are asynchronous import or export
26-
operations used to create or copy assets.</p>
9+
<p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access file-based data set in the AWS Cloud.</p> <p>As a subscriber, you can view and access the data sets that you have an entitlement to through a subscription. You can use the APIs to download or copy your entitled data sets to Amazon Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and machine learning services.</p> <p>As a provider, you can create and manage your data sets that you would like to publish to a product. Being able to package and provide your data sets into products requires a few steps to determine eligibility. For more information, visit the <i>AWS Data Exchange User Guide</i>.</p> <p>A data set is a collection of data that can be changed or updated over time. Data sets can be updated using revisions, which represent a new version or incremental change to a data set. A revision contains one or more assets. An asset in AWS Data Exchange is a piece of data that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS Lake Formation data permission, or Amazon S3 data access. The asset can be a structured data file, an image file, or some other data file. Jobs are asynchronous import or export operations used to create or copy assets.</p>
2710

2811
## Installing
2912

clients/client-dataexchange/src/DataExchange.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -935,24 +935,7 @@ export interface DataExchange {
935935
}
936936

937937
/**
938-
* <p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in
939-
* the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access
940-
* file-based data set in the AWS Cloud.</p>
941-
* <p>As a subscriber, you can view and access the data sets that you have an entitlement to
942-
* through a subscription. You can use the APIs to download or copy your entitled data sets to
943-
* Amazon Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and
944-
* machine learning services.</p>
945-
* <p>As a provider, you can create and manage your data sets that you would like to publish
946-
* to a product. Being able to package and provide your data sets into products requires a few
947-
* steps to determine eligibility. For more information, visit the <i>AWS Data Exchange
948-
* User Guide</i>.</p>
949-
* <p>A data set is a collection of data that can be changed or updated over time. Data sets
950-
* can be updated using revisions, which represent a new version or incremental change to a
951-
* data set. A revision contains one or more assets. An asset in AWS Data Exchange is a piece
952-
* of data that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS
953-
* Lake Formation data permission, or Amazon S3 data access. The asset can be a structured
954-
* data file, an image file, or some other data file. Jobs are asynchronous import or export
955-
* operations used to create or copy assets.</p>
938+
* <p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access file-based data set in the AWS Cloud.</p> <p>As a subscriber, you can view and access the data sets that you have an entitlement to through a subscription. You can use the APIs to download or copy your entitled data sets to Amazon Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and machine learning services.</p> <p>As a provider, you can create and manage your data sets that you would like to publish to a product. Being able to package and provide your data sets into products requires a few steps to determine eligibility. For more information, visit the <i>AWS Data Exchange User Guide</i>.</p> <p>A data set is a collection of data that can be changed or updated over time. Data sets can be updated using revisions, which represent a new version or incremental change to a data set. A revision contains one or more assets. An asset in AWS Data Exchange is a piece of data that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS Lake Formation data permission, or Amazon S3 data access. The asset can be a structured data file, an image file, or some other data file. Jobs are asynchronous import or export operations used to create or copy assets.</p>
956939
* @public
957940
*/
958941
export class DataExchange extends DataExchangeClient implements DataExchange {}

clients/client-dataexchange/src/DataExchangeClient.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -411,24 +411,7 @@ export type DataExchangeClientResolvedConfigType = __SmithyResolvedConfiguration
411411
export interface DataExchangeClientResolvedConfig extends DataExchangeClientResolvedConfigType {}
412412

413413
/**
414-
* <p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in
415-
* the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access
416-
* file-based data set in the AWS Cloud.</p>
417-
* <p>As a subscriber, you can view and access the data sets that you have an entitlement to
418-
* through a subscription. You can use the APIs to download or copy your entitled data sets to
419-
* Amazon Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and
420-
* machine learning services.</p>
421-
* <p>As a provider, you can create and manage your data sets that you would like to publish
422-
* to a product. Being able to package and provide your data sets into products requires a few
423-
* steps to determine eligibility. For more information, visit the <i>AWS Data Exchange
424-
* User Guide</i>.</p>
425-
* <p>A data set is a collection of data that can be changed or updated over time. Data sets
426-
* can be updated using revisions, which represent a new version or incremental change to a
427-
* data set. A revision contains one or more assets. An asset in AWS Data Exchange is a piece
428-
* of data that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS
429-
* Lake Formation data permission, or Amazon S3 data access. The asset can be a structured
430-
* data file, an image file, or some other data file. Jobs are asynchronous import or export
431-
* operations used to create or copy assets.</p>
414+
* <p>AWS Data Exchange is a service that makes it easy for AWS customers to exchange data in the cloud. You can use the AWS Data Exchange APIs to create, update, manage, and access file-based data set in the AWS Cloud.</p> <p>As a subscriber, you can view and access the data sets that you have an entitlement to through a subscription. You can use the APIs to download or copy your entitled data sets to Amazon Simple Storage Service (Amazon S3) for use across a variety of AWS analytics and machine learning services.</p> <p>As a provider, you can create and manage your data sets that you would like to publish to a product. Being able to package and provide your data sets into products requires a few steps to determine eligibility. For more information, visit the <i>AWS Data Exchange User Guide</i>.</p> <p>A data set is a collection of data that can be changed or updated over time. Data sets can be updated using revisions, which represent a new version or incremental change to a data set. A revision contains one or more assets. An asset in AWS Data Exchange is a piece of data that can be stored as an Amazon S3 object, Redshift datashare, API Gateway API, AWS Lake Formation data permission, or Amazon S3 data access. The asset can be a structured data file, an image file, or some other data file. Jobs are asynchronous import or export operations used to create or copy assets.</p>
432415
* @public
433416
*/
434417
export class DataExchangeClient extends __Client<

clients/client-dataexchange/src/commands/AcceptDataGrantCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ export interface AcceptDataGrantCommandOutput extends AcceptDataGrantResponse, _
6969
* <p>Access to the resource is denied.</p>
7070
*
7171
* @throws {@link ConflictException} (client fault)
72-
* <p>The request couldn't be completed because it conflicted with the current state of the
73-
* resource.</p>
72+
* <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
7473
*
7574
* @throws {@link InternalServerException} (server fault)
7675
* <p>An exception occurred with the service.</p>

clients/client-dataexchange/src/commands/CancelJobCommand.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export interface CancelJobCommandInput extends CancelJobRequest {}
2727
export interface CancelJobCommandOutput extends __MetadataBearer {}
2828

2929
/**
30-
* <p>This operation cancels a job. Jobs can be cancelled only when they are in the WAITING
31-
* state.</p>
30+
* <p>This operation cancels a job. Jobs can be cancelled only when they are in the WAITING state.</p>
3231
* @example
3332
* Use a bare-bones client and the command you need to make an API call.
3433
* ```javascript
@@ -53,8 +52,7 @@ export interface CancelJobCommandOutput extends __MetadataBearer {}
5352
* @see {@link DataExchangeClientResolvedConfig | config} for DataExchangeClient's `config` shape.
5453
*
5554
* @throws {@link ConflictException} (client fault)
56-
* <p>The request couldn't be completed because it conflicted with the current state of the
57-
* resource.</p>
55+
* <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
5856
*
5957
* @throws {@link InternalServerException} (server fault)
6058
* <p>An exception occurred with the service.</p>

clients/client-dataexchange/src/commands/CreateJobCommand.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ export interface CreateJobCommandOutput extends CreateJobResponse, __MetadataBea
3737
* const config = {}; // type is DataExchangeClientConfig
3838
* const client = new DataExchangeClient(config);
3939
* const input = { // CreateJobRequest
40+
* AssetConfiguration: { // AssetConfiguration
41+
* Tags: [ // ListOfTag
42+
* { // Tag
43+
* Key: "STRING_VALUE", // required
44+
* Value: "STRING_VALUE", // required
45+
* },
46+
* ],
47+
* },
4048
* Details: { // RequestDetails
4149
* ExportAssetToSignedUrl: { // ExportAssetToSignedUrlRequestDetails
4250
* AssetId: "STRING_VALUE", // required
@@ -165,6 +173,14 @@ export interface CreateJobCommandOutput extends CreateJobResponse, __MetadataBea
165173
* const response = await client.send(command);
166174
* // { // CreateJobResponse
167175
* // Arn: "STRING_VALUE",
176+
* // AssetConfiguration: { // AssetConfiguration
177+
* // Tags: [ // ListOfTag
178+
* // { // Tag
179+
* // Key: "STRING_VALUE", // required
180+
* // Value: "STRING_VALUE", // required
181+
* // },
182+
* // ],
183+
* // },
168184
* // CreatedAt: new Date("TIMESTAMP"),
169185
* // Details: { // ResponseDetails
170186
* // ExportAssetToSignedUrl: { // ExportAssetToSignedUrlResponseDetails
@@ -334,8 +350,7 @@ export interface CreateJobCommandOutput extends CreateJobResponse, __MetadataBea
334350
* <p>Access to the resource is denied.</p>
335351
*
336352
* @throws {@link ConflictException} (client fault)
337-
* <p>The request couldn't be completed because it conflicted with the current state of the
338-
* resource.</p>
353+
* <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
339354
*
340355
* @throws {@link InternalServerException} (server fault)
341356
* <p>An exception occurred with the service.</p>

clients/client-dataexchange/src/commands/DeleteAssetCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ export interface DeleteAssetCommandOutput extends __MetadataBearer {}
5757
* <p>Access to the resource is denied.</p>
5858
*
5959
* @throws {@link ConflictException} (client fault)
60-
* <p>The request couldn't be completed because it conflicted with the current state of the
61-
* resource.</p>
60+
* <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
6261
*
6362
* @throws {@link InternalServerException} (server fault)
6463
* <p>An exception occurred with the service.</p>

clients/client-dataexchange/src/commands/DeleteDataSetCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ export interface DeleteDataSetCommandOutput extends __MetadataBearer {}
5555
* <p>Access to the resource is denied.</p>
5656
*
5757
* @throws {@link ConflictException} (client fault)
58-
* <p>The request couldn't be completed because it conflicted with the current state of the
59-
* resource.</p>
58+
* <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
6059
*
6160
* @throws {@link InternalServerException} (server fault)
6261
* <p>An exception occurred with the service.</p>

clients/client-dataexchange/src/commands/DeleteRevisionCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ export interface DeleteRevisionCommandOutput extends __MetadataBearer {}
5656
* <p>Access to the resource is denied.</p>
5757
*
5858
* @throws {@link ConflictException} (client fault)
59-
* <p>The request couldn't be completed because it conflicted with the current state of the
60-
* resource.</p>
59+
* <p>The request couldn't be completed because it conflicted with the current state of the resource.</p>
6160
*
6261
* @throws {@link InternalServerException} (server fault)
6362
* <p>An exception occurred with the service.</p>

clients/client-dataexchange/src/commands/GetAssetCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ export interface GetAssetCommandOutput extends GetAssetResponse, __MetadataBeare
122122
* // Name: "STRING_VALUE",
123123
* // RevisionId: "STRING_VALUE",
124124
* // SourceId: "STRING_VALUE",
125+
* // Tags: { // MapOf__string
126+
* // "<keys>": "STRING_VALUE",
127+
* // },
125128
* // UpdatedAt: new Date("TIMESTAMP"),
126129
* // };
127130
*

0 commit comments

Comments
 (0)