Show / Hide Table of Contents

Interface IInitFileAssetOptions

Additional options for creating an InitFile from an asset.

Inherited Members
IInitFileOptions.Base64Encoded
IInitFileOptions.Group
IInitFileOptions.Mode
IInitFileOptions.Owner
IInitFileOptions.ServiceRestartHandles
IAssetOptions.Readers
IAssetOptions.SourceHash
ICopyOptions.Exclude
ICopyOptions.Follow
ICopyOptions.IgnoreMode
IFileCopyOptions.FollowSymlinks
IAssetOptions.AssetHash
IAssetOptions.AssetHashType
IAssetOptions.Bundling
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IInitFileAssetOptions : IInitFileOptions, IAssetOptions, ICopyOptions, IFileCopyOptions, IAssetOptions
Syntax (vb)
Public Interface IInitFileAssetOptions
    Inherits IInitFileOptions, IAssetOptions, ICopyOptions, IFileCopyOptions, IAssetOptions
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.Assets;
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK;

DockerImage dockerImage;
IGrantable grantable;
InitServiceRestartHandle initServiceRestartHandle;
ILocalBundling localBundling;
InitFileAssetOptions initFileAssetOptions = new InitFileAssetOptions {
    AssetHash = "assetHash",
    AssetHashType = AssetHashType.SOURCE,
    Base64Encoded = false,
    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" },
    Follow = FollowMode.NEVER,
    FollowSymlinks = SymlinkFollowMode.NEVER,
    Group = "group",
    IgnoreMode = IgnoreMode.GLOB,
    Mode = "mode",
    Owner = "owner",
    Readers = new [] { grantable },
    ServiceRestartHandles = new [] { initServiceRestartHandle },
    SourceHash = "sourceHash"
};

Synopsis

Back to top Generated by DocFX