FileAssetLocation Struct
The location of the published file asset.
This is where the asset can be consumed at runtime.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const fileAssetLocation: cdk.FileAssetLocation = {
bucketName: 'bucketName',
httpUrl: 'httpUrl',
objectKey: 'objectKey',
s3ObjectUrl: 's3ObjectUrl',
// the properties below are optional
kmsKeyArn: 'kmsKeyArn',
s3ObjectUrlWithPlaceholders: 's3ObjectUrlWithPlaceholders',
};
Properties
This value suitable for inclusion in a CloudFormation template, and may be an encoded token.
Example value: https://s3-us-east-1.amazonaws.com/mybucket/myobject
kmsKeyArnstringkms_key_arnstrkmsKeyArnStringKmsKeyArnstringKmsKeyArn*string= Asset bucket is not encrypted, o…#The CDK bootstrap stack comes with a key policy that does not require setting this property, so you only need to set this property if you have customized the bootstrap stack to require it.
default
Default: Asset bucket is not encrypted, or decryption permissions are defined by a Key Policy.
This value suitable for inclusion in a CloudFormation template, and may be an encoded token.
Example value: s3://mybucket/myobject
s3ObjectUrlWithPlaceholdersstrings3_object_url_with_placeholdersstrs3ObjectUrlWithPlaceholdersStringS3ObjectUrlWithPlaceholdersstringS3ObjectUrlWithPlaceholders*string= This feature cannot be used#If there are placeholders in the S3 URL, they will be returned un-replaced and un-evaluated.