CfnAppBlockProps Struct
Properties for defining a CfnAppBlock.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appstream as appstream } from 'aws-cdk-lib';
const cfnAppBlockProps: appstream.CfnAppBlockProps = {
name: 'name',
sourceS3Location: {
s3Bucket: 's3Bucket',
// the properties below are optional
s3Key: 's3Key',
},
// the properties below are optional
description: 'description',
displayName: 'displayName',
packagingType: 'packagingType',
postSetupScriptDetails: {
executablePath: 'executablePath',
scriptS3Location: {
s3Bucket: 's3Bucket',
// the properties below are optional
s3Key: 's3Key',
},
timeoutInSeconds: 123,
// the properties below are optional
executableParameters: 'executableParameters',
},
setupScriptDetails: {
executablePath: 'executablePath',
scriptS3Location: {
s3Bucket: 's3Bucket',
// the properties below are optional
s3Key: 's3Key',
},
timeoutInSeconds: 123,
// the properties below are optional
executableParameters: 'executableParameters',
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appstream as appstream
cfn_app_block_props = appstream.CfnAppBlockProps(
name="name",
source_s3_location=appstream.CfnAppBlock.S3LocationProperty(
s3_bucket="s3Bucket",
# the properties below are optional
s3_key="s3Key"
),
# the properties below are optional
description="description",
display_name="displayName",
packaging_type="packagingType",
post_setup_script_details=appstream.CfnAppBlock.ScriptDetailsProperty(
executable_path="executablePath",
script_s3_location=appstream.CfnAppBlock.S3LocationProperty(
s3_bucket="s3Bucket",
# the properties below are optional
s3_key="s3Key"
),
timeout_in_seconds=123,
# the properties below are optional
executable_parameters="executableParameters"
),
setup_script_details=appstream.CfnAppBlock.ScriptDetailsProperty(
executable_path="executablePath",
script_s3_location=appstream.CfnAppBlock.S3LocationProperty(
s3_bucket="s3Bucket",
# the properties below are optional
s3_key="s3Key"
),
timeout_in_seconds=123,
# the properties below are optional
executable_parameters="executableParameters"
),
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// 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.*;
CfnAppBlockProps cfnAppBlockProps = CfnAppBlockProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppStream;
var cfnAppBlockProps = new CfnAppBlockProps {
Name = "name",
SourceS3Location = new S3LocationProperty {
S3Bucket = "s3Bucket",
// the properties below are optional
S3Key = "s3Key"
},
// the properties below are optional
Description = "description",
DisplayName = "displayName",
PackagingType = "packagingType",
PostSetupScriptDetails = new ScriptDetailsProperty {
ExecutablePath = "executablePath",
ScriptS3Location = new S3LocationProperty {
S3Bucket = "s3Bucket",
// the properties below are optional
S3Key = "s3Key"
},
TimeoutInSeconds = 123,
// the properties below are optional
ExecutableParameters = "executableParameters"
},
SetupScriptDetails = new ScriptDetailsProperty {
ExecutablePath = "executablePath",
ScriptS3Location = new S3LocationProperty {
S3Bucket = "s3Bucket",
// the properties below are optional
S3Key = "s3Key"
},
TimeoutInSeconds = 123,
// the properties below are optional
ExecutableParameters = "executableParameters"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnAppBlockProps := &CfnAppBlockProps{
Name: jsii.String("name"),
SourceS3Location: &S3LocationProperty{
S3Bucket: jsii.String("s3Bucket"),
// the properties below are optional
S3Key: jsii.String("s3Key"),
},
// the properties below are optional
Description: jsii.String("description"),
DisplayName: jsii.String("displayName"),
PackagingType: jsii.String("packagingType"),
PostSetupScriptDetails: &ScriptDetailsProperty{
ExecutablePath: jsii.String("executablePath"),
ScriptS3Location: &S3LocationProperty{
S3Bucket: jsii.String("s3Bucket"),
// the properties below are optional
S3Key: jsii.String("s3Key"),
},
TimeoutInSeconds: jsii.Number(123),
// the properties below are optional
ExecutableParameters: jsii.String("executableParameters"),
},
SetupScriptDetails: &ScriptDetailsProperty{
ExecutablePath: jsii.String("executablePath"),
ScriptS3Location: &S3LocationProperty{
S3Bucket: jsii.String("s3Bucket"),
// the properties below are optional
S3Key: jsii.String("s3Key"),
},
TimeoutInSeconds: jsii.Number(123),
// the properties below are optional
ExecutableParameters: jsii.String("executableParameters"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the app block.
displayNameoptionalstringdisplay_nameoptionalstrdisplayNameoptionalStringDisplayNameoptionalstringDisplayNameoptional*string #The display name of the app block.
The name of the app block.
Pattern : ^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$
packagingTypeoptionalstringpackaging_typeoptionalstrpackagingTypeoptionalStringPackagingTypeoptionalstringPackagingTypeoptional*string #The packaging type of the app block.
postSetupScriptDetailsoptionalIResolvable | CfnAppBlock.post_setup_script_detailsoptionaltyping.Union[IResolvable, ScriptDetailsProperty]postSetupScriptDetailsoptionalIResolvablePostSetupScriptDetailsoptionalIResolvablePostSetupScriptDetailsoptionalinterface{} #The post setup script details of the app block.
setupScriptDetailsoptionalIResolvable | CfnAppBlock.setup_script_detailsoptionaltyping.Union[IResolvable, ScriptDetailsProperty]setupScriptDetailsoptionalIResolvableSetupScriptDetailsoptionalIResolvableSetupScriptDetailsoptionalinterface{} #The setup script details of the app block.
sourceS3LocationIResolvable | CfnAppBlock.S3LocationPropertysource_s3_locationtyping.Union[IResolvable, S3LocationProperty]sourceS3LocationIResolvableSourceS3LocationIResolvableSourceS3Locationinterface{} required #The source S3 location of the app block.