Show / Hide Table of Contents

Interface IInitSourceAssetOptions

Additional options for an InitSource that builds an asset from local files.

Inherited Members
IInitSourceOptions.ServiceRestartHandles
IAssetOptions.DeployTime
IAssetOptions.DisplayName
IAssetOptions.Readers
IAssetOptions.SourceKMSKey
IAssetOptions.AssetHash
IAssetOptions.AssetHashType
IAssetOptions.Bundling
IFileCopyOptions.Exclude
IFileCopyOptions.FollowSymlinks
IFileCopyOptions.IgnoreMode
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IInitSourceAssetOptions : IInitSourceOptions, IAssetOptions, IAssetOptions, IFileCopyOptions
Syntax (vb)
Public Interface IInitSourceAssetOptions Inherits IInitSourceOptions, IAssetOptions, IAssetOptions, IFileCopyOptions
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;
            using Amazon.CDK.AWS.EC2;
            using Amazon.CDK.AWS.IAM;
            using Amazon.CDK.Interfaces.KMS;

            DockerImage dockerImage;
            IGrantable grantable;
            InitServiceRestartHandle initServiceRestartHandle;
            IKeyRef keyRef;
            ILocalBundling localBundling;

            var initSourceAssetOptions = new InitSourceAssetOptions {
                AssetHash = "assetHash",
                AssetHashType = AssetHashType.SOURCE,
                Bundling = new BundlingOptions {
                    Image = dockerImage,

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

                        // the properties below are optional
                        Consistency = DockerVolumeConsistency.CONSISTENT
                    } },
                    VolumesFrom = new [] { "volumesFrom" },
                    WorkingDirectory = "workingDirectory"
                },
                DeployTime = false,
                DisplayName = "displayName",
                Exclude = new [] { "exclude" },
                FollowSymlinks = SymlinkFollowMode.NEVER,
                IgnoreMode = IgnoreMode.GLOB,
                Readers = new [] { grantable },
                ServiceRestartHandles = new [] { initServiceRestartHandle },
                SourceKMSKey = keyRef
            };

Synopsis

Back to top Generated by DocFX