Skip to content
v2.273.0

AssetManifestFileDestination Struct ​

The destination for a file asset, when it is given to the AssetManifestBuilder.

Example ​

ts
// 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';

declare const assumeRoleAdditionalOptions: any;
const assetManifestFileDestination: cdk.AssetManifestFileDestination = {
  bucketName: 'bucketName',

  // the properties below are optional
  bucketPrefix: 'bucketPrefix',
  role: {
    assumeRoleArn: 'assumeRoleArn',

    // the properties below are optional
    assumeRoleAdditionalOptions: {
      assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
    },
    assumeRoleExternalId: 'assumeRoleExternalId',
  },
};

Properties ​

bucketNamestringbucket_namestrbucketNameStringBucketNamestringBucketName*stringrequired#
Bucket name where the file asset should be written.
bucketPrefixstringbucket_prefixstrbucketPrefixStringBucketPrefixstringBucketPrefix*string= ''#
Prefix to prepend to the asset hash.
Role to use for uploading.