1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. hbr
  5. OssBackupPlan
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.hbr.OssBackupPlan

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides a HBR Oss Backup Plan resource.

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

    NOTE: Available since v1.131.0+.

    Example Usage

    Basic Usage

    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}`});
    const defaultBucket = new alicloud.oss.Bucket("defaultBucket", {bucket: pulumi.interpolate`terraform-example-${defaultRandomInteger.result}`});
    const defaultOssBackupPlan = new alicloud.hbr.OssBackupPlan("defaultOssBackupPlan", {
        ossBackupPlanName: "terraform-example",
        prefix: "/example",
        bucket: defaultBucket.bucket,
        vaultId: defaultVault.id,
        schedule: "I|1602673264|PT2H",
        backupType: "COMPLETE",
        retention: "2",
    });
    
    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}"))
    default_bucket = alicloud.oss.Bucket("defaultBucket", bucket=default_random_integer.result.apply(lambda result: f"terraform-example-{result}"))
    default_oss_backup_plan = alicloud.hbr.OssBackupPlan("defaultOssBackupPlan",
        oss_backup_plan_name="terraform-example",
        prefix="/example",
        bucket=default_bucket.bucket,
        vault_id=default_vault.id,
        schedule="I|1602673264|PT2H",
        backup_type="COMPLETE",
        retention="2")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
    	"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),
    		})
    		if err != nil {
    			return err
    		}
    		defaultBucket, err := oss.NewBucket(ctx, "defaultBucket", &oss.BucketArgs{
    			Bucket: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
    				return fmt.Sprintf("terraform-example-%v", result), nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = hbr.NewOssBackupPlan(ctx, "defaultOssBackupPlan", &hbr.OssBackupPlanArgs{
    			OssBackupPlanName: pulumi.String("terraform-example"),
    			Prefix:            pulumi.String("/example"),
    			Bucket:            defaultBucket.Bucket,
    			VaultId:           defaultVault.ID(),
    			Schedule:          pulumi.String("I|1602673264|PT2H"),
    			BackupType:        pulumi.String("COMPLETE"),
    			Retention:         pulumi.String("2"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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}"),
        });
    
        var defaultBucket = new AliCloud.Oss.Bucket("defaultBucket", new()
        {
            BucketName = defaultRandomInteger.Result.Apply(result => $"terraform-example-{result}"),
        });
    
        var defaultOssBackupPlan = new AliCloud.Hbr.OssBackupPlan("defaultOssBackupPlan", new()
        {
            OssBackupPlanName = "terraform-example",
            Prefix = "/example",
            Bucket = defaultBucket.BucketName,
            VaultId = defaultVault.Id,
            Schedule = "I|1602673264|PT2H",
            BackupType = "COMPLETE",
            Retention = "2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    import com.pulumi.alicloud.hbr.Vault;
    import com.pulumi.alicloud.hbr.VaultArgs;
    import com.pulumi.alicloud.oss.Bucket;
    import com.pulumi.alicloud.oss.BucketArgs;
    import com.pulumi.alicloud.hbr.OssBackupPlan;
    import com.pulumi.alicloud.hbr.OssBackupPlanArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var defaultRandomInteger = new RandomInteger("defaultRandomInteger", RandomIntegerArgs.builder()        
                .max(99999)
                .min(10000)
                .build());
    
            var defaultVault = new Vault("defaultVault", VaultArgs.builder()        
                .vaultName(defaultRandomInteger.result().applyValue(result -> String.format("terraform-example-%s", result)))
                .build());
    
            var defaultBucket = new Bucket("defaultBucket", BucketArgs.builder()        
                .bucket(defaultRandomInteger.result().applyValue(result -> String.format("terraform-example-%s", result)))
                .build());
    
            var defaultOssBackupPlan = new OssBackupPlan("defaultOssBackupPlan", OssBackupPlanArgs.builder()        
                .ossBackupPlanName("terraform-example")
                .prefix("/example")
                .bucket(defaultBucket.bucket())
                .vaultId(defaultVault.id())
                .schedule("I|1602673264|PT2H")
                .backupType("COMPLETE")
                .retention("2")
                .build());
    
        }
    }
    
    resources:
      defaultRandomInteger:
        type: random:RandomInteger
        properties:
          max: 99999
          min: 10000
      defaultVault:
        type: alicloud:hbr:Vault
        properties:
          vaultName: terraform-example-${defaultRandomInteger.result}
      defaultBucket:
        type: alicloud:oss:Bucket
        properties:
          bucket: terraform-example-${defaultRandomInteger.result}
      defaultOssBackupPlan:
        type: alicloud:hbr:OssBackupPlan
        properties:
          ossBackupPlanName: terraform-example
          # the prefix of object you want to back up
          prefix: /example
          bucket: ${defaultBucket.bucket}
          vaultId: ${defaultVault.id}
          schedule: I|1602673264|PT2H
          backupType: COMPLETE
          retention: '2'
    

    Create OssBackupPlan Resource

    new OssBackupPlan(name: string, args: OssBackupPlanArgs, opts?: CustomResourceOptions);
    @overload
    def OssBackupPlan(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      backup_type: Optional[str] = None,
                      bucket: 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,
                      oss_backup_plan_name: Optional[str] = None,
                      prefix: Optional[str] = None,
                      retention: Optional[str] = None,
                      schedule: Optional[str] = None,
                      vault_id: Optional[str] = None)
    @overload
    def OssBackupPlan(resource_name: str,
                      args: OssBackupPlanArgs,
                      opts: Optional[ResourceOptions] = None)
    func NewOssBackupPlan(ctx *Context, name string, args OssBackupPlanArgs, opts ...ResourceOption) (*OssBackupPlan, error)
    public OssBackupPlan(string name, OssBackupPlanArgs args, CustomResourceOptions? opts = null)
    public OssBackupPlan(String name, OssBackupPlanArgs args)
    public OssBackupPlan(String name, OssBackupPlanArgs args, CustomResourceOptions options)
    
    type: alicloud:hbr:OssBackupPlan
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args OssBackupPlanArgs
    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 OssBackupPlanArgs
    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 OssBackupPlanArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OssBackupPlanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OssBackupPlanArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    OssBackupPlan 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 OssBackupPlan resource accepts the following input properties:

    BackupType string
    Backup type. Valid values: COMPLETE.
    Bucket string
    The name of OSS bucket.
    OssBackupPlanName 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.
    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.
    VaultId string
    The ID of backup vault.
    CrossAccountRoleName string
    The role name created in the original account RAM backup by the cross account managed by the current account.
    CrossAccountType string
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    CrossAccountUserId int
    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.
    Prefix string
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    BackupType string
    Backup type. Valid values: COMPLETE.
    Bucket string
    The name of OSS bucket.
    OssBackupPlanName 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.
    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.
    VaultId string
    The ID of backup vault.
    CrossAccountRoleName string
    The role name created in the original account RAM backup by the cross account managed by the current account.
    CrossAccountType string
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    CrossAccountUserId int
    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.
    Prefix string
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    backupType String
    Backup type. Valid values: COMPLETE.
    bucket String
    The name of OSS bucket.
    ossBackupPlanName 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.
    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.
    vaultId String
    The ID of backup vault.
    crossAccountRoleName String
    The role name created in the original account RAM backup by the cross account managed by the current account.
    crossAccountType String
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    crossAccountUserId Integer
    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.
    prefix String
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    backupType string
    Backup type. Valid values: COMPLETE.
    bucket string
    The name of OSS bucket.
    ossBackupPlanName 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.
    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.
    vaultId string
    The ID of backup vault.
    crossAccountRoleName string
    The role name created in the original account RAM backup by the cross account managed by the current account.
    crossAccountType string
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    crossAccountUserId number
    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.
    prefix string
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    backup_type str
    Backup type. Valid values: COMPLETE.
    bucket str
    The name of OSS bucket.
    oss_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.
    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.
    vault_id str
    The ID of backup vault.
    cross_account_role_name str
    The role name created in the original account RAM backup by the cross account managed by the current account.
    cross_account_type str
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    cross_account_user_id int
    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.
    prefix str
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    backupType String
    Backup type. Valid values: COMPLETE.
    bucket String
    The name of OSS bucket.
    ossBackupPlanName 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.
    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.
    vaultId String
    The ID of backup vault.
    crossAccountRoleName String
    The role name created in the original account RAM backup by the cross account managed by the current account.
    crossAccountType String
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    crossAccountUserId Number
    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.
    prefix String
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OssBackupPlan 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 OssBackupPlan Resource

    Get an existing OssBackupPlan 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?: OssBackupPlanState, opts?: CustomResourceOptions): OssBackupPlan
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backup_type: Optional[str] = None,
            bucket: 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,
            oss_backup_plan_name: Optional[str] = None,
            prefix: Optional[str] = None,
            retention: Optional[str] = None,
            schedule: Optional[str] = None,
            vault_id: Optional[str] = None) -> OssBackupPlan
    func GetOssBackupPlan(ctx *Context, name string, id IDInput, state *OssBackupPlanState, opts ...ResourceOption) (*OssBackupPlan, error)
    public static OssBackupPlan Get(string name, Input<string> id, OssBackupPlanState? state, CustomResourceOptions? opts = null)
    public static OssBackupPlan get(String name, Output<String> id, OssBackupPlanState 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
    Backup type. Valid values: COMPLETE.
    Bucket string
    The name of OSS bucket.
    CrossAccountRoleName string
    The role name created in the original account RAM backup by the cross account managed by the current account.
    CrossAccountType string
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    CrossAccountUserId int
    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.
    OssBackupPlanName 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.
    Prefix string
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    Retention string
    Backup retention days, the minimum is 1.
    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.
    VaultId string
    The ID of backup vault.
    BackupType string
    Backup type. Valid values: COMPLETE.
    Bucket string
    The name of OSS bucket.
    CrossAccountRoleName string
    The role name created in the original account RAM backup by the cross account managed by the current account.
    CrossAccountType string
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    CrossAccountUserId int
    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.
    OssBackupPlanName 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.
    Prefix string
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    Retention string
    Backup retention days, the minimum is 1.
    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.
    VaultId string
    The ID of backup vault.
    backupType String
    Backup type. Valid values: COMPLETE.
    bucket String
    The name of OSS bucket.
    crossAccountRoleName String
    The role name created in the original account RAM backup by the cross account managed by the current account.
    crossAccountType String
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    crossAccountUserId Integer
    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.
    ossBackupPlanName 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.
    prefix String
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    retention String
    Backup retention days, the minimum is 1.
    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.
    vaultId String
    The ID of backup vault.
    backupType string
    Backup type. Valid values: COMPLETE.
    bucket string
    The name of OSS bucket.
    crossAccountRoleName string
    The role name created in the original account RAM backup by the cross account managed by the current account.
    crossAccountType string
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    crossAccountUserId number
    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.
    ossBackupPlanName 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.
    prefix string
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    retention string
    Backup retention days, the minimum is 1.
    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.
    vaultId string
    The ID of backup vault.
    backup_type str
    Backup type. Valid values: COMPLETE.
    bucket str
    The name of OSS bucket.
    cross_account_role_name str
    The role name created in the original account RAM backup by the cross account managed by the current account.
    cross_account_type str
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    cross_account_user_id int
    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.
    oss_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.
    prefix str
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    retention str
    Backup retention days, the minimum is 1.
    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.
    vault_id str
    The ID of backup vault.
    backupType String
    Backup type. Valid values: COMPLETE.
    bucket String
    The name of OSS bucket.
    crossAccountRoleName String
    The role name created in the original account RAM backup by the cross account managed by the current account.
    crossAccountType String
    The type of the cross account backup. Valid values: SELF_ACCOUNT, CROSS_ACCOUNT.
    crossAccountUserId Number
    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.
    ossBackupPlanName 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.
    prefix String
    Backup prefix. Once specified, only objects with matching prefixes will be backed up.
    retention String
    Backup retention days, the minimum is 1.
    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.
    vaultId String
    The ID of backup vault.

    Import

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

    $ pulumi import alicloud:hbr/ossBackupPlan:OssBackupPlan 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.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi