IUploadMedia
-
Extends: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResource
-
Implemented By: UploadMedia, IUploadMedia
Represents a UploadMedia.
Properties
| Name | Type | Description |
|---|---|---|
Node | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode | The construct tree node for this construct. |
Env | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment | The environment this resource belongs to. |
Stack | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack | The stack in which this resource is defined. |
AttrFileUrl | interface{} | Attribute FileURL: The OSS URL of the file. |
AttrMediaId | interface{} | Attribute MediaId: The ID of the media asset. |
AttrMediaUrl | interface{} | Attribute MediaURL: The URL of the media asset. |
AttrUploadAddress | interface{} | Attribute UploadAddress: The upload URL. |
AttrUploadAuth | interface{} | Attribute UploadAuth: The upload credential. |
Props | UploadMediaProps | No description. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node for this construct.
EnvRequired
func Env() IResourceEnvironment
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
AttrFileUrlRequired
func AttrFileUrl() interface{}
- Type: interface{}
Attribute FileURL: The OSS URL of the file.
The URL does not contain the information used for authentication.
AttrMediaIdRequired
func AttrMediaId() interface{}
- Type: interface{}
Attribute MediaId: The ID of the media asset.
AttrMediaUrlRequired
func AttrMediaUrl() interface{}
- Type: interface{}
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
func AttrUploadAddress() interface{}
- Type: interface{}
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
func AttrUploadAuth() interface{}
- Type: interface{}
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
func Props() UploadMediaProps
- Type: UploadMediaProps