Skip to content

Commit aec538f

Browse files
author
awstools
committed
feat(client-appstream): This release introduces app block builder, allowing customers to provision a resource to package applications into an app block
1 parent 69efc92 commit aec538f

File tree

9 files changed

+9972
-10128
lines changed

9 files changed

+9972
-10128
lines changed

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

+1-8
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
5050
* InstanceType: "STRING_VALUE", // required
5151
* FleetType: "ALWAYS_ON" || "ON_DEMAND" || "ELASTIC",
5252
* ComputeCapacity: { // ComputeCapacity
53-
* DesiredInstances: Number("int"),
54-
* DesiredSessions: Number("int"),
53+
* DesiredInstances: Number("int"), // required
5554
* },
5655
* VpcConfig: { // VpcConfig
5756
* SubnetIds: [ // SubnetIdList
@@ -85,7 +84,6 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
8584
* S3Bucket: "STRING_VALUE", // required
8685
* S3Key: "STRING_VALUE",
8786
* },
88-
* MaxSessionsPerInstance: Number("int"),
8987
* };
9088
* const command = new CreateFleetCommand(input);
9189
* const response = await client.send(command);
@@ -104,10 +102,6 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
104102
* // Running: Number("int"),
105103
* // InUse: Number("int"),
106104
* // Available: Number("int"),
107-
* // DesiredUserSessions: Number("int"),
108-
* // AvailableUserSessions: Number("int"),
109-
* // ActiveUserSessions: Number("int"),
110-
* // ActualUserSessions: Number("int"),
111105
* // },
112106
* // MaxUserDurationInSeconds: Number("int"),
113107
* // DisconnectTimeoutInSeconds: Number("int"),
@@ -144,7 +138,6 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
144138
* // S3Bucket: "STRING_VALUE", // required
145139
* // S3Key: "STRING_VALUE",
146140
* // },
147-
* // MaxSessionsPerInstance: Number("int"),
148141
* // },
149142
* // };
150143
*

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

-5
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
6767
* // Running: Number("int"),
6868
* // InUse: Number("int"),
6969
* // Available: Number("int"),
70-
* // DesiredUserSessions: Number("int"),
71-
* // AvailableUserSessions: Number("int"),
72-
* // ActiveUserSessions: Number("int"),
73-
* // ActualUserSessions: Number("int"),
7470
* // },
7571
* // MaxUserDurationInSeconds: Number("int"),
7672
* // DisconnectTimeoutInSeconds: Number("int"),
@@ -107,7 +103,6 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
107103
* // S3Bucket: "STRING_VALUE", // required
108104
* // S3Key: "STRING_VALUE",
109105
* // },
110-
* // MaxSessionsPerInstance: Number("int"),
111106
* // },
112107
* // ],
113108
* // NextToken: "STRING_VALUE",

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

-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export interface DescribeSessionsCommandOutput extends DescribeSessionsResult, _
5252
* NextToken: "STRING_VALUE",
5353
* Limit: Number("int"),
5454
* AuthenticationType: "API" || "SAML" || "USERPOOL" || "AWS_AD",
55-
* InstanceId: "STRING_VALUE",
5655
* };
5756
* const command = new DescribeSessionsCommand(input);
5857
* const response = await client.send(command);
@@ -72,7 +71,6 @@ export interface DescribeSessionsCommandOutput extends DescribeSessionsResult, _
7271
* // EniPrivateIpAddress: "STRING_VALUE",
7372
* // EniId: "STRING_VALUE",
7473
* // },
75-
* // InstanceId: "STRING_VALUE",
7674
* // },
7775
* // ],
7876
* // NextToken: "STRING_VALUE",

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

