aws-cdk-lib.AssetManifestFileDestination

interface AssetManifestFileDestination

LanguageType name
.NETAmazon.CDK.AssetManifestFileDestination
Gogithub.com/aws/aws-cdk-go/awscdk/v2#AssetManifestFileDestination
Javasoftware.amazon.awscdk.AssetManifestFileDestination
Pythonaws_cdk.AssetManifestFileDestination
TypeScript (source)aws-cdk-lib » AssetManifestFileDestination

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

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 assetManifestFileDestination: cdk.AssetManifestFileDestination = {
  bucketName: 'bucketName',

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

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

Properties

NameTypeDescription
bucketNamestringBucket name where the file asset should be written.
bucketPrefix?stringPrefix to prepend to the asset hash.
role?RoleOptionsRole to use for uploading.

bucketName

Type: string

Bucket name where the file asset should be written.


bucketPrefix?

Type: string (optional, default: '')

Prefix to prepend to the asset hash.


role?

Type: RoleOptions (optional, default: current role)

Role to use for uploading.