Skip to content
v2.278.0

S3LocationProperty Struct ​

The S3 location of the app block.

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 s3LocationProperty: appstream.CfnAppBlock.S3LocationProperty = {
  s3Bucket: 's3Bucket',

  // the properties below are optional
  s3Key: 's3Key',
};
python
# 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

s3_location_property = appstream.CfnAppBlock.S3LocationProperty(
    s3_bucket="s3Bucket",

    # the properties below are optional
    s3_key="s3Key"
)
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.*;

S3LocationProperty s3LocationProperty = S3LocationProperty.builder()
        .s3Bucket("s3Bucket")

        // the properties below are optional
        .s3Key("s3Key")
        .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 s3LocationProperty = new S3LocationProperty {
    S3Bucket = "s3Bucket",

    // the properties below are optional
    S3Key = "s3Key"
};
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"

s3LocationProperty := &S3LocationProperty{
	S3Bucket: jsii.String("s3Bucket"),

	// the properties below are optional
	S3Key: jsii.String("s3Key"),
}

Properties ​

s3Bucketstrings3_bucketstrs3BucketStringS3BucketstringS3Bucket*string required #
The S3 bucket of the app block.
s3Keyoptionalstrings3_keyoptionalstrs3KeyoptionalStringS3KeyoptionalstringS3Keyoptional*string #
The S3 key of the S3 object of the virtual hard disk.

This is required when it's used by SetupScriptDetails and PostSetupScriptDetails .