Show / Hide Table of Contents

Interface ICustomCommandOptions

Options for creating AssetCode with a custom command, such as running a buildfile.

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

            var commandOptions;
            DockerImage dockerImage;
            IGrantable grantable;
            IKeyRef keyRef;
            ILocalBundling localBundling;

            var customCommandOptions = new CustomCommandOptions {
                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"
                },
                CommandOptions = new Dictionary<string, object> {
                    { "commandOptionsKey", commandOptions }
                },
                DeployTime = false,
                DisplayName = "displayName",
                Exclude = new [] { "exclude" },
                FollowSymlinks = SymlinkFollowMode.NEVER,
                IgnoreMode = IgnoreMode.GLOB,
                Readers = new [] { grantable },
                SourceKMSKey = keyRef
            };

Synopsis

Properties

CommandOptions

options that are passed to the spawned process, which determine the characteristics of the spawned process.

Properties

CommandOptions

options that are passed to the spawned process, which determine the characteristics of the spawned process.

IDictionary<string, object>? CommandOptions { get; }
Property Value

IDictionary<string, object>

Remarks

Default: : see child_process.SpawnSyncOptions (https://nodejs.org/api/child_process.html#child_processspawnsynccommand-args-options).

Back to top Generated by DocFX