Skip to content

Commit

Permalink
feat(client-appstream): This release introduces app block builder, al…
Browse files Browse the repository at this point in the history
…lowing customers to provision a resource to package applications into an app block
  • Loading branch information
awstools committed Sep 15, 2023
1 parent 69efc92 commit aec538f
Show file tree
Hide file tree
Showing 9 changed files with 9,972 additions and 10,128 deletions.
9 changes: 1 addition & 8 deletions clients/client-appstream/src/commands/CreateFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* InstanceType: "STRING_VALUE", // required
* FleetType: "ALWAYS_ON" || "ON_DEMAND" || "ELASTIC",
* ComputeCapacity: { // ComputeCapacity
* DesiredInstances: Number("int"),
* DesiredSessions: Number("int"),
* DesiredInstances: Number("int"), // required
* },
* VpcConfig: { // VpcConfig
* SubnetIds: [ // SubnetIdList
Expand Down Expand Up @@ -85,7 +84,6 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* S3Bucket: "STRING_VALUE", // required
* S3Key: "STRING_VALUE",
* },
* MaxSessionsPerInstance: Number("int"),
* };
* const command = new CreateFleetCommand(input);
* const response = await client.send(command);
Expand All @@ -104,10 +102,6 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* // Running: Number("int"),
* // InUse: Number("int"),
* // Available: Number("int"),
* // DesiredUserSessions: Number("int"),
* // AvailableUserSessions: Number("int"),
* // ActiveUserSessions: Number("int"),
* // ActualUserSessions: Number("int"),
* // },
* // MaxUserDurationInSeconds: Number("int"),
* // DisconnectTimeoutInSeconds: Number("int"),
Expand Down Expand Up @@ -144,7 +138,6 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
* // S3Bucket: "STRING_VALUE", // required
* // S3Key: "STRING_VALUE",
* // },
* // MaxSessionsPerInstance: Number("int"),
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // Running: Number("int"),
* // InUse: Number("int"),
* // Available: Number("int"),
* // DesiredUserSessions: Number("int"),
* // AvailableUserSessions: Number("int"),
* // ActiveUserSessions: Number("int"),
* // ActualUserSessions: Number("int"),
* // },
* // MaxUserDurationInSeconds: Number("int"),
* // DisconnectTimeoutInSeconds: Number("int"),
Expand Down Expand Up @@ -107,7 +103,6 @@ export interface DescribeFleetsCommandOutput extends DescribeFleetsResult, __Met
* // S3Bucket: "STRING_VALUE", // required
* // S3Key: "STRING_VALUE",
* // },
* // MaxSessionsPerInstance: Number("int"),
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export interface DescribeSessionsCommandOutput extends DescribeSessionsResult, _
* NextToken: "STRING_VALUE",
* Limit: Number("int"),
* AuthenticationType: "API" || "SAML" || "USERPOOL" || "AWS_AD",
* InstanceId: "STRING_VALUE",
* };
* const command = new DescribeSessionsCommand(input);
* const response = await client.send(command);
Expand All @@ -72,7 +71,6 @@ export interface DescribeSessionsCommandOutput extends DescribeSessionsResult, _
* // EniPrivateIpAddress: "STRING_VALUE",
* // EniId: "STRING_VALUE",
* // },
* // InstanceId: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
11 changes: 2 additions & 9 deletions clients/client-appstream/src/commands/UpdateFleetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
* Name: "STRING_VALUE",
* InstanceType: "STRING_VALUE",
* ComputeCapacity: { // ComputeCapacity
* DesiredInstances: Number("int"),
* DesiredSessions: Number("int"),
* DesiredInstances: Number("int"), // required
* },
* VpcConfig: { // VpcConfig
* SubnetIds: [ // SubnetIdList
Expand All @@ -93,7 +92,7 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
* },
* IdleDisconnectTimeoutInSeconds: Number("int"),
* AttributesToDelete: [ // FleetAttributes
* "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",
* "VPC_CONFIGURATION" || "VPC_CONFIGURATION_SECURITY_GROUP_IDS" || "DOMAIN_JOIN_INFO" || "IAM_ROLE_ARN" || "USB_DEVICE_FILTER_STRINGS" || "SESSION_SCRIPT_S3_LOCATION",
* ],
* IamRoleArn: "STRING_VALUE",
* StreamView: "APP" || "DESKTOP",
Expand All @@ -106,7 +105,6 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
* S3Bucket: "STRING_VALUE", // required
* S3Key: "STRING_VALUE",
* },
* MaxSessionsPerInstance: Number("int"),
* };
* const command = new UpdateFleetCommand(input);
* const response = await client.send(command);
Expand All @@ -125,10 +123,6 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
* // Running: Number("int"),
* // InUse: Number("int"),
* // Available: Number("int"),
* // DesiredUserSessions: Number("int"),
* // AvailableUserSessions: Number("int"),
* // ActiveUserSessions: Number("int"),
* // ActualUserSessions: Number("int"),
* // },
* // MaxUserDurationInSeconds: Number("int"),
* // DisconnectTimeoutInSeconds: Number("int"),
Expand Down Expand Up @@ -165,7 +159,6 @@ export interface UpdateFleetCommandOutput extends UpdateFleetResult, __MetadataB
* // S3Bucket: "STRING_VALUE", // required
* // S3Key: "STRING_VALUE",
* // },
* // MaxSessionsPerInstance: Number("int"),
* // },
* // };
*
Expand Down
72 changes: 2 additions & 70 deletions clients/client-appstream/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1224,14 +1224,7 @@ export interface ComputeCapacity {
* @public
* <p>The desired number of streaming instances.</p>
*/
DesiredInstances?: number;

/**
* @public
* <p>The desired number of user sessions for a multi-session fleet. This is not allowed for single-session fleets.</p>
* <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>
*/
DesiredSessions?: number;
DesiredInstances: number | undefined;
}

