Class ExecuteFileOptions
Options when executing a file.
Inheritance
System.Object
ExecuteFileOptions
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class ExecuteFileOptions : Object, IExecuteFileOptions
Syntax (vb)
Public Class ExecuteFileOptions
Inherits Object
Implements 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
Constructors
ExecuteFileOptions() |
Properties
Arguments | The arguments to be passed to the file. |
FilePath | The path to the file. |
Constructors
ExecuteFileOptions()
public ExecuteFileOptions()
Properties
Arguments
The arguments to be passed to the file.
public string Arguments { get; set; }
Property Value
System.String
Remarks
Default: No arguments are passed to the file.
FilePath
The path to the file.
public string FilePath { get; set; }
Property Value
System.String