Skip to content

Commit 76b0af1

Browse files
author
awstools
committed
feat(client-appstream): Includes support for StreamingExperienceSettings in CreateStack and UpdateStack APIs
1 parent e9259f0 commit 76b0af1

File tree

5 files changed

+132
-3
lines changed

5 files changed

+132
-3
lines changed

clients/client-appstream/src/AppStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,7 @@ export class AppStream extends AppStreamClient {
22612261
* <p>Elastic fleet type</p>
22622262
* <p>You can update the <code>DisplayName</code>,
22632263
* <code>IdleDisconnectTimeoutInSeconds</code>,
2264-
* <code>DisconnectTimeoutInSeconds</code>, <code>MaxConcurrentSessions</code>,
2264+
* <code>DisconnectTimeoutInSeconds</code>, <code>MaxConcurrentSessions</code>, <code>SessionScriptS3Location</code>
22652265
* and <code>UsbDeviceFilterStrings</code> attributes.</p>
22662266
* </li>
22672267
* </ul>

clients/client-appstream/src/commands/UpdateFleetCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
4040
* <p>Elastic fleet type</p>
4141
* <p>You can update the <code>DisplayName</code>,
4242
* <code>IdleDisconnectTimeoutInSeconds</code>,
43-
* <code>DisconnectTimeoutInSeconds</code>, <code>MaxConcurrentSessions</code>,
43+
* <code>DisconnectTimeoutInSeconds</code>, <code>MaxConcurrentSessions</code>, <code>SessionScriptS3Location</code>
4444
* and <code>UsbDeviceFilterStrings</code> attributes.</p>
4545
* </li>
4646
* </ul>

clients/client-appstream/src/models/models_0.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,6 +2677,30 @@ export namespace StorageConnector {
26772677
});
26782678
}
26792679

