Class CfnApplication
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.CfnApplication
- All Implemented Interfaces:
IInspectable,IApplicationRef,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.747Z")
@Stability(Stable)
public class CfnApplication
extends CfnResource
implements IInspectable, IApplicationRef, ITaggable
This resource creates an application.
Applications store the details about how to launch applications on streaming instances. This is only supported for Elastic fleets.
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.*;
CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication")
.appBlockArn("appBlockArn")
.iconS3Location(S3LocationProperty.builder()
.s3Bucket("s3Bucket")
.s3Key("s3Key")
.build())
.instanceFamilies(List.of("instanceFamilies"))
.launchPath("launchPath")
.name("name")
.platforms(List.of("platforms"))
// the properties below are optional
.attributesToDelete(List.of("attributesToDelete"))
.description("description")
.displayName("displayName")
.launchParameters("launchParameters")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.workingDirectory("workingDirectory")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnApplication.static interfaceThe S3 location of the application icon.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.appstream.IApplicationRef
IApplicationRef.Jsii$Default, IApplicationRef.Jsii$ProxyNested 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.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplication(software.amazon.jsii.JsiiObjectRef objRef) CfnApplication(software.constructs.Construct scope, String id, CfnApplicationProps props) Create a newAWS::AppStream::Application. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForApplication(IApplicationRef resource) The app block ARN with which the application should be associated.A reference to a Application resource.The ARN of the application.The time when the application was created.A list of attributes to delete from an application.The description of the application.The display name of the application.The icon S3 location of the application.The instance families the application supports.The launch parameters of the application.The launch path of the application.getName()The name of the application.The platforms the application supports.getTags()Tag Manager which manages the tags for this resource.The tags of the application.The working directory of the application.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnApplication.renderProperties(Map<String, Object> props) voidsetAppBlockArn(String value) The app block ARN with which the application should be associated.voidsetAttributesToDelete(List<String> value) A list of attributes to delete from an application.voidsetDescription(String value) The description of the application.voidsetDisplayName(String value) The display name of the application.voidsetIconS3Location(IResolvable value) The icon S3 location of the application.voidThe icon S3 location of the application.voidsetInstanceFamilies(List<String> value) The instance families the application supports.voidsetLaunchParameters(String value) The launch parameters of the application.voidsetLaunchPath(String value) The launch path of the application.voidThe name of the application.voidsetPlatforms(List<String> value) The platforms the application supports.voidsetTagsRaw(List<CfnTag> value) The tags of the application.voidsetWorkingDirectory(String value) The working directory of the application.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
-
CfnApplication
protected CfnApplication(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApplication
protected CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApplication
@Stability(Stable) public CfnApplication(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApplicationProps props) Create a newAWS::AppStream::Application.- 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
-
arnForApplication
@Stability(Stable) @NotNull public static String arnForApplication(@NotNull IApplicationRef resource) - Parameters:
resource- This parameter is required.
-
isCfnApplication
Checks whether the given object is a CfnApplication.- 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.
-
getApplicationRef
A reference to a Application resource.- Specified by:
getApplicationRefin interfaceIApplicationRef
-
getAttrArn
The ARN of the application. -
getAttrCreatedTime
The time when the application was created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getAppBlockArn
The app block ARN with which the application should be associated. -
setAppBlockArn
The app block ARN with which the application should be associated. -
getIconS3Location
The icon S3 location of the application.Returns union: either
IResolvableorCfnApplication.S3LocationProperty -
setIconS3Location
The icon S3 location of the application. -
setIconS3Location
The icon S3 location of the application. -
getInstanceFamilies
The instance families the application supports. -
setInstanceFamilies
The instance families the application supports. -
getLaunchPath
The launch path of the application. -
setLaunchPath
The launch path of the application. -
getName
The name of the application. -
setName
The name of the application. -
getPlatforms
The platforms the application supports. -
setPlatforms
The platforms the application supports. -
getAttributesToDelete
A list of attributes to delete from an application. -
setAttributesToDelete
A list of attributes to delete from an application. -
getDescription
The description of the application. -
setDescription
The description of the application. -
getDisplayName
The display name of the application. -
setDisplayName
The display name of the application. -
getLaunchParameters
The launch parameters of the application. -
setLaunchParameters
The launch parameters of the application. -
getTagsRaw
The tags of the application. -
setTagsRaw
The tags of the application. -
getWorkingDirectory
The working directory of the application. -
setWorkingDirectory
The working directory of the application.
-