+2-9
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
7070
* Name: "STRING_VALUE",
7171
* InstanceType: "STRING_VALUE",
7272
* ComputeCapacity: { // ComputeCapacity
73-
* DesiredInstances: Number("int"),
74-
* DesiredSessions: Number("int"),
73+
* DesiredInstances: Number("int"), // required
7574
* },
7675
* VpcConfig: { // VpcConfig
7776
* SubnetIds: [ // SubnetIdList
@@ -93,7 +92,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
9392
* },
9493
* IdleDisconnectTimeoutInSeconds: Number("int"),
9594
* AttributesToDelete: [ // FleetAttributes
96-
* "VPC_CONFIGURATION" || "VPC_CONFIGURATION_SECURITY_GROUP_IDS" || "DOMAIN_JOIN_INFO" || "IAM_ROLE_ARN" || "USB_DEVICE_FILTER_STRINGS" || "SESSION_SCRIPT_S3_LOCATION" || "MAX_SESSIONS_PER_INSTANCE",
95+
* "VPC_CONFIGURATION" || "VPC_CONFIGURATION_SECURITY_GROUP_IDS" || "DOMAIN_JOIN_INFO" || "IAM_ROLE_ARN" || "USB_DEVICE_FILTER_STRINGS" || "SESSION_SCRIPT_S3_LOCATION",
9796
* ],
9897
* IamRoleArn: "STRING_VALUE",
9998
* StreamView: "APP" || "DESKTOP",
@@ -106,7 +105,6 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
106105
* S3Bucket: "STRING_VALUE", // required
107106
* S3Key: "STRING_VALUE",
108107
* },
109-
* MaxSessionsPerInstance: Number("int"),
110108
* };
111109
* const command = new UpdateFleetCommand(input);
112110
* const response = await client.send(command);
@@ -125,10 +123,6 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
125123
* // Running: Number("int"),
126124
* // InUse: Number("int"),
127125
* // Available: Number("int"),
128-
* // DesiredUserSessions: Number("int"),
129-
* // AvailableUserSessions: Number("int"),
130-
* // ActiveUserSessions: Number("int"),
131-
* // ActualUserSessions: Number("int"),
132126
* // },
133127
* // MaxUserDurationInSeconds: Number("int"),
134128
* // DisconnectTimeoutInSeconds: Number("int"),
@@ -165,7 +159,6 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
165159
* // S3Bucket: "STRING_VALUE", // required
166160
* // S3Key: "STRING_VALUE",
167161
* // },
168-
* // MaxSessionsPerInstance: Number("int"),
169162
* // },
170163
* // };
171164
*

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

+2-70
Original file line numberDiff line numberDiff line change
@@ -1224,14 +1224,7 @@ export interface ComputeCapacity {
12241224
* @public
12251225
* <p>The desired number of streaming instances.</p>
12261226
*/
1227-
DesiredInstances?: number;
1228-
1229-
/**
1230-
* @public
1231-
* <p>The desired number of user sessions for a multi-session fleet. This is not allowed for single-session fleets.</p>
1232-
* <p>When you create a fleet, you must set either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.</p>
1233-
*/
1234-
DesiredSessions?: number;
1227+
DesiredInstances: number | undefined;
12351228
}
12361229

12371230
/**
@@ -1263,36 +1256,6 @@ export interface ComputeCapacityStatus {
12631256
* sessions.</p>
12641257
*/
12651258
Available?: number;
1266-
1267-
/**
1268-
* @public
1269-
* <p>The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your fleet can support in a steady state.</p>
1270-
* <p>DesiredUserSessionCapacity = ActualUserSessionCapacity + PendingUserSessionCapacity</p>
1271-
* <p>This only applies to multi-session fleets.</p>
1272-
*/
1273-
DesiredUserSessions?: number;
1274-
1275-
/**
1276-
* @public
1277-
* <p>The number of idle session slots currently available for user sessions.</p>
1278-
* <p>AvailableUserSessionCapacity = ActualUserSessionCapacity - ActiveUserSessions</p>
1279-
* <p>This only applies to multi-session fleets.</p>
1280-
*/
1281-
AvailableUserSessions?: number;
1282-
1283-
/**
1284-
* @public
1285-
* <p>The number of user sessions currently being used for streaming sessions. This only applies to multi-session fleets.</p>
1286-
*/
1287-
ActiveUserSessions?: number;
1288-
1289-
/**
1290-
* @public
1291-
* <p>The total number of session slots that are available for streaming or are currently streaming.</p>
1292-
* <p>ActualUserSessionCapacity = AvailableUserSessionCapacity + ActiveUserSessions</p>
1293-
* <p>This only applies to multi-session fleets.</p>
1294-
*/
1295-
ActualUserSessions?: number;
12961259
}
12971260

12981261
/**
@@ -2246,7 +2209,7 @@ export interface CreateFleetRequest {
22462209
/**
22472210
* @public
22482211
* <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
2249-
* <p>Specify a value between 600 and 432000.</p>
2212+
* <p>Specify a value between 600 and 360000.</p>
22502213
*/
22512214
MaxUserDurationInSeconds?: number;
22522215

@@ -2349,12 +2312,6 @@ export interface CreateFleetRequest {
23492312
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
23502313
*/
23512314
SessionScriptS3Location?: S3Location;
2352-
2353-
/**
2354-
* @public
2355-
* <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
2356-
*/
2357-
MaxSessionsPerInstance?: number;
23582315
}
23592316

23602317
/**
@@ -2670,12 +2627,6 @@ export interface Fleet {
26702627
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
26712628
*/
26722629
SessionScriptS3Location?: S3Location;
2673-
2674-
/**
2675-
* @public
2676-
* <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
2677-
*/
2678-
MaxSessionsPerInstance?: number;
26792630
}
26802631

26812632
/**
@@ -4733,12 +4684,6 @@ export interface DescribeSessionsRequest {
47334684
* The default is to authenticate users using a streaming URL.</p>
47344685
*/
47354686
AuthenticationType?: AuthenticationType | string;
4736-
4737-
/**
4738-
* @public
4739-
* <p>The identifier for the instance hosting the session.</p>
4740-
*/
4741-
InstanceId?: string;
47424687
}
47434688

