Class CfnStack
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.CfnStack
- All Implemented Interfaces:
IInspectable,IStackRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:05.024Z")
@Stability(Stable)
public class CfnStack
extends CfnResource
implements IInspectable, IStackRef, ITaggable
The
AWS::AppStream::Stack resource creates a stack to start streaming applications to Amazon AppStream 2.0 users. A stack consists of an associated fleet, user access policies, and storage configurations.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appstream.*;
CfnStack cfnStack = CfnStack.Builder.create(this, "MyCfnStack")
.accessEndpoints(List.of(AccessEndpointProperty.builder()
.endpointType("endpointType")
.vpceId("vpceId")
.build()))
.applicationSettings(ApplicationSettingsProperty.builder()
.enabled(false)
// the properties below are optional
.settingsGroup("settingsGroup")
.build())
.attributesToDelete(List.of("attributesToDelete"))
.deleteStorageConnectors(false)
.description("description")
.displayName("displayName")
.embedHostDomains(List.of("embedHostDomains"))
.feedbackUrl("feedbackUrl")
.name("name")
.redirectUrl("redirectUrl")
.storageConnectors(List.of(StorageConnectorProperty.builder()
.connectorType("connectorType")
// the properties below are optional
.domains(List.of("domains"))
.resourceIdentifier("resourceIdentifier")
.build()))
.streamingExperienceSettings(StreamingExperienceSettingsProperty.builder()
.preferredProtocol("preferredProtocol")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userSettings(List.of(UserSettingProperty.builder()
.action("action")
.permission("permission")
// the properties below are optional
.maximumLength(123)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDescribes an interface VPC endpoint (interface endpoint) that lets you create a private connection between the virtual private cloud (VPC) that you specify and WorkSpaces Applications.static interfaceThe persistent application settings for users of a stack.static final classA fluent builder forCfnStack.static interfaceA connector that enables persistent storage for users.static interfaceThe streaming protocol that you want your stack to prefer.static interfaceSpecifies an action and whether the action is enabled or disabled for users during their streaming sessions.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.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.appstream.IStackRef
IStackRef.Jsii$Default, IStackRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStack(software.amazon.jsii.JsiiObjectRef objRef) Create a newAWS::AppStream::Stack.CfnStack(software.constructs.Construct scope, String id, CfnStackProps props) Create a newAWS::AppStream::Stack. -
Method Summary
Modifier and TypeMethodDescriptionThe list of virtual private cloud (VPC) interface endpoint objects.The persistent application settings for users of the stack.The stack attributes to delete.This parameter has been deprecated..The description to display.The stack name to display.The domains where WorkSpaces Applications streaming sessions can be embedded in an iframe.The URL that users are redirected to after they click the Send Feedback link.getName()The name of the stack.The URL that users are redirected to after their streaming session ends.A reference to a Stack resource.The storage connectors to enable.The streaming protocol that you want your stack to prefer.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs.The actions that are enabled or disabled for users during their streaming sessions.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanisCfnStack(Object x) Checks whether the given object is a CfnStack.renderProperties(Map<String, Object> props) voidsetAccessEndpoints(List<Object> value) The list of virtual private cloud (VPC) interface endpoint objects.voidsetAccessEndpoints(IResolvable value) The list of virtual private cloud (VPC) interface endpoint objects.voidThe persistent application settings for users of the stack.voidThe persistent application settings for users of the stack.voidsetAttributesToDelete(List<String> value) The stack attributes to delete.voidThis parameter has been deprecated..voidThis parameter has been deprecated..voidsetDescription(String value) The description to display.voidsetDisplayName(String value) The stack name to display.voidsetEmbedHostDomains(List<String> value) The domains where WorkSpaces Applications streaming sessions can be embedded in an iframe.voidsetFeedbackUrl(String value) The URL that users are redirected to after they click the Send Feedback link.voidThe name of the stack.voidsetRedirectUrl(String value) The URL that users are redirected to after their streaming session ends.voidsetStorageConnectors(List<Object> value) The storage connectors to enable.voidsetStorageConnectors(IResolvable value) The storage connectors to enable.voidThe streaming protocol that you want your stack to prefer.voidThe streaming protocol that you want your stack to prefer.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs.voidsetUserSettings(List<Object> value) The actions that are enabled or disabled for users during their streaming sessions.voidsetUserSettings(IResolvable value) The actions that are enabled or disabled for users during their streaming sessions.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
-
CfnStack
protected CfnStack(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStack
protected CfnStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStack
@Stability(Stable) public CfnStack(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnStackProps props) Create a newAWS::AppStream::Stack.- 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.
-
CfnStack
@Stability(Stable) public CfnStack(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::AppStream::Stack.- 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.
-
-
Method Details
-
isCfnStack
Checks whether the given object is a CfnStack.- 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
-
getStackRef
A reference to a Stack resource.- Specified by:
getStackRefin interfaceIStackRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAccessEndpoints
The list of virtual private cloud (VPC) interface endpoint objects.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnStack.AccessEndpointProperty> -
setAccessEndpoints
The list of virtual private cloud (VPC) interface endpoint objects. -
setAccessEndpoints
The list of virtual private cloud (VPC) interface endpoint objects. -
getApplicationSettings
The persistent application settings for users of the stack.Returns union: either
IResolvableorCfnStack.ApplicationSettingsProperty -
setApplicationSettings
The persistent application settings for users of the stack. -
setApplicationSettings
@Stability(Stable) public void setApplicationSettings(@Nullable CfnStack.ApplicationSettingsProperty value) The persistent application settings for users of the stack. -
getAttributesToDelete
The stack attributes to delete. -
setAttributesToDelete
The stack attributes to delete. -
getDeleteStorageConnectors
This parameter has been deprecated..Returns union: either
BooleanorIResolvable -
setDeleteStorageConnectors
This parameter has been deprecated.. -
setDeleteStorageConnectors
This parameter has been deprecated.. -
getDescription
The description to display. -
setDescription
The description to display. -
getDisplayName
The stack name to display. -
setDisplayName
The stack name to display. -
getEmbedHostDomains
The domains where WorkSpaces Applications streaming sessions can be embedded in an iframe. -
setEmbedHostDomains
The domains where WorkSpaces Applications streaming sessions can be embedded in an iframe. -
getFeedbackUrl
The URL that users are redirected to after they click the Send Feedback link. -
setFeedbackUrl
The URL that users are redirected to after they click the Send Feedback link. -
getName
The name of the stack. -
setName
The name of the stack. -
getRedirectUrl
The URL that users are redirected to after their streaming session ends. -
setRedirectUrl
The URL that users are redirected to after their streaming session ends. -
getStorageConnectors
The storage connectors to enable.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnStack.StorageConnectorProperty> -
setStorageConnectors
The storage connectors to enable. -
setStorageConnectors
The storage connectors to enable. -
getStreamingExperienceSettings
The streaming protocol that you want your stack to prefer.Returns union: either
IResolvableorCfnStack.StreamingExperienceSettingsProperty -
setStreamingExperienceSettings
The streaming protocol that you want your stack to prefer. -
setStreamingExperienceSettings
@Stability(Stable) public void setStreamingExperienceSettings(@Nullable CfnStack.StreamingExperienceSettingsProperty value) The streaming protocol that you want your stack to prefer. -
getTagsRaw
An array of key-value pairs. -
setTagsRaw
An array of key-value pairs. -
getUserSettings
The actions that are enabled or disabled for users during their streaming sessions.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnStack.UserSettingProperty> -
setUserSettings
The actions that are enabled or disabled for users during their streaming sessions. -
setUserSettings
The actions that are enabled or disabled for users during their streaming sessions.
-