Download
- Implements: IDownload
This class encapsulates and extends the ROS resource type ALIYUN::DBS::Download.
Initializers
import com.aliyun.ros.cdk.dbs.Download;
Download.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.formatType(java.lang.String)
.formatType(IResolvable)
.instanceName(java.lang.String)
.instanceName(IResolvable)
// .bakSetId(java.lang.String)
// .bakSetId(IResolvable)
// .bakSetSize(java.lang.String)
// .bakSetSize(IResolvable)
// .bakSetType(java.lang.String)
// .bakSetType(IResolvable)
// .deleteBackupSetInOss(java.lang.Boolean)
// .deleteBackupSetInOss(IResolvable)
// .downloadAddressDuration(java.lang.Number)
// .downloadAddressDuration(IResolvable)
// .downloadPointInTime(java.lang.String)
// .downloadPointInTime(IResolvable)
// .targetBucket(java.lang.String)
// .targetBucket(IResolvable)
// .targetOssRegion(java.lang.String)
// .targetOssRegion(IResolvable)
// .targetPath(java.lang.String)
// .targetPath(IResolvable)
// .targetType(java.lang.String)
// .targetType(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
formatType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property formatType: The target format of the downloaded data. |
instanceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property instanceName: The ID of the instance. |
bakSetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bakSetId: The ID of the backup set. |
bakSetSize | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bakSetSize: The size of the full backup set. |
bakSetType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bakSetType: The type of the download task. |
deleteBackupSetInOss | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property deleteBackupSetInOss: Whether to delete the backup set in OSS when deleting the stack. |
downloadAddressDuration | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property downloadAddressDuration: When the download target is a URL, set the link validity period. |
downloadPointInTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property downloadPointInTime: The point in time at which the backup set is downloaded. |
targetBucket | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property targetBucket: The name of the OSS bucket that is used to store the backup set. |
targetOssRegion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property targetOssRegion: The region in which the OSS bucket resides. |
targetPath | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property targetPath: The destination path to which the backup set is downloaded. |
targetType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property targetType: The type of the destination to which the backup set is downloaded. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
formatTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property formatType: The target format of the downloaded data.
Valid values:
- CSV
- SQL
- Parquet
- Bson
- qp.xb
This parameter is required. The
Bsonformat is available only for MongoDB instances. Theqp.xbformat is available only for ApsaraDB RDS for MySQL instances.
instanceNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceName: The ID of the instance.
bakSetIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property bakSetId: The ID of the backup set.
You can call the DescribeBackups operation to query the ID of the backup set. This parameter is required if the BakSetType parameter is set to full.
bakSetSizeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property bakSetSize: The size of the full backup set.
Unit: bytes. You can call the DescribeBackups operation to query the size of the full backup set.
bakSetTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property bakSetType: The type of the download task.
Valid values: full: downloads a full backup set pitr: downloads a backup set at a specific point in time.
deleteBackupSetInOssOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deleteBackupSetInOss: Whether to delete the backup set in OSS when deleting the stack.
Valid values: true|false, default is true.
downloadAddressDurationOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property downloadAddressDuration: When the download target is a URL, set the link validity period.
The default URL validity period is 7200 seconds. The effective duration range can be set from 300 seconds to 86400 seconds
downloadPointInTimeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property downloadPointInTime: The point in time at which the backup set is downloaded.
Specify a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. This parameter is required if the BakSetType parameter is set to pitr.
targetBucketOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property targetBucket: The name of the OSS bucket that is used to store the backup set.
This parameter is required if the TargetType parameter is set to OSS. Make sure that your account is granted the AliyunDBSDefaultRole permission. For more information, see Use RAM for resource authorization. You can also grant permissions based on the operation instructions in the Resource Access Management (RAM) console.
targetOssRegionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property targetOssRegion: The region in which the OSS bucket resides.
This parameter is required if the TargetType parameter is set to OSS.
targetPathOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property targetPath: The destination path to which the backup set is downloaded.
This parameter is required if the TargetType parameter is set to OSS.
targetTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property targetType: The type of the destination to which the backup set is downloaded.
Valid values: OSS|URL
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.dbs.Download;
Download.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrBakSetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute BakSetId: The ID of the backup set. |
attrDownloadAddressInfo | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DownloadAddressInfo: The download address information. |
attrInstanceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InstanceName: The ID of the instance. |
attrTaskId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute TaskId: The ID of the download task. |
props | DownloadProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with 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.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrBakSetIdRequired
public java.lang.Object getAttrBakSetId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute BakSetId: The ID of the backup set.
attrDownloadAddressInfoRequired
public java.lang.Object getAttrDownloadAddressInfo();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DownloadAddressInfo: The download address information.
attrInstanceNameRequired
public java.lang.Object getAttrInstanceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceName: The ID of the instance.
attrTaskIdRequired
public java.lang.Object getAttrTaskId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute TaskId: The ID of the download task.
propsRequired
public DownloadProps getProps();
- Type: DownloadProps