@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:46.889Z") @Stability(value=Experimental) public interface ExecuteFileOptions extends software.amazon.jsii.JsiiSerializable
Example:
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()
(experimental) The arguments to be passed to the file.
|
String |
getFilePath()
(experimental) The path to the file.
|
@Stability(value=Experimental) @NotNull String getFilePath()
@Stability(value=Experimental) @Nullable default String getArguments()
Default: No arguments are passed to the file.
@Stability(value=Experimental) static ExecuteFileOptions.Builder builder()
ExecuteFileOptions.Builder of ExecuteFileOptionsCopyright © 2022. All rights reserved.