Class CfnFleet
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.appstream.CfnFleet
- All Implemented Interfaces:
IInspectable,IFleetRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:28.757Z")
@Stability(Stable)
public class CfnFleet
extends CfnResource
implements IInspectable, IFleetRef, ITaggable
The
AWS::AppStream::Fleet resource creates a fleet for Amazon AppStream 2.0. A fleet consists of streaming instances that run a specified image when using Always-On or On-Demand.
Example:
CfnFleet fleet = CfnFleet.Builder.create(this, "Fleet")
.instanceType("stream.standard.small")
.name("Fleet")
.computeCapacity(ComputeCapacityProperty.builder()
.desiredInstances(1)
.build())
.imageName("AppStream-AmazonLinux2-09-21-2022")
.build();
fleet.getCfnOptions().getCreationPolicy() = CfnCreationPolicy.builder()
.startFleet(true)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFleet.static interfaceThe desired capacity for a fleet.static interfaceThe name of the directory and organizational unit (OU) to use to join a fleet to a Microsoft Active Directory domain.static interfaceDescribes the S3 location.static interfaceExample:static interfaceThe VPC configuration information for the fleet.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.appstream.IFleetRef
IFleetRef.Jsii$Default, IFleetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFleet(software.amazon.jsii.JsiiObjectRef objRef) CfnFleet(software.constructs.Construct scope, String id, CfnFleetProps props) Create a newAWS::AppStream::Fleet. -
Method Summary
Modifier and TypeMethodDescriptionThe desired capacity for the fleet.The description to display.The amount of time that a streaming session remains active after users disconnect.The fleet name to display.The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.Enables or disables default internet access for the fleet.A reference to a Fleet resource.The fleet type.The ARN of the IAM role that is applied to the fleet.The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and theDisconnectTimeoutInSecondstime interval begins.The ARN of the public, private, or shared image to use.The name of the image used to create the fleet.The instance type to use when launching fleet instances.The maximum number of concurrent sessions that can be run on an Elastic fleet.Max number of user sessions on an instance.The maximum amount of time that a streaming session can remain active, in seconds.getName()A unique name for the fleet.The platform of the fleet.Returns union: eitherIResolvableorCfnFleet.VolumeConfigPropertyThe S3 location of the session scripts configuration zip file.The WorkSpaces Applications view that is displayed to your users when they stream from the fleet.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs.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.The VPC configuration for the fleet.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanisCfnFleet(Object x) Checks whether the given object is a CfnFleet.renderProperties(Map<String, Object> props) voidsetComputeCapacity(IResolvable value) The desired capacity for the fleet.voidThe desired capacity for the fleet.voidsetDescription(String value) The description to display.voidThe amount of time that a streaming session remains active after users disconnect.voidsetDisplayName(String value) The fleet name to display.voidsetDomainJoinInfo(IResolvable value) The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.voidThe name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.voidEnables or disables default internet access for the fleet.voidEnables or disables default internet access for the fleet.voidsetFleetType(String value) The fleet type.voidsetIamRoleArn(String value) The ARN of the IAM role that is applied to the fleet.voidThe amount of time that users can be idle (inactive) before they are disconnected from their streaming session and theDisconnectTimeoutInSecondstime interval begins.voidsetImageArn(String value) The ARN of the public, private, or shared image to use.voidsetImageName(String value) The name of the image used to create the fleet.voidsetInstanceType(String value) The instance type to use when launching fleet instances.voidsetMaxConcurrentSessions(Number value) The maximum number of concurrent sessions that can be run on an Elastic fleet.voidsetMaxSessionsPerInstance(Number value) Max number of user sessions on an instance.voidThe maximum amount of time that a streaming session can remain active, in seconds.voidA unique name for the fleet.voidsetPlatform(String value) The platform of the fleet.voidsetRootVolumeConfig(IResolvable value) voidvoidThe S3 location of the session scripts configuration zip file.voidThe S3 location of the session scripts configuration zip file.voidsetStreamView(String value) The WorkSpaces Applications view that is displayed to your users when they stream from the fleet.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs.voidsetUsbDeviceFilterStrings(List<String> value) 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.voidsetVpcConfig(IResolvable value) The VPC configuration for the fleet.voidThe VPC configuration for the fleet.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFleet
protected CfnFleet(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFleet
protected CfnFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFleet
@Stability(Stable) public CfnFleet(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFleetProps props) Create a newAWS::AppStream::Fleet.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnFleet
Checks whether the given object is a CfnFleet.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFleetRef
A reference to a Fleet resource.- Specified by:
getFleetRefin interfaceIFleetRef
-
getTags
Tag Manager which manages the tags for this resource. -
getInstanceType
The instance type to use when launching fleet instances.The following instance types are available for non-Elastic fleets:.
-
setInstanceType
The instance type to use when launching fleet instances.The following instance types are available for non-Elastic fleets:.
-
getName
A unique name for the fleet. -
setName
A unique name for the fleet. -
getComputeCapacity
The desired capacity for the fleet.Returns union: either
IResolvableorCfnFleet.ComputeCapacityProperty -
setComputeCapacity
The desired capacity for the fleet. -
setComputeCapacity
The desired capacity for the fleet. -
getDescription
The description to display. -
setDescription
The description to display. -
getDisconnectTimeoutInSeconds
The amount of time that a streaming session remains active after users disconnect. -
setDisconnectTimeoutInSeconds
The amount of time that a streaming session remains active after users disconnect. -
getDisplayName
The fleet name to display. -
setDisplayName
The fleet name to display. -
getDomainJoinInfo
The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.Returns union: either
IResolvableorCfnFleet.DomainJoinInfoProperty -
setDomainJoinInfo
The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. -
setDomainJoinInfo
The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. -
getEnableDefaultInternetAccess
Enables or disables default internet access for the fleet.Returns union: either
BooleanorIResolvable -
setEnableDefaultInternetAccess
Enables or disables default internet access for the fleet. -
setEnableDefaultInternetAccess
Enables or disables default internet access for the fleet. -
getFleetType
The fleet type. -
setFleetType
The fleet type. -
getIamRoleArn
The ARN of the IAM role that is applied to the fleet. -
setIamRoleArn
The ARN of the IAM role that is applied to the fleet. -
getIdleDisconnectTimeoutInSeconds
The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and theDisconnectTimeoutInSecondstime interval begins. -
setIdleDisconnectTimeoutInSeconds
The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and theDisconnectTimeoutInSecondstime interval begins. -
getImageArn
The ARN of the public, private, or shared image to use. -
setImageArn
The ARN of the public, private, or shared image to use. -
getImageName
The name of the image used to create the fleet. -
setImageName
The name of the image used to create the fleet. -
getMaxConcurrentSessions
The maximum number of concurrent sessions that can be run on an Elastic fleet. -
setMaxConcurrentSessions
The maximum number of concurrent sessions that can be run on an Elastic fleet. -
getMaxSessionsPerInstance
Max number of user sessions on an instance. -
setMaxSessionsPerInstance
Max number of user sessions on an instance. -
getMaxUserDurationInSeconds
The maximum amount of time that a streaming session can remain active, in seconds. -
setMaxUserDurationInSeconds
The maximum amount of time that a streaming session can remain active, in seconds. -
getPlatform
The platform of the fleet. -
setPlatform
The platform of the fleet. -
getRootVolumeConfig
Returns union: eitherIResolvableorCfnFleet.VolumeConfigProperty -
setRootVolumeConfig
-
setRootVolumeConfig
-
getSessionScriptS3Location
The S3 location of the session scripts configuration zip file.Returns union: either
IResolvableorCfnFleet.S3LocationProperty -
setSessionScriptS3Location
The S3 location of the session scripts configuration zip file. -
setSessionScriptS3Location
@Stability(Stable) public void setSessionScriptS3Location(@Nullable CfnFleet.S3LocationProperty value) The S3 location of the session scripts configuration zip file. -
getStreamView
The WorkSpaces Applications view that is displayed to your users when they stream from the fleet. -
setStreamView
The WorkSpaces Applications view that is displayed to your users when they stream from the fleet. -
getTagsRaw
An array of key-value pairs. -
setTagsRaw
An array of key-value pairs. -
getUsbDeviceFilterStrings
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. -
setUsbDeviceFilterStrings
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. -
getVpcConfig
The VPC configuration for the fleet.Returns union: either
IResolvableorCfnFleet.VpcConfigProperty -
setVpcConfig
The VPC configuration for the fleet. -
setVpcConfig
The VPC configuration for the fleet.
-