Skip to content

Commit

Permalink
feat(client-workspaces-thin-client): This release adds the deviceCrea…
Browse files Browse the repository at this point in the history
…tionTags field to CreateEnvironment API input, UpdateEnvironment API input and GetEnvironment API output.
  • Loading branch information
awstools committed Jun 25, 2024
1 parent 1f04cf0 commit 0148545
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons
* tags: { // TagsMap
* "<keys>": "STRING_VALUE",
* },
* deviceCreationTags: { // DeviceCreationTagsMap
* "<keys>": "STRING_VALUE",
* },
* };
* const command = new CreateEnvironmentCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentResponse, __M
* // tags: { // TagsMap
* // "<keys>": "STRING_VALUE",
* // },
* // deviceCreationTags: { // DeviceCreationTagsMap
* // "<keys>": "STRING_VALUE",
* // },
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentRespons
* },
* softwareSetUpdateMode: "USE_LATEST" || "USE_DESIRED",
* desiredSoftwareSetId: "STRING_VALUE",
* deviceCreationTags: { // DeviceCreationTagsMap
* "<keys>": "STRING_VALUE",
* },
* };
* const command = new UpdateEnvironmentCommand(input);
* const response = await client.send(command);
Expand Down
21 changes: 21 additions & 0 deletions clients/client-workspaces-thin-client/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ export interface CreateEnvironmentRequest {
* @public
*/
tags?: Record<string, string>;

/**
* <p>A map of the key-value pairs of the tag or tags to assign to the newly created devices for this environment.</p>
* @public
*/
deviceCreationTags?: Record<string, string>;
}

/**
Expand Down Expand Up @@ -1127,6 +1133,12 @@ export interface Environment {
* @public
*/
tags?: Record<string, string>;

/**
* <p>"The tag keys and optional values for the newly created devices for this environment."</p>
* @public
*/
deviceCreationTags?: Record<string, string>;
}

/**
Expand Down Expand Up @@ -1621,6 +1633,12 @@ export interface UpdateEnvironmentRequest {
* @public
*/
desiredSoftwareSetId?: string;

/**
* <p>A map of the key-value pairs of the tag or tags to assign to the newly created devices for this environment.</p>
* @public
*/
deviceCreationTags?: Record<string, string>;
}

/**
Expand Down Expand Up @@ -1664,6 +1682,7 @@ export const CreateEnvironmentRequestFilterSensitiveLog = (obj: CreateEnvironmen
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.desktopEndpoint && { desktopEndpoint: SENSITIVE_STRING }),
...(obj.tags && { tags: SENSITIVE_STRING }),
...(obj.deviceCreationTags && { deviceCreationTags: SENSITIVE_STRING }),
});

/**
Expand Down Expand Up @@ -1708,6 +1727,7 @@ export const EnvironmentFilterSensitiveLog = (obj: Environment): any => ({
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.desktopEndpoint && { desktopEndpoint: SENSITIVE_STRING }),
...(obj.tags && { tags: SENSITIVE_STRING }),
...(obj.deviceCreationTags && { deviceCreationTags: SENSITIVE_STRING }),
});

/**
Expand Down Expand Up @@ -1805,6 +1825,7 @@ export const UpdateEnvironmentRequestFilterSensitiveLog = (obj: UpdateEnvironmen
...obj,
...(obj.name && { name: SENSITIVE_STRING }),
...(obj.desktopEndpoint && { desktopEndpoint: SENSITIVE_STRING }),
...(obj.deviceCreationTags && { deviceCreationTags: SENSITIVE_STRING }),
});

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export const se_CreateEnvironmentCommand = async (
desiredSoftwareSetId: [],
desktopArn: [],
desktopEndpoint: [],
deviceCreationTags: (_) => _json(_),
kmsKeyArn: [],
maintenanceWindow: (_) => _json(_),
name: [],
Expand Down Expand Up @@ -483,6 +484,7 @@ export const se_UpdateEnvironmentCommand = async (
desiredSoftwareSetId: [],
desktopArn: [],
desktopEndpoint: [],
deviceCreationTags: (_) => _json(_),
maintenanceWindow: (_) => _json(_),
name: [],
softwareSetUpdateMode: [],
Expand Down Expand Up @@ -1038,6 +1040,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont

// se_DayOfWeekList omitted.

// se_DeviceCreationTagsMap omitted.

// se_MaintenanceWindow omitted.

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

// de_DeviceCreationTagsMap omitted.

/**
* deserializeAws_restJson1DeviceList
*/
Expand Down Expand Up @@ -1120,6 +1126,7 @@ const de_Environment = (output: any, context: __SerdeContext): Environment => {
desktopArn: __expectString,
desktopEndpoint: __expectString,
desktopType: __expectString,
deviceCreationTags: _json,
id: __expectString,
kmsKeyArn: __expectString,
maintenanceWindow: _json,
Expand Down
54 changes: 54 additions & 0 deletions codegen/sdk-codegen/aws-models/workspaces-thin-client.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@
"traits": {
"smithy.api#documentation": "<p>A map of the key-value pairs of the tag or tags to assign to the resource.</p>"
}
},
"deviceCreationTags": {
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagsMap",
"traits": {
"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>"
}
}
},
"traits": {
Expand Down Expand Up @@ -665,6 +671,42 @@
"smithy.api#documentation": "<p>Describes a thin client device.</p>"
}
},
"com.amazonaws.workspacesthinclient#DeviceCreationTagKey": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 128
},
"smithy.api#pattern": "^(?!aws:)[A-Za-z0-9 _=@:.+-/]+$"
}
},
"com.amazonaws.workspacesthinclient#DeviceCreationTagValue": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 0,
"max": 256
},
"smithy.api#pattern": "^[A-Za-z0-9 _=@:.+-/]+$"
}
},
"com.amazonaws.workspacesthinclient#DeviceCreationTagsMap": {
"type": "map",
"key": {
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagKey"
},
"value": {
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagValue"
},
"traits": {
"smithy.api#length": {
"min": 0,
"max": 50
},
"smithy.api#sensitive": {}
}
},
"com.amazonaws.workspacesthinclient#DeviceId": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -950,6 +992,12 @@
"traits": {
"smithy.api#documentation": "<p>The tag keys and optional values for the resource.</p>"
}
},
"deviceCreationTags": {
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagsMap",
"traits": {
"smithy.api#documentation": "<p>\"The tag keys and optional values for the newly created devices for this environment.\"</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -3167,6 +3215,12 @@
"traits": {
"smithy.api#documentation": "<p>The ID of the software set to apply.</p>"
}
},
"deviceCreationTags": {
"target": "com.amazonaws.workspacesthinclient#DeviceCreationTagsMap",
"traits": {
"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>"
}
}
},
"traits": {
Expand Down

0 comments on commit 0148545

Please sign in to comment.