Class CfnApplication
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::AppStream::Application.
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();
-
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.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnApplication(Construct scope, String id, CfnApplicationProps props) Create a newAWS::AppStream::Application.protectedCfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplication(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe app block ARN with which the application should be associated.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()The tags of the application.The working directory of the application.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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.voidsetWorkingDirectory(String value) The working directory of the application.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnApplicationProps props) Create a newAWS::AppStream::Application.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the application. -
getAttrCreatedTime
The time when the application was created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags of the application. -
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. -
setIconS3Location
The icon S3 location of the application. -
setIconS3Location
The icon S3 location of the application. -
getInstanceFamilies
The instance families the application supports.Allowed Values :
GENERAL_PURPOSE|GRAPHICS_G4 -
setInstanceFamilies
The instance families the application supports.Allowed Values :
GENERAL_PURPOSE|GRAPHICS_G4 -
getLaunchPath
The launch path of the application. -
setLaunchPath
The launch path of the application. -
getName
The name of the application.This name is visible to users when a name is not specified in the DisplayName property.
Pattern :
^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$ -
setName
The name of the application.This name is visible to users when a name is not specified in the DisplayName property.
Pattern :
^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$ -
getPlatforms
The platforms the application supports.Allowed Values :
WINDOWS_SERVER_2019|AMAZON_LINUX2 -
setPlatforms
The platforms the application supports.Allowed Values :
WINDOWS_SERVER_2019|AMAZON_LINUX2 -
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.This name is visible to users in the application catalog.
-
setDisplayName
The display name of the application.This name is visible to users in the application catalog.
-
getLaunchParameters
The launch parameters of the application. -
setLaunchParameters
The launch parameters of the application. -
getWorkingDirectory
The working directory of the application. -
setWorkingDirectory
The working directory of the application.
-