Skip to content

Commit 9b11c35

Browse files
author
awstools
committed
feat(client-guardduty): Include tags filed in CreatePublishingDestinationRequest and DescribePublishingDestinationResponse.
1 parent 2b4fb80 commit 9b11c35

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

clients/client-guardduty/src/commands/CreatePublishingDestinationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export interface CreatePublishingDestinationCommandOutput
5151
* KmsKeyArn: "STRING_VALUE",
5252
* },
5353
* ClientToken: "STRING_VALUE",
54+
* Tags: { // TagMap
55+
* "<keys>": "STRING_VALUE",
56+
* },
5457
* };
5558
* const command = new CreatePublishingDestinationCommand(input);
5659
* const response = await client.send(command);

clients/client-guardduty/src/commands/DescribePublishingDestinationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export interface DescribePublishingDestinationCommandOutput
5858
* // DestinationArn: "STRING_VALUE",
5959
* // KmsKeyArn: "STRING_VALUE",
6060
* // },
61+
* // Tags: { // TagMap
62+
* // "<keys>": "STRING_VALUE",
63+
* // },
6164
* // };
6265
*
6366
* ```

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3466,6 +3466,12 @@ export interface CreatePublishingDestinationRequest {
34663466
* @public
34673467
*/
34683468
ClientToken?: string | undefined;
3469+
3470+
/**
3471+
* <p>The tags to be added to a new publishing destination resource.</p>
3472+
* @public
3473+
*/
3474+
Tags?: Record<string, string> | undefined;
34693475
}
34703476

34713477
/**
@@ -5057,6 +5063,12 @@ export interface DescribePublishingDestinationResponse {
50575063
* @public
50585064
*/
50595065
DestinationProperties: DestinationProperties | undefined;
5066+
5067+
/**
5068+
* <p>The tags of the publishing destination resource.</p>
5069+
* @public
5070+
*/
5071+
Tags?: Record<string, string> | undefined;
50605072
}
50615073

50625074
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ export const se_CreatePublishingDestinationCommand = async (
715715
clientToken: [true, (_) => _ ?? generateIdempotencyToken(), `ClientToken`],
716716
destinationProperties: [, (_) => se_DestinationProperties(_, context), `DestinationProperties`],
717717
destinationType: [, , `DestinationType`],
718+
tags: [, (_) => _json(_), `Tags`],
718719
})
719720
);
720721
b.m("POST").h(headers).b(body);
@@ -2837,6 +2838,7 @@ export const de_DescribePublishingDestinationCommand = async (
28372838
DestinationType: [, __expectString, `destinationType`],
28382839
PublishingFailureStartTimestamp: [, __expectLong, `publishingFailureStartTimestamp`],
28392840
Status: [, __expectString, `status`],
2841+
Tags: [, _json, `tags`],
28402842
});
28412843
Object.assign(contents, doc);
28422844
return contents;

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,6 +2626,13 @@
26262626
"smithy.api#idempotencyToken": {},
26272627
"smithy.api#jsonName": "clientToken"
26282628
}
2629+
},
2630+
"Tags": {
2631+
"target": "com.amazonaws.guardduty#TagMap",
2632+
"traits": {
2633+
"smithy.api#documentation": "<p>The tags to be added to a new publishing destination resource.</p>",
2634+
"smithy.api#jsonName": "tags"
2635+
}
26292636
}
26302637
},
26312638
"traits": {
@@ -4384,6 +4391,13 @@
43844391
"smithy.api#jsonName": "destinationProperties",
43854392
"smithy.api#required": {}
43864393
}
4394+
},
4395+
"Tags": {
4396+
"target": "com.amazonaws.guardduty#TagMap",
4397+
"traits": {
4398+
"smithy.api#documentation": "<p>The tags of the publishing destination resource.</p>",
4399+
"smithy.api#jsonName": "tags"
4400+
}
43874401
}
43884402
},
43894403
"traits": {

0 commit comments

Comments
 (0)