Interface ExecuteFileOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ExecuteFileOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:19.394Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forExecuteFileOptionsstatic final classAn implementation forExecuteFileOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecuteFileOptions.Builderbuilder()default StringThe 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.BuilderofExecuteFileOptions
-