alicloud.hbr.OtsBackupPlan
Explore with Pulumi AI
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
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var defaultRandomInteger = new Random.RandomInteger("defaultRandomInteger", new()
{
Max = 99999,
Min = 10000,
});
var defaultVault = new AliCloud.Hbr.Vault("defaultVault", new()
{
VaultName = defaultRandomInteger.Result.Apply(result => $"terraform-example-{result}"),
VaultType = "OTS_BACKUP",
});
var defaultInstance = new AliCloud.Ots.Instance("defaultInstance", new()
{
Description = "terraform-example",
AccessedBy = "Any",
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
});
var defaultTable = new AliCloud.Ots.Table("defaultTable", new()
{
InstanceName = defaultInstance.Name,
TableName = "terraform_example",
PrimaryKeys = new[]
{
new AliCloud.Ots.Inputs.TablePrimaryKeyArgs
{
Name = "pk1",
Type = "Integer",
},
},
TimeToLive = -1,
MaxVersion = 1,
DeviationCellVersionInSec = "1",
});
var defaultRole = new AliCloud.Ram.Role("defaultRole", new()
{
Document = @" {
""Statement"": [
{
""Action"": ""sts:AssumeRole"",
""Effect"": ""Allow"",
""Principal"": {
""Service"": [
""crossbackup.hbr.aliyuncs.com""
]
}
}
],
""Version"": ""1""
}
",
Force = true,
});
var defaultAccount = AliCloud.GetAccount.Invoke();
var example = new AliCloud.Hbr.OtsBackupPlan("example", new()
{
OtsBackupPlanName = defaultRandomInteger.Result.Apply(result => $"terraform-example-{result}"),
VaultId = defaultVault.Id,
BackupType = "COMPLETE",
Retention = "1",
InstanceName = defaultInstance.Name,
CrossAccountType = "SELF_ACCOUNT",
CrossAccountUserId = defaultAccount.Apply(getAccountResult => getAccountResult.Id),
CrossAccountRoleName = defaultRole.Id,
OtsDetails = new[]
{
new AliCloud.Hbr.Inputs.OtsBackupPlanOtsDetailArgs
{
TableNames = new[]
{
defaultTable.TableName,
},
},
},
Rules = new[]
{
new AliCloud.Hbr.Inputs.OtsBackupPlanRuleArgs
{
Schedule = "I|1602673264|PT2H",
Retention = "1",
Disabled = false,
RuleName = "terraform-example",
BackupType = "COMPLETE",
},
},
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultRandomInteger, err := random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{
Max: pulumi.Int(99999),
Min: pulumi.Int(10000),
})
if err != nil {
return err
}
defaultVault, err := hbr.NewVault(ctx, "defaultVault", &hbr.VaultArgs{
VaultName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
return fmt.Sprintf("terraform-example-%v", result), nil
}).(pulumi.StringOutput),
VaultType: pulumi.String("OTS_BACKUP"),
})
if err != nil {
return err
}
defaultInstance, err := ots.NewInstance(ctx, "defaultInstance", &ots.InstanceArgs{
Description: pulumi.String("terraform-example"),
AccessedBy: pulumi.String("Any"),
Tags: pulumi.AnyMap{
"Created": pulumi.Any("TF"),
"For": pulumi.Any("example"),
},
})
if err != nil {
return err
}
defaultTable, err := ots.NewTable(ctx, "defaultTable", &ots.TableArgs{
InstanceName: defaultInstance.Name,
TableName: pulumi.String("terraform_example"),
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
}
defaultRole, err := ram.NewRole(ctx, "defaultRole", &ram.RoleArgs{
Document: pulumi.String(` {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"crossbackup.hbr.aliyuncs.com"
]
}
}
],
"Version": "1"
}
`),
Force: pulumi.Bool(true),
})
if err != nil {
return err
}
defaultAccount, err := alicloud.GetAccount(ctx, nil, nil)
if err != nil {
return err
}
_, err = hbr.NewOtsBackupPlan(ctx, "example", &hbr.OtsBackupPlanArgs{
OtsBackupPlanName: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
return fmt.Sprintf("terraform-example-%v", result), nil
}).(pulumi.StringOutput),
VaultId: defaultVault.ID(),
BackupType: pulumi.String("COMPLETE"),
Retention: pulumi.String("1"),
InstanceName: defaultInstance.Name,
CrossAccountType: pulumi.String("SELF_ACCOUNT"),
CrossAccountUserId: *pulumi.String(defaultAccount.Id),
CrossAccountRoleName: defaultRole.ID(),
OtsDetails: hbr.OtsBackupPlanOtsDetailArray{
&hbr.OtsBackupPlanOtsDetailArgs{
TableNames: pulumi.StringArray{
defaultTable.TableName,
},
},
},
Rules: hbr.OtsBackupPlanRuleArray{
&hbr.OtsBackupPlanRuleArgs{
Schedule: pulumi.String("I|1602673264|PT2H"),
Retention: pulumi.String("1"),
Disabled: pulumi.Bool(false),
RuleName: pulumi.String("terraform-example"),
BackupType: pulumi.String("COMPLETE"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default_random_integer = random.RandomInteger("defaultRandomInteger",
max=99999,
min=10000)
default_vault = alicloud.hbr.Vault("defaultVault",
vault_name=default_random_integer.result.apply(lambda result: f"terraform-example-{result}"),
vault_type="OTS_BACKUP")
default_instance = alicloud.ots.Instance("defaultInstance",
description="terraform-example",
accessed_by="Any",
tags={
"Created": "TF",
"For": "example",
})
default_table = alicloud.ots.Table("defaultTable",
instance_name=default_instance.name,
table_name="terraform_example",
primary_keys=[alicloud.ots.TablePrimaryKeyArgs(
name="pk1",
type="Integer",
)],
time_to_live=-1,
max_version=1,
deviation_cell_version_in_sec="1")
default_role = alicloud.ram.Role("defaultRole",
document=""" {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"crossbackup.hbr.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""",
force=True)
default_account = alicloud.get_account()
example = alicloud.hbr.OtsBackupPlan("example",
ots_backup_plan_name=default_random_integer.result.apply(lambda result: f"terraform-example-{result}"),
vault_id=default_vault.id,
backup_type="COMPLETE",
retention="1",
instance_name=default_instance.name,
cross_account_type="SELF_ACCOUNT",
cross_account_user_id=default_account.id,
cross_account_role_name=default_role.id,
ots_details=[alicloud.hbr.OtsBackupPlanOtsDetailArgs(
table_names=[default_table.table_name],
)],
rules=[alicloud.hbr.OtsBackupPlanRuleArgs(
schedule="I|1602673264|PT2H",
retention="1",
disabled=False,
rule_name="terraform-example",
backup_type="COMPLETE",
)])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
max: 99999,
min: 10000,
});
const defaultVault = new alicloud.hbr.Vault("defaultVault", {
vaultName: pulumi.interpolate`terraform-example-${defaultRandomInteger.result}`,
vaultType: "OTS_BACKUP",
});
const defaultInstance = new alicloud.ots.Instance("defaultInstance", {
description: "terraform-example",
accessedBy: "Any",
tags: {
Created: "TF",
For: "example",
},
});
const defaultTable = new alicloud.ots.Table("defaultTable", {
instanceName: defaultInstance.name,
tableName: "terraform_example",
primaryKeys: [{
name: "pk1",
type: "Integer",
}],
timeToLive: -1,
maxVersion: 1,
deviationCellVersionInSec: "1",
});
const defaultRole = new alicloud.ram.Role("defaultRole", {
document: ` {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"crossbackup.hbr.aliyuncs.com"
]
}
}
],
"Version": "1"
}
`,
force: true,
});
const defaultAccount = alicloud.getAccount({});
const example = new alicloud.hbr.OtsBackupPlan("example", {
otsBackupPlanName: pulumi.interpolate`terraform-example-${defaultRandomInteger.result}`,
vaultId: defaultVault.id,
backupType: "COMPLETE",
retention: "1",
instanceName: defaultInstance.name,
crossAccountType: "SELF_ACCOUNT",
crossAccountUserId: defaultAccount.then(defaultAccount => defaultAccount.id),
crossAccountRoleName: defaultRole.id,
otsDetails: [{
tableNames: [defaultTable.tableName],
}],
rules: [{
schedule: "I|1602673264|PT2H",
retention: "1",
disabled: false,
ruleName: "terraform-example",
backupType: "COMPLETE",
}],
});
Coming soon!
Create 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,
cross_account_role_name: Optional[str] = None,
cross_account_type: Optional[str] = None,
cross_account_user_id: Optional[int] = 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:
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Ots
Backup stringPlan Name 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.
- Cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- Cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- Cross
Account intUser Id The original account ID of the cross account backup managed by the current account.
- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- Instance
Name string The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- Ots
Details List<Pulumi.Ali Cloud. Hbr. Inputs. Ots Backup Plan Ots Detail> The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- Rules
List<Pulumi.
Ali Cloud. Hbr. Inputs. Ots Backup Plan Rule> The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- Vault
Id string The ID of backup vault.
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Ots
Backup stringPlan Name 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.
- Cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- Cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- Cross
Account intUser Id The original account ID of the cross account backup managed by the current account.
- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- Instance
Name string The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- Ots
Details []OtsBackup Plan Ots Detail Args The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- Rules
[]Ots
Backup Plan Rule Args The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- Vault
Id string The ID of backup vault.
- backup
Type String Backup type. Valid values:
COMPLETE
.- ots
Backup StringPlan Name 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.
- cross
Account StringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- cross
Account StringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account IntegerUser Id The original account ID of the cross account backup managed by the current account.
- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- instance
Name String The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- ots
Details List<OtsBackup Plan Ots Detail> The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- rules
List<Ots
Backup Plan Rule> The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- vault
Id String The ID of backup vault.
- backup
Type string Backup type. Valid values:
COMPLETE
.- ots
Backup stringPlan Name 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.
- cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account numberUser Id The original account ID of the cross account backup managed by the current account.
- disabled boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- instance
Name string The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- ots
Details OtsBackup Plan Ots Detail[] The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- rules
Ots
Backup Plan Rule[] The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- vault
Id string The ID of backup vault.
- backup_
type str Backup type. Valid values:
COMPLETE
.- ots_
backup_ strplan_ name 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.
- cross_
account_ strrole_ name The role name created in the original account RAM backup by the cross account managed by the current account.
- cross_
account_ strtype The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross_
account_ intuser_ id The original account ID of the cross account backup managed by the current account.
- disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- instance_
name str The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- ots_
details Sequence[OtsBackup Plan Ots Detail Args] The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- rules
Sequence[Ots
Backup Plan Rule Args] The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- vault_
id str The ID of backup vault.
- backup
Type String Backup type. Valid values:
COMPLETE
.- ots
Backup StringPlan Name 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.
- cross
Account StringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- cross
Account StringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account NumberUser Id The original account ID of the cross account backup managed by the current account.
- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- instance
Name String The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- ots
Details List<Property Map> The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- rules List<Property Map>
The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- vault
Id 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 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,
cross_account_role_name: Optional[str] = None,
cross_account_type: Optional[str] = None,
cross_account_user_id: Optional[int] = 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.
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- Cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- Cross
Account intUser Id The original account ID of the cross account backup managed by the current account.
- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- Instance
Name string The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- Ots
Backup stringPlan Name 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 List<Pulumi.Ali Cloud. Hbr. Inputs. Ots Backup Plan Ots Detail> The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- Retention string
Backup retention days, the minimum is 1.
- Rules
List<Pulumi.
Ali Cloud. Hbr. Inputs. Ots Backup Plan Rule> The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- Vault
Id string The ID of backup vault.
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- Cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- Cross
Account intUser Id The original account ID of the cross account backup managed by the current account.
- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- Instance
Name string The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- Ots
Backup stringPlan Name 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 []OtsBackup Plan Ots Detail Args The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- Retention string
Backup retention days, the minimum is 1.
- Rules
[]Ots
Backup Plan Rule Args The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- Vault
Id string The ID of backup vault.
- backup
Type String Backup type. Valid values:
COMPLETE
.- cross
Account StringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- cross
Account StringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account IntegerUser Id The original account ID of the cross account backup managed by the current account.
- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- instance
Name String The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- ots
Backup StringPlan Name 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 List<OtsBackup Plan Ots Detail> The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- retention String
Backup retention days, the minimum is 1.
- rules
List<Ots
Backup Plan Rule> The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- vault
Id String The ID of backup vault.
- backup
Type string Backup type. Valid values:
COMPLETE
.- cross
Account stringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- cross
Account stringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account numberUser Id The original account ID of the cross account backup managed by the current account.
- disabled boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- instance
Name string The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- ots
Backup stringPlan Name 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 OtsBackup Plan Ots Detail[] The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- retention string
Backup retention days, the minimum is 1.
- rules
Ots
Backup Plan Rule[] The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- vault
Id string The ID of backup vault.
- backup_
type str Backup type. Valid values:
COMPLETE
.- cross_
account_ strrole_ name The role name created in the original account RAM backup by the cross account managed by the current account.
- cross_
account_ strtype The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross_
account_ intuser_ id The original account ID of the cross account backup managed by the current account.
- disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- instance_
name str The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- ots_
backup_ strplan_ name 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[OtsBackup Plan Ots Detail Args] The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- retention str
Backup retention days, the minimum is 1.
- rules
Sequence[Ots
Backup Plan Rule Args] The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- vault_
id str The ID of backup vault.
- backup
Type String Backup type. Valid values:
COMPLETE
.- cross
Account StringRole Name The role name created in the original account RAM backup by the cross account managed by the current account.
- cross
Account StringType The type of the cross account backup. Valid values:
SELF_ACCOUNT
,CROSS_ACCOUNT
.- cross
Account NumberUser Id The original account ID of the cross account backup managed by the current account.
- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- instance
Name String The name of the Table store instance. Note: Required while source_type equals
OTS_TABLE
.- ots
Backup StringPlan Name 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 List<Property Map> The details about the Table store instance. See the following
Block ots_detail
. Note: Required while source_type equalsOTS_TABLE
.- retention String
Backup retention days, the minimum is 1.
- rules List<Property Map>
The backup plan rule. See the following
Block rules
. Note: Required while source_type equalsOTS_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.Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
- vault
Id String The ID of backup vault.
Supporting Types
OtsBackupPlanOtsDetail, OtsBackupPlanOtsDetailArgs
- Table
Names List<string> The names of the destination tables in the Tablestore instance. Note: Required while source_type equals
OTS_TABLE
.
- Table
Names []string The names of the destination tables in the Tablestore instance. Note: Required while source_type equals
OTS_TABLE
.
- table
Names List<String> The names of the destination tables in the Tablestore instance. Note: Required while source_type equals
OTS_TABLE
.
- table
Names 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
.
- table
Names List<String> The names of the destination tables in the Tablestore instance. Note: Required while source_type equals
OTS_TABLE
.
OtsBackupPlanRule, OtsBackupPlanRuleArgs
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- Retention string
Backup retention days, the minimum is 1.
- Rule
Name 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.
- Backup
Type string Backup type. Valid values:
COMPLETE
.- Disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- Retention string
Backup retention days, the minimum is 1.
- Rule
Name 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.
- backup
Type String Backup type. Valid values:
COMPLETE
.- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- retention String
Backup retention days, the minimum is 1.
- rule
Name 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.
- backup
Type string Backup type. Valid values:
COMPLETE
.- disabled boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- retention string
Backup retention days, the minimum is 1.
- rule
Name 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.
- backup_
type str Backup type. Valid values:
COMPLETE
.- disabled bool
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- retention str
Backup retention days, the minimum is 1.
- 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.
- backup
Type String Backup type. Valid values:
COMPLETE
.- disabled Boolean
Whether to disable the backup task. Valid values:
true
,false
. Default values:false
.- retention String
Backup retention days, the minimum is 1.
- rule
Name 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.
Import
HBR Ots Backup Plan can be imported using the id, e.g.
$ pulumi import alicloud:hbr/otsBackupPlan:OtsBackupPlan example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.