47444689
/**
@@ -4835,12 +4780,6 @@ export interface Session {
48354780
* <p>The network details for the streaming session.</p>
48364781
*/
48374782
NetworkAccessConfiguration?: NetworkAccessConfiguration;
4838-
4839-
/**
4840-
* @public
4841-
* <p>The identifier for the instance hosting the session.</p>
4842-
*/
4843-
InstanceId?: string;
48444783
}
48454784

48464785
/**
@@ -5345,7 +5284,6 @@ export interface ExpireSessionResult {}
53455284
export const FleetAttribute = {
53465285
DOMAIN_JOIN_INFO: "DOMAIN_JOIN_INFO",
53475286
IAM_ROLE_ARN: "IAM_ROLE_ARN",
5348-
MAX_SESSIONS_PER_INSTANCE: "MAX_SESSIONS_PER_INSTANCE",
53495287
SESSION_SCRIPT_S3_LOCATION: "SESSION_SCRIPT_S3_LOCATION",
53505288
USB_DEVICE_FILTER_STRINGS: "USB_DEVICE_FILTER_STRINGS",
53515289
VPC_CONFIGURATION: "VPC_CONFIGURATION",
@@ -6204,12 +6142,6 @@ export interface UpdateFleetRequest {
62046142
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. </p>
62056143
*/
62066144
SessionScriptS3Location?: S3Location;
6207-
6208-
/**
6209-
* @public
6210-
* <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
6211-
*/
6212-
MaxSessionsPerInstance?: number;
62136145
}
62146146

62156147
/**

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

-2
Original file line numberDiff line numberDiff line change
@@ -6359,7 +6359,6 @@ const de_Fleet = (output: any, context: __SerdeContext): Fleet => {
63596359
ImageName: __expectString,
63606360
InstanceType: __expectString,
63616361
MaxConcurrentSessions: __expectInt32,
6362-
MaxSessionsPerInstance: __expectInt32,
63636362
MaxUserDurationInSeconds: __expectInt32,
63646363
Name: __expectString,
63656364
Platform: __expectString,
@@ -6550,7 +6549,6 @@ const de_Session = (output: any, context: __SerdeContext): Session => {
65506549
ConnectionState: __expectString,
65516550
FleetName: __expectString,
65526551
Id: __expectString,
6553-
InstanceId: __expectString,
65546552
MaxExpirationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
65556553
NetworkAccessConfiguration: _json,
65566554
StackName: __expectString,

clients/client-appstream/src/waiters/waitForFleetStarted.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
1919
};
2020
let allStringEq_5 = returnComparator().length > 0;
2121
for (const element_4 of returnComparator()) {
22-
allStringEq_5 = allStringEq_5 && element_4 == "ACTIVE";
22+
allStringEq_5 = allStringEq_5 && element_4 == "RUNNING";
2323
}
2424
if (allStringEq_5) {
2525
return { state: WaiterState.SUCCESS, reason };
@@ -34,7 +34,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
3434
return projection_3;
3535
};
3636
for (const anyStringEq_4 of returnComparator()) {
37-
if (anyStringEq_4 == "PENDING_DEACTIVATE") {
37+
if (anyStringEq_4 == "STOPPING") {
3838
return { state: WaiterState.FAILURE, reason };
3939
}
4040
}
@@ -48,7 +48,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
4848
return projection_3;
4949
};
5050
for (const anyStringEq_4 of returnComparator()) {
51-
if (anyStringEq_4 == "INACTIVE") {
51+
if (anyStringEq_4 == "STOPPED") {
5252
return { state: WaiterState.FAILURE, reason };
5353
}
5454
}

clients/client-appstream/src/waiters/waitForFleetStopped.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
1919
};
2020
let allStringEq_5 = returnComparator().length > 0;
2121
for (const element_4 of returnComparator()) {
22-
allStringEq_5 = allStringEq_5 && element_4 == "INACTIVE";
22+
allStringEq_5 = allStringEq_5 && element_4 == "STOPPED";
2323
}
2424
if (allStringEq_5) {
2525
return { state: WaiterState.SUCCESS, reason };
@@ -34,7 +34,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
3434
return projection_3;
3535
};
3636
for (const anyStringEq_4 of returnComparator()) {
37-
if (anyStringEq_4 == "PENDING_ACTIVATE") {
37+
if (anyStringEq_4 == "STARTING") {
3838
return { state: WaiterState.FAILURE, reason };
3939
}
4040
}
@@ -48,7 +48,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
4848
return projection_3;
4949
};
5050
for (const anyStringEq_4 of returnComparator()) {
51-
if (anyStringEq_4 == "ACTIVE") {
51+
if (anyStringEq_4 == "RUNNING") {
5252
return { state: WaiterState.FAILURE, reason };
5353
}
5454
}

0 commit comments

Comments
 (0)