@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.428Z") public class CfnApplication extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnApplication.Builder
A fluent builder for
CfnApplication . |
static interface |
CfnApplication.S3LocationProperty
The S3 location of the application icon.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnApplication(Construct scope,
java.lang.String id,
CfnApplicationProps props)
Create a new `AWS::AppStream::Application`.
|
protected |
CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApplication(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppBlockArn()
The app block ARN with which the application should be associated.
|
java.lang.String |
getAttrArn()
The ARN of the application.
|
java.lang.String |
getAttrCreatedTime()
The time when the application was created.
|
java.util.List<java.lang.String> |
getAttributesToDelete()
A list of attributes to delete from an application.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
The description of the application.
|
java.lang.String |
getDisplayName()
The display name of the application.
|
java.lang.Object |
getIconS3Location()
The icon S3 location of the application.
|
java.util.List<java.lang.String> |
getInstanceFamilies()
The instance families the application supports.
|
java.lang.String |
getLaunchParameters()
The launch parameters of the application.
|
java.lang.String |
getLaunchPath()
The launch path of the application.
|
java.lang.String |
getName()
The name of the application.
|
java.util.List<java.lang.String> |
getPlatforms()
The platforms the application supports.
|
TagManager |
getTags()
The tags of the application.
|
java.lang.String |
getWorkingDirectory()
The working directory of the application.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAppBlockArn(java.lang.String value)
The app block ARN with which the application should be associated.
|
void |
setAttributesToDelete(java.util.List<java.lang.String> value)
A list of attributes to delete from an application.
|
void |
setDescription(java.lang.String value)
The description of the application.
|
void |
setDisplayName(java.lang.String value)
The display name of the application.
|
void |
setIconS3Location(CfnApplication.S3LocationProperty value)
The icon S3 location of the application.
|
void |
setIconS3Location(IResolvable value)
The icon S3 location of the application.
|
void |
setInstanceFamilies(java.util.List<java.lang.String> value)
The instance families the application supports.
|
void |
setLaunchParameters(java.lang.String value)
The launch parameters of the application.
|
void |
setLaunchPath(java.lang.String value)
The launch path of the application.
|
void |
setName(java.lang.String value)
The name of the application.
|
void |
setPlatforms(java.util.List<java.lang.String> value)
The platforms the application supports.
|
void |
setWorkingDirectory(java.lang.String value)
The working directory of the application.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnApplication(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnApplication(Construct scope, java.lang.String id, CfnApplicationProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
public java.lang.String getAttrCreatedTime()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getAppBlockArn()
public void setAppBlockArn(java.lang.String value)
public java.lang.Object getIconS3Location()
public void setIconS3Location(IResolvable value)
public void setIconS3Location(CfnApplication.S3LocationProperty value)
public java.util.List<java.lang.String> getInstanceFamilies()
Allowed Values : GENERAL_PURPOSE
| GRAPHICS_G4
public void setInstanceFamilies(java.util.List<java.lang.String> value)
Allowed Values : GENERAL_PURPOSE
| GRAPHICS_G4
public java.lang.String getLaunchPath()
public void setLaunchPath(java.lang.String value)
public java.lang.String getName()
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}$
public void setName(java.lang.String value)
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}$
public java.util.List<java.lang.String> getPlatforms()
Allowed Values : WINDOWS_SERVER_2019
| AMAZON_LINUX2
public void setPlatforms(java.util.List<java.lang.String> value)
Allowed Values : WINDOWS_SERVER_2019
| AMAZON_LINUX2
public java.util.List<java.lang.String> getAttributesToDelete()
public void setAttributesToDelete(java.util.List<java.lang.String> value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getDisplayName()
This name is visible to users in the application catalog.
public void setDisplayName(java.lang.String value)
This name is visible to users in the application catalog.
public java.lang.String getLaunchParameters()
public void setLaunchParameters(java.lang.String value)
public java.lang.String getWorkingDirectory()
public void setWorkingDirectory(java.lang.String value)