From 62b4da59269131ec0e541b93bd46fcd6e8a1f4fd Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 20 Dec 2023 19:31:07 +0000 Subject: [PATCH] feat(client-appstream): This release introduces configurable clipboard, allowing admins to specify the maximum length of text that can be copied by the users from their device to the remote session and vice-versa. --- .../src/commands/CreateStackCommand.ts | 5 +++++ .../src/commands/DescribeStacksCommand.ts | 1 + .../src/commands/UpdateStackCommand.ts | 2 ++ clients/client-appstream/src/models/models_0.ts | 10 ++++++++++ clients/client-appstream/src/protocols/Aws_json1_1.ts | 3 +++ 5 files changed, 21 insertions(+) diff --git a/clients/client-appstream/src/commands/CreateStackCommand.ts b/clients/client-appstream/src/commands/CreateStackCommand.ts index e6830e157b7c..aa8d3389507f 100644 --- a/clients/client-appstream/src/commands/CreateStackCommand.ts +++ b/clients/client-appstream/src/commands/CreateStackCommand.ts @@ -63,6 +63,7 @@ export interface CreateStackCommandOutput extends CreateStackResult, __MetadataB * { // UserSetting * Action: "CLIPBOARD_COPY_FROM_LOCAL_DEVICE" || "CLIPBOARD_COPY_TO_LOCAL_DEVICE" || "FILE_UPLOAD" || "FILE_DOWNLOAD" || "PRINTING_TO_LOCAL_DEVICE" || "DOMAIN_PASSWORD_SIGNIN" || "DOMAIN_SMART_CARD_SIGNIN", // required * Permission: "ENABLED" || "DISABLED", // required + * MaximumLength: Number("int"), * }, * ], * ApplicationSettings: { // ApplicationSettings @@ -115,6 +116,7 @@ export interface CreateStackCommandOutput extends CreateStackResult, __MetadataB * // { // UserSetting * // Action: "CLIPBOARD_COPY_FROM_LOCAL_DEVICE" || "CLIPBOARD_COPY_TO_LOCAL_DEVICE" || "FILE_UPLOAD" || "FILE_DOWNLOAD" || "PRINTING_TO_LOCAL_DEVICE" || "DOMAIN_PASSWORD_SIGNIN" || "DOMAIN_SMART_CARD_SIGNIN", // required * // Permission: "ENABLED" || "DISABLED", // required + * // MaximumLength: Number("int"), * // }, * // ], * // ApplicationSettings: { // ApplicationSettingsResponse @@ -160,6 +162,9 @@ export interface CreateStackCommandOutput extends CreateStackResult, __MetadataB * @throws {@link LimitExceededException} (client fault) *

The requested limit exceeds the permitted limit for an account.

* + * @throws {@link OperationNotPermittedException} (client fault) + *

The attempted operation is not permitted.

+ * * @throws {@link ResourceAlreadyExistsException} (client fault) *

The specified resource already exists.

* diff --git a/clients/client-appstream/src/commands/DescribeStacksCommand.ts b/clients/client-appstream/src/commands/DescribeStacksCommand.ts index 038eb4285065..a3c9f3878064 100644 --- a/clients/client-appstream/src/commands/DescribeStacksCommand.ts +++ b/clients/client-appstream/src/commands/DescribeStacksCommand.ts @@ -81,6 +81,7 @@ export interface DescribeStacksCommandOutput extends DescribeStacksResult, __Met * // { // UserSetting * // Action: "CLIPBOARD_COPY_FROM_LOCAL_DEVICE" || "CLIPBOARD_COPY_TO_LOCAL_DEVICE" || "FILE_UPLOAD" || "FILE_DOWNLOAD" || "PRINTING_TO_LOCAL_DEVICE" || "DOMAIN_PASSWORD_SIGNIN" || "DOMAIN_SMART_CARD_SIGNIN", // required * // Permission: "ENABLED" || "DISABLED", // required + * // MaximumLength: Number("int"), * // }, * // ], * // ApplicationSettings: { // ApplicationSettingsResponse diff --git a/clients/client-appstream/src/commands/UpdateStackCommand.ts b/clients/client-appstream/src/commands/UpdateStackCommand.ts index 05eb8145e806..be4cc6db65e6 100644 --- a/clients/client-appstream/src/commands/UpdateStackCommand.ts +++ b/clients/client-appstream/src/commands/UpdateStackCommand.ts @@ -67,6 +67,7 @@ export interface UpdateStackCommandOutput extends UpdateStackResult, __MetadataB * { // UserSetting * Action: "CLIPBOARD_COPY_FROM_LOCAL_DEVICE" || "CLIPBOARD_COPY_TO_LOCAL_DEVICE" || "FILE_UPLOAD" || "FILE_DOWNLOAD" || "PRINTING_TO_LOCAL_DEVICE" || "DOMAIN_PASSWORD_SIGNIN" || "DOMAIN_SMART_CARD_SIGNIN", // required * Permission: "ENABLED" || "DISABLED", // required + * MaximumLength: Number("int"), * }, * ], * ApplicationSettings: { // ApplicationSettings @@ -116,6 +117,7 @@ export interface UpdateStackCommandOutput extends UpdateStackResult, __MetadataB * // { // UserSetting * // Action: "CLIPBOARD_COPY_FROM_LOCAL_DEVICE" || "CLIPBOARD_COPY_TO_LOCAL_DEVICE" || "FILE_UPLOAD" || "FILE_DOWNLOAD" || "PRINTING_TO_LOCAL_DEVICE" || "DOMAIN_PASSWORD_SIGNIN" || "DOMAIN_SMART_CARD_SIGNIN", // required * // Permission: "ENABLED" || "DISABLED", // required + * // MaximumLength: Number("int"), * // }, * // ], * // ApplicationSettings: { // ApplicationSettingsResponse diff --git a/clients/client-appstream/src/models/models_0.ts b/clients/client-appstream/src/models/models_0.ts index e5318ddbfb0a..dbb5f407aaf2 100644 --- a/clients/client-appstream/src/models/models_0.ts +++ b/clients/client-appstream/src/models/models_0.ts @@ -3310,6 +3310,16 @@ export interface UserSetting { *

Indicates whether the action is enabled or disabled.

*/ Permission: Permission | undefined; + + /** + * @public + *

Specifies the number of characters that can be copied by end users from the local device to the remote session, and to the local device from the remote session.

+ *

This can be specified only for the CLIPBOARD_COPY_FROM_LOCAL_DEVICE and CLIPBOARD_COPY_TO_LOCAL_DEVICE actions.

+ *

This defaults to 20,971,520 (20 MB) when unspecified and the permission is ENABLED. This can't be specified when the permission is DISABLED.

+ *

This can only be specified for AlwaysOn and OnDemand fleets. The attribute is not supported on Elastic fleets.

+ *

The value can be between 1 and 20,971,520 (20 MB).

+ */ + MaximumLength?: number; } /** diff --git a/clients/client-appstream/src/protocols/Aws_json1_1.ts b/clients/client-appstream/src/protocols/Aws_json1_1.ts index 4d4830215282..798749baa12c 100644 --- a/clients/client-appstream/src/protocols/Aws_json1_1.ts +++ b/clients/client-appstream/src/protocols/Aws_json1_1.ts @@ -2331,6 +2331,9 @@ const de_CreateStackCommandError = async ( case "LimitExceededException": case "com.amazonaws.appstream#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); + case "OperationNotPermittedException": + case "com.amazonaws.appstream#OperationNotPermittedException": + throw await de_OperationNotPermittedExceptionRes(parsedOutput, context); case "ResourceAlreadyExistsException": case "com.amazonaws.appstream#ResourceAlreadyExistsException": throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);