@aws-cdk_cloud-assembly-schema.FileSource

interface FileSource

LanguageType name
.NETAmazon.CDK.CloudAssembly.Schema.FileSource
Javasoftware.amazon.awscdk.cloudassembly.schema.FileSource
Pythonaws_cdk.cloud_assembly_schema.FileSource
TypeScript (source)@aws-cdk/cloud-assembly-schema » FileSource

Describe the source of 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 fileSource: cloud_assembly_schema.FileSource = {
  executable: ['executable'],
  packaging: cloud_assembly_schema.FileAssetPackaging.FILE,
  path: 'path',
};

Properties

NameTypeDescription
executable?string[]External command which will produce the file asset to upload.
packaging?FileAssetPackagingPackaging method.
path?stringThe filesystem object to upload.

executable?

Type: string[] (optional, default: Exactly one of executable and path is required.)

External command which will produce the file asset to upload.


packaging?

Type: FileAssetPackaging (optional, default: FILE)

Packaging method.

Only allowed when path is specified.


path?

Type: string (optional, default: Exactly one of executable and path is required.)

The filesystem object to upload.

This path is relative to the asset manifest location.