Show / Hide Table of Contents

Interface IExecuteFileOptions

Options when executing a file.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IExecuteFileOptions
Syntax (vb)
Public Interface IExecuteFileOptions
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.S3.Assets;

            Instance instance;


            var asset = new Asset(this, "Asset", new AssetProps {
                Path = "./configure.sh"
            });

            var localPath = instance.UserData.AddS3DownloadCommand(new S3DownloadOptions {
                Bucket = asset.Bucket,
                BucketKey = asset.S3ObjectKey,
                Region = "us-east-1"
            });
            instance.UserData.AddExecuteFileCommand(new ExecuteFileOptions {
                FilePath = localPath,
                Arguments = "--verbose -y"
            });
            asset.GrantRead(instance.Role);

Synopsis

Properties

Arguments

The arguments to be passed to the file.

FilePath

The path to the file.

Properties

Arguments

The arguments to be passed to the file.

string? Arguments { get; }
Property Value

string

Remarks

Default: No arguments are passed to the file.

FilePath

The path to the file.

string FilePath { get; }
Property Value

string

Remarks

ExampleMetadata: infused

Back to top Generated by DocFX