Interface ICfnFleetProps
Properties for defining a CfnFleet
.
Namespace: Amazon.CDK.AWS.AppStream
Assembly: Amazon.CDK.AWS.AppStream.dll
Syntax (csharp)
public interface ICfnFleetProps
Syntax (vb)
Public Interface ICfnFleetProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-fleet.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppStream;
var cfnFleetProps = new CfnFleetProps {
InstanceType = "instanceType",
Name = "name",
// the properties below are optional
ComputeCapacity = new ComputeCapacityProperty {
DesiredInstances = 123
},
Description = "description",
DisconnectTimeoutInSeconds = 123,
DisplayName = "displayName",
DomainJoinInfo = new DomainJoinInfoProperty {
DirectoryName = "directoryName",
OrganizationalUnitDistinguishedName = "organizationalUnitDistinguishedName"
},
EnableDefaultInternetAccess = false,
FleetType = "fleetType",
IamRoleArn = "iamRoleArn",
IdleDisconnectTimeoutInSeconds = 123,
ImageArn = "imageArn",
ImageName = "imageName",
MaxConcurrentSessions = 123,
MaxUserDurationInSeconds = 123,
Platform = "platform",
SessionScriptS3Location = new S3LocationProperty {
S3Bucket = "s3Bucket",
S3Key = "s3Key"
},
StreamView = "streamView",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
UsbDeviceFilterStrings = new [] { "usbDeviceFilterStrings" },
VpcConfig = new VpcConfigProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
SubnetIds = new [] { "subnetIds" }
}
};
Synopsis
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. |
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. |
Properties
ComputeCapacity
The desired capacity for the fleet.
virtual object ComputeCapacity { get; }
Property Value
System.Object
Remarks
This is not allowed for Elastic fleets.
Description
The description to display.
virtual string Description { get; }
Property Value
System.String
Remarks
DisconnectTimeoutInSeconds
The amount of time that a streaming session remains active after users disconnect.
virtual Nullable<double> DisconnectTimeoutInSeconds { get; }
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 360000.
DisplayName
The fleet name to display.
virtual string DisplayName { get; }
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.
virtual object DomainJoinInfo { get; }
Property Value
System.Object
Remarks
This is not allowed for Elastic fleets.
EnableDefaultInternetAccess
Enables or disables default internet access for the fleet.
virtual object EnableDefaultInternetAccess { get; }
Property Value
System.Object
Remarks
FleetType
The fleet type.
virtual string FleetType { get; }
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.
virtual string IamRoleArn { get; }
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.
virtual Nullable<double> IdleDisconnectTimeoutInSeconds { get; }
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 3600.
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.
virtual string ImageArn { get; }
Property Value
System.String
Remarks
ImageName
The name of the image used to create the fleet.
virtual string ImageName { get; }
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:.
string InstanceType { get; }
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.
virtual Nullable<double> MaxConcurrentSessions { get; }
Property Value
System.Nullable<System.Double>
Remarks
This setting is required for Elastic fleets, but is not used for other fleet types.
MaxUserDurationInSeconds
The maximum amount of time that a streaming session can remain active, in seconds.
virtual Nullable<double> MaxUserDurationInSeconds { get; }
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 360000.
Name
A unique name for the fleet.
string Name { get; }
Property Value
System.String
Remarks
Platform
The platform of the fleet.
virtual string Platform { get; }
Property Value
System.String
Remarks
Platform is a required setting for Elastic fleets, and is not used for other fleet types.
Allowed Values : WINDOWS_SERVER_2019
| AMAZON_LINUX2
SessionScriptS3Location
The S3 location of the session scripts configuration zip file.
virtual object SessionScriptS3Location { get; }
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.
virtual string StreamView { get; }
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.
virtual string[] UsbDeviceFilterStrings { get; }
Property Value
System.String[]
Remarks
This is allowed but not required for Elastic fleets.
VpcConfig
The VPC configuration for the fleet.
virtual object VpcConfig { get; }
Property Value
System.Object
Remarks
This is required for Elastic fleets, but not required for other fleet types.