Skip to content

Commit

Permalink
feat(client-appstream): This release introduces configurable clipboar…
Browse files Browse the repository at this point in the history
…d, 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.
  • Loading branch information
awstools committed Dec 20, 2023
1 parent 864e50e commit 62b4da5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clients/client-appstream/src/commands/CreateStackCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -160,6 +162,9 @@ export interface CreateStackCommandOutput extends CreateStackResult, __MetadataB
* @throws {@link LimitExceededException} (client fault)
* <p>The requested limit exceeds the permitted limit for an account.</p>
*
* @throws {@link OperationNotPermittedException} (client fault)
* <p>The attempted operation is not permitted.</p>
*
* @throws {@link ResourceAlreadyExistsException} (client fault)
* <p>The specified resource already exists.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions clients/client-appstream/src/commands/UpdateStackCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions clients/client-appstream/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3310,6 +3310,16 @@ export interface UserSetting {
* <p>Indicates whether the action is enabled or disabled.</p>
*/
Permission: Permission | undefined;

/**
* @public
* <p>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.</p>
* <p>This can be specified only for the <code>CLIPBOARD_COPY_FROM_LOCAL_DEVICE</code> and <code>CLIPBOARD_COPY_TO_LOCAL_DEVICE</code> actions.</p>
* <p>This defaults to 20,971,520 (20 MB) when unspecified and the permission is <code>ENABLED</code>. This can't be specified when the permission is <code>DISABLED</code>. </p>
* <p>This can only be specified for AlwaysOn and OnDemand fleets. The attribute is not supported on Elastic fleets.</p>
* <p>The value can be between 1 and 20,971,520 (20 MB).</p>
*/
MaximumLength?: number;
}

/**
Expand Down
3 changes: 3 additions & 0 deletions clients/client-appstream/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62b4da5

Please sign in to comment.