/**
Expand Down Expand Up @@ -1263,36 +1256,6 @@ export interface ComputeCapacityStatus {
* sessions.</p>
*/
Available?: number;

/**
* @public
* <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>
* <p>DesiredUserSessionCapacity = ActualUserSessionCapacity + PendingUserSessionCapacity</p>
* <p>This only applies to multi-session fleets.</p>
*/
DesiredUserSessions?: number;

/**
* @public
* <p>The number of idle session slots currently available for user sessions.</p>
* <p>AvailableUserSessionCapacity = ActualUserSessionCapacity - ActiveUserSessions</p>
* <p>This only applies to multi-session fleets.</p>
*/
AvailableUserSessions?: number;

/**
* @public
* <p>The number of user sessions currently being used for streaming sessions. This only applies to multi-session fleets.</p>
*/
ActiveUserSessions?: number;

/**
* @public
* <p>The total number of session slots that are available for streaming or are currently streaming.</p>
* <p>ActualUserSessionCapacity = AvailableUserSessionCapacity + ActiveUserSessions</p>
* <p>This only applies to multi-session fleets.</p>
*/
ActualUserSessions?: number;
}

/**
Expand Down Expand Up @@ -2246,7 +2209,7 @@ export interface CreateFleetRequest {
/**
* @public
* <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>
* <p>Specify a value between 600 and 432000.</p>
* <p>Specify a value between 600 and 360000.</p>
*/
MaxUserDurationInSeconds?: number;

Expand Down Expand Up @@ -2349,12 +2312,6 @@ export interface CreateFleetRequest {
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
*/
SessionScriptS3Location?: S3Location;

/**
* @public
* <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
*/
MaxSessionsPerInstance?: number;
}

/**
Expand Down Expand Up @@ -2670,12 +2627,6 @@ export interface Fleet {
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
*/
SessionScriptS3Location?: S3Location;

/**
* @public
* <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
*/
MaxSessionsPerInstance?: number;
}

/**
Expand Down Expand Up @@ -4733,12 +4684,6 @@ export interface DescribeSessionsRequest {
* The default is to authenticate users using a streaming URL.</p>
*/
AuthenticationType?: AuthenticationType | string;

/**
* @public
* <p>The identifier for the instance hosting the session.</p>
*/
InstanceId?: string;
}

/**
Expand Down Expand Up @@ -4835,12 +4780,6 @@ export interface Session {
* <p>The network details for the streaming session.</p>
*/
NetworkAccessConfiguration?: NetworkAccessConfiguration;

