aws-cdk-lib.cloud_assembly_schema.FileAsset

interface FileAsset

LanguageType name
.NETAmazon.CDK.CloudAssembly.Schema.FileAsset
Gogithub.com/aws/aws-cdk-go/awscdk/v2/cloudassemblyschema#FileAsset
Javasoftware.amazon.awscdk.cloudassembly.schema.FileAsset
Pythonaws_cdk.cloud_assembly_schema.FileAsset
TypeScript (source)aws-cdk-lib » cloud_assembly_schema » FileAsset

A file asset.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
const fileAsset: cloud_assembly_schema.FileAsset = {
  destinations: {
    destinationsKey: {
      bucketName: 'bucketName',
      objectKey: 'objectKey',

      // the properties below are optional
      assumeRoleArn: 'assumeRoleArn',
      assumeRoleExternalId: 'assumeRoleExternalId',
      region: 'region',
    },
  },
  source: {
    executable: ['executable'],
    packaging: cloud_assembly_schema.FileAssetPackaging.FILE,
    path: 'path',
  },
};

Properties

NameTypeDescription
destinations{ [string]: FileDestination }Destinations for this file asset.
sourceFileSourceSource description for file assets.

destinations

Type: { [string]: FileDestination }

Destinations for this file asset.


source

Type: FileSource

Source description for file assets.