Skip to content

Commit

Permalink
feat(client-appstream): Includes updates for create and update fleet …
Browse files Browse the repository at this point in the history
…APIs to manage the session scripts locations for Elastic fleets.
  • Loading branch information
awstools committed Apr 14, 2022
1 parent f963bdd commit e52c79d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
16 changes: 16 additions & 0 deletions clients/client-appstream/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,11 @@ export interface CreateFleetRequest {
* <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
*/
UsbDeviceFilterStrings?: string[];

/**
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
*/
SessionScriptS3Location?: S3Location;
}

export namespace CreateFleetRequest {
Expand Down Expand Up @@ -2033,6 +2038,11 @@ export interface Fleet {
* <p>The USB device filter strings associated with the fleet.</p>
*/
UsbDeviceFilterStrings?: string[];

/**
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
*/
SessionScriptS3Location?: S3Location;
}

export namespace Fleet {
Expand Down Expand Up @@ -4836,6 +4846,7 @@ export namespace ExpireSessionResult {
export enum FleetAttribute {
DOMAIN_JOIN_INFO = "DOMAIN_JOIN_INFO",
IAM_ROLE_ARN = "IAM_ROLE_ARN",
SESSION_SCRIPT_S3_LOCATION = "SESSION_SCRIPT_S3_LOCATION",
USB_DEVICE_FILTER_STRINGS = "USB_DEVICE_FILTER_STRINGS",
VPC_CONFIGURATION = "VPC_CONFIGURATION",
VPC_CONFIGURATION_SECURITY_GROUP_IDS = "VPC_CONFIGURATION_SECURITY_GROUP_IDS",
Expand Down Expand Up @@ -5603,6 +5614,11 @@ export interface UpdateFleetRequest {
* <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
*/
UsbDeviceFilterStrings?: string[];

/**
* <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. </p>
*/
SessionScriptS3Location?: S3Location;
}

export namespace UpdateFleetRequest {
Expand Down
12 changes: 12 additions & 0 deletions clients/client-appstream/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4897,6 +4897,10 @@ const serializeAws_json1_1CreateFleetRequest = (input: CreateFleetRequest, conte
input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
...(input.SessionScriptS3Location !== undefined &&
input.SessionScriptS3Location !== null && {
SessionScriptS3Location: serializeAws_json1_1S3Location(input.SessionScriptS3Location, context),
}),
...(input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView }),
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
...(input.UsbDeviceFilterStrings !== undefined &&
Expand Down Expand Up @@ -5745,6 +5749,10 @@ const serializeAws_json1_1UpdateFleetRequest = (input: UpdateFleetRequest, conte
input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
...(input.SessionScriptS3Location !== undefined &&
input.SessionScriptS3Location !== null && {
SessionScriptS3Location: serializeAws_json1_1S3Location(input.SessionScriptS3Location, context),
}),
...(input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView }),
...(input.UsbDeviceFilterStrings !== undefined &&
input.UsbDeviceFilterStrings !== null && {
Expand Down Expand Up @@ -6663,6 +6671,10 @@ const deserializeAws_json1_1Fleet = (output: any, context: __SerdeContext): Flee
MaxUserDurationInSeconds: __expectInt32(output.MaxUserDurationInSeconds),
Name: __expectString(output.Name),
Platform: __expectString(output.Platform),
SessionScriptS3Location:
output.SessionScriptS3Location !== undefined && output.SessionScriptS3Location !== null
? deserializeAws_json1_1S3Location(output.SessionScriptS3Location, context)
: undefined,
State: __expectString(output.State),
StreamView: __expectString(output.StreamView),
UsbDeviceFilterStrings:
Expand Down
22 changes: 22 additions & 0 deletions codegen/sdk-codegen/aws-models/appstream.json
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,12 @@
"traits": {
"smithy.api#documentation": "<p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>"
}
},
"SessionScriptS3Location": {
"target": "com.amazonaws.appstream#S3Location",
"traits": {
"smithy.api#documentation": "<p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>"
}
}
}
},
Expand Down Expand Up @@ -4121,6 +4127,12 @@
"traits": {
"smithy.api#documentation": "<p>The USB device filter strings associated with the fleet.</p>"
}
},
"SessionScriptS3Location": {
"target": "com.amazonaws.appstream#S3Location",
"traits": {
"smithy.api#documentation": "<p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -4151,6 +4163,10 @@
{
"value": "USB_DEVICE_FILTER_STRINGS",
"name": "USB_DEVICE_FILTER_STRINGS"
},
{
"value": "SESSION_SCRIPT_S3_LOCATION",
"name": "SESSION_SCRIPT_S3_LOCATION"
}
]
}
Expand Down Expand Up @@ -6867,6 +6883,12 @@
"traits": {
"smithy.api#documentation": "<p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>"
}
},
"SessionScriptS3Location": {
"target": "com.amazonaws.appstream#S3Location",
"traits": {
"smithy.api#documentation": "<p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets. </p>"
}
}
}
},
Expand Down

0 comments on commit e52c79d

Please sign in to comment.