/**
* @public
* <p>The identifier for the instance hosting the session.</p>
*/
InstanceId?: string;
}

/**
Expand Down Expand Up @@ -5345,7 +5284,6 @@ export interface ExpireSessionResult {}
export const FleetAttribute = {
DOMAIN_JOIN_INFO: "DOMAIN_JOIN_INFO",
IAM_ROLE_ARN: "IAM_ROLE_ARN",
MAX_SESSIONS_PER_INSTANCE: "MAX_SESSIONS_PER_INSTANCE",
SESSION_SCRIPT_S3_LOCATION: "SESSION_SCRIPT_S3_LOCATION",
USB_DEVICE_FILTER_STRINGS: "USB_DEVICE_FILTER_STRINGS",
VPC_CONFIGURATION: "VPC_CONFIGURATION",
Expand Down Expand Up @@ -6204,12 +6142,6 @@ export interface UpdateFleetRequest {
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. </p>
*/
SessionScriptS3Location?: S3Location;

/**
* @public
* <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
*/
MaxSessionsPerInstance?: number;
}

/**
Expand Down
2 changes: 0 additions & 2 deletions clients/client-appstream/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6359,7 +6359,6 @@ const de_Fleet = (output: any, context: __SerdeContext): Fleet => {
ImageName: __expectString,
InstanceType: __expectString,
MaxConcurrentSessions: __expectInt32,
MaxSessionsPerInstance: __expectInt32,
MaxUserDurationInSeconds: __expectInt32,
Name: __expectString,
Platform: __expectString,
Expand Down Expand Up @@ -6550,7 +6549,6 @@ const de_Session = (output: any, context: __SerdeContext): Session => {
ConnectionState: __expectString,
FleetName: __expectString,
Id: __expectString,
InstanceId: __expectString,
MaxExpirationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
NetworkAccessConfiguration: _json,
StackName: __expectString,
Expand Down
6 changes: 3 additions & 3 deletions clients/client-appstream/src/waiters/waitForFleetStarted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
};
let allStringEq_5 = returnComparator().length > 0;
for (const element_4 of returnComparator()) {
allStringEq_5 = allStringEq_5 && element_4 == "ACTIVE";
allStringEq_5 = allStringEq_5 && element_4 == "RUNNING";
}
if (allStringEq_5) {
return { state: WaiterState.SUCCESS, reason };
Expand All @@ -34,7 +34,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
return projection_3;
};
for (const anyStringEq_4 of returnComparator()) {
if (anyStringEq_4 == "PENDING_DEACTIVATE") {
if (anyStringEq_4 == "STOPPING") {
return { state: WaiterState.FAILURE, reason };
}
}
Expand All @@ -48,7 +48,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
return projection_3;
};
for (const anyStringEq_4 of returnComparator()) {
if (anyStringEq_4 == "INACTIVE") {
if (anyStringEq_4 == "STOPPED") {
return { state: WaiterState.FAILURE, reason };
}
}
Expand Down
6 changes: 3 additions & 3 deletions clients/client-appstream/src/waiters/waitForFleetStopped.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
};
let allStringEq_5 = returnComparator().length > 0;
for (const element_4 of returnComparator()) {
allStringEq_5 = allStringEq_5 && element_4 == "INACTIVE";
allStringEq_5 = allStringEq_5 && element_4 == "STOPPED";
}
if (allStringEq_5) {
return { state: WaiterState.SUCCESS, reason };
Expand All @@ -34,7 +34,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
return projection_3;
};
for (const anyStringEq_4 of returnComparator()) {
if (anyStringEq_4 == "PENDING_ACTIVATE") {
if (anyStringEq_4 == "STARTING") {
return { state: WaiterState.FAILURE, reason };
}
}
Expand All @@ -48,7 +48,7 @@ const checkState = async (client: AppStreamClient, input: DescribeFleetsCommandI
return projection_3;
};
for (const anyStringEq_4 of returnComparator()) {
if (anyStringEq_4 == "ACTIVE") {
if (anyStringEq_4 == "RUNNING") {
return { state: WaiterState.FAILURE, reason };
}
}
Expand Down
Loading

0 comments on commit aec538f

Please sign in to comment.