Skip to content

IUploadMedia

Represents a UploadMedia.

Properties

Name Type Description
node @alicloud/ros-cdk-core.ConstructNode The construct tree node for this construct.
env @alicloud/ros-cdk-core.IResourceEnvironment The environment this resource belongs to.
stack @alicloud/ros-cdk-core.Stack The stack in which this resource is defined.
attrFileUrl string | @alicloud/ros-cdk-core.IResolvable Attribute FileURL: The OSS URL of the file.
attrMediaId string | @alicloud/ros-cdk-core.IResolvable Attribute MediaId: The ID of the media asset.
attrMediaUrl string | @alicloud/ros-cdk-core.IResolvable Attribute MediaURL: The URL of the media asset.
attrUploadAddress string | @alicloud/ros-cdk-core.IResolvable Attribute UploadAddress: The upload URL.
attrUploadAuth string | @alicloud/ros-cdk-core.IResolvable Attribute UploadAuth: The upload credential.
props UploadMediaProps No description.

nodeRequired

public readonly node: ConstructNode;
  • Type: @alicloud/ros-cdk-core.ConstructNode

The construct tree node for this construct.


envRequired

public readonly env: IResourceEnvironment;
  • Type: @alicloud/ros-cdk-core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


stackRequired

public readonly stack: Stack;
  • Type: @alicloud/ros-cdk-core.Stack

The stack in which this resource is defined.


attrFileUrlRequired

public readonly attrFileUrl: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute FileURL: The OSS URL of the file.

The URL does not contain the information used for authentication.


attrMediaIdRequired

public readonly attrMediaId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute MediaId: The ID of the media asset.


attrMediaUrlRequired

public readonly attrMediaUrl: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute MediaURL: The URL of the media asset.

Note If a domain name for Alibaba Cloud CDN (CDN) is specified, a CDN URL is returned. Otherwise, an OSS URL is returned. If the HTTP status code 403 is returned when you access the URL from your browser, the URL authentication feature of ApsaraVideo VOD is enabled. To resolve this issue, disable URL authentication or generate an authentication signature.


attrUploadAddressRequired

public readonly attrUploadAddress: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute UploadAddress: The upload URL.

Note The returned upload URL is a Base64-encoded URL. You must decode the Base64-encoded upload URL before you use an SDK or call an API operation to upload media files. You need to parse UploadAddress only if you use OSS SDK or call an OSS API operation to upload media files.


attrUploadAuthRequired

public readonly attrUploadAuth: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Attribute UploadAuth: The upload credential.

Note The returned upload credential is a Base64-encoded value. You must decode the Base64-encoded upload URL before you use an SDK or call an API operation to upload media files. You need to parse UploadAuth only if you use OSS SDK or call an OSS API operation to upload media files.


propsRequired

public readonly props: UploadMediaProps;