@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-14T16:25:28.741Z")
public interface S3DownloadOptions
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 |
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.
|
java.lang.String |
getBucketKey()
The key of the file to download.
|
default java.lang.String |
getLocalFile()
The name of the local file.
|
default java.lang.String |
getRegion()
The region of the S3 Bucket (needed for access via VPC Gateway).
|
IBucket getBucket()
java.lang.String getBucketKey()
default java.lang.String getLocalFile()
Default: Linux - /tmp/bucketKey Windows - %TEMP%/bucketKey
default java.lang.String getRegion()
Default: none
static S3DownloadOptions.Builder builder()
S3DownloadOptions.Builder
of S3DownloadOptions