aws-cdk-lib.cloud_assembly_schema.FileSource

interface FileSource

LanguageType name
.NETAmazon.CDK.CloudAssembly.Schema.FileSource
Gogithub.com/aws/aws-cdk-go/awscdk/v2/cloudassemblyschema#FileSource
Javasoftware.amazon.awscdk.cloudassembly.schema.FileSource
Pythonaws_cdk.cloud_assembly_schema.FileSource
TypeScript (source)aws-cdk-lib » 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 { cloud_assembly_schema } from 'aws-cdk-lib';
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.