@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:47.056Z") @Stability(value=Experimental) public interface S3DownloadOptions 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 |
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()
(experimental) Name of the S3 bucket to download from.
|
String |
getBucketKey()
(experimental) The key of the file to download.
|
default String |
getLocalFile()
(experimental) The name of the local file.
|
default String |
getRegion()
(experimental) The region of the S3 Bucket (needed for access via VPC Gateway).
|
@Stability(value=Experimental) @NotNull IBucket getBucket()
@Stability(value=Experimental) @NotNull String getBucketKey()
@Stability(value=Experimental) @Nullable default String getLocalFile()
Default: Linux - /tmp/bucketKey Windows - %TEMP%/bucketKey
@Stability(value=Experimental) @Nullable default String getRegion()
Default: none
@Stability(value=Experimental) static S3DownloadOptions.Builder builder()
S3DownloadOptions.Builder of S3DownloadOptionsCopyright © 2022. All rights reserved.