Class CfnAppBlock
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.appstream.CfnAppBlock
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.681Z")
@Stability(Stable)
public class CfnAppBlock
extends CfnResource
implements IInspectable
A CloudFormation
AWS::AppStream::AppBlock.
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();
-
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.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
ConstructorsModifierConstructorDescriptionCfnAppBlock(Construct scope, String id, CfnAppBlockProps props) Create a newAWS::AppStream::AppBlock.protectedCfnAppBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAppBlock(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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 setup script details of the app block.The source S3 location of the app block.getTags()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.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.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
-
CfnAppBlock
protected CfnAppBlock(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAppBlock
protected CfnAppBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAppBlock
@Stability(Stable) public CfnAppBlock(@NotNull Construct scope, @NotNull String id, @NotNull CfnAppBlockProps props) Create a newAWS::AppStream::AppBlock.- 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 app block. -
getAttrCreatedTime
The time when the app block was created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags of the app block. -
getName
The name of the app block.Pattern :
^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$ -
setName
The name of the app block.Pattern :
^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$ -
getSetupScriptDetails
The setup script details of the app block. -
setSetupScriptDetails
@Stability(Stable) public void setSetupScriptDetails(@NotNull CfnAppBlock.ScriptDetailsProperty value) The setup script details of the app block. -
setSetupScriptDetails
The setup script details of the app block. -
getSourceS3Location
The source S3 location of the app block. -
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.
-