Table of Contents

Interface IAssetStagingProps

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

Initialization properties for AssetStaging.

public interface IAssetStagingProps : IFingerprintOptions, ICopyOptions, IAssetOptions
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            DockerImage dockerImage;
            ILocalBundling localBundling;
            var assetStagingProps = new AssetStagingProps {
                SourcePath = "sourcePath",

                // the properties below are optional
                AssetHash = "assetHash",
                AssetHashType = AssetHashType.SOURCE,
                Bundling = new BundlingOptions {
                    Image = dockerImage,

                    // the properties below are optional
                    Command = new [] { "command" },
                    Entrypoint = new [] { "entrypoint" },
                    Environment = new Dictionary<string, string> {
                        { "environmentKey", "environment" }
                    },
                    Local = localBundling,
                    OutputType = BundlingOutput.ARCHIVED,
                    SecurityOpt = "securityOpt",
                    User = "user",
                    Volumes = new [] { new DockerVolume {
                        ContainerPath = "containerPath",
                        HostPath = "hostPath",

                        // the properties below are optional
                        Consistency = DockerVolumeConsistency.CONSISTENT
                    } },
                    WorkingDirectory = "workingDirectory"
                },
                Exclude = new [] { "exclude" },
                ExtraHash = "extraHash",
                Follow = SymlinkFollowMode.NEVER,
                IgnoreMode = IgnoreMode.GLOB
            };

Remarks

ExampleMetadata: fixture=_generated

Properties

SourcePath

The source file or directory to copy from.

string SourcePath { get; }

Property Value

string