Skip to content

IUploadMedia

Represents a UploadMedia.

Properties

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

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node for this construct.


envRequired

public IResourceEnvironment getEnv();
  • Type: com.aliyun.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 Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


attrFileUrlRequired

public java.lang.Object getAttrFileUrl();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute FileURL: The OSS URL of the file.

The URL does not contain the information used for authentication.


attrMediaIdRequired

public java.lang.Object getAttrMediaId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute MediaId: The ID of the media asset.


attrMediaUrlRequired

public java.lang.Object getAttrMediaUrl();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getAttrUploadAddress();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getAttrUploadAuth();
  • Type: java.lang.String OR com.aliyun.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 UploadMediaProps getProps();