Class FileSource
Describe the source of a file asset.
Inheritance
System.Object
FileSource
Implements
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public class FileSource : Object, IFileSource
Syntax (vb)
Public Class FileSource
Inherits Object
Implements IFileSource
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CloudAssembly.Schema;
var fileSource = new FileSource {
Executable = new [] { "executable" },
Packaging = FileAssetPackaging.FILE,
Path = "path"
};
Synopsis
Constructors
FileSource() |
Properties
Executable | External command which will produce the file asset to upload. |
Packaging | Packaging method. |
Path | The filesystem object to upload. |
Constructors
FileSource()
public FileSource()
Properties
Executable
External command which will produce the file asset to upload.
public string[] Executable { get; set; }
Property Value
System.String[]
Remarks
Default: - Exactly one of executable
and path
is required.
Packaging
Packaging method.
public Nullable<FileAssetPackaging> Packaging { get; set; }
Property Value
System.Nullable<FileAssetPackaging>
Remarks
Only allowed when path
is specified.
Default: FILE
Path
The filesystem object to upload.
public string Path { get; set; }
Property Value
System.String
Remarks
This path is relative to the asset manifest location.
Default: - Exactly one of executable
and path
is required.