Interface IFileAssetSource
Represents the source for a file asset.
public interface IFileAssetSource
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var fileAssetSource = new FileAssetSource {
SourceHash = "sourceHash",
// the properties below are optional
Executable = new [] { "executable" },
FileName = "fileName",
Packaging = FileAssetPackaging.ZIP_DIRECTORY
};
Remarks
ExampleMetadata: fixture=_generated
Properties
Executable
An external command that will produce the packaged asset.
string[]? Executable { get; }
Property Value
- string[]
Remarks
The command should produce the location of a ZIP file on stdout
.
Default: - Exactly one of directory
and executable
is required
FileName
The path, relative to the root of the cloud assembly, in which this asset source resides.
string? FileName { get; }
Property Value
Remarks
This can be a path to a file or a directory, depending on the packaging type.
Default: - Exactly one of directory
and executable
is required
Packaging
Which type of packaging to perform.
FileAssetPackaging? Packaging { get; }
Property Value
Remarks
Default: - Required if fileName
is specified.
SourceHash
A hash on the content source.
string SourceHash { get; }
Property Value
Remarks
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.