S3DownloadOptions

class aws_cdk.aws_ec2.S3DownloadOptions(*, bucket, bucket_key, local_file=None)

Bases: object

__init__(*, bucket, bucket_key, local_file=None)

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

Return type

None

Attributes

bucket

Name of the S3 bucket to download from.

Return type

IBucket

bucket_key

The key of the file to download.

Return type

str

local_file

The name of the local file.

default :default:

Linux - /tmp/bucketKey Windows - %TEMP%/bucketKey

Return type

Optional[str]