Class CfnAppBlock
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.CfnAppBlock
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IAppBlockRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:39:58.305Z")
@Stability(Stable)
public class CfnAppBlock
extends CfnResource
implements IInspectable, IAppBlockRef, ITaggable
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")
.sourceS3Location(S3LocationProperty.builder()
.s3Bucket("s3Bucket")
// the properties below are optional
.s3Key("s3Key")
.build())
// the properties below are optional
.description("description")
.displayName("displayName")
.packagingType("packagingType")
.postSetupScriptDetails(ScriptDetailsProperty.builder()
.executablePath("executablePath")
.scriptS3Location(S3LocationProperty.builder()
.s3Bucket("s3Bucket")
// the properties below are optional
.s3Key("s3Key")
.build())
.timeoutInSeconds(123)
// the properties below are optional
.executableParameters("executableParameters")
.build())
.setupScriptDetails(ScriptDetailsProperty.builder()
.executablePath("executablePath")
.scriptS3Location(S3LocationProperty.builder()
.s3Bucket("s3Bucket")
// the properties below are optional
.s3Key("s3Key")
.build())
.timeoutInSeconds(123)
// the properties below are optional
.executableParameters("executableParameters")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAppBlock.static interfaceThe S3 location of the app block.static interfaceThe details of the script.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.appstream.IAppBlockRef
IAppBlockRef.Jsii$Default, IAppBlockRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnAppBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAppBlock(software.amazon.jsii.JsiiObjectRef objRef) CfnAppBlock(software.constructs.Construct scope, String id, CfnAppBlockProps props) -
Method Summary
Modifier and TypeMethodDescriptionA reference to a AppBlock resource.The ARN of the app block.The time when the app block was created.The description of the app block.The display name of the app block.getName()The name of the app block.The packaging type of the app block.The post setup script details of the app block.The setup script details of the app block.The source S3 location of the app block.getTags()Tag Manager which manages the tags for this resource.The tags of the app block.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the app block.voidsetDisplayName(String value) The display name of the app block.voidThe name of the app block.voidsetPackagingType(String value) The packaging type of the app block.voidThe post setup script details of the app block.voidThe post setup script details of the app block.voidsetSetupScriptDetails(IResolvable value) The setup script details of the app block.voidThe setup script details of the app block.voidsetSourceS3Location(IResolvable value) The source S3 location of the app block.voidThe source S3 location of the app block.voidsetTagsRaw(List<CfnTag> value) The tags of the app block.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.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
-
CfnAppBlock
protected CfnAppBlock(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAppBlock
protected CfnAppBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAppBlock
@Stability(Stable) public CfnAppBlock(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAppBlockProps props) - 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
-
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.
-
getAppBlockRef
A reference to a AppBlock resource.- Specified by:
getAppBlockRefin interfaceIAppBlockRef
-
getAttrArn
The ARN of the app block. -
getAttrCreatedTime
The time when the app block was created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The name of the app block. -
setName
The name of the app block. -
getSourceS3Location
The source S3 location of the app block.Returns union: either
IResolvableorCfnAppBlock.S3LocationProperty -
setSourceS3Location
The source S3 location of the app block. -
setSourceS3Location
The source S3 location of the app block. -
getDescription
The description of the app block. -
setDescription
The description of the app block. -
getDisplayName
The display name of the app block. -
setDisplayName
The display name of the app block. -
getPackagingType
The packaging type of the app block. -
setPackagingType
The packaging type of the app block. -
getPostSetupScriptDetails
The post setup script details of the app block.Returns union: either
IResolvableorCfnAppBlock.ScriptDetailsProperty -
setPostSetupScriptDetails
The post setup script details of the app block. -
setPostSetupScriptDetails
@Stability(Stable) public void setPostSetupScriptDetails(@Nullable CfnAppBlock.ScriptDetailsProperty value) The post setup script details of the app block. -
getSetupScriptDetails
The setup script details of the app block.Returns union: either
IResolvableorCfnAppBlock.ScriptDetailsProperty -
setSetupScriptDetails
The setup script details of the app block. -
setSetupScriptDetails
@Stability(Stable) public void setSetupScriptDetails(@Nullable CfnAppBlock.ScriptDetailsProperty value) The setup script details of the app block. -
getTagsRaw
The tags of the app block. -
setTagsRaw
The tags of the app block.
-