Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

OtsBackupPlan

Provides a HBR Ots Backup Plan resource.

For information about HBR Ots Backup Plan and how to use it, see What is Ots Backup Plan.

NOTE: Available in v1.163.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "testAcc";
        var @default = new AliCloud.Hbr.Vault("default", new AliCloud.Hbr.VaultArgs
        {
            VaultName = name,
            VaultType = "OTS_BACKUP",
        });
        var foo = new AliCloud.Ots.Instance("foo", new AliCloud.Ots.InstanceArgs
        {
            Description = name,
            AccessedBy = "Any",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "acceptance test" },
            },
        });
        var basic = new AliCloud.Ots.Table("basic", new AliCloud.Ots.TableArgs
        {
            InstanceName = foo.Name,
            TableName = name,
            PrimaryKeys = 
            {
                new AliCloud.Ots.Inputs.TablePrimaryKeyArgs
                {
                    Name = "pk1",
                    Type = "Integer",
                },
            },
            TimeToLive = -1,
            MaxVersion = 1,
            DeviationCellVersionInSec = "1",
        });
        var example = new AliCloud.Hbr.OtsBackupPlan("example", new AliCloud.Hbr.OtsBackupPlanArgs
        {
            OtsBackupPlanName = name,
            VaultId = @default.Id,
            BackupType = "COMPLETE",
            Schedule = "I|1602673264|PT2H",
            Retention = "2",
            InstanceName = foo.Name,
            OtsDetails = 
            {
                new AliCloud.Hbr.Inputs.OtsBackupPlanOtsDetailArgs
                {
                    TableNames = 
                    {
                        basic.TableName,
                    },
                },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "testAcc"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := hbr.NewVault(ctx, "default", &hbr.VaultArgs{
			VaultName: pulumi.String(name),
			VaultType: pulumi.String("OTS_BACKUP"),
		})
		if err != nil {
			return err
		}
		foo, err := ots.NewInstance(ctx, "foo", &ots.InstanceArgs{
			Description: pulumi.String(name),
			AccessedBy:  pulumi.String("Any"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("acceptance test"),
			},
		})
		if err != nil {
			return err
		}
		basic, err := ots.NewTable(ctx, "basic", &ots.TableArgs{
			InstanceName: foo.Name,
			TableName:    pulumi.String(name),
			PrimaryKeys: ots.TablePrimaryKeyArray{
				&ots.TablePrimaryKeyArgs{
					Name: pulumi.String("pk1"),
					Type: pulumi.String("Integer"),
				},
			},
			TimeToLive:                -1,
			MaxVersion:                pulumi.Int(1),
			DeviationCellVersionInSec: pulumi.String("1"),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewOtsBackupPlan(ctx, "example", &hbr.OtsBackupPlanArgs{
			OtsBackupPlanName: pulumi.String(name),
			VaultId:           _default.ID(),
			BackupType:        pulumi.String("COMPLETE"),
			Schedule:          pulumi.String("I|1602673264|PT2H"),
			Retention:         pulumi.String("2"),
			InstanceName:      foo.Name,
			OtsDetails: hbr.OtsBackupPlanOtsDetailArray{
				&hbr.OtsBackupPlanOtsDetailArgs{
					TableNames: pulumi.StringArray{
						basic.TableName,
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "testAcc"
default = alicloud.hbr.Vault("default",
    vault_name=name,
    vault_type="OTS_BACKUP")
foo = alicloud.ots.Instance("foo",
    description=name,
    accessed_by="Any",
    tags={
        "Created": "TF",
        "For": "acceptance test",
    })
basic = alicloud.ots.Table("basic",
    instance_name=foo.name,
    table_name=name,
    primary_keys=[alicloud.ots.TablePrimaryKeyArgs(
        name="pk1",
        type="Integer",
    )],
    time_to_live=-1,
    max_version=1,
    deviation_cell_version_in_sec="1")
example = alicloud.hbr.OtsBackupPlan("example",
    ots_backup_plan_name=name,
    vault_id=default.id,
    backup_type="COMPLETE",
    schedule="I|1602673264|PT2H",
    retention="2",
    instance_name=foo.name,
    ots_details=[alicloud.hbr.OtsBackupPlanOtsDetailArgs(
        table_names=[basic.table_name],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "testAcc";
const _default = new alicloud.hbr.Vault("default", {
    vaultName: name,
    vaultType: "OTS_BACKUP",
});
const foo = new alicloud.ots.Instance("foo", {
    description: name,
    accessedBy: "Any",
    tags: {
        Created: "TF",
        For: "acceptance test",
    },
});
const basic = new alicloud.ots.Table("basic", {
    instanceName: foo.name,
    tableName: name,
    primaryKeys: [{
        name: "pk1",
        type: "Integer",
    }],
    timeToLive: -1,
    maxVersion: 1,
    deviationCellVersionInSec: "1",
});
const example = new alicloud.hbr.OtsBackupPlan("example", {
    otsBackupPlanName: name,
    vaultId: _default.id,
    backupType: "COMPLETE",
    schedule: "I|1602673264|PT2H",
    retention: "2",
    instanceName: foo.name,
    otsDetails: [{
        tableNames: [basic.tableName],
    }],
});

Coming soon!

Create a OtsBackupPlan Resource

new OtsBackupPlan(name: string, args: OtsBackupPlanArgs, opts?: CustomResourceOptions);
@overload
def OtsBackupPlan(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  backup_type: Optional[str] = None,
                  disabled: Optional[bool] = None,
                  instance_name: Optional[str] = None,
                  ots_backup_plan_name: Optional[str] = None,
                  ots_details: Optional[Sequence[OtsBackupPlanOtsDetailArgs]] = None,
                  retention: Optional[str] = None,
                  rules: Optional[Sequence[OtsBackupPlanRuleArgs]] = None,
                  schedule: Optional[str] = None,
                  vault_id: Optional[str] = None)
@overload
def OtsBackupPlan(resource_name: str,
                  args: OtsBackupPlanArgs,
                  opts: Optional[ResourceOptions] = None)
func NewOtsBackupPlan(ctx *Context, name string, args OtsBackupPlanArgs, opts ...ResourceOption) (*OtsBackupPlan, error)
public OtsBackupPlan(string name, OtsBackupPlanArgs args, CustomResourceOptions? opts = null)
public OtsBackupPlan(String name, OtsBackupPlanArgs args)
public OtsBackupPlan(String name, OtsBackupPlanArgs args, CustomResourceOptions options)
type: alicloud:hbr:OtsBackupPlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args OtsBackupPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args OtsBackupPlanArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args OtsBackupPlanArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args OtsBackupPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args OtsBackupPlanArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

OtsBackupPlan Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The OtsBackupPlan resource accepts the following input properties:

BackupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

OtsBackupPlanName string

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

Retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

Disabled bool

Whether to disable the backup task. Valid values: true, false.

InstanceName string

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

OtsDetails List<Pulumi.AliCloud.Hbr.Inputs.OtsBackupPlanOtsDetailArgs>

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

Rules List<Pulumi.AliCloud.Hbr.Inputs.OtsBackupPlanRuleArgs>

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

Schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

VaultId string

The ID of backup vault.

BackupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

OtsBackupPlanName string

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

Retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

Disabled bool

Whether to disable the backup task. Valid values: true, false.

InstanceName string

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

OtsDetails []OtsBackupPlanOtsDetailArgs

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

Rules []OtsBackupPlanRuleArgs

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

Schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

VaultId string

The ID of backup vault.

backupType String

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

otsBackupPlanName String

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

retention String

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

disabled Boolean

Whether to disable the backup task. Valid values: true, false.

instanceName String

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

otsDetails List<OtsBackupPlanOtsDetailArgs>

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

rules List<OtsBackupPlanRuleArgs>

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

schedule String

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

vaultId String

The ID of backup vault.

backupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

otsBackupPlanName string

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

disabled boolean

Whether to disable the backup task. Valid values: true, false.

instanceName string

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

otsDetails OtsBackupPlanOtsDetailArgs[]

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

rules OtsBackupPlanRuleArgs[]

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

vaultId string

The ID of backup vault.

backup_type str

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

ots_backup_plan_name str

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

retention str

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

disabled bool

Whether to disable the backup task. Valid values: true, false.

instance_name str

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

ots_details Sequence[OtsBackupPlanOtsDetailArgs]

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

rules Sequence[OtsBackupPlanRuleArgs]

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

schedule str

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

vault_id str

The ID of backup vault.

backupType String

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

otsBackupPlanName String

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

retention String

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

disabled Boolean

Whether to disable the backup task. Valid values: true, false.

instanceName String

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

otsDetails List<Property Map>

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

rules List<Property Map>

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

schedule String

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

vaultId String

The ID of backup vault.

Outputs

All input properties are implicitly available as output properties. Additionally, the OtsBackupPlan resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing OtsBackupPlan Resource

Get an existing OtsBackupPlan resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OtsBackupPlanState, opts?: CustomResourceOptions): OtsBackupPlan
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_type: Optional[str] = None,
        disabled: Optional[bool] = None,
        instance_name: Optional[str] = None,
        ots_backup_plan_name: Optional[str] = None,
        ots_details: Optional[Sequence[OtsBackupPlanOtsDetailArgs]] = None,
        retention: Optional[str] = None,
        rules: Optional[Sequence[OtsBackupPlanRuleArgs]] = None,
        schedule: Optional[str] = None,
        vault_id: Optional[str] = None) -> OtsBackupPlan
func GetOtsBackupPlan(ctx *Context, name string, id IDInput, state *OtsBackupPlanState, opts ...ResourceOption) (*OtsBackupPlan, error)
public static OtsBackupPlan Get(string name, Input<string> id, OtsBackupPlanState? state, CustomResourceOptions? opts = null)
public static OtsBackupPlan get(String name, Output<String> id, OtsBackupPlanState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BackupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

Disabled bool

Whether to disable the backup task. Valid values: true, false.

InstanceName string

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

OtsBackupPlanName string

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

OtsDetails List<Pulumi.AliCloud.Hbr.Inputs.OtsBackupPlanOtsDetailArgs>

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

Retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

Rules List<Pulumi.AliCloud.Hbr.Inputs.OtsBackupPlanRuleArgs>

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

Schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

VaultId string

The ID of backup vault.

BackupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

Disabled bool

Whether to disable the backup task. Valid values: true, false.

InstanceName string

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

OtsBackupPlanName string

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

OtsDetails []OtsBackupPlanOtsDetailArgs

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

Retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

Rules []OtsBackupPlanRuleArgs

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

Schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

VaultId string

The ID of backup vault.

backupType String

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

disabled Boolean

Whether to disable the backup task. Valid values: true, false.

instanceName String

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

otsBackupPlanName String

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

otsDetails List<OtsBackupPlanOtsDetailArgs>

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

retention String

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

rules List<OtsBackupPlanRuleArgs>

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

schedule String

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

vaultId String

The ID of backup vault.

backupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

disabled boolean

Whether to disable the backup task. Valid values: true, false.

instanceName string

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

otsBackupPlanName string

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

otsDetails OtsBackupPlanOtsDetailArgs[]

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

rules OtsBackupPlanRuleArgs[]

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

vaultId string

The ID of backup vault.

backup_type str

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

disabled bool

Whether to disable the backup task. Valid values: true, false.

instance_name str

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

ots_backup_plan_name str

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

ots_details Sequence[OtsBackupPlanOtsDetailArgs]

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

retention str

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

rules Sequence[OtsBackupPlanRuleArgs]

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

schedule str

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

vault_id str

The ID of backup vault.

backupType String

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

disabled Boolean

Whether to disable the backup task. Valid values: true, false.

instanceName String

The name of the Table store instance. Note: Required while source_type equals OTS_TABLE.

otsBackupPlanName String

The name of the backup plan. 1~64 characters, the backup plan name of each data source type in a single warehouse required to be unique.

otsDetails List<Property Map>

The details about the Table store instance. See the following Block ots_detail. Note: Required while source_type equals OTS_TABLE.

retention String

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

rules List<Property Map>

The backup plan rule. See the following Block rules. Note: Required while source_type equals OTS_TABLE.

schedule String

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Deprecated:

Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.

vaultId String

The ID of backup vault.

Supporting Types

OtsBackupPlanOtsDetail

TableNames List<string>

The names of the destination tables in the Tablestore instance. Note: Required while source_type equals OTS_TABLE.

TableNames []string

The names of the destination tables in the Tablestore instance. Note: Required while source_type equals OTS_TABLE.

tableNames List<String>

The names of the destination tables in the Tablestore instance. Note: Required while source_type equals OTS_TABLE.

tableNames string[]

The names of the destination tables in the Tablestore instance. Note: Required while source_type equals OTS_TABLE.

table_names Sequence[str]

The names of the destination tables in the Tablestore instance. Note: Required while source_type equals OTS_TABLE.

tableNames List<String>

The names of the destination tables in the Tablestore instance. Note: Required while source_type equals OTS_TABLE.

OtsBackupPlanRule

BackupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

Disabled bool

Whether to disable the backup task. Valid values: true, false.

Retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

RuleName string

The name of the backup rule.Note: Required while source_type equals OTS_TABLE. rule_name should be unique for the specific user.

Schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

BackupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

Disabled bool

Whether to disable the backup task. Valid values: true, false.

Retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

RuleName string

The name of the backup rule.Note: Required while source_type equals OTS_TABLE. rule_name should be unique for the specific user.

Schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

backupType String

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

disabled Boolean

Whether to disable the backup task. Valid values: true, false.

retention String

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

ruleName String

The name of the backup rule.Note: Required while source_type equals OTS_TABLE. rule_name should be unique for the specific user.

schedule String

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

backupType string

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

disabled boolean

Whether to disable the backup task. Valid values: true, false.

retention string

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

ruleName string

The name of the backup rule.Note: Required while source_type equals OTS_TABLE. rule_name should be unique for the specific user.

schedule string

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

backup_type str

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

disabled bool

Whether to disable the backup task. Valid values: true, false.

retention str

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

rule_name str

The name of the backup rule.Note: Required while source_type equals OTS_TABLE. rule_name should be unique for the specific user.

schedule str

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

backupType String

The name of the tableStore instance. Valid values: COMPLETE, INCREMENTAL. Note: Required while source_type equals OTS_TABLE.

disabled Boolean

Whether to disable the backup task. Valid values: true, false.

retention String

Backup retention days, the minimum is 1. Note: Required while source_type equals OTS_TABLE.

ruleName String

The name of the backup rule.Note: Required while source_type equals OTS_TABLE. rule_name should be unique for the specific user.

schedule String

Backup strategy. Optional format: I|{startTime}|{interval}. It means to execute a backup task every {interval} starting from {startTime}. The backup task for the elapsed time will not be compensated. If the last backup task has not completed yet, the next backup task will not be triggered. Note: Required while source_type equals OTS_TABLE.

Import

HBR Ots Backup Plan can be imported using the id, e.g.

 $ pulumi import alicloud:hbr/otsBackupPlan:OtsBackupPlan example <id>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.