Class CfnFleetProps
Properties for defining a CfnFleet
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppStream
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnFleetProps : Object, ICfnFleetProps
Syntax (vb)
Public Class CfnFleetProps
Inherits Object
Implements ICfnFleetProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-fleet.html
ExampleMetadata: infused
Examples
var fleet = new CfnFleet(this, "Fleet", new CfnFleetProps {
InstanceType = "stream.standard.small",
Name = "Fleet",
ComputeCapacity = new ComputeCapacityProperty {
DesiredInstances = 1
},
ImageName = "AppStream-AmazonLinux2-09-21-2022"
});
fleet.CfnOptions.CreationPolicy = new CfnCreationPolicy {
StartFleet = true
};
Synopsis
Constructors
CfnFleetProps() |
Properties
ComputeCapacity | The desired capacity for the fleet. |
Description | The description to display. |
DisconnectTimeoutInSeconds | The amount of time that a streaming session remains active after users disconnect. |
DisplayName | The fleet name to display. |
DomainJoinInfo | The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. |
EnableDefaultInternetAccess | Enables or disables default internet access for the fleet. |
FleetType | The fleet type. |
IamRoleArn | The ARN of the IAM role that is applied to the fleet. |
IdleDisconnectTimeoutInSeconds | The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the |
ImageArn | The ARN of the public, private, or shared image to use. |
ImageName | The name of the image used to create the fleet. |
InstanceType | The instance type to use when launching fleet instances. The following instance types are available for non-Elastic fleets:. |
MaxConcurrentSessions | The maximum number of concurrent sessions that can be run on an Elastic fleet. |
MaxSessionsPerInstance | Max number of user sessions on an instance. |
MaxUserDurationInSeconds | The maximum amount of time that a streaming session can remain active, in seconds. |
Name | A unique name for the fleet. |
Platform | The platform of the fleet. |
SessionScriptS3Location | The S3 location of the session scripts configuration zip file. |
StreamView | The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When |
Tags | An array of key-value pairs. |
UsbDeviceFilterStrings | 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. |
VpcConfig | The VPC configuration for the fleet. |
Constructors
CfnFleetProps()
public CfnFleetProps()
Properties
ComputeCapacity
The desired capacity for the fleet.
public object ComputeCapacity { get; set; }
Property Value
System.Object
Remarks
This is not allowed for Elastic fleets.
Description
The description to display.
public string Description { get; set; }
Property Value
System.String
Remarks
DisconnectTimeoutInSeconds
The amount of time that a streaming session remains active after users disconnect.
public Nullable<double> DisconnectTimeoutInSeconds { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.
Specify a value between 60 and 36000.
DisplayName
The fleet name to display.
public string DisplayName { get; set; }
Property Value
System.String
Remarks
DomainJoinInfo
The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.
public object DomainJoinInfo { get; set; }
Property Value
System.Object
Remarks
This is not allowed for Elastic fleets.
EnableDefaultInternetAccess
Enables or disables default internet access for the fleet.
public object EnableDefaultInternetAccess { get; set; }
Property Value
System.Object
Remarks
FleetType
The fleet type.
public string FleetType { get; set; }
Property Value
System.String
Remarks
Allowed Values : ALWAYS_ON
| ELASTIC
| ON_DEMAND
IamRoleArn
The ARN of the IAM role that is applied to the fleet.
public string IamRoleArn { get; set; }
Property Value
System.String
Remarks
To assume a role, the fleet instance calls the AWS Security Token Service AssumeRole
API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the appstream_machine_role credential profile on the instance.
For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances in the Amazon AppStream 2.0 Administration Guide .
IdleDisconnectTimeoutInSeconds
The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the DisconnectTimeoutInSeconds
time interval begins.
public Nullable<double> IdleDisconnectTimeoutInSeconds { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Users are notified before they are disconnected due to inactivity. If they try to reconnect to the streaming session before the time interval specified in DisconnectTimeoutInSeconds
elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in IdleDisconnectTimeoutInSeconds
elapses, they are disconnected.
To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000.
If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.
ImageArn
The ARN of the public, private, or shared image to use.
public string ImageArn { get; set; }
Property Value
System.String
Remarks
ImageName
The name of the image used to create the fleet.
public string ImageName { get; set; }
Property Value
System.String
Remarks
InstanceType
The instance type to use when launching fleet instances. The following instance types are available for non-Elastic fleets:.
public string InstanceType { get; set; }
Property Value
System.String
Remarks
The following instance types are available for Elastic fleets:
MaxConcurrentSessions
The maximum number of concurrent sessions that can be run on an Elastic fleet.
public Nullable<double> MaxConcurrentSessions { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This setting is required for Elastic fleets, but is not used for other fleet types.
MaxSessionsPerInstance
Max number of user sessions on an instance.
public Nullable<double> MaxSessionsPerInstance { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This is applicable only for multi-session fleets.
MaxUserDurationInSeconds
The maximum amount of time that a streaming session can remain active, in seconds.
public Nullable<double> MaxUserDurationInSeconds { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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.
Specify a value between 600 and 432000.
Name
A unique name for the fleet.
public string Name { get; set; }
Property Value
System.String
Remarks
Platform
The platform of the fleet.
public string Platform { get; set; }
Property Value
System.String
Remarks
Platform is a required setting for Elastic fleets, and is not used for other fleet types.
SessionScriptS3Location
The S3 location of the session scripts configuration zip file.
public object SessionScriptS3Location { get; set; }
Property Value
System.Object
Remarks
This only applies to Elastic fleets.
StreamView
The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP
is specified, only the windows of applications opened by users display. When DESKTOP
is specified, the standard desktop that is provided by the operating system displays.
public string StreamView { get; set; }
Property Value
System.String
Remarks
The default value is APP
.
Tags
UsbDeviceFilterStrings
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.
public string[] UsbDeviceFilterStrings { get; set; }
Property Value
System.String[]
Remarks
This is allowed but not required for Elastic fleets.
VpcConfig
The VPC configuration for the fleet.
public object VpcConfig { get; set; }
Property Value
System.Object
Remarks
This is required for Elastic fleets, but not required for other fleet types.