@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.617Z") @Stability(value=Stable) public class CfnAppBlock extends CfnResource implements IInspectable
This resource creates an app block. App blocks store details about the virtual hard disk that contains the files for the application in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. App blocks are 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.*;
CfnAppBlock cfnAppBlock = CfnAppBlock.Builder.create(this, "MyCfnAppBlock")
.name("name")
.setupScriptDetails(ScriptDetailsProperty.builder()
.executablePath("executablePath")
.scriptS3Location(S3LocationProperty.builder()
.s3Bucket("s3Bucket")
.s3Key("s3Key")
.build())
.timeoutInSeconds(123)
// the properties below are optional
.executableParameters("executableParameters")
.build())
.sourceS3Location(S3LocationProperty.builder()
.s3Bucket("s3Bucket")
.s3Key("s3Key")
.build())
// the properties below are optional
.description("description")
.displayName("displayName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAppBlock.Builder
A fluent builder for
CfnAppBlock. |
static interface |
CfnAppBlock.S3LocationProperty
The S3 location of the app block.
|
static interface |
CfnAppBlock.ScriptDetailsProperty
The details of the script.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAppBlock(software.constructs.Construct scope,
String id,
CfnAppBlockProps props)
Create a new `AWS::AppStream::AppBlock`.
|
protected |
CfnAppBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAppBlock(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The ARN of the app block.
|
String |
getAttrCreatedTime()
The time when the app block was created.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The description of the app block.
|
String |
getDisplayName()
The display name of the app block.
|
String |
getName()
The name of the app block.
|
Object |
getSetupScriptDetails()
The setup script details of the app block.
|
Object |
getSourceS3Location()
The source S3 location of the app block.
|
TagManager |
getTags()
The tags of the app block.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
The description of the app block.
|
void |
setDisplayName(String value)
The display name of the app block.
|
void |
setName(String value)
The name of the app block.
|
void |
setSetupScriptDetails(CfnAppBlock.ScriptDetailsProperty value)
The setup script details of the app block.
|
void |
setSetupScriptDetails(IResolvable value)
The setup script details of the app block.
|
void |
setSourceS3Location(CfnAppBlock.S3LocationProperty value)
The source S3 location of the app block.
|
void |
setSourceS3Location(IResolvable value)
The source S3 location of the app block.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAppBlock(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAppBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAppBlock(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAppBlockProps 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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrCreatedTime()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getName()
Pattern : ^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$
@Stability(value=Stable)
public void setName(@NotNull
String value)
Pattern : ^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$
@Stability(value=Stable) @NotNull public Object getSetupScriptDetails()
@Stability(value=Stable)
public void setSetupScriptDetails(@NotNull
CfnAppBlock.ScriptDetailsProperty value)
@Stability(value=Stable)
public void setSetupScriptDetails(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public Object getSourceS3Location()
@Stability(value=Stable)
public void setSourceS3Location(@NotNull
CfnAppBlock.S3LocationProperty value)
@Stability(value=Stable)
public void setSourceS3Location(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDisplayName()
@Stability(value=Stable)
public void setDisplayName(@Nullable
String value)
Copyright © 2022. All rights reserved.