Skip to content

Commit 0148545

Browse files
author
awstools
committed
feat(client-workspaces-thin-client): This release adds the deviceCreationTags field to CreateEnvironment API input, UpdateEnvironment API input and GetEnvironment API output.
1 parent 1f04cf0 commit 0148545

File tree

6 files changed

+91
-0
lines changed

6 files changed

+91
-0
lines changed

Diff for: clients/client-workspaces-thin-client/src/commands/CreateEnvironmentCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons
6767
* tags: { // TagsMap
6868
* "<keys>": "STRING_VALUE",
6969
* },
70+
* deviceCreationTags: { // DeviceCreationTagsMap
71+
* "<keys>": "STRING_VALUE",
72+
* },
7073
* };
7174
* const command = new CreateEnvironmentCommand(input);
7275
* const response = await client.send(command);

Diff for: clients/client-workspaces-thin-client/src/commands/GetEnvironmentCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentResponse, __M
8181
* // tags: { // TagsMap
8282
* // "<keys>": "STRING_VALUE",
8383
* // },
84+
* // deviceCreationTags: { // DeviceCreationTagsMap
85+
* // "<keys>": "STRING_VALUE",
86+
* // },
8487
* // },
8588
* // };
8689
*

Diff for: clients/client-workspaces-thin-client/src/commands/UpdateEnvironmentCommand.ts

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentRespons
6363
* },
6464
* softwareSetUpdateMode: "USE_LATEST" || "USE_DESIRED",
6565
* desiredSoftwareSetId: "STRING_VALUE",
66+
* deviceCreationTags: { // DeviceCreationTagsMap
67+
* "<keys>": "STRING_VALUE",
68+
* },
6669
* };
6770
* const command = new UpdateEnvironmentCommand(input);
6871
* const response = await client.send(command);

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

+21
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,12 @@ export interface CreateEnvironmentRequest {
259259
* @public
260260
*/
261261
tags?: Record<string, string>;
262+
263+
/**
264+
* <p>A map of the key-value pairs of the tag or tags to assign to the newly created devices for this environment.</p>
265+
* @public
266+
*/
267+
deviceCreationTags?: Record<string, string>;
262268
}
263269

264270
/**
@@ -1127,6 +1133,12 @@ export interface Environment {
11271133
* @public
11281134
*/
11291135
tags?: Record<string, string>;
1136+
1137+
/**
1138+
* <p>"The tag keys and optional values for the newly created devices for this environment."</p>
1139+
* @public
1140+
*/
1141+
deviceCreationTags?: Record<string, string>;
11301142
}
11311143

11321144
/**
@@ -1621,6 +1633,12 @@ export interface UpdateEnvironmentRequest {
16211633
* @public
16221634
*/
16231635
desiredSoftwareSetId?: string;
1636+
1637+
/**
1638+
* <p>A map of the key-value pairs of the tag or tags to assign to the newly created devices for this environment.</p>
1639+
* @public
1640+
*/
1641+
deviceCreationTags?: Record<string, string>;
16241642
}
16251643

