S3DownloadOptions¶
-
class
aws_cdk.aws_ec2.
S3DownloadOptions
(*, bucket, bucket_key, local_file=None)¶ Bases:
object
Options when downloading files from S3.
- Parameters
bucket (
IBucket
) – Name of the S3 bucket to download from.bucket_key (
str
) – The key of the file to download.local_file (
Optional
[str
]) – The name of the local file. Default: Linux - /tmp/bucketKey Windows - %TEMP%/bucketKey
Attributes
-
bucket_key
¶ The key of the file to download.
- Return type
str
-
local_file
¶ The name of the local file.
- Default
Linux - /tmp/bucketKey Windows - %TEMP%/bucketKey
- Return type
Optional
[str
]