@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.494Z") @Stability(value=Stable) public interface S3DownloadOptions 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 |
S3DownloadOptions.Builder
A builder for
S3DownloadOptions |
static class |
S3DownloadOptions.Jsii$Proxy
An implementation for
S3DownloadOptions |
| Modifier and Type | Method and Description |
|---|---|
static S3DownloadOptions.Builder |
builder() |
IBucket |
getBucket()
Name of the S3 bucket to download from.
|
String |
getBucketKey()
The key of the file to download.
|
default String |
getLocalFile()
The name of the local file.
|
default String |
getRegion()
The region of the S3 Bucket (needed for access via VPC Gateway).
|
@Stability(value=Stable) @NotNull IBucket getBucket()
@Stability(value=Stable) @NotNull String getBucketKey()
@Stability(value=Stable) @Nullable default String getLocalFile()
Default: Linux - /tmp/bucketKey Windows - %TEMP%/bucketKey
@Stability(value=Stable) @Nullable default String getRegion()
Default: none
@Stability(value=Stable) static S3DownloadOptions.Builder builder()
S3DownloadOptions.Builder of S3DownloadOptionsCopyright © 2022. All rights reserved.