Skip to content

FileAssetLocation

The location of the published file asset.

This is where the asset can be consumed at runtime.

Initializer

import ros_cdk_core
ros_cdk_core.FileAssetLocation(
  bucket_name: str,
  http_url: str,
  object_key: str,
  region: str = None
)

Properties

Name Type Description
bucket_name str The name of the OSS bucket.
http_url str The HTTP URL of this asset on OSS.
object_key str The path of OSS object.
region str The region of the OSS bucket.

bucket_nameRequired

bucket_name: str
  • Type: str

The name of the OSS bucket.


http_urlRequired

http_url: str
  • Type: str

The HTTP URL of this asset on OSS.

This value suitable for inclusion in a ROS template, and may be an encoded token.

Example value: https://${bucketName}.oss-${region}.aliyuncs.com/${objectKey}


object_keyRequired

object_key: str
  • Type: str

The path of OSS object.


regionOptional

region: str
  • Type: str

The region of the OSS bucket.