@aws-cdk_cloud-assembly-schema.FileAsset

interface FileAsset

LanguageType name
.NETAmazon.CDK.CloudAssembly.Schema.FileAsset
Javasoftware.amazon.awscdk.cloudassembly.schema.FileAsset
Pythonaws_cdk.cloud_assembly_schema.FileAsset
TypeScript (source)@aws-cdk/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 * as cloud_assembly_schema from '@aws-cdk/cloud-assembly-schema';
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.