@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.413Z") @Stability(value=Stable) public interface ExecuteFileOptions extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.s3.assets.Asset;
Instance instance;
Asset asset = Asset.Builder.create(this, "Asset")
.path("./configure.sh")
.build();
String localPath = instance.userData.addS3DownloadCommand(S3DownloadOptions.builder()
.bucket(asset.getBucket())
.bucketKey(asset.getS3ObjectKey())
.region("us-east-1")
.build());
instance.userData.addExecuteFileCommand(ExecuteFileOptions.builder()
.filePath(localPath)
.arguments("--verbose -y")
.build());
asset.grantRead(instance.getRole());
| Modifier and Type | Interface and Description |
|---|---|
static class |
ExecuteFileOptions.Builder
A builder for
ExecuteFileOptions |
static class |
ExecuteFileOptions.Jsii$Proxy
An implementation for
ExecuteFileOptions |
| Modifier and Type | Method and Description |
|---|---|
static ExecuteFileOptions.Builder |
builder() |
default String |
getArguments()
The arguments to be passed to the file.
|
String |
getFilePath()
The path to the file.
|
@Stability(value=Stable) @NotNull String getFilePath()
@Stability(value=Stable) @Nullable default String getArguments()
Default: No arguments are passed to the file.
@Stability(value=Stable) static ExecuteFileOptions.Builder builder()
ExecuteFileOptions.Builder of ExecuteFileOptionsCopyright © 2022. All rights reserved.