FileAssetLocation

class aws_cdk.core.FileAssetLocation(*, bucket_name, http_url, object_key, s3_object_url, s3_url)

Bases: object

__init__(*, bucket_name, http_url, object_key, s3_object_url, s3_url)

The location of the published file asset.

This is where the asset can be consumed at runtime.

Parameters
  • bucket_name (str) – The name of the Amazon S3 bucket.

  • http_url (str) – The HTTP URL of this asset on Amazon S3.

  • object_key (str) – The Amazon S3 object key.

  • s3_object_url (str) – The S3 URL of this asset on Amazon S3.

  • s3_url (str) – The HTTP URL of this asset on Amazon S3.

Return type

None

Attributes

bucket_name

The name of the Amazon S3 bucket.

Return type

str

http_url

The HTTP URL of this asset on Amazon S3.

Example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
https:
Return type

str

object_key

The Amazon S3 object key.

Return type

str

s3_object_url

The S3 URL of this asset on Amazon S3.

Example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
s3:
Return type

str

s3_url

The HTTP URL of this asset on Amazon S3.

deprecated :deprecated: use httpUrl

stability :stability: deprecated

Return type

str