Skip to content

Commit ab2c6bb

Browse files
author
awstools
committed
feat(client-appsync): Providing Tagging support for DomainName in AppSync
1 parent 431c0eb commit ab2c6bb

File tree

7 files changed

+52
-0
lines changed

7 files changed

+52
-0
lines changed

Diff for: clients/client-appsync/src/commands/CreateDomainNameCommand.ts

+7
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ export interface CreateDomainNameCommandOutput extends CreateDomainNameResponse,
3939
* domainName: "STRING_VALUE", // required
4040
* certificateArn: "STRING_VALUE", // required
4141
* description: "STRING_VALUE",
42+
* tags: { // TagMap
43+
* "<keys>": "STRING_VALUE",
44+
* },
4245
* };
4346
* const command = new CreateDomainNameCommand(input);
4447
* const response = await client.send(command);
@@ -49,6 +52,10 @@ export interface CreateDomainNameCommandOutput extends CreateDomainNameResponse,
4952
* // certificateArn: "STRING_VALUE",
5053
* // appsyncDomainName: "STRING_VALUE",
5154
* // hostedZoneId: "STRING_VALUE",
55+
* // tags: { // TagMap
56+
* // "<keys>": "STRING_VALUE",
57+
* // },
58+
* // domainNameArn: "STRING_VALUE",
5259
* // },
5360
* // };
5461
*

Diff for: clients/client-appsync/src/commands/GetDomainNameCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export interface GetDomainNameCommandOutput extends GetDomainNameResponse, __Met
4747
* // certificateArn: "STRING_VALUE",
4848
* // appsyncDomainName: "STRING_VALUE",
4949
* // hostedZoneId: "STRING_VALUE",
50+
* // tags: { // TagMap
51+
* // "<keys>": "STRING_VALUE",
52+
* // },
53+
* // domainNameArn: "STRING_VALUE",
5054
* // },
5155
* // };
5256
*

Diff for: clients/client-appsync/src/commands/ListDomainNamesCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ export interface ListDomainNamesCommandOutput extends ListDomainNamesResponse, _
4949
* // certificateArn: "STRING_VALUE",
5050
* // appsyncDomainName: "STRING_VALUE",
5151
* // hostedZoneId: "STRING_VALUE",
52+
* // tags: { // TagMap
53+
* // "<keys>": "STRING_VALUE",
54+
* // },
55+
* // domainNameArn: "STRING_VALUE",
5256
* // },
5357
* // ],
5458
* // nextToken: "STRING_VALUE",

Diff for: clients/client-appsync/src/commands/UpdateDomainNameCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export interface UpdateDomainNameCommandOutput extends UpdateDomainNameResponse,
4848
* // certificateArn: "STRING_VALUE",
4949
* // appsyncDomainName: "STRING_VALUE",
5050
* // hostedZoneId: "STRING_VALUE",
51+
* // tags: { // TagMap
52+
* // "<keys>": "STRING_VALUE",
53+
* // },
54+
* // domainNameArn: "STRING_VALUE",
5155
* // },
5256
* // };
5357
*

Diff for: clients/client-appsync/src/models/models_0.ts

+20
Original file line numberDiff line numberDiff line change
@@ -2359,6 +2359,13 @@ export interface CreateDomainNameRequest {
23592359
* @public
23602360
*/
23612361
description?: string | undefined;
2362+
2363+
/**
2364+
* <p>A map with keys of <code>TagKey</code> objects and values of <code>TagValue</code>
2365+
* objects.</p>
2366+
* @public
2367+
*/
2368+
tags?: Record<string, string> | undefined;
23622369
}
23632370

23642371
/**
@@ -2397,6 +2404,19 @@ export interface DomainNameConfig {
23972404
* @public
23982405
*/
23992406
hostedZoneId?: string | undefined;
2407+
2408+
/**
2409+
* <p>A map with keys of <code>TagKey</code> objects and values of <code>TagValue</code>
2410+
* objects.</p>
2411+
* @public
2412+
*/
2413+
tags?: Record<string, string> | undefined;
2414+
2415+
/**
2416+
* <p>The Amazon Resource Name (ARN) of the domain name.</p>
2417+
* @public
2418+
*/
2419+
domainNameArn?: string | undefined;
24002420
}
24012421

24022422
/**

Diff for: clients/client-appsync/src/protocols/Aws_restJson1.ts

+1
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ export const se_CreateDomainNameCommand = async (
451451
certificateArn: [],
452452
description: [],
453453
domainName: [],
454+
tags: (_) => _json(_),
454455
})
455456
);
456457
b.m("POST").h(headers).b(body);

Diff for: codegen/sdk-codegen/aws-models/appsync.json

+12
Original file line numberDiff line numberDiff line change
@@ -2999,6 +2999,9 @@
29992999
"traits": {
30003000
"smithy.api#documentation": "<p>A description of the <code>DomainName</code>.</p>"
30013001
}
3002+
},
3003+
"tags": {
3004+
"target": "com.amazonaws.appsync#TagMap"
30023005
}
30033006
},
30043007
"traits": {
@@ -4839,6 +4842,15 @@
48394842
"traits": {
48404843
"smithy.api#documentation": "<p>The ID of your Amazon Route 53 hosted zone.</p>"
48414844
}
4845+
},
4846+
"tags": {
4847+
"target": "com.amazonaws.appsync#TagMap"
4848+
},
4849+
"domainNameArn": {
4850+
"target": "com.amazonaws.appsync#String",
4851+
"traits": {
4852+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the domain name.</p>"
4853+
}
48424854
}
48434855
},
48444856
"traits": {

0 commit comments

Comments
 (0)