16261644
/**
@@ -1664,6 +1682,7 @@ export const CreateEnvironmentRequestFilterSensitiveLog = (obj: CreateEnvironmen
16641682
...(obj.name && { name: SENSITIVE_STRING }),
16651683
...(obj.desktopEndpoint && { desktopEndpoint: SENSITIVE_STRING }),
16661684
...(obj.tags && { tags: SENSITIVE_STRING }),
1685+
...(obj.deviceCreationTags && { deviceCreationTags: SENSITIVE_STRING }),
16671686
});
16681687

16691688
/**
@@ -1708,6 +1727,7 @@ export const EnvironmentFilterSensitiveLog = (obj: Environment): any => ({
17081727
...(obj.name && { name: SENSITIVE_STRING }),
17091728
...(obj.desktopEndpoint && { desktopEndpoint: SENSITIVE_STRING }),
17101729
...(obj.tags && { tags: SENSITIVE_STRING }),
1730+
...(obj.deviceCreationTags && { deviceCreationTags: SENSITIVE_STRING }),
17111731
});
17121732

17131733
/**
@@ -1805,6 +1825,7 @@ export const UpdateEnvironmentRequestFilterSensitiveLog = (obj: UpdateEnvironmen
18051825
...obj,
18061826
...(obj.name && { name: SENSITIVE_STRING }),
18071827
...(obj.desktopEndpoint && { desktopEndpoint: SENSITIVE_STRING }),
1828+
...(obj.deviceCreationTags && { deviceCreationTags: SENSITIVE_STRING }),
18081829
});
18091830

18101831
/**

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

+7
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const se_CreateEnvironmentCommand = async (
8787
desiredSoftwareSetId: [],
8888
desktopArn: [],
8989
desktopEndpoint: [],
90+
deviceCreationTags: (_) => _json(_),
9091
kmsKeyArn: [],
9192
maintenanceWindow: (_) => _json(_),
9293
name: [],
@@ -483,6 +484,7 @@ export const se_UpdateEnvironmentCommand = async (
483484
desiredSoftwareSetId: [],
484485
desktopArn: [],
485486
desktopEndpoint: [],
487+
deviceCreationTags: (_) => _json(_),
486488
maintenanceWindow: (_) => _json(_),
487489
name: [],
488490
softwareSetUpdateMode: [],
@@ -1038,6 +1040,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
10381040

10391041
// se_DayOfWeekList omitted.
10401042

1043+
// se_DeviceCreationTagsMap omitted.
1044+
10411045
// se_MaintenanceWindow omitted.
10421046

10431047
// se_TagsMap omitted.
@@ -1073,6 +1077,8 @@ const de_Device = (output: any, context: __SerdeContext): Device => {
10731077
}) as any;
10741078
};
10751079

1080+
// de_DeviceCreationTagsMap omitted.
1081+
10761082
/**
10771083
* deserializeAws_restJson1DeviceList
10781084
*/
@@ -1120,6 +1126,7 @@ const de_Environment = (output: any, context: __SerdeContext): Environment => {
11201126
desktopArn: __expectString,
11211127
desktopEndpoint: __expectString,
11221128
desktopType: __expectString,
1129+
deviceCreationTags: _json,
11231130
id: __expectString,
11241131
kmsKeyArn: __expectString,
11251132
maintenanceWindow: _json,

Diff for: codegen/sdk-codegen/aws-models/workspaces-thin-client.json

+54
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@
196196
"traits": {
197197
"smithy.api#documentation": "<p>A map of the key-value pairs of the tag or tags to assign to the resource.</p>"
198198
}
199+
},
200+
"deviceCreationTags": {
201+
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagsMap",
202+
"traits": {
203+
"smithy.api#documentation": "<p>A map of the key-value pairs of the tag or tags to assign to the newly created devices for this environment.</p>"
204+
}
199205
}
200206
},
201207
"traits": {
@@ -665,6 +671,42 @@
665671
"smithy.api#documentation": "<p>Describes a thin client device.</p>"
666672
}
667673
},
674+
"com.amazonaws.workspacesthinclient#DeviceCreationTagKey": {
675+
"type": "string",
676+
"traits": {
677+
"smithy.api#length": {
678+
"min": 1,
679+
"max": 128
680+
},
681+
"smithy.api#pattern": "^(?!aws:)[A-Za-z0-9 _=@:.+-/]+$"
682+
}
683+
},
684+
"com.amazonaws.workspacesthinclient#DeviceCreationTagValue": {
685+
"type": "string",
686+
"traits": {
687+
"smithy.api#length": {
688+
"min": 0,
689+
"max": 256
690+
},
691+
"smithy.api#pattern": "^[A-Za-z0-9 _=@:.+-/]+$"
692+
}
693+
},
694+
"com.amazonaws.workspacesthinclient#DeviceCreationTagsMap": {
695+
"type": "map",
696+
"key": {
697+
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagKey"
698+
},
699+
"value": {
700+
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagValue"
701+
},
702+
"traits": {
703+
"smithy.api#length": {
704+
"min": 0,
705+
"max": 50
706+
},
707+
"smithy.api#sensitive": {}
708+
}
709+
},
668710
"com.amazonaws.workspacesthinclient#DeviceId": {
669711
"type": "string",
670712
"traits": {
@@ -950,6 +992,12 @@
950992
"traits": {
951993
"smithy.api#documentation": "<p>The tag keys and optional values for the resource.</p>"
952994
}
995+
},
996+
"deviceCreationTags": {
997+
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagsMap",
998+
"traits": {
999+
"smithy.api#documentation": "<p>\"The tag keys and optional values for the newly created devices for this environment.\"</p>"
1000+
}
9531001
}
9541002
},
9551003
"traits": {
@@ -3167,6 +3215,12 @@
31673215
"traits": {
31683216
"smithy.api#documentation": "<p>The ID of the software set to apply.</p>"
31693217
}
3218+
},
3219+
"deviceCreationTags": {
3220+
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagsMap",
3221+
"traits": {
3222+
"smithy.api#documentation": "<p>A map of the key-value pairs of the tag or tags to assign to the newly created devices for this environment.</p>"
3223+
}
31703224
}
31713225
},
31723226
"traits": {

0 commit comments

Comments
 (0)