Skip to content

FileAssetLocation

The location of the published file asset.

This is where the asset can be consumed at runtime.

Initializer

import { FileAssetLocation } from '@alicloud/ros-cdk-core'
const fileAssetLocation: FileAssetLocation = { ... }

Properties

Name Type Description
bucketName string The name of the OSS bucket.
httpUrl string The HTTP URL of this asset on OSS.
objectKey string The path of OSS object.
region string The region of the OSS bucket.

bucketNameRequired

public readonly bucketName: string;
  • Type: string

The name of the OSS bucket.


httpUrlRequired

public readonly httpUrl: string;
  • Type: string

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}


objectKeyRequired

public readonly objectKey: string;
  • Type: string

The path of OSS object.


regionOptional

public readonly region: string;
  • Type: string

The region of the OSS bucket.