Interface ExecuteFileOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ExecuteFileOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.308Z")
@Stability(Stable)
public interface ExecuteFileOptions
extends software.amazon.jsii.JsiiSerializable
Options when executing a file.
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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forExecuteFileOptions
static final class
An implementation forExecuteFileOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExecuteFileOptions.Builder
builder()
default String
The arguments to be passed to the file.The path to the file.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFilePath
The path to the file. -
getArguments
The arguments to be passed to the file.Default: No arguments are passed to the file.
-
builder
- Returns:
- a
ExecuteFileOptions.Builder
ofExecuteFileOptions
-