2680+
export enum PreferredProtocol {
2681+
TCP = "TCP",
2682+
UDP = "UDP",
2683+
}
2684+
2685+
/**
2686+
* <p>The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.</p>
2687+
*/
2688+
export interface StreamingExperienceSettings {
2689+
/**
2690+
* <p>The preferred protocol that you want to use while streaming your application.</p>
2691+
*/
2692+
PreferredProtocol?: PreferredProtocol | string;
2693+
}
2694+
2695+
export namespace StreamingExperienceSettings {
2696+
/**
2697+
* @internal
2698+
*/
2699+
export const filterSensitiveLog = (obj: StreamingExperienceSettings): any => ({
2700+
...obj,
2701+
});
2702+
}
2703+
26802704
export enum Permission {
26812705
DISABLED = "DISABLED",
26822706
ENABLED = "ENABLED",
@@ -2768,6 +2792,11 @@ export interface CreateStackRequest {
27682792
* <p>The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions. </p>
27692793
*/
27702794
EmbedHostDomains?: string[];
2795+
2796+
/**
2797+
* <p>The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.</p>
2798+
*/
2799+
StreamingExperienceSettings?: StreamingExperienceSettings;
27712800
}
27722801

27732802
export namespace CreateStackRequest {
@@ -2876,6 +2905,11 @@ export interface Stack {
28762905
* <p>The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions.</p>
28772906
*/
28782907
EmbedHostDomains?: string[];
2908+
2909+
/**
2910+
* <p>The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.</p>
2911+
*/
2912+
StreamingExperienceSettings?: StreamingExperienceSettings;
28792913
}
28802914

28812915
export namespace Stack {
@@ -5693,6 +5727,7 @@ export enum StackAttribute {
56935727
STORAGE_CONNECTOR_GOOGLE_DRIVE = "STORAGE_CONNECTOR_GOOGLE_DRIVE",
56945728
STORAGE_CONNECTOR_HOMEFOLDERS = "STORAGE_CONNECTOR_HOMEFOLDERS",
56955729
STORAGE_CONNECTOR_ONE_DRIVE = "STORAGE_CONNECTOR_ONE_DRIVE",
5730+
STREAMING_EXPERIENCE_SETTINGS = "STREAMING_EXPERIENCE_SETTINGS",
56965731
THEME_NAME = "THEME_NAME",
56975732
USER_SETTINGS = "USER_SETTINGS",
56985733
}
@@ -5759,6 +5794,11 @@ export interface UpdateStackRequest {
57595794
* <p>The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions. </p>
57605795
*/
57615796
EmbedHostDomains?: string[];
5797+
5798+
/**
5799+
* <p>The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.</p>
5800+
*/
5801+
StreamingExperienceSettings?: StreamingExperienceSettings;
57625802
}
57635803

57645804
export namespace UpdateStackRequest {

clients/client-appstream/src/protocols/Aws_json1_1.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ import {
324324
StopImageBuilderRequest,
325325
StopImageBuilderResult,
326326
StorageConnector,
327+
StreamingExperienceSettings,
327328
TagResourceRequest,
328329
TagResourceResponse,
329330
UntagResourceRequest,
@@ -4976,6 +4977,13 @@ const serializeAws_json1_1CreateStackRequest = (input: CreateStackRequest, conte
49764977
input.StorageConnectors !== null && {
49774978
StorageConnectors: serializeAws_json1_1StorageConnectorList(input.StorageConnectors, context),
49784979
}),
4980+
...(input.StreamingExperienceSettings !== undefined &&
4981+
input.StreamingExperienceSettings !== null && {
4982+
StreamingExperienceSettings: serializeAws_json1_1StreamingExperienceSettings(
4983+
input.StreamingExperienceSettings,
4984+
context
4985+
),
4986+
}),
49794987
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
49804988
...(input.UserSettings !== undefined &&
49814989
input.UserSettings !== null && {
@@ -5590,6 +5598,16 @@ const serializeAws_json1_1StorageConnectorList = (input: StorageConnector[], con
55905598
});
55915599
};
55925600

5601+
const serializeAws_json1_1StreamingExperienceSettings = (
5602+
input: StreamingExperienceSettings,
5603+
context: __SerdeContext
5604+
): any => {
5605+
return {
5606+
...(input.PreferredProtocol !== undefined &&
5607+
input.PreferredProtocol !== null && { PreferredProtocol: input.PreferredProtocol }),
5608+
};
5609+
};
5610+
55935611
const serializeAws_json1_1StringList = (input: string[], context: __SerdeContext): any => {
55945612
return input
55955613
.filter((e: any) => e != null)
@@ -5808,6 +5826,13 @@ const serializeAws_json1_1UpdateStackRequest = (input: UpdateStackRequest, conte
58085826
input.StorageConnectors !== null && {
58095827
StorageConnectors: serializeAws_json1_1StorageConnectorList(input.StorageConnectors, context),
58105828
}),
5829+
...(input.StreamingExperienceSettings !== undefined &&
5830+
input.StreamingExperienceSettings !== null && {
5831+
StreamingExperienceSettings: serializeAws_json1_1StreamingExperienceSettings(
5832+
input.StreamingExperienceSettings,
5833+
context
5834+
),
5835+
}),
58115836
...(input.UserSettings !== undefined &&
58125837
input.UserSettings !== null && {
58135838
UserSettings: serializeAws_json1_1UserSettingList(input.UserSettings, context),
@@ -7222,6 +7247,10 @@ const deserializeAws_json1_1Stack = (output: any, context: __SerdeContext): Stac
72227247
output.StorageConnectors !== undefined && output.StorageConnectors !== null
72237248
? deserializeAws_json1_1StorageConnectorList(output.StorageConnectors, context)
72247249
: undefined,
7250+
StreamingExperienceSettings:
7251+
output.StreamingExperienceSettings !== undefined && output.StreamingExperienceSettings !== null
7252+
? deserializeAws_json1_1StreamingExperienceSettings(output.StreamingExperienceSettings, context)
7253+
: undefined,
72257254
UserSettings:
72267255
output.UserSettings !== undefined && output.UserSettings !== null
72277256
? deserializeAws_json1_1UserSettingList(output.UserSettings, context)
@@ -7312,6 +7341,15 @@ const deserializeAws_json1_1StorageConnectorList = (output: any, context: __Serd
73127341
return retVal;
73137342
};
73147343

7344+
const deserializeAws_json1_1StreamingExperienceSettings = (
7345+
output: any,
7346+
context: __SerdeContext
7347+
): StreamingExperienceSettings => {
7348+
return {
7349+
PreferredProtocol: __expectString(output.PreferredProtocol),
7350+
} as any;
7351+
};
7352+
73157353
const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => {
73167354
const retVal = (output || [])
73177355
.filter((e: any) => e != null)

codegen/sdk-codegen/aws-models/appstream.json

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,6 +1704,12 @@
17041704
"traits": {
17051705
"smithy.api#documentation": "<p>The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions. </p>"
17061706
}
1707+
},
1708+
"StreamingExperienceSettings": {
1709+
"target": "com.amazonaws.appstream#StreamingExperienceSettings",
1710+
"traits": {
1711+
"smithy.api#documentation": "<p>The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.</p>"
1712+
}
17071713
}
17081714
}
17091715
},
@@ -5463,6 +5469,21 @@
54635469
}
54645470
}
54655471
},
5472+
"com.amazonaws.appstream#PreferredProtocol": {
5473+
"type": "string",
5474+
"traits": {
5475+
"smithy.api#enum": [
5476+
{
5477+
"value": "TCP",
5478+
"name": "TCP"
5479+
},
5480+
{
5481+
"value": "UDP",
5482+
"name": "UDP"
5483+
}
5484+
]
5485+
}
5486+
},
54665487
"com.amazonaws.appstream#RedirectURL": {
54675488
"type": "string",
54685489
"traits": {
@@ -5934,6 +5955,12 @@
59345955
"traits": {
59355956
"smithy.api#documentation": "<p>The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions.</p>"
59365957
}
5958+
},
5959+
"StreamingExperienceSettings": {
5960+
"target": "com.amazonaws.appstream#StreamingExperienceSettings",
5961+
"traits": {
5962+
"smithy.api#documentation": "<p>The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.</p>"
5963+
}
59375964
}
59385965
},
59395966
"traits": {
@@ -5987,6 +6014,10 @@
59876014
{
59886015
"value": "ACCESS_ENDPOINTS",
59896016
"name": "ACCESS_ENDPOINTS"
6017+
},
6018+
{
6019+
"value": "STREAMING_EXPERIENCE_SETTINGS",
6020+
"name": "STREAMING_EXPERIENCE_SETTINGS"
59906021
}
59916022
]
59926023
}
@@ -6315,6 +6346,20 @@
63156346
]
63166347
}
63176348
},
6349+
"com.amazonaws.appstream#StreamingExperienceSettings": {
6350+
"type": "structure",
6351+
"members": {
6352+
"PreferredProtocol": {
6353+
"target": "com.amazonaws.appstream#PreferredProtocol",
6354+
"traits": {
6355+
"smithy.api#documentation": "<p>The preferred protocol that you want to use while streaming your application.</p>"
6356+
}
6357+
}
6358+
},
6359+
"traits": {
6360+
"smithy.api#documentation": "<p>The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.</p>"
6361+
}
6362+
},
63186363
"com.amazonaws.appstream#StreamingUrlUserId": {
63196364
"type": "string",
63206365
"traits": {
@@ -6757,7 +6802,7 @@
67576802
}
67586803
],
67596804
"traits": {
6760-
"smithy.api#documentation": "<p>Updates the specified fleet.</p>\n <p>If the fleet is in the <code>STOPPED</code> state, you can update any attribute except\n the fleet name.</p>\n <p>If the fleet is in the <code>RUNNING</code> state, you can update the following based\n on the fleet type:</p>\n <ul>\n <li>\n <p>Always-On and On-Demand fleet types</p>\n <p>You can update the <code>DisplayName</code>, <code>ComputeCapacity</code>,\n <code>ImageARN</code>, <code>ImageName</code>,\n <code>IdleDisconnectTimeoutInSeconds</code>, and\n <code>DisconnectTimeoutInSeconds</code> attributes.</p>\n </li>\n <li>\n <p>Elastic fleet type</p>\n <p>You can update the <code>DisplayName</code>,\n <code>IdleDisconnectTimeoutInSeconds</code>,\n <code>DisconnectTimeoutInSeconds</code>, <code>MaxConcurrentSessions</code>,\n and <code>UsbDeviceFilterStrings</code> attributes.</p>\n </li>\n </ul>\n <p>If the fleet is in the <code>STARTING</code> or <code>STOPPED</code> state, you can't update it.</p>"
6805+
"smithy.api#documentation": "<p>Updates the specified fleet.</p>\n <p>If the fleet is in the <code>STOPPED</code> state, you can update any attribute except\n the fleet name.</p>\n <p>If the fleet is in the <code>RUNNING</code> state, you can update the following based\n on the fleet type:</p>\n <ul>\n <li>\n <p>Always-On and On-Demand fleet types</p>\n <p>You can update the <code>DisplayName</code>, <code>ComputeCapacity</code>,\n <code>ImageARN</code>, <code>ImageName</code>,\n <code>IdleDisconnectTimeoutInSeconds</code>, and\n <code>DisconnectTimeoutInSeconds</code> attributes.</p>\n </li>\n <li>\n <p>Elastic fleet type</p>\n <p>You can update the <code>DisplayName</code>,\n <code>IdleDisconnectTimeoutInSeconds</code>,\n <code>DisconnectTimeoutInSeconds</code>, <code>MaxConcurrentSessions</code>, <code>SessionScriptS3Location</code>\n and <code>UsbDeviceFilterStrings</code> attributes.</p>\n </li>\n </ul>\n <p>If the fleet is in the <code>STARTING</code> or <code>STOPPED</code> state, you can't update it.</p>"
67616806
}
67626807
},
67636808
"com.amazonaws.appstream#UpdateFleetRequest": {
@@ -7073,6 +7118,12 @@
70737118
"traits": {
70747119
"smithy.api#documentation": "<p>The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions. </p>"
70757120
}
7121+
},
7122+
"StreamingExperienceSettings": {
7123+
"target": "com.amazonaws.appstream#StreamingExperienceSettings",
7124+
"traits": {
7125+
"smithy.api#documentation": "<p>The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.</p>"
7126+
}
70767127
}
70777128
}
70787129
},

0 commit comments

Comments
 (0)