Skip to content

IUploadMedia

Represents a UploadMedia.

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node for this construct.
env ros_cdk_core.IResourceEnvironment The environment this resource belongs to.
stack ros_cdk_core.Stack The stack in which this resource is defined.
attr_file_url typing.Union[str, ros_cdk_core.IResolvable] Attribute FileURL: The OSS URL of the file.
attr_media_id typing.Union[str, ros_cdk_core.IResolvable] Attribute MediaId: The ID of the media asset.
attr_media_url typing.Union[str, ros_cdk_core.IResolvable] Attribute MediaURL: The URL of the media asset.
attr_upload_address typing.Union[str, ros_cdk_core.IResolvable] Attribute UploadAddress: The upload URL.
attr_upload_auth typing.Union[str, ros_cdk_core.IResolvable] Attribute UploadAuth: The upload credential.
props UploadMediaProps No description.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node for this construct.


envRequired

env: IResourceEnvironment
  • Type: 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

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


attr_file_urlRequired

attr_file_url: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute FileURL: The OSS URL of the file.

The URL does not contain the information used for authentication.


attr_media_idRequired

attr_media_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute MediaId: The ID of the media asset.


attr_media_urlRequired

attr_media_url: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


attr_upload_addressRequired

attr_upload_address: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


attr_upload_authRequired

attr_upload_auth: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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

props: UploadMediaProps