A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.FileAssetSource.html below:

interface FileAssetSource · AWS CDK

interface FileAssetSource

Obtainable from StackSynthesizer.synthesizeTemplate()

Represents the source for a file asset.

Example


import * as cdk from 'aws-cdk-lib';
const fileAssetSource: cdk.FileAssetSource = {
  sourceHash: 'sourceHash',

  
  deployTime: false,
  displayName: 'displayName',
  executable: ['executable'],
  fileName: 'fileName',
  packaging: cdk.FileAssetPackaging.ZIP_DIRECTORY,
};
Properties Name Type Description sourceHash string A hash on the content source. deployTime? boolean Whether or not the asset needs to exist beyond deployment time; displayName? string A display name for this asset. executable? string[] An external command that will produce the packaged asset. fileName? string The path, relative to the root of the cloud assembly, in which this asset source resides. packaging? FileAssetPackaging Which type of packaging to perform. sourceHash

Type: string

A hash on the content source.

This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.

deployTime?

Type: boolean (optional, default: false)

Whether or not the asset needs to exist beyond deployment time;

i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds.

For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets.

displayName?

Type: string (optional, default: The asset hash is used to display the asset)

A display name for this asset.

If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information.

executable?

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

An external command that will produce the packaged asset.

The command should produce the location of a ZIP file on stdout.

fileName?

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

The path, relative to the root of the cloud assembly, in which this asset source resides.

This can be a path to a file or a directory, depending on the packaging type.

packaging?

Type: FileAssetPackaging (optional, default: Required if fileName is specified.)

Which type of packaging to perform.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4