Skip to content

Commit 0e347c5

Browse files
author
awstools
committed
feat(client-dataexchange): This release adds Tag support for Event Action resource, through which customers can create event actions with Tags and retrieve event actions with Tags.
1 parent cd1e9a0 commit 0e347c5

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export interface CreateEventActionCommandOutput extends CreateEventActionRespons
5353
* DataSetId: "STRING_VALUE", // required
5454
* },
5555
* },
56+
* Tags: { // MapOf__string
57+
* "<keys>": "STRING_VALUE",
58+
* },
5659
* };
5760
* const command = new CreateEventActionCommand(input);
5861
* const response = await client.send(command);
@@ -77,6 +80,9 @@ export interface CreateEventActionCommandOutput extends CreateEventActionRespons
7780
* // },
7881
* // },
7982
* // Id: "STRING_VALUE",
83+
* // Tags: { // MapOf__string
84+
* // "<keys>": "STRING_VALUE",
85+
* // },
8086
* // UpdatedAt: new Date("TIMESTAMP"),
8187
* // };
8288
*

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ export interface GetEventActionCommandOutput extends GetEventActionResponse, __M
6161
* // },
6262
* // },
6363
* // Id: "STRING_VALUE",
64+
* // Tags: { // MapOf__string
65+
* // "<keys>": "STRING_VALUE",
66+
* // },
6467
* // UpdatedAt: new Date("TIMESTAMP"),
6568
* // };
6669
*

clients/client-dataexchange/src/models/models_0.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,12 @@ export interface CreateEventActionRequest {
13991399
* @public
14001400
*/
14011401
Event: Event | undefined;
1402+
1403+
/**
1404+
* <p>Key-value pairs that you can associate with the event action.</p>
1405+
* @public
1406+
*/
1407+
Tags?: Record<string, string> | undefined;
14021408
}
14031409

14041410
/**
@@ -1435,6 +1441,12 @@ export interface CreateEventActionResponse {
14351441
*/
14361442
Id?: string | undefined;
14371443

1444+
/**
1445+
* <p>The tags for the event action.</p>
1446+
* @public
1447+
*/
1448+
Tags?: Record<string, string> | undefined;
1449+
14381450
/**
14391451
* <p>The date and time that the event action was last updated, in ISO 8601 format.</p>
14401452
* @public
@@ -3046,6 +3058,12 @@ export interface GetEventActionResponse {
30463058
*/
30473059
Id?: string | undefined;
30483060

3061+
/**
3062+
* <p>The tags for the event action.</p>
3063+
* @public
3064+
*/
3065+
Tags?: Record<string, string> | undefined;
3066+
30493067
/**
30503068
* <p>The date and time that the event action was last updated, in ISO 8601 format.</p>
30513069
* @public

clients/client-dataexchange/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ export const se_CreateEventActionCommand = async (
248248
take(input, {
249249
Action: (_) => _json(_),
250250
Event: (_) => _json(_),
251+
Tags: (_) => _json(_),
251252
})
252253
);
253254
b.m("POST").h(headers).b(body);
@@ -1036,6 +1037,7 @@ export const de_CreateEventActionCommand = async (
10361037
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
10371038
Event: _json,
10381039
Id: __expectString,
1040+
Tags: _json,
10391041
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
10401042
});
10411043
Object.assign(contents, doc);
@@ -1303,6 +1305,7 @@ export const de_GetEventActionCommand = async (
13031305
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
13041306
Event: _json,
13051307
Id: __expectString,
1308+
Tags: _json,
13061309
UpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
13071310
});
13081311
Object.assign(contents, doc);

codegen/sdk-codegen/aws-models/dataexchange.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,12 @@
10241024
"smithy.api#documentation": "<p>What occurs to start an action.</p>",
10251025
"smithy.api#required": {}
10261026
}
1027+
},
1028+
"Tags": {
1029+
"target": "com.amazonaws.dataexchange#MapOf__string",
1030+
"traits": {
1031+
"smithy.api#documentation": "<p>Key-value pairs that you can associate with the event action.</p>"
1032+
}
10271033
}
10281034
}
10291035
},
@@ -1060,6 +1066,12 @@
10601066
"smithy.api#documentation": "<p>The unique identifier for the event action.</p>"
10611067
}
10621068
},
1069+
"Tags": {
1070+
"target": "com.amazonaws.dataexchange#MapOf__string",
1071+
"traits": {
1072+
"smithy.api#documentation": "<p>The tags for the event action.</p>"
1073+
}
1074+
},
10631075
"UpdatedAt": {
10641076
"target": "com.amazonaws.dataexchange#Timestamp",
10651077
"traits": {
@@ -3623,6 +3635,12 @@
36233635
"smithy.api#documentation": "<p>The unique identifier for the event action.</p>"
36243636
}
36253637
},
3638+
"Tags": {
3639+
"target": "com.amazonaws.dataexchange#MapOf__string",
3640+
"traits": {
3641+
"smithy.api#documentation": "<p>The tags for the event action.</p>"
3642+
}
3643+
},
36263644
"UpdatedAt": {
36273645
"target": "com.amazonaws.dataexchange#Timestamp",
36283646
"traits": {

0 commit comments

Comments
 (0)