hbr

package
v3.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EcsBackupClient added in v3.7.0

type EcsBackupClient struct {
	pulumi.CustomResourceState

	// The data plane access point type. Valid values: `CLASSIC`, `PUBLIC`, `VPC`. **NOTE:** The value of `CLASSIC` has been deprecated in v1.161.0+.
	DataNetworkType pulumi.StringOutput `pulumi:"dataNetworkType"`
	// The data plane proxy settings. Valid values: `CUSTOM`, `DISABLE`, `USE_CONTROL_PROXY`.
	DataProxySetting pulumi.StringOutput `pulumi:"dataProxySetting"`
	// The ID of ECS instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore pulumi.StringOutput `pulumi:"maxCpuCore"`
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker pulumi.StringOutput `pulumi:"maxWorker"`
	// Custom data plane proxy server host address.
	ProxyHost pulumi.StringOutput `pulumi:"proxyHost"`
	// The password of custom data plane proxy server.
	ProxyPassword pulumi.StringOutput `pulumi:"proxyPassword"`
	// Custom data plane proxy server host port.
	ProxyPort pulumi.StringOutput `pulumi:"proxyPort"`
	// The username of custom data plane proxy server.
	ProxyUser pulumi.StringOutput `pulumi:"proxyUser"`
	// Status of client. Valid values: `ACTIVATED`, `STOPPED`. You can start or stop the client by specifying the status.
	Status pulumi.StringOutput `pulumi:"status"`
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps pulumi.BoolOutput `pulumi:"useHttps"`
}

Provides a Hybrid Backup Recovery (HBR) Ecs Backup Client resource.

For information about Hybrid Backup Recovery (HBR) Ecs Backup Client and how to use it, see [What is Ecs Backup Client](https://www.alibabacloud.com/help/doc-detail/186570.htm).

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("Instance"),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			AvailabilityZone: pulumi.StringRef(example.Zones[0].Id),
			CpuCoreCount:     pulumi.IntRef(1),
			MemorySize:       pulumi.Float64Ref(2),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"),
			Owners:    pulumi.StringRef("system"),
		}, nil)
		if err != nil {
			return err
		}
		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
			VpcName:   pulumi.String("terraform-example"),
			CidrBlock: pulumi.String("172.17.3.0/24"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
			VswitchName: pulumi.String("terraform-example"),
			CidrBlock:   pulumi.String("172.17.3.0/24"),
			VpcId:       exampleNetwork.ID(),
			ZoneId:      pulumi.String(example.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
			Name:  pulumi.String("terraform-example"),
			VpcId: exampleNetwork.ID(),
		})
		if err != nil {
			return err
		}
		exampleInstance, err := ecs.NewInstance(ctx, "example", &ecs.InstanceArgs{
			ImageId:          pulumi.String(exampleGetImages.Images[0].Id),
			InstanceType:     pulumi.String(exampleGetInstanceTypes.InstanceTypes[0].Id),
			AvailabilityZone: pulumi.String(example.Zones[0].Id),
			SecurityGroups: pulumi.StringArray{
				exampleSecurityGroup.ID(),
			},
			InstanceName:       pulumi.String("terraform-example"),
			InternetChargeType: pulumi.String("PayByBandwidth"),
			VswitchId:          exampleSwitch.ID(),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewEcsBackupClient(ctx, "example", &hbr.EcsBackupClientArgs{
			InstanceId:       exampleInstance.ID(),
			UseHttps:         pulumi.Bool(false),
			DataNetworkType:  pulumi.String("VPC"),
			MaxCpuCore:       pulumi.String("2"),
			MaxWorker:        pulumi.String("4"),
			DataProxySetting: pulumi.String("USE_CONTROL_PROXY"),
			ProxyHost:        pulumi.String("192.168.11.101"),
			ProxyPort:        pulumi.String("80"),
			ProxyUser:        pulumi.String("user"),
			ProxyPassword:    pulumi.String("password"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Notice

> **Note:** Please read the following precautions carefully before deleting a client: 1. You cannot delete active clients that have received heartbeat packets within one hour. 2. You can make the client inactive by change the status of client to `STOPPED`. 3. The resources bound to the client will be deleted in cascade, including:

  • Backup plan
  • Backup task (Running in the background)
  • Snapshot

## Import

Hybrid Backup Recovery (HBR) Ecs Backup Client can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/ecsBackupClient:EcsBackupClient example <id> ```

func GetEcsBackupClient added in v3.7.0

func GetEcsBackupClient(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EcsBackupClientState, opts ...pulumi.ResourceOption) (*EcsBackupClient, error)

GetEcsBackupClient gets an existing EcsBackupClient resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEcsBackupClient added in v3.7.0

func NewEcsBackupClient(ctx *pulumi.Context,
	name string, args *EcsBackupClientArgs, opts ...pulumi.ResourceOption) (*EcsBackupClient, error)

NewEcsBackupClient registers a new resource with the given unique name, arguments, and options.

func (*EcsBackupClient) ElementType added in v3.7.0

func (*EcsBackupClient) ElementType() reflect.Type

func (*EcsBackupClient) ToEcsBackupClientOutput added in v3.7.0

func (i *EcsBackupClient) ToEcsBackupClientOutput() EcsBackupClientOutput

func (*EcsBackupClient) ToEcsBackupClientOutputWithContext added in v3.7.0

func (i *EcsBackupClient) ToEcsBackupClientOutputWithContext(ctx context.Context) EcsBackupClientOutput

type EcsBackupClientArgs added in v3.7.0

type EcsBackupClientArgs struct {
	// The data plane access point type. Valid values: `CLASSIC`, `PUBLIC`, `VPC`. **NOTE:** The value of `CLASSIC` has been deprecated in v1.161.0+.
	DataNetworkType pulumi.StringPtrInput
	// The data plane proxy settings. Valid values: `CUSTOM`, `DISABLE`, `USE_CONTROL_PROXY`.
	DataProxySetting pulumi.StringPtrInput
	// The ID of ECS instance.
	InstanceId pulumi.StringInput
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore pulumi.StringPtrInput
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker pulumi.StringPtrInput
	// Custom data plane proxy server host address.
	ProxyHost pulumi.StringPtrInput
	// The password of custom data plane proxy server.
	ProxyPassword pulumi.StringPtrInput
	// Custom data plane proxy server host port.
	ProxyPort pulumi.StringPtrInput
	// The username of custom data plane proxy server.
	ProxyUser pulumi.StringPtrInput
	// Status of client. Valid values: `ACTIVATED`, `STOPPED`. You can start or stop the client by specifying the status.
	Status pulumi.StringPtrInput
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps pulumi.BoolPtrInput
}

The set of arguments for constructing a EcsBackupClient resource.

func (EcsBackupClientArgs) ElementType added in v3.7.0

func (EcsBackupClientArgs) ElementType() reflect.Type

type EcsBackupClientArray added in v3.7.0

type EcsBackupClientArray []EcsBackupClientInput

func (EcsBackupClientArray) ElementType added in v3.7.0

func (EcsBackupClientArray) ElementType() reflect.Type

func (EcsBackupClientArray) ToEcsBackupClientArrayOutput added in v3.7.0

func (i EcsBackupClientArray) ToEcsBackupClientArrayOutput() EcsBackupClientArrayOutput

func (EcsBackupClientArray) ToEcsBackupClientArrayOutputWithContext added in v3.7.0

func (i EcsBackupClientArray) ToEcsBackupClientArrayOutputWithContext(ctx context.Context) EcsBackupClientArrayOutput

type EcsBackupClientArrayInput added in v3.7.0

type EcsBackupClientArrayInput interface {
	pulumi.Input

	ToEcsBackupClientArrayOutput() EcsBackupClientArrayOutput
	ToEcsBackupClientArrayOutputWithContext(context.Context) EcsBackupClientArrayOutput
}

EcsBackupClientArrayInput is an input type that accepts EcsBackupClientArray and EcsBackupClientArrayOutput values. You can construct a concrete instance of `EcsBackupClientArrayInput` via:

EcsBackupClientArray{ EcsBackupClientArgs{...} }

type EcsBackupClientArrayOutput added in v3.7.0

type EcsBackupClientArrayOutput struct{ *pulumi.OutputState }

func (EcsBackupClientArrayOutput) ElementType added in v3.7.0

func (EcsBackupClientArrayOutput) ElementType() reflect.Type

func (EcsBackupClientArrayOutput) Index added in v3.7.0

func (EcsBackupClientArrayOutput) ToEcsBackupClientArrayOutput added in v3.7.0

func (o EcsBackupClientArrayOutput) ToEcsBackupClientArrayOutput() EcsBackupClientArrayOutput

func (EcsBackupClientArrayOutput) ToEcsBackupClientArrayOutputWithContext added in v3.7.0

func (o EcsBackupClientArrayOutput) ToEcsBackupClientArrayOutputWithContext(ctx context.Context) EcsBackupClientArrayOutput

type EcsBackupClientInput added in v3.7.0

type EcsBackupClientInput interface {
	pulumi.Input

	ToEcsBackupClientOutput() EcsBackupClientOutput
	ToEcsBackupClientOutputWithContext(ctx context.Context) EcsBackupClientOutput
}

type EcsBackupClientMap added in v3.7.0

type EcsBackupClientMap map[string]EcsBackupClientInput

func (EcsBackupClientMap) ElementType added in v3.7.0

func (EcsBackupClientMap) ElementType() reflect.Type

func (EcsBackupClientMap) ToEcsBackupClientMapOutput added in v3.7.0

func (i EcsBackupClientMap) ToEcsBackupClientMapOutput() EcsBackupClientMapOutput

func (EcsBackupClientMap) ToEcsBackupClientMapOutputWithContext added in v3.7.0

func (i EcsBackupClientMap) ToEcsBackupClientMapOutputWithContext(ctx context.Context) EcsBackupClientMapOutput

type EcsBackupClientMapInput added in v3.7.0

type EcsBackupClientMapInput interface {
	pulumi.Input

	ToEcsBackupClientMapOutput() EcsBackupClientMapOutput
	ToEcsBackupClientMapOutputWithContext(context.Context) EcsBackupClientMapOutput
}

EcsBackupClientMapInput is an input type that accepts EcsBackupClientMap and EcsBackupClientMapOutput values. You can construct a concrete instance of `EcsBackupClientMapInput` via:

EcsBackupClientMap{ "key": EcsBackupClientArgs{...} }

type EcsBackupClientMapOutput added in v3.7.0

type EcsBackupClientMapOutput struct{ *pulumi.OutputState }

func (EcsBackupClientMapOutput) ElementType added in v3.7.0

func (EcsBackupClientMapOutput) ElementType() reflect.Type

func (EcsBackupClientMapOutput) MapIndex added in v3.7.0

func (EcsBackupClientMapOutput) ToEcsBackupClientMapOutput added in v3.7.0

func (o EcsBackupClientMapOutput) ToEcsBackupClientMapOutput() EcsBackupClientMapOutput

func (EcsBackupClientMapOutput) ToEcsBackupClientMapOutputWithContext added in v3.7.0

func (o EcsBackupClientMapOutput) ToEcsBackupClientMapOutputWithContext(ctx context.Context) EcsBackupClientMapOutput

type EcsBackupClientOutput added in v3.7.0

type EcsBackupClientOutput struct{ *pulumi.OutputState }

func (EcsBackupClientOutput) DataNetworkType added in v3.27.0

func (o EcsBackupClientOutput) DataNetworkType() pulumi.StringOutput

The data plane access point type. Valid values: `CLASSIC`, `PUBLIC`, `VPC`. **NOTE:** The value of `CLASSIC` has been deprecated in v1.161.0+.

func (EcsBackupClientOutput) DataProxySetting added in v3.27.0

func (o EcsBackupClientOutput) DataProxySetting() pulumi.StringOutput

The data plane proxy settings. Valid values: `CUSTOM`, `DISABLE`, `USE_CONTROL_PROXY`.

func (EcsBackupClientOutput) ElementType added in v3.7.0

func (EcsBackupClientOutput) ElementType() reflect.Type

func (EcsBackupClientOutput) InstanceId added in v3.27.0

func (o EcsBackupClientOutput) InstanceId() pulumi.StringOutput

The ID of ECS instance.

func (EcsBackupClientOutput) MaxCpuCore added in v3.27.0

func (o EcsBackupClientOutput) MaxCpuCore() pulumi.StringOutput

The number of CPU cores used by a single backup task, 0 means no restrictions.

func (EcsBackupClientOutput) MaxWorker added in v3.27.0

The number of concurrent jobs for a single backup task, 0 means no restrictions.

func (EcsBackupClientOutput) ProxyHost added in v3.27.0

Custom data plane proxy server host address.

func (EcsBackupClientOutput) ProxyPassword added in v3.27.0

func (o EcsBackupClientOutput) ProxyPassword() pulumi.StringOutput

The password of custom data plane proxy server.

func (EcsBackupClientOutput) ProxyPort added in v3.27.0

Custom data plane proxy server host port.

func (EcsBackupClientOutput) ProxyUser added in v3.27.0

The username of custom data plane proxy server.

func (EcsBackupClientOutput) Status added in v3.27.0

Status of client. Valid values: `ACTIVATED`, `STOPPED`. You can start or stop the client by specifying the status.

func (EcsBackupClientOutput) ToEcsBackupClientOutput added in v3.7.0

func (o EcsBackupClientOutput) ToEcsBackupClientOutput() EcsBackupClientOutput

func (EcsBackupClientOutput) ToEcsBackupClientOutputWithContext added in v3.7.0

func (o EcsBackupClientOutput) ToEcsBackupClientOutputWithContext(ctx context.Context) EcsBackupClientOutput

func (EcsBackupClientOutput) UseHttps added in v3.27.0

Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.

type EcsBackupClientState added in v3.7.0

type EcsBackupClientState struct {
	// The data plane access point type. Valid values: `CLASSIC`, `PUBLIC`, `VPC`. **NOTE:** The value of `CLASSIC` has been deprecated in v1.161.0+.
	DataNetworkType pulumi.StringPtrInput
	// The data plane proxy settings. Valid values: `CUSTOM`, `DISABLE`, `USE_CONTROL_PROXY`.
	DataProxySetting pulumi.StringPtrInput
	// The ID of ECS instance.
	InstanceId pulumi.StringPtrInput
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore pulumi.StringPtrInput
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker pulumi.StringPtrInput
	// Custom data plane proxy server host address.
	ProxyHost pulumi.StringPtrInput
	// The password of custom data plane proxy server.
	ProxyPassword pulumi.StringPtrInput
	// Custom data plane proxy server host port.
	ProxyPort pulumi.StringPtrInput
	// The username of custom data plane proxy server.
	ProxyUser pulumi.StringPtrInput
	// Status of client. Valid values: `ACTIVATED`, `STOPPED`. You can start or stop the client by specifying the status.
	Status pulumi.StringPtrInput
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps pulumi.BoolPtrInput
}

func (EcsBackupClientState) ElementType added in v3.7.0

func (EcsBackupClientState) ElementType() reflect.Type

type EcsBackupPlan added in v3.7.0

type EcsBackupPlan struct {
	pulumi.CustomResourceState

	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// The detail of the backup plan.
	Detail pulumi.StringPtrOutput `pulumi:"detail"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// 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.
	EcsBackupPlanName pulumi.StringOutput `pulumi:"ecsBackupPlanName"`
	// Exclude path. String of Json list, up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringPtrOutput `pulumi:"exclude"`
	// Include path. String of Json list, up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringPtrOutput `pulumi:"include"`
	// The ID of ECS instance. The ecs backup client must have been installed on the host.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// Windows operating system with application consistency using VSS, e.g: `{\"UseVSS\":false}`.
	Options pulumi.StringPtrOutput `pulumi:"options"`
	// List of backup path. e.g. `["/home", "/var"]`. **Note** If `path` is empty, it means that all directories will be backed up.
	Paths pulumi.StringArrayOutput `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringOutput `pulumi:"retention"`
	// 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.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// Flow control. The format is: `{start}|{end}|{bandwidth}`. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit pulumi.StringPtrOutput `pulumi:"speedLimit"`
	// Attribute updatePaths has been deprecated in v1.139.0+, and you do not need to set it anymore.
	//
	// Deprecated: Attribute updatePaths has been deprecated in v1.139.0+ and you do not need to set it anymore.
	UpdatePaths pulumi.BoolPtrOutput `pulumi:"updatePaths"`
	// The ID of Backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a HBR Ecs Backup Plan resource.

For information about HBR Ecs Backup Plan and how to use it, see [What is Ecs Backup Plan](https://www.alibabacloud.com/help/doc-detail/186574.htm).

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("Instance"),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			AvailabilityZone: pulumi.StringRef(example.Zones[0].Id),
			CpuCoreCount:     pulumi.IntRef(1),
			MemorySize:       pulumi.Float64Ref(2),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"),
			Owners:    pulumi.StringRef("system"),
		}, nil)
		if err != nil {
			return err
		}
		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
			VpcName:   pulumi.String("terraform-example"),
			CidrBlock: pulumi.String("172.17.3.0/24"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
			VswitchName: pulumi.String("terraform-example"),
			CidrBlock:   pulumi.String("172.17.3.0/24"),
			VpcId:       exampleNetwork.ID(),
			ZoneId:      pulumi.String(example.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
			Name:  pulumi.String("terraform-example"),
			VpcId: exampleNetwork.ID(),
		})
		if err != nil {
			return err
		}
		exampleInstance, err := ecs.NewInstance(ctx, "example", &ecs.InstanceArgs{
			ImageId:          pulumi.String(exampleGetImages.Images[0].Id),
			InstanceType:     pulumi.String(exampleGetInstanceTypes.InstanceTypes[0].Id),
			AvailabilityZone: pulumi.String(example.Zones[0].Id),
			SecurityGroups: pulumi.StringArray{
				exampleSecurityGroup.ID(),
			},
			InstanceName:       pulumi.String("terraform-example"),
			InternetChargeType: pulumi.String("PayByBandwidth"),
			VswitchId:          exampleSwitch.ID(),
		})
		if err != nil {
			return err
		}
		exampleVault, err := hbr.NewVault(ctx, "example", &hbr.VaultArgs{
			VaultName: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewEcsBackupPlan(ctx, "example", &hbr.EcsBackupPlanArgs{
			EcsBackupPlanName: pulumi.String("terraform-example"),
			InstanceId:        exampleInstance.ID(),
			VaultId:           exampleVault.ID(),
			Retention:         pulumi.String("1"),
			Schedule:          pulumi.String("I|1602673264|PT2H"),
			BackupType:        pulumi.String("COMPLETE"),
			SpeedLimit:        pulumi.String("0:24:5120"),
			Paths: pulumi.StringArray{
				pulumi.String("/home"),
				pulumi.String("/var"),
			},
			Exclude: pulumi.String("  [\"/home/exclude\"]\n"),
			Include: pulumi.String("  [\"/home/include\"]\n"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Notice

**About Backup path rules:** 1. If there is no wildcard `*`, you can enter 8 items of path. 2. When using wildcard `*`, only one item of path can be input, and wildcards like `/*/*` are supported. 3. Each item of path only supports absolute paths, for example starting with `/`, `\`, `C:\`, `D:\`.

**About Restrictions:** 1. When using `VSS`: multiple paths, UNC paths, wildcards, and excluded files not supported. 2. When using `UNC`: VSS not supported, wildcards not supported, and files to be excluded are not supported.

**About include/exclude path rules:** 1. Supports up to 8 paths, including paths using wildcards `*`. 2. If the path does not contain `/`, then `*` matches multiple path names or file names, for example `*abc*` will match `/abc/`, `/d/eabcd/`, `/a/abc`; `*.txt` will match all files with an extension `.txt`. 3. If the path contains `/`, each `*` only matches a single-level path or file name. For example, `/a/*/*/` share will match `/a/b/c/share`, but not `/a/d/share`. 4. If the path ends with `/`, it means the folder matches. For example, `*tmp/` will match `/a/b/aaatmp/`, `/tmp/` and so on. 5. The path separator takes Linux system `/` as an example, if it is Windows system, please replace it with `\`.

## Import

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

```sh $ pulumi import alicloud:hbr/ecsBackupPlan:EcsBackupPlan example <id> ```

func GetEcsBackupPlan added in v3.7.0

func GetEcsBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EcsBackupPlanState, opts ...pulumi.ResourceOption) (*EcsBackupPlan, error)

GetEcsBackupPlan gets an existing EcsBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEcsBackupPlan added in v3.7.0

func NewEcsBackupPlan(ctx *pulumi.Context,
	name string, args *EcsBackupPlanArgs, opts ...pulumi.ResourceOption) (*EcsBackupPlan, error)

NewEcsBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*EcsBackupPlan) ElementType added in v3.7.0

func (*EcsBackupPlan) ElementType() reflect.Type

func (*EcsBackupPlan) ToEcsBackupPlanOutput added in v3.7.0

func (i *EcsBackupPlan) ToEcsBackupPlanOutput() EcsBackupPlanOutput

func (*EcsBackupPlan) ToEcsBackupPlanOutputWithContext added in v3.7.0

func (i *EcsBackupPlan) ToEcsBackupPlanOutputWithContext(ctx context.Context) EcsBackupPlanOutput

type EcsBackupPlanArgs added in v3.7.0

type EcsBackupPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// The detail of the backup plan.
	Detail pulumi.StringPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// 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.
	EcsBackupPlanName pulumi.StringInput
	// Exclude path. String of Json list, up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringPtrInput
	// Include path. String of Json list, up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringPtrInput
	// The ID of ECS instance. The ecs backup client must have been installed on the host.
	InstanceId pulumi.StringInput
	// Windows operating system with application consistency using VSS, e.g: `{\"UseVSS\":false}`.
	Options pulumi.StringPtrInput
	// List of backup path. e.g. `["/home", "/var"]`. **Note** If `path` is empty, it means that all directories will be backed up.
	Paths pulumi.StringArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput
	// 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.
	Schedule pulumi.StringInput
	// Flow control. The format is: `{start}|{end}|{bandwidth}`. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit pulumi.StringPtrInput
	// Attribute updatePaths has been deprecated in v1.139.0+, and you do not need to set it anymore.
	//
	// Deprecated: Attribute updatePaths has been deprecated in v1.139.0+ and you do not need to set it anymore.
	UpdatePaths pulumi.BoolPtrInput
	// The ID of Backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a EcsBackupPlan resource.

func (EcsBackupPlanArgs) ElementType added in v3.7.0

func (EcsBackupPlanArgs) ElementType() reflect.Type

type EcsBackupPlanArray added in v3.7.0

type EcsBackupPlanArray []EcsBackupPlanInput

func (EcsBackupPlanArray) ElementType added in v3.7.0

func (EcsBackupPlanArray) ElementType() reflect.Type

func (EcsBackupPlanArray) ToEcsBackupPlanArrayOutput added in v3.7.0

func (i EcsBackupPlanArray) ToEcsBackupPlanArrayOutput() EcsBackupPlanArrayOutput

func (EcsBackupPlanArray) ToEcsBackupPlanArrayOutputWithContext added in v3.7.0

func (i EcsBackupPlanArray) ToEcsBackupPlanArrayOutputWithContext(ctx context.Context) EcsBackupPlanArrayOutput

type EcsBackupPlanArrayInput added in v3.7.0

type EcsBackupPlanArrayInput interface {
	pulumi.Input

	ToEcsBackupPlanArrayOutput() EcsBackupPlanArrayOutput
	ToEcsBackupPlanArrayOutputWithContext(context.Context) EcsBackupPlanArrayOutput
}

EcsBackupPlanArrayInput is an input type that accepts EcsBackupPlanArray and EcsBackupPlanArrayOutput values. You can construct a concrete instance of `EcsBackupPlanArrayInput` via:

EcsBackupPlanArray{ EcsBackupPlanArgs{...} }

type EcsBackupPlanArrayOutput added in v3.7.0

type EcsBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (EcsBackupPlanArrayOutput) ElementType added in v3.7.0

func (EcsBackupPlanArrayOutput) ElementType() reflect.Type

func (EcsBackupPlanArrayOutput) Index added in v3.7.0

func (EcsBackupPlanArrayOutput) ToEcsBackupPlanArrayOutput added in v3.7.0

func (o EcsBackupPlanArrayOutput) ToEcsBackupPlanArrayOutput() EcsBackupPlanArrayOutput

func (EcsBackupPlanArrayOutput) ToEcsBackupPlanArrayOutputWithContext added in v3.7.0

func (o EcsBackupPlanArrayOutput) ToEcsBackupPlanArrayOutputWithContext(ctx context.Context) EcsBackupPlanArrayOutput

type EcsBackupPlanInput added in v3.7.0

type EcsBackupPlanInput interface {
	pulumi.Input

	ToEcsBackupPlanOutput() EcsBackupPlanOutput
	ToEcsBackupPlanOutputWithContext(ctx context.Context) EcsBackupPlanOutput
}

type EcsBackupPlanMap added in v3.7.0

type EcsBackupPlanMap map[string]EcsBackupPlanInput

func (EcsBackupPlanMap) ElementType added in v3.7.0

func (EcsBackupPlanMap) ElementType() reflect.Type

func (EcsBackupPlanMap) ToEcsBackupPlanMapOutput added in v3.7.0

func (i EcsBackupPlanMap) ToEcsBackupPlanMapOutput() EcsBackupPlanMapOutput

func (EcsBackupPlanMap) ToEcsBackupPlanMapOutputWithContext added in v3.7.0

func (i EcsBackupPlanMap) ToEcsBackupPlanMapOutputWithContext(ctx context.Context) EcsBackupPlanMapOutput

type EcsBackupPlanMapInput added in v3.7.0

type EcsBackupPlanMapInput interface {
	pulumi.Input

	ToEcsBackupPlanMapOutput() EcsBackupPlanMapOutput
	ToEcsBackupPlanMapOutputWithContext(context.Context) EcsBackupPlanMapOutput
}

EcsBackupPlanMapInput is an input type that accepts EcsBackupPlanMap and EcsBackupPlanMapOutput values. You can construct a concrete instance of `EcsBackupPlanMapInput` via:

EcsBackupPlanMap{ "key": EcsBackupPlanArgs{...} }

type EcsBackupPlanMapOutput added in v3.7.0

type EcsBackupPlanMapOutput struct{ *pulumi.OutputState }

func (EcsBackupPlanMapOutput) ElementType added in v3.7.0

func (EcsBackupPlanMapOutput) ElementType() reflect.Type

func (EcsBackupPlanMapOutput) MapIndex added in v3.7.0

func (EcsBackupPlanMapOutput) ToEcsBackupPlanMapOutput added in v3.7.0

func (o EcsBackupPlanMapOutput) ToEcsBackupPlanMapOutput() EcsBackupPlanMapOutput

func (EcsBackupPlanMapOutput) ToEcsBackupPlanMapOutputWithContext added in v3.7.0

func (o EcsBackupPlanMapOutput) ToEcsBackupPlanMapOutputWithContext(ctx context.Context) EcsBackupPlanMapOutput

type EcsBackupPlanOutput added in v3.7.0

type EcsBackupPlanOutput struct{ *pulumi.OutputState }

func (EcsBackupPlanOutput) BackupType added in v3.27.0

func (o EcsBackupPlanOutput) BackupType() pulumi.StringOutput

Backup type. Valid values: `COMPLETE`.

func (EcsBackupPlanOutput) CrossAccountRoleName added in v3.29.0

func (o EcsBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (EcsBackupPlanOutput) CrossAccountType added in v3.29.0

func (o EcsBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (EcsBackupPlanOutput) CrossAccountUserId added in v3.29.0

func (o EcsBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (EcsBackupPlanOutput) Detail added in v3.27.0

The detail of the backup plan.

func (EcsBackupPlanOutput) Disabled added in v3.27.0

func (o EcsBackupPlanOutput) Disabled() pulumi.BoolOutput

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

func (EcsBackupPlanOutput) EcsBackupPlanName added in v3.27.0

func (o EcsBackupPlanOutput) EcsBackupPlanName() pulumi.StringOutput

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.

func (EcsBackupPlanOutput) ElementType added in v3.7.0

func (EcsBackupPlanOutput) ElementType() reflect.Type

func (EcsBackupPlanOutput) Exclude added in v3.27.0

Exclude path. String of Json list, up to 255 characters. e.g. `"[\"/home/work\"]"`

func (EcsBackupPlanOutput) Include added in v3.27.0

Include path. String of Json list, up to 255 characters. e.g. `"[\"/var\"]"`

func (EcsBackupPlanOutput) InstanceId added in v3.27.0

func (o EcsBackupPlanOutput) InstanceId() pulumi.StringOutput

The ID of ECS instance. The ecs backup client must have been installed on the host.

func (EcsBackupPlanOutput) Options added in v3.27.0

Windows operating system with application consistency using VSS, e.g: `{\"UseVSS\":false}`.

func (EcsBackupPlanOutput) Paths added in v3.27.0

List of backup path. e.g. `["/home", "/var"]`. **Note** If `path` is empty, it means that all directories will be backed up.

func (EcsBackupPlanOutput) Retention added in v3.27.0

func (o EcsBackupPlanOutput) Retention() pulumi.StringOutput

Backup retention days, the minimum is 1.

func (EcsBackupPlanOutput) Schedule added in v3.27.0

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.

func (EcsBackupPlanOutput) SpeedLimit added in v3.27.0

Flow control. The format is: `{start}|{end}|{bandwidth}`. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.

func (EcsBackupPlanOutput) ToEcsBackupPlanOutput added in v3.7.0

func (o EcsBackupPlanOutput) ToEcsBackupPlanOutput() EcsBackupPlanOutput

func (EcsBackupPlanOutput) ToEcsBackupPlanOutputWithContext added in v3.7.0

func (o EcsBackupPlanOutput) ToEcsBackupPlanOutputWithContext(ctx context.Context) EcsBackupPlanOutput

func (EcsBackupPlanOutput) UpdatePaths deprecated added in v3.27.0

func (o EcsBackupPlanOutput) UpdatePaths() pulumi.BoolPtrOutput

Attribute updatePaths has been deprecated in v1.139.0+, and you do not need to set it anymore.

Deprecated: Attribute updatePaths has been deprecated in v1.139.0+ and you do not need to set it anymore.

func (EcsBackupPlanOutput) VaultId added in v3.27.0

The ID of Backup vault.

type EcsBackupPlanState added in v3.7.0

type EcsBackupPlanState struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// The detail of the backup plan.
	Detail pulumi.StringPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// 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.
	EcsBackupPlanName pulumi.StringPtrInput
	// Exclude path. String of Json list, up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringPtrInput
	// Include path. String of Json list, up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringPtrInput
	// The ID of ECS instance. The ecs backup client must have been installed on the host.
	InstanceId pulumi.StringPtrInput
	// Windows operating system with application consistency using VSS, e.g: `{\"UseVSS\":false}`.
	Options pulumi.StringPtrInput
	// List of backup path. e.g. `["/home", "/var"]`. **Note** If `path` is empty, it means that all directories will be backed up.
	Paths pulumi.StringArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringPtrInput
	// 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.
	Schedule pulumi.StringPtrInput
	// Flow control. The format is: `{start}|{end}|{bandwidth}`. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit pulumi.StringPtrInput
	// Attribute updatePaths has been deprecated in v1.139.0+, and you do not need to set it anymore.
	//
	// Deprecated: Attribute updatePaths has been deprecated in v1.139.0+ and you do not need to set it anymore.
	UpdatePaths pulumi.BoolPtrInput
	// The ID of Backup vault.
	VaultId pulumi.StringPtrInput
}

func (EcsBackupPlanState) ElementType added in v3.7.0

func (EcsBackupPlanState) ElementType() reflect.Type

type GetBackupJobsArgs added in v3.8.0

type GetBackupJobsArgs struct {
	Filters []GetBackupJobsFilter `pulumi:"filters"`
	// A list of Backup Job IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: `ASCEND`, `DESCEND`.
	SortDirection *string `pulumi:"sortDirection"`
	// The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.
	SourceType string `pulumi:"sourceType"`
	// The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getBackupJobs.

type GetBackupJobsFilter added in v3.8.0

type GetBackupJobsFilter struct {
	Key      *string  `pulumi:"key"`
	Operator *string  `pulumi:"operator"`
	Values   []string `pulumi:"values"`
}

type GetBackupJobsFilterArgs added in v3.8.0

type GetBackupJobsFilterArgs struct {
	Key      pulumi.StringPtrInput   `pulumi:"key"`
	Operator pulumi.StringPtrInput   `pulumi:"operator"`
	Values   pulumi.StringArrayInput `pulumi:"values"`
}

func (GetBackupJobsFilterArgs) ElementType added in v3.8.0

func (GetBackupJobsFilterArgs) ElementType() reflect.Type

func (GetBackupJobsFilterArgs) ToGetBackupJobsFilterOutput added in v3.8.0

func (i GetBackupJobsFilterArgs) ToGetBackupJobsFilterOutput() GetBackupJobsFilterOutput

func (GetBackupJobsFilterArgs) ToGetBackupJobsFilterOutputWithContext added in v3.8.0

func (i GetBackupJobsFilterArgs) ToGetBackupJobsFilterOutputWithContext(ctx context.Context) GetBackupJobsFilterOutput

type GetBackupJobsFilterArray added in v3.8.0

type GetBackupJobsFilterArray []GetBackupJobsFilterInput

func (GetBackupJobsFilterArray) ElementType added in v3.8.0

func (GetBackupJobsFilterArray) ElementType() reflect.Type

func (GetBackupJobsFilterArray) ToGetBackupJobsFilterArrayOutput added in v3.8.0

func (i GetBackupJobsFilterArray) ToGetBackupJobsFilterArrayOutput() GetBackupJobsFilterArrayOutput

func (GetBackupJobsFilterArray) ToGetBackupJobsFilterArrayOutputWithContext added in v3.8.0

func (i GetBackupJobsFilterArray) ToGetBackupJobsFilterArrayOutputWithContext(ctx context.Context) GetBackupJobsFilterArrayOutput

type GetBackupJobsFilterArrayInput added in v3.8.0

type GetBackupJobsFilterArrayInput interface {
	pulumi.Input

	ToGetBackupJobsFilterArrayOutput() GetBackupJobsFilterArrayOutput
	ToGetBackupJobsFilterArrayOutputWithContext(context.Context) GetBackupJobsFilterArrayOutput
}

GetBackupJobsFilterArrayInput is an input type that accepts GetBackupJobsFilterArray and GetBackupJobsFilterArrayOutput values. You can construct a concrete instance of `GetBackupJobsFilterArrayInput` via:

GetBackupJobsFilterArray{ GetBackupJobsFilterArgs{...} }

type GetBackupJobsFilterArrayOutput added in v3.8.0

type GetBackupJobsFilterArrayOutput struct{ *pulumi.OutputState }

func (GetBackupJobsFilterArrayOutput) ElementType added in v3.8.0

func (GetBackupJobsFilterArrayOutput) Index added in v3.8.0

func (GetBackupJobsFilterArrayOutput) ToGetBackupJobsFilterArrayOutput added in v3.8.0

func (o GetBackupJobsFilterArrayOutput) ToGetBackupJobsFilterArrayOutput() GetBackupJobsFilterArrayOutput

func (GetBackupJobsFilterArrayOutput) ToGetBackupJobsFilterArrayOutputWithContext added in v3.8.0

func (o GetBackupJobsFilterArrayOutput) ToGetBackupJobsFilterArrayOutputWithContext(ctx context.Context) GetBackupJobsFilterArrayOutput

type GetBackupJobsFilterInput added in v3.8.0

type GetBackupJobsFilterInput interface {
	pulumi.Input

	ToGetBackupJobsFilterOutput() GetBackupJobsFilterOutput
	ToGetBackupJobsFilterOutputWithContext(context.Context) GetBackupJobsFilterOutput
}

GetBackupJobsFilterInput is an input type that accepts GetBackupJobsFilterArgs and GetBackupJobsFilterOutput values. You can construct a concrete instance of `GetBackupJobsFilterInput` via:

GetBackupJobsFilterArgs{...}

type GetBackupJobsFilterOutput added in v3.8.0

type GetBackupJobsFilterOutput struct{ *pulumi.OutputState }

func (GetBackupJobsFilterOutput) ElementType added in v3.8.0

func (GetBackupJobsFilterOutput) ElementType() reflect.Type

func (GetBackupJobsFilterOutput) Key added in v3.8.0

func (GetBackupJobsFilterOutput) Operator added in v3.8.0

func (GetBackupJobsFilterOutput) ToGetBackupJobsFilterOutput added in v3.8.0

func (o GetBackupJobsFilterOutput) ToGetBackupJobsFilterOutput() GetBackupJobsFilterOutput

func (GetBackupJobsFilterOutput) ToGetBackupJobsFilterOutputWithContext added in v3.8.0

func (o GetBackupJobsFilterOutput) ToGetBackupJobsFilterOutputWithContext(ctx context.Context) GetBackupJobsFilterOutput

func (GetBackupJobsFilterOutput) Values added in v3.8.0

type GetBackupJobsJob added in v3.8.0

type GetBackupJobsJob struct {
	// The actual data volume of the backup task (After deduplication) . Unit byte.
	ActualBytes string `pulumi:"actualBytes"`
	// The actual number of items in the backup task. (Currently only file backup is available).
	ActualItems string `pulumi:"actualItems"`
	// The name of backup job.
	BackJobName string `pulumi:"backJobName"`
	// The ID of the backup job.
	BackupJobId string `pulumi:"backupJobId"`
	// Backup type. Valid values: `COMPLETE`(full backup).
	BackupType string `pulumi:"backupType"`
	// The name of target OSS bucket.
	Bucket string `pulumi:"bucket"`
	// The amount of backup data (Incremental). Unit byte.
	BytesDone string `pulumi:"bytesDone"`
	// The total amount of data sources. Unit byte.
	BytesTotal string `pulumi:"bytesTotal"`
	// The completion time of backup job. UNIX time seconds.
	CompleteTime string `pulumi:"completeTime"`
	// The creation time of backup job. UNIX time seconds.
	CreateTime string `pulumi:"createTime"`
	// The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountRoleName string `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountType string `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountUserId int `pulumi:"crossAccountUserId"`
	// Error message.
	ErrorMessage string `pulumi:"errorMessage"`
	// Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude string `pulumi:"exclude"`
	// The ID of destination file system.
	FileSystemId string `pulumi:"fileSystemId"`
	// The ID of the backup job.
	Id string `pulumi:"id"`
	// Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`
	Include string `pulumi:"include"`
	// The ID of target ECS instance.
	InstanceId string `pulumi:"instanceId"`
	// The number of items restore job recovered.
	ItemsDone string `pulumi:"itemsDone"`
	// The total number of items restore job recovered.
	ItemsTotal string `pulumi:"itemsTotal"`
	// File system creation time. UNIX time in seconds.
	NasCreateTime string                      `pulumi:"nasCreateTime"`
	OtsDetails    []GetBackupJobsJobOtsDetail `pulumi:"otsDetails"`
	// List of backup path. e.g. `["/home", "/var"]`.
	Paths []string `pulumi:"paths"`
	// The ID of a backup plan.
	PlanId string `pulumi:"planId"`
	// The prefix of Oss bucket files.
	Prefix string `pulumi:"prefix"`
	// Backup progress. The value is 100%*100.
	Progress string `pulumi:"progress"`
	// The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.
	SourceType string `pulumi:"sourceType"`
	// The scheduled backup start time. UNIX time seconds.
	StartTime string `pulumi:"startTime"`
	// The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.
	Status string `pulumi:"status"`
	// The update time of backup job. UNIX time seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetBackupJobsJobArgs added in v3.8.0

type GetBackupJobsJobArgs struct {
	// The actual data volume of the backup task (After deduplication) . Unit byte.
	ActualBytes pulumi.StringInput `pulumi:"actualBytes"`
	// The actual number of items in the backup task. (Currently only file backup is available).
	ActualItems pulumi.StringInput `pulumi:"actualItems"`
	// The name of backup job.
	BackJobName pulumi.StringInput `pulumi:"backJobName"`
	// The ID of the backup job.
	BackupJobId pulumi.StringInput `pulumi:"backupJobId"`
	// Backup type. Valid values: `COMPLETE`(full backup).
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The name of target OSS bucket.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// The amount of backup data (Incremental). Unit byte.
	BytesDone pulumi.StringInput `pulumi:"bytesDone"`
	// The total amount of data sources. Unit byte.
	BytesTotal pulumi.StringInput `pulumi:"bytesTotal"`
	// The completion time of backup job. UNIX time seconds.
	CompleteTime pulumi.StringInput `pulumi:"completeTime"`
	// The creation time of backup job. UNIX time seconds.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountRoleName pulumi.StringInput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountType pulumi.StringInput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.
	CrossAccountUserId pulumi.IntInput `pulumi:"crossAccountUserId"`
	// Error message.
	ErrorMessage pulumi.StringInput `pulumi:"errorMessage"`
	// Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringInput `pulumi:"exclude"`
	// The ID of destination file system.
	FileSystemId pulumi.StringInput `pulumi:"fileSystemId"`
	// The ID of the backup job.
	Id pulumi.StringInput `pulumi:"id"`
	// Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringInput `pulumi:"include"`
	// The ID of target ECS instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The number of items restore job recovered.
	ItemsDone pulumi.StringInput `pulumi:"itemsDone"`
	// The total number of items restore job recovered.
	ItemsTotal pulumi.StringInput `pulumi:"itemsTotal"`
	// File system creation time. UNIX time in seconds.
	NasCreateTime pulumi.StringInput                  `pulumi:"nasCreateTime"`
	OtsDetails    GetBackupJobsJobOtsDetailArrayInput `pulumi:"otsDetails"`
	// List of backup path. e.g. `["/home", "/var"]`.
	Paths pulumi.StringArrayInput `pulumi:"paths"`
	// The ID of a backup plan.
	PlanId pulumi.StringInput `pulumi:"planId"`
	// The prefix of Oss bucket files.
	Prefix pulumi.StringInput `pulumi:"prefix"`
	// Backup progress. The value is 100%*100.
	Progress pulumi.StringInput `pulumi:"progress"`
	// The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The scheduled backup start time. UNIX time seconds.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.
	Status pulumi.StringInput `pulumi:"status"`
	// The update time of backup job. UNIX time seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetBackupJobsJobArgs) ElementType added in v3.8.0

func (GetBackupJobsJobArgs) ElementType() reflect.Type

func (GetBackupJobsJobArgs) ToGetBackupJobsJobOutput added in v3.8.0

func (i GetBackupJobsJobArgs) ToGetBackupJobsJobOutput() GetBackupJobsJobOutput

func (GetBackupJobsJobArgs) ToGetBackupJobsJobOutputWithContext added in v3.8.0

func (i GetBackupJobsJobArgs) ToGetBackupJobsJobOutputWithContext(ctx context.Context) GetBackupJobsJobOutput

type GetBackupJobsJobArray added in v3.8.0

type GetBackupJobsJobArray []GetBackupJobsJobInput

func (GetBackupJobsJobArray) ElementType added in v3.8.0

func (GetBackupJobsJobArray) ElementType() reflect.Type

func (GetBackupJobsJobArray) ToGetBackupJobsJobArrayOutput added in v3.8.0

func (i GetBackupJobsJobArray) ToGetBackupJobsJobArrayOutput() GetBackupJobsJobArrayOutput

func (GetBackupJobsJobArray) ToGetBackupJobsJobArrayOutputWithContext added in v3.8.0

func (i GetBackupJobsJobArray) ToGetBackupJobsJobArrayOutputWithContext(ctx context.Context) GetBackupJobsJobArrayOutput

type GetBackupJobsJobArrayInput added in v3.8.0

type GetBackupJobsJobArrayInput interface {
	pulumi.Input

	ToGetBackupJobsJobArrayOutput() GetBackupJobsJobArrayOutput
	ToGetBackupJobsJobArrayOutputWithContext(context.Context) GetBackupJobsJobArrayOutput
}

GetBackupJobsJobArrayInput is an input type that accepts GetBackupJobsJobArray and GetBackupJobsJobArrayOutput values. You can construct a concrete instance of `GetBackupJobsJobArrayInput` via:

GetBackupJobsJobArray{ GetBackupJobsJobArgs{...} }

type GetBackupJobsJobArrayOutput added in v3.8.0

type GetBackupJobsJobArrayOutput struct{ *pulumi.OutputState }

func (GetBackupJobsJobArrayOutput) ElementType added in v3.8.0

func (GetBackupJobsJobArrayOutput) Index added in v3.8.0

func (GetBackupJobsJobArrayOutput) ToGetBackupJobsJobArrayOutput added in v3.8.0

func (o GetBackupJobsJobArrayOutput) ToGetBackupJobsJobArrayOutput() GetBackupJobsJobArrayOutput

func (GetBackupJobsJobArrayOutput) ToGetBackupJobsJobArrayOutputWithContext added in v3.8.0

func (o GetBackupJobsJobArrayOutput) ToGetBackupJobsJobArrayOutputWithContext(ctx context.Context) GetBackupJobsJobArrayOutput

type GetBackupJobsJobInput added in v3.8.0

type GetBackupJobsJobInput interface {
	pulumi.Input

	ToGetBackupJobsJobOutput() GetBackupJobsJobOutput
	ToGetBackupJobsJobOutputWithContext(context.Context) GetBackupJobsJobOutput
}

GetBackupJobsJobInput is an input type that accepts GetBackupJobsJobArgs and GetBackupJobsJobOutput values. You can construct a concrete instance of `GetBackupJobsJobInput` via:

GetBackupJobsJobArgs{...}

type GetBackupJobsJobOtsDetail added in v3.20.0

type GetBackupJobsJobOtsDetail struct {
	TableNames []string `pulumi:"tableNames"`
}

type GetBackupJobsJobOtsDetailArgs added in v3.20.0

type GetBackupJobsJobOtsDetailArgs struct {
	TableNames pulumi.StringArrayInput `pulumi:"tableNames"`
}

func (GetBackupJobsJobOtsDetailArgs) ElementType added in v3.20.0

func (GetBackupJobsJobOtsDetailArgs) ToGetBackupJobsJobOtsDetailOutput added in v3.20.0

func (i GetBackupJobsJobOtsDetailArgs) ToGetBackupJobsJobOtsDetailOutput() GetBackupJobsJobOtsDetailOutput

func (GetBackupJobsJobOtsDetailArgs) ToGetBackupJobsJobOtsDetailOutputWithContext added in v3.20.0

func (i GetBackupJobsJobOtsDetailArgs) ToGetBackupJobsJobOtsDetailOutputWithContext(ctx context.Context) GetBackupJobsJobOtsDetailOutput

type GetBackupJobsJobOtsDetailArray added in v3.20.0

type GetBackupJobsJobOtsDetailArray []GetBackupJobsJobOtsDetailInput

func (GetBackupJobsJobOtsDetailArray) ElementType added in v3.20.0

func (GetBackupJobsJobOtsDetailArray) ToGetBackupJobsJobOtsDetailArrayOutput added in v3.20.0

func (i GetBackupJobsJobOtsDetailArray) ToGetBackupJobsJobOtsDetailArrayOutput() GetBackupJobsJobOtsDetailArrayOutput

func (GetBackupJobsJobOtsDetailArray) ToGetBackupJobsJobOtsDetailArrayOutputWithContext added in v3.20.0

func (i GetBackupJobsJobOtsDetailArray) ToGetBackupJobsJobOtsDetailArrayOutputWithContext(ctx context.Context) GetBackupJobsJobOtsDetailArrayOutput

type GetBackupJobsJobOtsDetailArrayInput added in v3.20.0

type GetBackupJobsJobOtsDetailArrayInput interface {
	pulumi.Input

	ToGetBackupJobsJobOtsDetailArrayOutput() GetBackupJobsJobOtsDetailArrayOutput
	ToGetBackupJobsJobOtsDetailArrayOutputWithContext(context.Context) GetBackupJobsJobOtsDetailArrayOutput
}

GetBackupJobsJobOtsDetailArrayInput is an input type that accepts GetBackupJobsJobOtsDetailArray and GetBackupJobsJobOtsDetailArrayOutput values. You can construct a concrete instance of `GetBackupJobsJobOtsDetailArrayInput` via:

GetBackupJobsJobOtsDetailArray{ GetBackupJobsJobOtsDetailArgs{...} }

type GetBackupJobsJobOtsDetailArrayOutput added in v3.20.0

type GetBackupJobsJobOtsDetailArrayOutput struct{ *pulumi.OutputState }

func (GetBackupJobsJobOtsDetailArrayOutput) ElementType added in v3.20.0

func (GetBackupJobsJobOtsDetailArrayOutput) Index added in v3.20.0

func (GetBackupJobsJobOtsDetailArrayOutput) ToGetBackupJobsJobOtsDetailArrayOutput added in v3.20.0

func (o GetBackupJobsJobOtsDetailArrayOutput) ToGetBackupJobsJobOtsDetailArrayOutput() GetBackupJobsJobOtsDetailArrayOutput

func (GetBackupJobsJobOtsDetailArrayOutput) ToGetBackupJobsJobOtsDetailArrayOutputWithContext added in v3.20.0

func (o GetBackupJobsJobOtsDetailArrayOutput) ToGetBackupJobsJobOtsDetailArrayOutputWithContext(ctx context.Context) GetBackupJobsJobOtsDetailArrayOutput

type GetBackupJobsJobOtsDetailInput added in v3.20.0

type GetBackupJobsJobOtsDetailInput interface {
	pulumi.Input

	ToGetBackupJobsJobOtsDetailOutput() GetBackupJobsJobOtsDetailOutput
	ToGetBackupJobsJobOtsDetailOutputWithContext(context.Context) GetBackupJobsJobOtsDetailOutput
}

GetBackupJobsJobOtsDetailInput is an input type that accepts GetBackupJobsJobOtsDetailArgs and GetBackupJobsJobOtsDetailOutput values. You can construct a concrete instance of `GetBackupJobsJobOtsDetailInput` via:

GetBackupJobsJobOtsDetailArgs{...}

type GetBackupJobsJobOtsDetailOutput added in v3.20.0

type GetBackupJobsJobOtsDetailOutput struct{ *pulumi.OutputState }

func (GetBackupJobsJobOtsDetailOutput) ElementType added in v3.20.0

func (GetBackupJobsJobOtsDetailOutput) TableNames added in v3.20.0

func (GetBackupJobsJobOtsDetailOutput) ToGetBackupJobsJobOtsDetailOutput added in v3.20.0

func (o GetBackupJobsJobOtsDetailOutput) ToGetBackupJobsJobOtsDetailOutput() GetBackupJobsJobOtsDetailOutput

func (GetBackupJobsJobOtsDetailOutput) ToGetBackupJobsJobOtsDetailOutputWithContext added in v3.20.0

func (o GetBackupJobsJobOtsDetailOutput) ToGetBackupJobsJobOtsDetailOutputWithContext(ctx context.Context) GetBackupJobsJobOtsDetailOutput

type GetBackupJobsJobOutput added in v3.8.0

type GetBackupJobsJobOutput struct{ *pulumi.OutputState }

func (GetBackupJobsJobOutput) ActualBytes added in v3.8.0

func (o GetBackupJobsJobOutput) ActualBytes() pulumi.StringOutput

The actual data volume of the backup task (After deduplication) . Unit byte.

func (GetBackupJobsJobOutput) ActualItems added in v3.8.0

func (o GetBackupJobsJobOutput) ActualItems() pulumi.StringOutput

The actual number of items in the backup task. (Currently only file backup is available).

func (GetBackupJobsJobOutput) BackJobName added in v3.8.0

func (o GetBackupJobsJobOutput) BackJobName() pulumi.StringOutput

The name of backup job.

func (GetBackupJobsJobOutput) BackupJobId added in v3.8.0

func (o GetBackupJobsJobOutput) BackupJobId() pulumi.StringOutput

The ID of the backup job.

func (GetBackupJobsJobOutput) BackupType added in v3.8.0

Backup type. Valid values: `COMPLETE`(full backup).

func (GetBackupJobsJobOutput) Bucket added in v3.8.0

The name of target OSS bucket.

func (GetBackupJobsJobOutput) BytesDone added in v3.8.0

The amount of backup data (Incremental). Unit byte.

func (GetBackupJobsJobOutput) BytesTotal added in v3.8.0

The total amount of data sources. Unit byte.

func (GetBackupJobsJobOutput) CompleteTime added in v3.8.0

func (o GetBackupJobsJobOutput) CompleteTime() pulumi.StringOutput

The completion time of backup job. UNIX time seconds.

func (GetBackupJobsJobOutput) CreateTime added in v3.8.0

The creation time of backup job. UNIX time seconds.

func (GetBackupJobsJobOutput) CrossAccountRoleName added in v3.29.0

func (o GetBackupJobsJobOutput) CrossAccountRoleName() pulumi.StringOutput

The role name created in the original account RAM backup by the cross account managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.

func (GetBackupJobsJobOutput) CrossAccountType added in v3.29.0

func (o GetBackupJobsJobOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.

func (GetBackupJobsJobOutput) CrossAccountUserId added in v3.29.0

func (o GetBackupJobsJobOutput) CrossAccountUserId() pulumi.IntOutput

The original account ID of the cross account backup managed by the current account. It is valid only when `sourceType` is `ECS_FILE`, `NAS`, `OSS` or `OTS`.

func (GetBackupJobsJobOutput) ElementType added in v3.8.0

func (GetBackupJobsJobOutput) ElementType() reflect.Type

func (GetBackupJobsJobOutput) ErrorMessage added in v3.9.0

func (o GetBackupJobsJobOutput) ErrorMessage() pulumi.StringOutput

Error message.

func (GetBackupJobsJobOutput) Exclude added in v3.8.0

Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`

func (GetBackupJobsJobOutput) FileSystemId added in v3.8.0

func (o GetBackupJobsJobOutput) FileSystemId() pulumi.StringOutput

The ID of destination file system.

func (GetBackupJobsJobOutput) Id added in v3.8.0

The ID of the backup job.

func (GetBackupJobsJobOutput) Include added in v3.8.0

Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`

func (GetBackupJobsJobOutput) InstanceId added in v3.8.0

The ID of target ECS instance.

func (GetBackupJobsJobOutput) ItemsDone added in v3.8.0

The number of items restore job recovered.

func (GetBackupJobsJobOutput) ItemsTotal added in v3.8.0

The total number of items restore job recovered.

func (GetBackupJobsJobOutput) NasCreateTime added in v3.8.0

func (o GetBackupJobsJobOutput) NasCreateTime() pulumi.StringOutput

File system creation time. UNIX time in seconds.

func (GetBackupJobsJobOutput) OtsDetails added in v3.20.0

func (GetBackupJobsJobOutput) Paths added in v3.8.0

List of backup path. e.g. `["/home", "/var"]`.

func (GetBackupJobsJobOutput) PlanId added in v3.8.0

The ID of a backup plan.

func (GetBackupJobsJobOutput) Prefix added in v3.8.0

The prefix of Oss bucket files.

func (GetBackupJobsJobOutput) Progress added in v3.9.0

Backup progress. The value is 100%*100.

func (GetBackupJobsJobOutput) SourceType added in v3.8.0

The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.

func (GetBackupJobsJobOutput) StartTime added in v3.8.0

The scheduled backup start time. UNIX time seconds.

func (GetBackupJobsJobOutput) Status added in v3.8.0

The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.

func (GetBackupJobsJobOutput) ToGetBackupJobsJobOutput added in v3.8.0

func (o GetBackupJobsJobOutput) ToGetBackupJobsJobOutput() GetBackupJobsJobOutput

func (GetBackupJobsJobOutput) ToGetBackupJobsJobOutputWithContext added in v3.8.0

func (o GetBackupJobsJobOutput) ToGetBackupJobsJobOutputWithContext(ctx context.Context) GetBackupJobsJobOutput

func (GetBackupJobsJobOutput) UpdatedTime added in v3.8.0

func (o GetBackupJobsJobOutput) UpdatedTime() pulumi.StringOutput

The update time of backup job. UNIX time seconds.

func (GetBackupJobsJobOutput) VaultId added in v3.8.0

The ID of backup vault.

type GetBackupJobsOutputArgs added in v3.9.0

type GetBackupJobsOutputArgs struct {
	Filters GetBackupJobsFilterArrayInput `pulumi:"filters"`
	// A list of Backup Job IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The sort direction, sort results by ascending or descending order based on the value jobs id. Valid values: `ASCEND`, `DESCEND`.
	SortDirection pulumi.StringPtrInput `pulumi:"sortDirection"`
	// The type of data source. Valid Values: `ECS_FILE`, `OSS`, `NAS`, `UDM_DISK`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The status of restore job. Valid values: `COMPLETE` , `PARTIAL_COMPLETE`, `FAILED`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getBackupJobs.

func (GetBackupJobsOutputArgs) ElementType added in v3.9.0

func (GetBackupJobsOutputArgs) ElementType() reflect.Type

type GetBackupJobsResult added in v3.8.0

type GetBackupJobsResult struct {
	Filters []GetBackupJobsFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id            string             `pulumi:"id"`
	Ids           []string           `pulumi:"ids"`
	Jobs          []GetBackupJobsJob `pulumi:"jobs"`
	OutputFile    *string            `pulumi:"outputFile"`
	SortDirection *string            `pulumi:"sortDirection"`
	SourceType    string             `pulumi:"sourceType"`
	Status        *string            `pulumi:"status"`
}

A collection of values returned by getBackupJobs.

func GetBackupJobs added in v3.8.0

func GetBackupJobs(ctx *pulumi.Context, args *GetBackupJobsArgs, opts ...pulumi.InvokeOption) (*GetBackupJobsResult, error)

This data source provides the Hbr Backup Jobs of the current Alibaba Cloud user.

> **NOTE:** Available in v1.138.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _default, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{ NameRegex: pulumi.StringRef("plan-name"), }, nil); if err != nil { return err } defaultGetBackupJobs, err := hbr.GetBackupJobs(ctx, &hbr.GetBackupJobsArgs{ SourceType: "ECS_FILE", Filters: []hbr.GetBackupJobsFilter{ { Key: pulumi.StringRef("VaultId"), Operator: pulumi.StringRef("IN"), Values: interface{}{ _default.Plans[0].VaultId, }, }, { Key: pulumi.StringRef("InstanceId"), Operator: pulumi.StringRef("IN"), Values: interface{}{ _default.Plans[0].InstanceId, }, }, { Key: pulumi.StringRef("CompleteTime"), Operator: pulumi.StringRef("BETWEEN"), Values: []string{ "2021-08-23T14:17:15CST", "2021-08-24T14:17:15CST", }, }, }, }, nil); if err != nil { return err } example, err := hbr.GetBackupJobs(ctx, &hbr.GetBackupJobsArgs{ SourceType: "ECS_FILE", Status: pulumi.StringRef("COMPLETE"), Filters: []hbr.GetBackupJobsFilter{ { Key: pulumi.StringRef("VaultId"), Operator: pulumi.StringRef("IN"), Values: interface{}{ _default.Plans[0].VaultId, }, }, { Key: pulumi.StringRef("InstanceId"), Operator: pulumi.StringRef("IN"), Values: interface{}{ _default.Plans[0].InstanceId, }, }, { Key: pulumi.StringRef("CompleteTime"), Operator: pulumi.StringRef("LESS_THAN"), Values: []string{ "2021-10-20T20:20:20CST", }, }, }, }, nil); if err != nil { return err } ctx.Export("alicloudHbrBackupJobsDefault1", defaultGetBackupJobs.Jobs[0].Id) ctx.Export("alicloudHbrBackupJobsExample1", example.Jobs[0].Id) return nil }) } ```

type GetBackupJobsResultOutput added in v3.9.0

type GetBackupJobsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBackupJobs.

func GetBackupJobsOutput added in v3.9.0

func GetBackupJobsOutput(ctx *pulumi.Context, args GetBackupJobsOutputArgs, opts ...pulumi.InvokeOption) GetBackupJobsResultOutput

func (GetBackupJobsResultOutput) ElementType added in v3.9.0

func (GetBackupJobsResultOutput) ElementType() reflect.Type

func (GetBackupJobsResultOutput) Filters added in v3.9.0

func (GetBackupJobsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetBackupJobsResultOutput) Ids added in v3.9.0

func (GetBackupJobsResultOutput) Jobs added in v3.9.0

func (GetBackupJobsResultOutput) OutputFile added in v3.9.0

func (GetBackupJobsResultOutput) SortDirection added in v3.9.0

func (GetBackupJobsResultOutput) SourceType added in v3.9.0

func (GetBackupJobsResultOutput) Status added in v3.9.0

func (GetBackupJobsResultOutput) ToGetBackupJobsResultOutput added in v3.9.0

func (o GetBackupJobsResultOutput) ToGetBackupJobsResultOutput() GetBackupJobsResultOutput

func (GetBackupJobsResultOutput) ToGetBackupJobsResultOutputWithContext added in v3.9.0

func (o GetBackupJobsResultOutput) ToGetBackupJobsResultOutputWithContext(ctx context.Context) GetBackupJobsResultOutput

type GetEcsBackupClientsArgs added in v3.7.0

type GetEcsBackupClientsArgs struct {
	// A list of Ecs Backup Client IDs.
	Ids []string `pulumi:"ids"`
	// A list of ECS Instance IDs.
	InstanceIds []string `pulumi:"instanceIds"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The status of the resource. Valid values: `ACTIVATED`, `DEACTIVATED`, `INSTALLING`, `INSTALL_FAILED`, `NOT_INSTALLED`, `REGISTERED`, `STOPPED`, `UNINSTALLING`, `UNINSTALL_FAILED`, `UNKNOWN`, `UPGRADE_FAILED`, `UPGRADING`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getEcsBackupClients.

type GetEcsBackupClientsClient added in v3.7.0

type GetEcsBackupClientsClient struct {
	// The system architecture of client, only the ECS File Backup Client is available. Valid values: `AMD64` , `386`.
	ArchType string `pulumi:"archType"`
	// Client protected status. Valid values: `UNPROTECTED`, `PROTECTED`.
	BackupStatus string `pulumi:"backupStatus"`
	// The type of client. Valid values: `ECS_CLIENT` (ECS File Backup Client).
	ClientType string `pulumi:"clientType"`
	// The version of client.
	ClientVersion string `pulumi:"clientVersion"`
	// The creation time of client. Unix time in seconds.
	CreateTime string `pulumi:"createTime"`
	// The data plane access point type. Valid Values: `PUBLIC`, `VPC`, `CLASSIC`.
	DataNetworkType string `pulumi:"dataNetworkType"`
	// The data plane proxy settings. Valid Values: `DISABLE`, `USE_CONTROL_PROXY`, `CUSTOM`.
	DataProxySetting string `pulumi:"dataProxySetting"`
	// The first ID of the resource.
	EcsBackupClientId string `pulumi:"ecsBackupClientId"`
	// The hostname of ECS instance.
	Hostname string `pulumi:"hostname"`
	// The ID of the Ecs Backup Client.
	Id string `pulumi:"id"`
	// The ID of ECS instance. When the client type is ECS file backup client, it indicates the ID of ECS instance. When the client type is a local file backup client, it is a hardware fingerprint generated based on system information.
	InstanceId string `pulumi:"instanceId"`
	// The name of ECS instance.
	InstanceName string `pulumi:"instanceName"`
	// The last heartbeat time of client. Unix Time Seconds.
	LastHeartBeatTime string `pulumi:"lastHeartBeatTime"`
	// The latest version of client.
	MaxClientVersion string `pulumi:"maxClientVersion"`
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore string `pulumi:"maxCpuCore"`
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker string `pulumi:"maxWorker"`
	// The operating system type of client, only the ECS File Backup Client is available. Valid values: `windows`, `linux`.
	OsType string `pulumi:"osType"`
	// Intranet IP address of the instance, only available for ECS file backup client.
	PrivateIpv4 string `pulumi:"privateIpv4"`
	// Custom data plane proxy server host address.
	ProxyHost string `pulumi:"proxyHost"`
	// The password of custom data plane proxy server.
	ProxyPassword string `pulumi:"proxyPassword"`
	// Custom data plane proxy server host port.
	ProxyPort string `pulumi:"proxyPort"`
	// The username of custom data plane proxy server.
	ProxyUser string `pulumi:"proxyUser"`
	// The status of the resource.
	Status string `pulumi:"status"`
	// The update time of client. Unix Time Seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps bool `pulumi:"useHttps"`
	// The ID of Zone.
	ZoneId string `pulumi:"zoneId"`
}

type GetEcsBackupClientsClientArgs added in v3.7.0

type GetEcsBackupClientsClientArgs struct {
	// The system architecture of client, only the ECS File Backup Client is available. Valid values: `AMD64` , `386`.
	ArchType pulumi.StringInput `pulumi:"archType"`
	// Client protected status. Valid values: `UNPROTECTED`, `PROTECTED`.
	BackupStatus pulumi.StringInput `pulumi:"backupStatus"`
	// The type of client. Valid values: `ECS_CLIENT` (ECS File Backup Client).
	ClientType pulumi.StringInput `pulumi:"clientType"`
	// The version of client.
	ClientVersion pulumi.StringInput `pulumi:"clientVersion"`
	// The creation time of client. Unix time in seconds.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The data plane access point type. Valid Values: `PUBLIC`, `VPC`, `CLASSIC`.
	DataNetworkType pulumi.StringInput `pulumi:"dataNetworkType"`
	// The data plane proxy settings. Valid Values: `DISABLE`, `USE_CONTROL_PROXY`, `CUSTOM`.
	DataProxySetting pulumi.StringInput `pulumi:"dataProxySetting"`
	// The first ID of the resource.
	EcsBackupClientId pulumi.StringInput `pulumi:"ecsBackupClientId"`
	// The hostname of ECS instance.
	Hostname pulumi.StringInput `pulumi:"hostname"`
	// The ID of the Ecs Backup Client.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of ECS instance. When the client type is ECS file backup client, it indicates the ID of ECS instance. When the client type is a local file backup client, it is a hardware fingerprint generated based on system information.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The name of ECS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The last heartbeat time of client. Unix Time Seconds.
	LastHeartBeatTime pulumi.StringInput `pulumi:"lastHeartBeatTime"`
	// The latest version of client.
	MaxClientVersion pulumi.StringInput `pulumi:"maxClientVersion"`
	// The number of CPU cores used by a single backup task, 0 means no restrictions.
	MaxCpuCore pulumi.StringInput `pulumi:"maxCpuCore"`
	// The number of concurrent jobs for a single backup task, 0 means no restrictions.
	MaxWorker pulumi.StringInput `pulumi:"maxWorker"`
	// The operating system type of client, only the ECS File Backup Client is available. Valid values: `windows`, `linux`.
	OsType pulumi.StringInput `pulumi:"osType"`
	// Intranet IP address of the instance, only available for ECS file backup client.
	PrivateIpv4 pulumi.StringInput `pulumi:"privateIpv4"`
	// Custom data plane proxy server host address.
	ProxyHost pulumi.StringInput `pulumi:"proxyHost"`
	// The password of custom data plane proxy server.
	ProxyPassword pulumi.StringInput `pulumi:"proxyPassword"`
	// Custom data plane proxy server host port.
	ProxyPort pulumi.StringInput `pulumi:"proxyPort"`
	// The username of custom data plane proxy server.
	ProxyUser pulumi.StringInput `pulumi:"proxyUser"`
	// The status of the resource.
	Status pulumi.StringInput `pulumi:"status"`
	// The update time of client. Unix Time Seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.
	UseHttps pulumi.BoolInput `pulumi:"useHttps"`
	// The ID of Zone.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetEcsBackupClientsClientArgs) ElementType added in v3.7.0

func (GetEcsBackupClientsClientArgs) ToGetEcsBackupClientsClientOutput added in v3.7.0

func (i GetEcsBackupClientsClientArgs) ToGetEcsBackupClientsClientOutput() GetEcsBackupClientsClientOutput

func (GetEcsBackupClientsClientArgs) ToGetEcsBackupClientsClientOutputWithContext added in v3.7.0

func (i GetEcsBackupClientsClientArgs) ToGetEcsBackupClientsClientOutputWithContext(ctx context.Context) GetEcsBackupClientsClientOutput

type GetEcsBackupClientsClientArray added in v3.7.0

type GetEcsBackupClientsClientArray []GetEcsBackupClientsClientInput

func (GetEcsBackupClientsClientArray) ElementType added in v3.7.0

func (GetEcsBackupClientsClientArray) ToGetEcsBackupClientsClientArrayOutput added in v3.7.0

func (i GetEcsBackupClientsClientArray) ToGetEcsBackupClientsClientArrayOutput() GetEcsBackupClientsClientArrayOutput

func (GetEcsBackupClientsClientArray) ToGetEcsBackupClientsClientArrayOutputWithContext added in v3.7.0

func (i GetEcsBackupClientsClientArray) ToGetEcsBackupClientsClientArrayOutputWithContext(ctx context.Context) GetEcsBackupClientsClientArrayOutput

type GetEcsBackupClientsClientArrayInput added in v3.7.0

type GetEcsBackupClientsClientArrayInput interface {
	pulumi.Input

	ToGetEcsBackupClientsClientArrayOutput() GetEcsBackupClientsClientArrayOutput
	ToGetEcsBackupClientsClientArrayOutputWithContext(context.Context) GetEcsBackupClientsClientArrayOutput
}

GetEcsBackupClientsClientArrayInput is an input type that accepts GetEcsBackupClientsClientArray and GetEcsBackupClientsClientArrayOutput values. You can construct a concrete instance of `GetEcsBackupClientsClientArrayInput` via:

GetEcsBackupClientsClientArray{ GetEcsBackupClientsClientArgs{...} }

type GetEcsBackupClientsClientArrayOutput added in v3.7.0

type GetEcsBackupClientsClientArrayOutput struct{ *pulumi.OutputState }

func (GetEcsBackupClientsClientArrayOutput) ElementType added in v3.7.0

func (GetEcsBackupClientsClientArrayOutput) Index added in v3.7.0

func (GetEcsBackupClientsClientArrayOutput) ToGetEcsBackupClientsClientArrayOutput added in v3.7.0

func (o GetEcsBackupClientsClientArrayOutput) ToGetEcsBackupClientsClientArrayOutput() GetEcsBackupClientsClientArrayOutput

func (GetEcsBackupClientsClientArrayOutput) ToGetEcsBackupClientsClientArrayOutputWithContext added in v3.7.0

func (o GetEcsBackupClientsClientArrayOutput) ToGetEcsBackupClientsClientArrayOutputWithContext(ctx context.Context) GetEcsBackupClientsClientArrayOutput

type GetEcsBackupClientsClientInput added in v3.7.0

type GetEcsBackupClientsClientInput interface {
	pulumi.Input

	ToGetEcsBackupClientsClientOutput() GetEcsBackupClientsClientOutput
	ToGetEcsBackupClientsClientOutputWithContext(context.Context) GetEcsBackupClientsClientOutput
}

GetEcsBackupClientsClientInput is an input type that accepts GetEcsBackupClientsClientArgs and GetEcsBackupClientsClientOutput values. You can construct a concrete instance of `GetEcsBackupClientsClientInput` via:

GetEcsBackupClientsClientArgs{...}

type GetEcsBackupClientsClientOutput added in v3.7.0

type GetEcsBackupClientsClientOutput struct{ *pulumi.OutputState }

func (GetEcsBackupClientsClientOutput) ArchType added in v3.7.0

The system architecture of client, only the ECS File Backup Client is available. Valid values: `AMD64` , `386`.

func (GetEcsBackupClientsClientOutput) BackupStatus added in v3.7.0

Client protected status. Valid values: `UNPROTECTED`, `PROTECTED`.

func (GetEcsBackupClientsClientOutput) ClientType added in v3.7.0

The type of client. Valid values: `ECS_CLIENT` (ECS File Backup Client).

func (GetEcsBackupClientsClientOutput) ClientVersion added in v3.7.0

The version of client.

func (GetEcsBackupClientsClientOutput) CreateTime added in v3.7.0

The creation time of client. Unix time in seconds.

func (GetEcsBackupClientsClientOutput) DataNetworkType added in v3.7.0

The data plane access point type. Valid Values: `PUBLIC`, `VPC`, `CLASSIC`.

func (GetEcsBackupClientsClientOutput) DataProxySetting added in v3.7.0

The data plane proxy settings. Valid Values: `DISABLE`, `USE_CONTROL_PROXY`, `CUSTOM`.

func (GetEcsBackupClientsClientOutput) EcsBackupClientId added in v3.7.0

func (o GetEcsBackupClientsClientOutput) EcsBackupClientId() pulumi.StringOutput

The first ID of the resource.

func (GetEcsBackupClientsClientOutput) ElementType added in v3.7.0

func (GetEcsBackupClientsClientOutput) Hostname added in v3.7.0

The hostname of ECS instance.

func (GetEcsBackupClientsClientOutput) Id added in v3.7.0

The ID of the Ecs Backup Client.

func (GetEcsBackupClientsClientOutput) InstanceId added in v3.7.0

The ID of ECS instance. When the client type is ECS file backup client, it indicates the ID of ECS instance. When the client type is a local file backup client, it is a hardware fingerprint generated based on system information.

func (GetEcsBackupClientsClientOutput) InstanceName added in v3.7.0

The name of ECS instance.

func (GetEcsBackupClientsClientOutput) LastHeartBeatTime added in v3.7.0

func (o GetEcsBackupClientsClientOutput) LastHeartBeatTime() pulumi.StringOutput

The last heartbeat time of client. Unix Time Seconds.

func (GetEcsBackupClientsClientOutput) MaxClientVersion added in v3.7.0

The latest version of client.

func (GetEcsBackupClientsClientOutput) MaxCpuCore added in v3.7.0

The number of CPU cores used by a single backup task, 0 means no restrictions.

func (GetEcsBackupClientsClientOutput) MaxWorker added in v3.7.0

The number of concurrent jobs for a single backup task, 0 means no restrictions.

func (GetEcsBackupClientsClientOutput) OsType added in v3.7.0

The operating system type of client, only the ECS File Backup Client is available. Valid values: `windows`, `linux`.

func (GetEcsBackupClientsClientOutput) PrivateIpv4 added in v3.7.0

Intranet IP address of the instance, only available for ECS file backup client.

func (GetEcsBackupClientsClientOutput) ProxyHost added in v3.7.0

Custom data plane proxy server host address.

func (GetEcsBackupClientsClientOutput) ProxyPassword added in v3.7.0

The password of custom data plane proxy server.

func (GetEcsBackupClientsClientOutput) ProxyPort added in v3.7.0

Custom data plane proxy server host port.

func (GetEcsBackupClientsClientOutput) ProxyUser added in v3.7.0

The username of custom data plane proxy server.

func (GetEcsBackupClientsClientOutput) Status added in v3.7.0

The status of the resource.

func (GetEcsBackupClientsClientOutput) ToGetEcsBackupClientsClientOutput added in v3.7.0

func (o GetEcsBackupClientsClientOutput) ToGetEcsBackupClientsClientOutput() GetEcsBackupClientsClientOutput

func (GetEcsBackupClientsClientOutput) ToGetEcsBackupClientsClientOutputWithContext added in v3.7.0

func (o GetEcsBackupClientsClientOutput) ToGetEcsBackupClientsClientOutputWithContext(ctx context.Context) GetEcsBackupClientsClientOutput

func (GetEcsBackupClientsClientOutput) UpdatedTime added in v3.7.0

The update time of client. Unix Time Seconds.

func (GetEcsBackupClientsClientOutput) UseHttps added in v3.7.0

Indicates whether to use the HTTPS protocol. Valid values: `true`, `false`.

func (GetEcsBackupClientsClientOutput) ZoneId added in v3.7.0

The ID of Zone.

type GetEcsBackupClientsOutputArgs added in v3.9.0

type GetEcsBackupClientsOutputArgs struct {
	// A list of Ecs Backup Client IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A list of ECS Instance IDs.
	InstanceIds pulumi.StringArrayInput `pulumi:"instanceIds"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the resource. Valid values: `ACTIVATED`, `DEACTIVATED`, `INSTALLING`, `INSTALL_FAILED`, `NOT_INSTALLED`, `REGISTERED`, `STOPPED`, `UNINSTALLING`, `UNINSTALL_FAILED`, `UNKNOWN`, `UPGRADE_FAILED`, `UPGRADING`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getEcsBackupClients.

func (GetEcsBackupClientsOutputArgs) ElementType added in v3.9.0

type GetEcsBackupClientsResult added in v3.7.0

type GetEcsBackupClientsResult struct {
	Clients []GetEcsBackupClientsClient `pulumi:"clients"`
	// The provider-assigned unique ID for this managed resource.
	Id          string   `pulumi:"id"`
	Ids         []string `pulumi:"ids"`
	InstanceIds []string `pulumi:"instanceIds"`
	OutputFile  *string  `pulumi:"outputFile"`
	Status      *string  `pulumi:"status"`
}

A collection of values returned by getEcsBackupClients.

func GetEcsBackupClients added in v3.7.0

func GetEcsBackupClients(ctx *pulumi.Context, args *GetEcsBackupClientsArgs, opts ...pulumi.InvokeOption) (*GetEcsBackupClientsResult, error)

This data source provides the Hbr Ecs File Backup Clients of the current Alibaba Cloud user.

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := ecs.GetInstances(ctx, &ecs.GetInstancesArgs{ NameRegex: pulumi.StringRef("ecs_instance_name"), Status: pulumi.StringRef("Running"), }, nil); if err != nil { return err } ids, err := hbr.GetEcsBackupClients(ctx, &hbr.GetEcsBackupClientsArgs{ Ids: interface{}{ defaultAlicloudHbrEcsBackupClient.Id, }, InstanceIds: interface{}{ defaultAlicloudHbrEcsBackupClient.InstanceId, }, }, nil); if err != nil { return err } ctx.Export("hbrEcsBackupClientId1", ids.Clients[0].Id) return nil }) } ```

type GetEcsBackupClientsResultOutput added in v3.9.0

type GetEcsBackupClientsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEcsBackupClients.

func GetEcsBackupClientsOutput added in v3.9.0

func (GetEcsBackupClientsResultOutput) Clients added in v3.9.0

func (GetEcsBackupClientsResultOutput) ElementType added in v3.9.0

func (GetEcsBackupClientsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetEcsBackupClientsResultOutput) Ids added in v3.9.0

func (GetEcsBackupClientsResultOutput) InstanceIds added in v3.9.0

func (GetEcsBackupClientsResultOutput) OutputFile added in v3.9.0

func (GetEcsBackupClientsResultOutput) Status added in v3.9.0

func (GetEcsBackupClientsResultOutput) ToGetEcsBackupClientsResultOutput added in v3.9.0

func (o GetEcsBackupClientsResultOutput) ToGetEcsBackupClientsResultOutput() GetEcsBackupClientsResultOutput

func (GetEcsBackupClientsResultOutput) ToGetEcsBackupClientsResultOutputWithContext added in v3.9.0

func (o GetEcsBackupClientsResultOutput) ToGetEcsBackupClientsResultOutputWithContext(ctx context.Context) GetEcsBackupClientsResultOutput

type GetEcsBackupPlansArgs added in v3.7.0

type GetEcsBackupPlansArgs struct {
	// A list of EcsBackupPlan IDs.
	Ids []string `pulumi:"ids"`
	// The ECS instance ID of the EcsBackupPlan used.
	InstanceId *string `pulumi:"instanceId"`
	// A regex string to filter results by EcsBackupPlan name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The Vault ID of the EcsBackupPlan used.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getEcsBackupPlans.

type GetEcsBackupPlansOutputArgs added in v3.9.0

type GetEcsBackupPlansOutputArgs struct {
	// A list of EcsBackupPlan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The ECS instance ID of the EcsBackupPlan used.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// A regex string to filter results by EcsBackupPlan name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The Vault ID of the EcsBackupPlan used.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getEcsBackupPlans.

func (GetEcsBackupPlansOutputArgs) ElementType added in v3.9.0

type GetEcsBackupPlansPlan added in v3.7.0

type GetEcsBackupPlansPlan struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType string `pulumi:"backupType"`
	CreateTime string `pulumi:"createTime"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	Detail      string `pulumi:"detail"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The ID of ecs backup plan.
	EcsBackupPlanId string `pulumi:"ecsBackupPlanId"`
	// The name of the backup plan.
	EcsBackupPlanName string `pulumi:"ecsBackupPlanName"`
	// Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude string `pulumi:"exclude"`
	// The ID of ecs backup plan.
	Id string `pulumi:"id"`
	// Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`
	Include string `pulumi:"include"`
	// The ID of ECS instance.
	InstanceId string `pulumi:"instanceId"`
	// Windows operating system with application consistency using VSS. eg: {`UseVSS`:false}.
	Options string `pulumi:"options"`
	// Backup path. e.g. `["/home", "/var"]`
	Paths []string `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// 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.
	Schedule string `pulumi:"schedule"`
	// The type of backup source.
	SourceType string `pulumi:"sourceType"`
	// Flow control. The format is: {start}|{end}|{bandwidth}. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit string `pulumi:"speedLimit"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of Backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetEcsBackupPlansPlanArgs added in v3.7.0

type GetEcsBackupPlansPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	Detail      pulumi.StringInput `pulumi:"detail"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The ID of ecs backup plan.
	EcsBackupPlanId pulumi.StringInput `pulumi:"ecsBackupPlanId"`
	// The name of the backup plan.
	EcsBackupPlanName pulumi.StringInput `pulumi:"ecsBackupPlanName"`
	// Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`
	Exclude pulumi.StringInput `pulumi:"exclude"`
	// The ID of ecs backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`
	Include pulumi.StringInput `pulumi:"include"`
	// The ID of ECS instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Windows operating system with application consistency using VSS. eg: {`UseVSS`:false}.
	Options pulumi.StringInput `pulumi:"options"`
	// Backup path. e.g. `["/home", "/var"]`
	Paths pulumi.StringArrayInput `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// 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.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The type of backup source.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// Flow control. The format is: {start}|{end}|{bandwidth}. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.
	SpeedLimit pulumi.StringInput `pulumi:"speedLimit"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of Backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetEcsBackupPlansPlanArgs) ElementType added in v3.7.0

func (GetEcsBackupPlansPlanArgs) ElementType() reflect.Type

func (GetEcsBackupPlansPlanArgs) ToGetEcsBackupPlansPlanOutput added in v3.7.0

func (i GetEcsBackupPlansPlanArgs) ToGetEcsBackupPlansPlanOutput() GetEcsBackupPlansPlanOutput

func (GetEcsBackupPlansPlanArgs) ToGetEcsBackupPlansPlanOutputWithContext added in v3.7.0

func (i GetEcsBackupPlansPlanArgs) ToGetEcsBackupPlansPlanOutputWithContext(ctx context.Context) GetEcsBackupPlansPlanOutput

type GetEcsBackupPlansPlanArray added in v3.7.0

type GetEcsBackupPlansPlanArray []GetEcsBackupPlansPlanInput

func (GetEcsBackupPlansPlanArray) ElementType added in v3.7.0

func (GetEcsBackupPlansPlanArray) ElementType() reflect.Type

func (GetEcsBackupPlansPlanArray) ToGetEcsBackupPlansPlanArrayOutput added in v3.7.0

func (i GetEcsBackupPlansPlanArray) ToGetEcsBackupPlansPlanArrayOutput() GetEcsBackupPlansPlanArrayOutput

func (GetEcsBackupPlansPlanArray) ToGetEcsBackupPlansPlanArrayOutputWithContext added in v3.7.0

func (i GetEcsBackupPlansPlanArray) ToGetEcsBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetEcsBackupPlansPlanArrayOutput

type GetEcsBackupPlansPlanArrayInput added in v3.7.0

type GetEcsBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetEcsBackupPlansPlanArrayOutput() GetEcsBackupPlansPlanArrayOutput
	ToGetEcsBackupPlansPlanArrayOutputWithContext(context.Context) GetEcsBackupPlansPlanArrayOutput
}

GetEcsBackupPlansPlanArrayInput is an input type that accepts GetEcsBackupPlansPlanArray and GetEcsBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetEcsBackupPlansPlanArrayInput` via:

GetEcsBackupPlansPlanArray{ GetEcsBackupPlansPlanArgs{...} }

type GetEcsBackupPlansPlanArrayOutput added in v3.7.0

type GetEcsBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetEcsBackupPlansPlanArrayOutput) ElementType added in v3.7.0

func (GetEcsBackupPlansPlanArrayOutput) Index added in v3.7.0

func (GetEcsBackupPlansPlanArrayOutput) ToGetEcsBackupPlansPlanArrayOutput added in v3.7.0

func (o GetEcsBackupPlansPlanArrayOutput) ToGetEcsBackupPlansPlanArrayOutput() GetEcsBackupPlansPlanArrayOutput

func (GetEcsBackupPlansPlanArrayOutput) ToGetEcsBackupPlansPlanArrayOutputWithContext added in v3.7.0

func (o GetEcsBackupPlansPlanArrayOutput) ToGetEcsBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetEcsBackupPlansPlanArrayOutput

type GetEcsBackupPlansPlanInput added in v3.7.0

type GetEcsBackupPlansPlanInput interface {
	pulumi.Input

	ToGetEcsBackupPlansPlanOutput() GetEcsBackupPlansPlanOutput
	ToGetEcsBackupPlansPlanOutputWithContext(context.Context) GetEcsBackupPlansPlanOutput
}

GetEcsBackupPlansPlanInput is an input type that accepts GetEcsBackupPlansPlanArgs and GetEcsBackupPlansPlanOutput values. You can construct a concrete instance of `GetEcsBackupPlansPlanInput` via:

GetEcsBackupPlansPlanArgs{...}

type GetEcsBackupPlansPlanOutput added in v3.7.0

type GetEcsBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetEcsBackupPlansPlanOutput) BackupType added in v3.7.0

Backup type. Valid values: `COMPLETE`.

func (GetEcsBackupPlansPlanOutput) CreateTime added in v3.7.0

func (GetEcsBackupPlansPlanOutput) CreatedTime added in v3.9.0

The creation time of the backup plan. UNIX time in seconds.

func (GetEcsBackupPlansPlanOutput) Detail added in v3.7.0

func (GetEcsBackupPlansPlanOutput) Disabled added in v3.7.0

Whether to be suspended. Valid values: `true`, `false`.

func (GetEcsBackupPlansPlanOutput) EcsBackupPlanId added in v3.7.0

func (o GetEcsBackupPlansPlanOutput) EcsBackupPlanId() pulumi.StringOutput

The ID of ecs backup plan.

func (GetEcsBackupPlansPlanOutput) EcsBackupPlanName added in v3.7.0

func (o GetEcsBackupPlansPlanOutput) EcsBackupPlanName() pulumi.StringOutput

The name of the backup plan.

func (GetEcsBackupPlansPlanOutput) ElementType added in v3.7.0

func (GetEcsBackupPlansPlanOutput) Exclude added in v3.7.0

Exclude path. String of Json list. Up to 255 characters. e.g. `"[\"/home/work\"]"`

func (GetEcsBackupPlansPlanOutput) Id added in v3.7.0

The ID of ecs backup plan.

func (GetEcsBackupPlansPlanOutput) Include added in v3.7.0

Include path. String of Json list. Up to 255 characters. e.g. `"[\"/var\"]"`

func (GetEcsBackupPlansPlanOutput) InstanceId added in v3.7.0

The ID of ECS instance.

func (GetEcsBackupPlansPlanOutput) Options added in v3.7.0

Windows operating system with application consistency using VSS. eg: {`UseVSS`:false}.

func (GetEcsBackupPlansPlanOutput) Paths added in v3.7.0

Backup path. e.g. `["/home", "/var"]`

func (GetEcsBackupPlansPlanOutput) Retention added in v3.7.0

Backup retention days, the minimum is 1.

func (GetEcsBackupPlansPlanOutput) Schedule added in v3.7.0

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.

func (GetEcsBackupPlansPlanOutput) SourceType added in v3.9.0

The type of backup source.

func (GetEcsBackupPlansPlanOutput) SpeedLimit added in v3.7.0

Flow control. The format is: {start}|{end}|{bandwidth}. Use `|` to separate multiple flow control configurations, multiple flow control configurations not allowed to have overlapping times.

func (GetEcsBackupPlansPlanOutput) ToGetEcsBackupPlansPlanOutput added in v3.7.0

func (o GetEcsBackupPlansPlanOutput) ToGetEcsBackupPlansPlanOutput() GetEcsBackupPlansPlanOutput

func (GetEcsBackupPlansPlanOutput) ToGetEcsBackupPlansPlanOutputWithContext added in v3.7.0

func (o GetEcsBackupPlansPlanOutput) ToGetEcsBackupPlansPlanOutputWithContext(ctx context.Context) GetEcsBackupPlansPlanOutput

func (GetEcsBackupPlansPlanOutput) UpdatedTime added in v3.9.0

The update time of the backup plan. UNIX time in seconds.

func (GetEcsBackupPlansPlanOutput) VaultId added in v3.7.0

The ID of Backup vault.

type GetEcsBackupPlansResult added in v3.7.0

type GetEcsBackupPlansResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	InstanceId *string                 `pulumi:"instanceId"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	Plans      []GetEcsBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                 `pulumi:"vaultId"`
}

A collection of values returned by getEcsBackupPlans.

func GetEcsBackupPlans added in v3.7.0

func GetEcsBackupPlans(ctx *pulumi.Context, args *GetEcsBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetEcsBackupPlansResult, error)

This data source provides the Hbr EcsBackupPlans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-name"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrEcsBackupPlanId", ids.Plans[0].Id)
		return nil
	})
}

```

type GetEcsBackupPlansResultOutput added in v3.9.0

type GetEcsBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEcsBackupPlans.

func GetEcsBackupPlansOutput added in v3.9.0

func (GetEcsBackupPlansResultOutput) ElementType added in v3.9.0

func (GetEcsBackupPlansResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetEcsBackupPlansResultOutput) Ids added in v3.9.0

func (GetEcsBackupPlansResultOutput) InstanceId added in v3.9.0

func (GetEcsBackupPlansResultOutput) NameRegex added in v3.9.0

func (GetEcsBackupPlansResultOutput) Names added in v3.9.0

func (GetEcsBackupPlansResultOutput) OutputFile added in v3.9.0

func (GetEcsBackupPlansResultOutput) Plans added in v3.9.0

func (GetEcsBackupPlansResultOutput) ToGetEcsBackupPlansResultOutput added in v3.9.0

func (o GetEcsBackupPlansResultOutput) ToGetEcsBackupPlansResultOutput() GetEcsBackupPlansResultOutput

func (GetEcsBackupPlansResultOutput) ToGetEcsBackupPlansResultOutputWithContext added in v3.9.0

func (o GetEcsBackupPlansResultOutput) ToGetEcsBackupPlansResultOutputWithContext(ctx context.Context) GetEcsBackupPlansResultOutput

func (GetEcsBackupPlansResultOutput) VaultId added in v3.9.0

type GetHanaBackupClientsArgs added in v3.31.0

type GetHanaBackupClientsArgs struct {
	// The ID of the backup client.
	ClientId *string `pulumi:"clientId"`
	// The ID of the SAP HANA instance.
	ClusterId *string `pulumi:"clusterId"`
	// A list of Hana Backup Client IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The status of the Hana Backup Client. Valid Values: `REGISTERED`, `ACTIVATED`, `DEACTIVATED`, `INSTALLING`, `INSTALL_FAILED`, `NOT_INSTALLED`, `UPGRADING`, `UPGRADE_FAILED`, `UNINSTALLING`, `UNINSTALL_FAILED`, `STOPPED`, `UNKNOWN`.
	Status *string `pulumi:"status"`
	// The ID of the backup vault.
	VaultId string `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaBackupClients.

type GetHanaBackupClientsHanaBackupClient added in v3.31.0

type GetHanaBackupClientsHanaBackupClient struct {
	// The alert settings.
	AlertSetting string `pulumi:"alertSetting"`
	// The ID of the backup client.
	ClientId string `pulumi:"clientId"`
	// The name of the backup client.
	ClientName string `pulumi:"clientName"`
	// The type of the backup client.
	ClientType string `pulumi:"clientType"`
	// The version number of the backup client.
	ClientVersion string `pulumi:"clientVersion"`
	// The ID of the SAP HANA instance.
	ClusterId string `pulumi:"clusterId"`
	// The id of the Hana Backup Client. It formats as `<vault_id>:<client_id>`.
	Id string `pulumi:"id"`
	// The ID of the instance.
	InstanceId string `pulumi:"instanceId"`
	// The name of the ECS instance.
	InstanceName string `pulumi:"instanceName"`
	// The maximum version number of the backup client.
	MaxVersion string `pulumi:"maxVersion"`
	// The network type.
	NetworkType string `pulumi:"networkType"`
	// The status of the Hana Backup Client. Valid Values: `REGISTERED`, `ACTIVATED`, `DEACTIVATED`, `INSTALLING`, `INSTALL_FAILED`, `NOT_INSTALLED`, `UPGRADING`, `UPGRADE_FAILED`, `UNINSTALLING`, `UNINSTALL_FAILED`, `STOPPED`, `UNKNOWN`.
	Status string `pulumi:"status"`
	// The status information.
	StatusMessage string `pulumi:"statusMessage"`
	// Indicates whether data is transmitted over HTTPS.
	UseHttps bool `pulumi:"useHttps"`
	// The ID of the backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetHanaBackupClientsHanaBackupClientArgs added in v3.31.0

type GetHanaBackupClientsHanaBackupClientArgs struct {
	// The alert settings.
	AlertSetting pulumi.StringInput `pulumi:"alertSetting"`
	// The ID of the backup client.
	ClientId pulumi.StringInput `pulumi:"clientId"`
	// The name of the backup client.
	ClientName pulumi.StringInput `pulumi:"clientName"`
	// The type of the backup client.
	ClientType pulumi.StringInput `pulumi:"clientType"`
	// The version number of the backup client.
	ClientVersion pulumi.StringInput `pulumi:"clientVersion"`
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The id of the Hana Backup Client. It formats as `<vault_id>:<client_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The name of the ECS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The maximum version number of the backup client.
	MaxVersion pulumi.StringInput `pulumi:"maxVersion"`
	// The network type.
	NetworkType pulumi.StringInput `pulumi:"networkType"`
	// The status of the Hana Backup Client. Valid Values: `REGISTERED`, `ACTIVATED`, `DEACTIVATED`, `INSTALLING`, `INSTALL_FAILED`, `NOT_INSTALLED`, `UPGRADING`, `UPGRADE_FAILED`, `UNINSTALLING`, `UNINSTALL_FAILED`, `STOPPED`, `UNKNOWN`.
	Status pulumi.StringInput `pulumi:"status"`
	// The status information.
	StatusMessage pulumi.StringInput `pulumi:"statusMessage"`
	// Indicates whether data is transmitted over HTTPS.
	UseHttps pulumi.BoolInput `pulumi:"useHttps"`
	// The ID of the backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetHanaBackupClientsHanaBackupClientArgs) ElementType added in v3.31.0

func (GetHanaBackupClientsHanaBackupClientArgs) ToGetHanaBackupClientsHanaBackupClientOutput added in v3.31.0

func (i GetHanaBackupClientsHanaBackupClientArgs) ToGetHanaBackupClientsHanaBackupClientOutput() GetHanaBackupClientsHanaBackupClientOutput

func (GetHanaBackupClientsHanaBackupClientArgs) ToGetHanaBackupClientsHanaBackupClientOutputWithContext added in v3.31.0

func (i GetHanaBackupClientsHanaBackupClientArgs) ToGetHanaBackupClientsHanaBackupClientOutputWithContext(ctx context.Context) GetHanaBackupClientsHanaBackupClientOutput

type GetHanaBackupClientsHanaBackupClientArray added in v3.31.0

type GetHanaBackupClientsHanaBackupClientArray []GetHanaBackupClientsHanaBackupClientInput

func (GetHanaBackupClientsHanaBackupClientArray) ElementType added in v3.31.0

func (GetHanaBackupClientsHanaBackupClientArray) ToGetHanaBackupClientsHanaBackupClientArrayOutput added in v3.31.0

func (i GetHanaBackupClientsHanaBackupClientArray) ToGetHanaBackupClientsHanaBackupClientArrayOutput() GetHanaBackupClientsHanaBackupClientArrayOutput

func (GetHanaBackupClientsHanaBackupClientArray) ToGetHanaBackupClientsHanaBackupClientArrayOutputWithContext added in v3.31.0

func (i GetHanaBackupClientsHanaBackupClientArray) ToGetHanaBackupClientsHanaBackupClientArrayOutputWithContext(ctx context.Context) GetHanaBackupClientsHanaBackupClientArrayOutput

type GetHanaBackupClientsHanaBackupClientArrayInput added in v3.31.0

type GetHanaBackupClientsHanaBackupClientArrayInput interface {
	pulumi.Input

	ToGetHanaBackupClientsHanaBackupClientArrayOutput() GetHanaBackupClientsHanaBackupClientArrayOutput
	ToGetHanaBackupClientsHanaBackupClientArrayOutputWithContext(context.Context) GetHanaBackupClientsHanaBackupClientArrayOutput
}

GetHanaBackupClientsHanaBackupClientArrayInput is an input type that accepts GetHanaBackupClientsHanaBackupClientArray and GetHanaBackupClientsHanaBackupClientArrayOutput values. You can construct a concrete instance of `GetHanaBackupClientsHanaBackupClientArrayInput` via:

GetHanaBackupClientsHanaBackupClientArray{ GetHanaBackupClientsHanaBackupClientArgs{...} }

type GetHanaBackupClientsHanaBackupClientArrayOutput added in v3.31.0

type GetHanaBackupClientsHanaBackupClientArrayOutput struct{ *pulumi.OutputState }

func (GetHanaBackupClientsHanaBackupClientArrayOutput) ElementType added in v3.31.0

func (GetHanaBackupClientsHanaBackupClientArrayOutput) Index added in v3.31.0

func (GetHanaBackupClientsHanaBackupClientArrayOutput) ToGetHanaBackupClientsHanaBackupClientArrayOutput added in v3.31.0

func (o GetHanaBackupClientsHanaBackupClientArrayOutput) ToGetHanaBackupClientsHanaBackupClientArrayOutput() GetHanaBackupClientsHanaBackupClientArrayOutput

func (GetHanaBackupClientsHanaBackupClientArrayOutput) ToGetHanaBackupClientsHanaBackupClientArrayOutputWithContext added in v3.31.0

func (o GetHanaBackupClientsHanaBackupClientArrayOutput) ToGetHanaBackupClientsHanaBackupClientArrayOutputWithContext(ctx context.Context) GetHanaBackupClientsHanaBackupClientArrayOutput

type GetHanaBackupClientsHanaBackupClientInput added in v3.31.0

type GetHanaBackupClientsHanaBackupClientInput interface {
	pulumi.Input

	ToGetHanaBackupClientsHanaBackupClientOutput() GetHanaBackupClientsHanaBackupClientOutput
	ToGetHanaBackupClientsHanaBackupClientOutputWithContext(context.Context) GetHanaBackupClientsHanaBackupClientOutput
}

GetHanaBackupClientsHanaBackupClientInput is an input type that accepts GetHanaBackupClientsHanaBackupClientArgs and GetHanaBackupClientsHanaBackupClientOutput values. You can construct a concrete instance of `GetHanaBackupClientsHanaBackupClientInput` via:

GetHanaBackupClientsHanaBackupClientArgs{...}

type GetHanaBackupClientsHanaBackupClientOutput added in v3.31.0

type GetHanaBackupClientsHanaBackupClientOutput struct{ *pulumi.OutputState }

func (GetHanaBackupClientsHanaBackupClientOutput) AlertSetting added in v3.31.0

The alert settings.

func (GetHanaBackupClientsHanaBackupClientOutput) ClientId added in v3.31.0

The ID of the backup client.

func (GetHanaBackupClientsHanaBackupClientOutput) ClientName added in v3.31.0

The name of the backup client.

func (GetHanaBackupClientsHanaBackupClientOutput) ClientType added in v3.31.0

The type of the backup client.

func (GetHanaBackupClientsHanaBackupClientOutput) ClientVersion added in v3.31.0

The version number of the backup client.

func (GetHanaBackupClientsHanaBackupClientOutput) ClusterId added in v3.31.0

The ID of the SAP HANA instance.

func (GetHanaBackupClientsHanaBackupClientOutput) ElementType added in v3.31.0

func (GetHanaBackupClientsHanaBackupClientOutput) Id added in v3.31.0

The id of the Hana Backup Client. It formats as `<vault_id>:<client_id>`.

func (GetHanaBackupClientsHanaBackupClientOutput) InstanceId added in v3.31.0

The ID of the instance.

func (GetHanaBackupClientsHanaBackupClientOutput) InstanceName added in v3.31.0

The name of the ECS instance.

func (GetHanaBackupClientsHanaBackupClientOutput) MaxVersion added in v3.31.0

The maximum version number of the backup client.

func (GetHanaBackupClientsHanaBackupClientOutput) NetworkType added in v3.31.0

The network type.

func (GetHanaBackupClientsHanaBackupClientOutput) Status added in v3.31.0

The status of the Hana Backup Client. Valid Values: `REGISTERED`, `ACTIVATED`, `DEACTIVATED`, `INSTALLING`, `INSTALL_FAILED`, `NOT_INSTALLED`, `UPGRADING`, `UPGRADE_FAILED`, `UNINSTALLING`, `UNINSTALL_FAILED`, `STOPPED`, `UNKNOWN`.

func (GetHanaBackupClientsHanaBackupClientOutput) StatusMessage added in v3.31.0

The status information.

func (GetHanaBackupClientsHanaBackupClientOutput) ToGetHanaBackupClientsHanaBackupClientOutput added in v3.31.0

func (o GetHanaBackupClientsHanaBackupClientOutput) ToGetHanaBackupClientsHanaBackupClientOutput() GetHanaBackupClientsHanaBackupClientOutput

func (GetHanaBackupClientsHanaBackupClientOutput) ToGetHanaBackupClientsHanaBackupClientOutputWithContext added in v3.31.0

func (o GetHanaBackupClientsHanaBackupClientOutput) ToGetHanaBackupClientsHanaBackupClientOutputWithContext(ctx context.Context) GetHanaBackupClientsHanaBackupClientOutput

func (GetHanaBackupClientsHanaBackupClientOutput) UseHttps added in v3.31.0

Indicates whether data is transmitted over HTTPS.

func (GetHanaBackupClientsHanaBackupClientOutput) VaultId added in v3.31.0

The ID of the backup vault.

type GetHanaBackupClientsOutputArgs added in v3.31.0

type GetHanaBackupClientsOutputArgs struct {
	// The ID of the backup client.
	ClientId pulumi.StringPtrInput `pulumi:"clientId"`
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringPtrInput `pulumi:"clusterId"`
	// A list of Hana Backup Client IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The status of the Hana Backup Client. Valid Values: `REGISTERED`, `ACTIVATED`, `DEACTIVATED`, `INSTALLING`, `INSTALL_FAILED`, `NOT_INSTALLED`, `UPGRADING`, `UPGRADE_FAILED`, `UNINSTALLING`, `UNINSTALL_FAILED`, `STOPPED`, `UNKNOWN`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of the backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaBackupClients.

func (GetHanaBackupClientsOutputArgs) ElementType added in v3.31.0

type GetHanaBackupClientsResult added in v3.31.0

type GetHanaBackupClientsResult struct {
	// The ID of the backup client.
	ClientId *string `pulumi:"clientId"`
	// The ID of the SAP HANA instance.
	ClusterId *string `pulumi:"clusterId"`
	// A list of Hana Backup Clients. Each element contains the following attributes:
	HanaBackupClients []GetHanaBackupClientsHanaBackupClient `pulumi:"hanaBackupClients"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	PageNumber *int     `pulumi:"pageNumber"`
	PageSize   *int     `pulumi:"pageSize"`
	// The status of the backup client.
	Status *string `pulumi:"status"`
	// The ID of the backup vault.
	VaultId string `pulumi:"vaultId"`
}

A collection of values returned by getHanaBackupClients.

func GetHanaBackupClients added in v3.31.0

func GetHanaBackupClients(ctx *pulumi.Context, args *GetHanaBackupClientsArgs, opts ...pulumi.InvokeOption) (*GetHanaBackupClientsResult, error)

This data source provides the Hybrid Backup Recovery (HBR) Hana Backup Clients of the current Alibaba Cloud user.

> **NOTE:** Available in 1.198.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetHanaBackupClients(ctx, &hbr.GetHanaBackupClientsArgs{
			Ids: []string{
				"example_id",
			},
			VaultId: "your_vault_id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrHanaBackupClientsId1", ids.HanaBackupClients[0].Id)
		return nil
	})
}

```

type GetHanaBackupClientsResultOutput added in v3.31.0

type GetHanaBackupClientsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHanaBackupClients.

func GetHanaBackupClientsOutput added in v3.31.0

func (GetHanaBackupClientsResultOutput) ClientId added in v3.31.0

The ID of the backup client.

func (GetHanaBackupClientsResultOutput) ClusterId added in v3.31.0

The ID of the SAP HANA instance.

func (GetHanaBackupClientsResultOutput) ElementType added in v3.31.0

func (GetHanaBackupClientsResultOutput) HanaBackupClients added in v3.31.0

A list of Hana Backup Clients. Each element contains the following attributes:

func (GetHanaBackupClientsResultOutput) Id added in v3.31.0

The provider-assigned unique ID for this managed resource.

func (GetHanaBackupClientsResultOutput) Ids added in v3.31.0

func (GetHanaBackupClientsResultOutput) OutputFile added in v3.31.0

func (GetHanaBackupClientsResultOutput) PageNumber added in v3.31.0

func (GetHanaBackupClientsResultOutput) PageSize added in v3.31.0

func (GetHanaBackupClientsResultOutput) Status added in v3.31.0

The status of the backup client.

func (GetHanaBackupClientsResultOutput) ToGetHanaBackupClientsResultOutput added in v3.31.0

func (o GetHanaBackupClientsResultOutput) ToGetHanaBackupClientsResultOutput() GetHanaBackupClientsResultOutput

func (GetHanaBackupClientsResultOutput) ToGetHanaBackupClientsResultOutputWithContext added in v3.31.0

func (o GetHanaBackupClientsResultOutput) ToGetHanaBackupClientsResultOutputWithContext(ctx context.Context) GetHanaBackupClientsResultOutput

func (GetHanaBackupClientsResultOutput) VaultId added in v3.31.0

The ID of the backup vault.

type GetHanaBackupPlansArgs added in v3.27.0

type GetHanaBackupPlansArgs struct {
	// The ID of the SAP HANA instance.
	ClusterId string `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName *string `pulumi:"databaseName"`
	// A list of Hana Backup Plan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Hana Backup Plan name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The ID of the backup vault.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaBackupPlans.

type GetHanaBackupPlansOutputArgs added in v3.27.0

type GetHanaBackupPlansOutputArgs struct {
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName pulumi.StringPtrInput `pulumi:"databaseName"`
	// A list of Hana Backup Plan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Hana Backup Plan name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaBackupPlans.

func (GetHanaBackupPlansOutputArgs) ElementType added in v3.27.0

type GetHanaBackupPlansPlan added in v3.27.0

type GetHanaBackupPlansPlan struct {
	// The backup prefix.
	BackupPrefix string `pulumi:"backupPrefix"`
	// The backup type.
	BackupType string `pulumi:"backupType"`
	// The ID of the SAP HANA instance.
	ClusterId string `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName string `pulumi:"databaseName"`
	// The ID of the resource.
	Id        string `pulumi:"id"`
	PageTotal string `pulumi:"pageTotal"`
	// The ID of the backup plan.
	PlanId string `pulumi:"planId"`
	// The name of the backup plan.
	PlanName string `pulumi:"planName"`
	// The backup policy.
	Schedule string `pulumi:"schedule"`
	// The status of the resource.
	Status string `pulumi:"status"`
	// The ID of the backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetHanaBackupPlansPlanArgs added in v3.27.0

type GetHanaBackupPlansPlanArgs struct {
	// The backup prefix.
	BackupPrefix pulumi.StringInput `pulumi:"backupPrefix"`
	// The backup type.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName pulumi.StringInput `pulumi:"databaseName"`
	// The ID of the resource.
	Id        pulumi.StringInput `pulumi:"id"`
	PageTotal pulumi.StringInput `pulumi:"pageTotal"`
	// The ID of the backup plan.
	PlanId pulumi.StringInput `pulumi:"planId"`
	// The name of the backup plan.
	PlanName pulumi.StringInput `pulumi:"planName"`
	// The backup policy.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The status of the resource.
	Status pulumi.StringInput `pulumi:"status"`
	// The ID of the backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetHanaBackupPlansPlanArgs) ElementType added in v3.27.0

func (GetHanaBackupPlansPlanArgs) ElementType() reflect.Type

func (GetHanaBackupPlansPlanArgs) ToGetHanaBackupPlansPlanOutput added in v3.27.0

func (i GetHanaBackupPlansPlanArgs) ToGetHanaBackupPlansPlanOutput() GetHanaBackupPlansPlanOutput

func (GetHanaBackupPlansPlanArgs) ToGetHanaBackupPlansPlanOutputWithContext added in v3.27.0

func (i GetHanaBackupPlansPlanArgs) ToGetHanaBackupPlansPlanOutputWithContext(ctx context.Context) GetHanaBackupPlansPlanOutput

type GetHanaBackupPlansPlanArray added in v3.27.0

type GetHanaBackupPlansPlanArray []GetHanaBackupPlansPlanInput

func (GetHanaBackupPlansPlanArray) ElementType added in v3.27.0

func (GetHanaBackupPlansPlanArray) ToGetHanaBackupPlansPlanArrayOutput added in v3.27.0

func (i GetHanaBackupPlansPlanArray) ToGetHanaBackupPlansPlanArrayOutput() GetHanaBackupPlansPlanArrayOutput

func (GetHanaBackupPlansPlanArray) ToGetHanaBackupPlansPlanArrayOutputWithContext added in v3.27.0

func (i GetHanaBackupPlansPlanArray) ToGetHanaBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetHanaBackupPlansPlanArrayOutput

type GetHanaBackupPlansPlanArrayInput added in v3.27.0

type GetHanaBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetHanaBackupPlansPlanArrayOutput() GetHanaBackupPlansPlanArrayOutput
	ToGetHanaBackupPlansPlanArrayOutputWithContext(context.Context) GetHanaBackupPlansPlanArrayOutput
}

GetHanaBackupPlansPlanArrayInput is an input type that accepts GetHanaBackupPlansPlanArray and GetHanaBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetHanaBackupPlansPlanArrayInput` via:

GetHanaBackupPlansPlanArray{ GetHanaBackupPlansPlanArgs{...} }

type GetHanaBackupPlansPlanArrayOutput added in v3.27.0

type GetHanaBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetHanaBackupPlansPlanArrayOutput) ElementType added in v3.27.0

func (GetHanaBackupPlansPlanArrayOutput) Index added in v3.27.0

func (GetHanaBackupPlansPlanArrayOutput) ToGetHanaBackupPlansPlanArrayOutput added in v3.27.0

func (o GetHanaBackupPlansPlanArrayOutput) ToGetHanaBackupPlansPlanArrayOutput() GetHanaBackupPlansPlanArrayOutput

func (GetHanaBackupPlansPlanArrayOutput) ToGetHanaBackupPlansPlanArrayOutputWithContext added in v3.27.0

func (o GetHanaBackupPlansPlanArrayOutput) ToGetHanaBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetHanaBackupPlansPlanArrayOutput

type GetHanaBackupPlansPlanInput added in v3.27.0

type GetHanaBackupPlansPlanInput interface {
	pulumi.Input

	ToGetHanaBackupPlansPlanOutput() GetHanaBackupPlansPlanOutput
	ToGetHanaBackupPlansPlanOutputWithContext(context.Context) GetHanaBackupPlansPlanOutput
}

GetHanaBackupPlansPlanInput is an input type that accepts GetHanaBackupPlansPlanArgs and GetHanaBackupPlansPlanOutput values. You can construct a concrete instance of `GetHanaBackupPlansPlanInput` via:

GetHanaBackupPlansPlanArgs{...}

type GetHanaBackupPlansPlanOutput added in v3.27.0

type GetHanaBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetHanaBackupPlansPlanOutput) BackupPrefix added in v3.27.0

The backup prefix.

func (GetHanaBackupPlansPlanOutput) BackupType added in v3.27.0

The backup type.

func (GetHanaBackupPlansPlanOutput) ClusterId added in v3.27.0

The ID of the SAP HANA instance.

func (GetHanaBackupPlansPlanOutput) DatabaseName added in v3.27.0

The name of the database.

func (GetHanaBackupPlansPlanOutput) ElementType added in v3.27.0

func (GetHanaBackupPlansPlanOutput) Id added in v3.27.0

The ID of the resource.

func (GetHanaBackupPlansPlanOutput) PageTotal added in v3.27.0

func (GetHanaBackupPlansPlanOutput) PlanId added in v3.27.0

The ID of the backup plan.

func (GetHanaBackupPlansPlanOutput) PlanName added in v3.27.0

The name of the backup plan.

func (GetHanaBackupPlansPlanOutput) Schedule added in v3.27.0

The backup policy.

func (GetHanaBackupPlansPlanOutput) Status added in v3.27.0

The status of the resource.

func (GetHanaBackupPlansPlanOutput) ToGetHanaBackupPlansPlanOutput added in v3.27.0

func (o GetHanaBackupPlansPlanOutput) ToGetHanaBackupPlansPlanOutput() GetHanaBackupPlansPlanOutput

func (GetHanaBackupPlansPlanOutput) ToGetHanaBackupPlansPlanOutputWithContext added in v3.27.0

func (o GetHanaBackupPlansPlanOutput) ToGetHanaBackupPlansPlanOutputWithContext(ctx context.Context) GetHanaBackupPlansPlanOutput

func (GetHanaBackupPlansPlanOutput) VaultId added in v3.27.0

The ID of the backup vault.

type GetHanaBackupPlansResult added in v3.27.0

type GetHanaBackupPlansResult struct {
	ClusterId    string  `pulumi:"clusterId"`
	DatabaseName *string `pulumi:"databaseName"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                   `pulumi:"id"`
	Ids        []string                 `pulumi:"ids"`
	NameRegex  *string                  `pulumi:"nameRegex"`
	Names      []string                 `pulumi:"names"`
	OutputFile *string                  `pulumi:"outputFile"`
	PageNumber *int                     `pulumi:"pageNumber"`
	PageSize   *int                     `pulumi:"pageSize"`
	Plans      []GetHanaBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                  `pulumi:"vaultId"`
}

A collection of values returned by getHanaBackupPlans.

func GetHanaBackupPlans added in v3.27.0

func GetHanaBackupPlans(ctx *pulumi.Context, args *GetHanaBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetHanaBackupPlansResult, error)

This data source provides the Hbr Hana Backup Plans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.179.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetHanaBackupPlans(ctx, &hbr.GetHanaBackupPlansArgs{
			ClusterId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrHanaBackupPlanId1", ids.Plans[0].Id)
		return nil
	})
}

```

type GetHanaBackupPlansResultOutput added in v3.27.0

type GetHanaBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHanaBackupPlans.

func GetHanaBackupPlansOutput added in v3.27.0

func (GetHanaBackupPlansResultOutput) ClusterId added in v3.27.0

func (GetHanaBackupPlansResultOutput) DatabaseName added in v3.27.0

func (GetHanaBackupPlansResultOutput) ElementType added in v3.27.0

func (GetHanaBackupPlansResultOutput) Id added in v3.27.0

The provider-assigned unique ID for this managed resource.

func (GetHanaBackupPlansResultOutput) Ids added in v3.27.0

func (GetHanaBackupPlansResultOutput) NameRegex added in v3.27.0

func (GetHanaBackupPlansResultOutput) Names added in v3.27.0

func (GetHanaBackupPlansResultOutput) OutputFile added in v3.27.0

func (GetHanaBackupPlansResultOutput) PageNumber added in v3.27.0

func (GetHanaBackupPlansResultOutput) PageSize added in v3.27.0

func (GetHanaBackupPlansResultOutput) Plans added in v3.27.0

func (GetHanaBackupPlansResultOutput) ToGetHanaBackupPlansResultOutput added in v3.27.0

func (o GetHanaBackupPlansResultOutput) ToGetHanaBackupPlansResultOutput() GetHanaBackupPlansResultOutput

func (GetHanaBackupPlansResultOutput) ToGetHanaBackupPlansResultOutputWithContext added in v3.27.0

func (o GetHanaBackupPlansResultOutput) ToGetHanaBackupPlansResultOutputWithContext(ctx context.Context) GetHanaBackupPlansResultOutput

func (GetHanaBackupPlansResultOutput) VaultId added in v3.27.0

type GetHanaInstancesArgs added in v3.26.0

type GetHanaInstancesArgs struct {
	// A list of Hana Instance IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Hana Instance name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The status of the SAP HANA instance.
	Status *string `pulumi:"status"`
	// The ID of the backup vault.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaInstances.

type GetHanaInstancesInstance added in v3.26.0

type GetHanaInstancesInstance struct {
	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting string `pulumi:"alertSetting"`
	// The ID of the SAP HANA instance.
	HanaInstanceId string `pulumi:"hanaInstanceId"`
	// The name of the SAP HANA instance.
	HanaName string `pulumi:"hanaName"`
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host string `pulumi:"host"`
	// The ID of the Hana Instance. The value formats as `<vault_id>:<hana_instance_id>`.
	Id string `pulumi:"id"`
	// The instance number of the SAP HANA system.
	InstanceNumber int `pulumi:"instanceNumber"`
	// The ID of the resource group.
	ResourceGroupId string `pulumi:"resourceGroupId"`
	// The status of the SAP HANA instance.
	Status string `pulumi:"status"`
	// The status information.
	StatusMessage string `pulumi:"statusMessage"`
	// Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
	UseSsl bool `pulumi:"useSsl"`
	// The username of the SYSTEMDB database.
	UserName string `pulumi:"userName"`
	// Indicates whether the SSL certificate of the SAP HANA instance is verified.
	ValidateCertificate bool `pulumi:"validateCertificate"`
	// The ID of the backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetHanaInstancesInstanceArgs added in v3.26.0

type GetHanaInstancesInstanceArgs struct {
	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting pulumi.StringInput `pulumi:"alertSetting"`
	// The ID of the SAP HANA instance.
	HanaInstanceId pulumi.StringInput `pulumi:"hanaInstanceId"`
	// The name of the SAP HANA instance.
	HanaName pulumi.StringInput `pulumi:"hanaName"`
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host pulumi.StringInput `pulumi:"host"`
	// The ID of the Hana Instance. The value formats as `<vault_id>:<hana_instance_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The instance number of the SAP HANA system.
	InstanceNumber pulumi.IntInput `pulumi:"instanceNumber"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringInput `pulumi:"resourceGroupId"`
	// The status of the SAP HANA instance.
	Status pulumi.StringInput `pulumi:"status"`
	// The status information.
	StatusMessage pulumi.StringInput `pulumi:"statusMessage"`
	// Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).
	UseSsl pulumi.BoolInput `pulumi:"useSsl"`
	// The username of the SYSTEMDB database.
	UserName pulumi.StringInput `pulumi:"userName"`
	// Indicates whether the SSL certificate of the SAP HANA instance is verified.
	ValidateCertificate pulumi.BoolInput `pulumi:"validateCertificate"`
	// The ID of the backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetHanaInstancesInstanceArgs) ElementType added in v3.26.0

func (GetHanaInstancesInstanceArgs) ToGetHanaInstancesInstanceOutput added in v3.26.0

func (i GetHanaInstancesInstanceArgs) ToGetHanaInstancesInstanceOutput() GetHanaInstancesInstanceOutput

func (GetHanaInstancesInstanceArgs) ToGetHanaInstancesInstanceOutputWithContext added in v3.26.0

func (i GetHanaInstancesInstanceArgs) ToGetHanaInstancesInstanceOutputWithContext(ctx context.Context) GetHanaInstancesInstanceOutput

type GetHanaInstancesInstanceArray added in v3.26.0

type GetHanaInstancesInstanceArray []GetHanaInstancesInstanceInput

func (GetHanaInstancesInstanceArray) ElementType added in v3.26.0

func (GetHanaInstancesInstanceArray) ToGetHanaInstancesInstanceArrayOutput added in v3.26.0

func (i GetHanaInstancesInstanceArray) ToGetHanaInstancesInstanceArrayOutput() GetHanaInstancesInstanceArrayOutput

func (GetHanaInstancesInstanceArray) ToGetHanaInstancesInstanceArrayOutputWithContext added in v3.26.0

func (i GetHanaInstancesInstanceArray) ToGetHanaInstancesInstanceArrayOutputWithContext(ctx context.Context) GetHanaInstancesInstanceArrayOutput

type GetHanaInstancesInstanceArrayInput added in v3.26.0

type GetHanaInstancesInstanceArrayInput interface {
	pulumi.Input

	ToGetHanaInstancesInstanceArrayOutput() GetHanaInstancesInstanceArrayOutput
	ToGetHanaInstancesInstanceArrayOutputWithContext(context.Context) GetHanaInstancesInstanceArrayOutput
}

GetHanaInstancesInstanceArrayInput is an input type that accepts GetHanaInstancesInstanceArray and GetHanaInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetHanaInstancesInstanceArrayInput` via:

GetHanaInstancesInstanceArray{ GetHanaInstancesInstanceArgs{...} }

type GetHanaInstancesInstanceArrayOutput added in v3.26.0

type GetHanaInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetHanaInstancesInstanceArrayOutput) ElementType added in v3.26.0

func (GetHanaInstancesInstanceArrayOutput) Index added in v3.26.0

func (GetHanaInstancesInstanceArrayOutput) ToGetHanaInstancesInstanceArrayOutput added in v3.26.0

func (o GetHanaInstancesInstanceArrayOutput) ToGetHanaInstancesInstanceArrayOutput() GetHanaInstancesInstanceArrayOutput

func (GetHanaInstancesInstanceArrayOutput) ToGetHanaInstancesInstanceArrayOutputWithContext added in v3.26.0

func (o GetHanaInstancesInstanceArrayOutput) ToGetHanaInstancesInstanceArrayOutputWithContext(ctx context.Context) GetHanaInstancesInstanceArrayOutput

type GetHanaInstancesInstanceInput added in v3.26.0

type GetHanaInstancesInstanceInput interface {
	pulumi.Input

	ToGetHanaInstancesInstanceOutput() GetHanaInstancesInstanceOutput
	ToGetHanaInstancesInstanceOutputWithContext(context.Context) GetHanaInstancesInstanceOutput
}

GetHanaInstancesInstanceInput is an input type that accepts GetHanaInstancesInstanceArgs and GetHanaInstancesInstanceOutput values. You can construct a concrete instance of `GetHanaInstancesInstanceInput` via:

GetHanaInstancesInstanceArgs{...}

type GetHanaInstancesInstanceOutput added in v3.26.0

type GetHanaInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetHanaInstancesInstanceOutput) AlertSetting added in v3.26.0

The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.

func (GetHanaInstancesInstanceOutput) ElementType added in v3.26.0

func (GetHanaInstancesInstanceOutput) HanaInstanceId added in v3.26.0

The ID of the SAP HANA instance.

func (GetHanaInstancesInstanceOutput) HanaName added in v3.26.0

The name of the SAP HANA instance.

func (GetHanaInstancesInstanceOutput) Host added in v3.26.0

The private or internal IP address of the host where the primary node of the SAP HANA instance resides.

func (GetHanaInstancesInstanceOutput) Id added in v3.26.0

The ID of the Hana Instance. The value formats as `<vault_id>:<hana_instance_id>`.

func (GetHanaInstancesInstanceOutput) InstanceNumber added in v3.26.0

func (o GetHanaInstancesInstanceOutput) InstanceNumber() pulumi.IntOutput

The instance number of the SAP HANA system.

func (GetHanaInstancesInstanceOutput) ResourceGroupId added in v3.26.0

The ID of the resource group.

func (GetHanaInstancesInstanceOutput) Status added in v3.26.0

The status of the SAP HANA instance.

func (GetHanaInstancesInstanceOutput) StatusMessage added in v3.26.0

The status information.

func (GetHanaInstancesInstanceOutput) ToGetHanaInstancesInstanceOutput added in v3.26.0

func (o GetHanaInstancesInstanceOutput) ToGetHanaInstancesInstanceOutput() GetHanaInstancesInstanceOutput

func (GetHanaInstancesInstanceOutput) ToGetHanaInstancesInstanceOutputWithContext added in v3.26.0

func (o GetHanaInstancesInstanceOutput) ToGetHanaInstancesInstanceOutputWithContext(ctx context.Context) GetHanaInstancesInstanceOutput

func (GetHanaInstancesInstanceOutput) UseSsl added in v3.26.0

Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL).

func (GetHanaInstancesInstanceOutput) UserName added in v3.26.0

The username of the SYSTEMDB database.

func (GetHanaInstancesInstanceOutput) ValidateCertificate added in v3.26.0

func (o GetHanaInstancesInstanceOutput) ValidateCertificate() pulumi.BoolOutput

Indicates whether the SSL certificate of the SAP HANA instance is verified.

func (GetHanaInstancesInstanceOutput) VaultId added in v3.26.0

The ID of the backup vault.

type GetHanaInstancesOutputArgs added in v3.26.0

type GetHanaInstancesOutputArgs struct {
	// A list of Hana Instance IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Hana Instance name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The status of the SAP HANA instance.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getHanaInstances.

func (GetHanaInstancesOutputArgs) ElementType added in v3.26.0

func (GetHanaInstancesOutputArgs) ElementType() reflect.Type

type GetHanaInstancesResult added in v3.26.0

type GetHanaInstancesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                     `pulumi:"id"`
	Ids        []string                   `pulumi:"ids"`
	Instances  []GetHanaInstancesInstance `pulumi:"instances"`
	NameRegex  *string                    `pulumi:"nameRegex"`
	Names      []string                   `pulumi:"names"`
	OutputFile *string                    `pulumi:"outputFile"`
	PageNumber *int                       `pulumi:"pageNumber"`
	PageSize   *int                       `pulumi:"pageSize"`
	Status     *string                    `pulumi:"status"`
	VaultId    *string                    `pulumi:"vaultId"`
}

A collection of values returned by getHanaInstances.

func GetHanaInstances added in v3.26.0

func GetHanaInstances(ctx *pulumi.Context, args *GetHanaInstancesArgs, opts ...pulumi.InvokeOption) (*GetHanaInstancesResult, error)

This data source provides the Hbr Hana Instances of the current Alibaba Cloud user.

> **NOTE:** Available in v1.178.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetHanaInstances(ctx, &hbr.GetHanaInstancesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrHanaInstanceId1", ids.Instances[0].Id)
		return nil
	})
}

```

type GetHanaInstancesResultOutput added in v3.26.0

type GetHanaInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHanaInstances.

func GetHanaInstancesOutput added in v3.26.0

func (GetHanaInstancesResultOutput) ElementType added in v3.26.0

func (GetHanaInstancesResultOutput) Id added in v3.26.0

The provider-assigned unique ID for this managed resource.

func (GetHanaInstancesResultOutput) Ids added in v3.26.0

func (GetHanaInstancesResultOutput) Instances added in v3.26.0

func (GetHanaInstancesResultOutput) NameRegex added in v3.26.0

func (GetHanaInstancesResultOutput) Names added in v3.26.0

func (GetHanaInstancesResultOutput) OutputFile added in v3.26.0

func (GetHanaInstancesResultOutput) PageNumber added in v3.26.0

func (GetHanaInstancesResultOutput) PageSize added in v3.26.0

func (GetHanaInstancesResultOutput) Status added in v3.26.0

func (GetHanaInstancesResultOutput) ToGetHanaInstancesResultOutput added in v3.26.0

func (o GetHanaInstancesResultOutput) ToGetHanaInstancesResultOutput() GetHanaInstancesResultOutput

func (GetHanaInstancesResultOutput) ToGetHanaInstancesResultOutputWithContext added in v3.26.0

func (o GetHanaInstancesResultOutput) ToGetHanaInstancesResultOutputWithContext(ctx context.Context) GetHanaInstancesResultOutput

func (GetHanaInstancesResultOutput) VaultId added in v3.26.0

type GetNasBackupPlansArgs added in v3.7.0

type GetNasBackupPlansArgs struct {
	// The Nas fileSystem instance ID of the EcsBackupPlan used.
	FileSystemId *string `pulumi:"fileSystemId"`
	// A list of NasBackupPlan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by NasBackupPlan name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The backup vault ID of the NasBackupPlan used.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getNasBackupPlans.

type GetNasBackupPlansOutputArgs added in v3.9.0

type GetNasBackupPlansOutputArgs struct {
	// The Nas fileSystem instance ID of the EcsBackupPlan used.
	FileSystemId pulumi.StringPtrInput `pulumi:"fileSystemId"`
	// A list of NasBackupPlan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by NasBackupPlan name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The backup vault ID of the NasBackupPlan used.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getNasBackupPlans.

func (GetNasBackupPlansOutputArgs) ElementType added in v3.9.0

type GetNasBackupPlansPlan added in v3.7.0

type GetNasBackupPlansPlan struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType string `pulumi:"backupType"`
	// File System Creation Time. **Note** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST`.
	CreateTime string `pulumi:"createTime"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The File System ID of Nas.
	FileSystemId string `pulumi:"fileSystemId"`
	// The ID of Nas backup plan.
	Id string `pulumi:"id"`
	// The ID of Nas backup plan.
	NasBackupPlanId string `pulumi:"nasBackupPlanId"`
	// The name of the resource.
	NasBackupPlanName string `pulumi:"nasBackupPlanName"`
	// Options field of Nas backup plan.
	Options string `pulumi:"options"`
	// List of backup path. Up to 65536 Characters. e.g.`["/home", "/var"]`
	Paths []string `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// 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.
	Schedule string `pulumi:"schedule"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetNasBackupPlansPlanArgs added in v3.7.0

type GetNasBackupPlansPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// File System Creation Time. **Note** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST`.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The File System ID of Nas.
	FileSystemId pulumi.StringInput `pulumi:"fileSystemId"`
	// The ID of Nas backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of Nas backup plan.
	NasBackupPlanId pulumi.StringInput `pulumi:"nasBackupPlanId"`
	// The name of the resource.
	NasBackupPlanName pulumi.StringInput `pulumi:"nasBackupPlanName"`
	// Options field of Nas backup plan.
	Options pulumi.StringInput `pulumi:"options"`
	// List of backup path. Up to 65536 Characters. e.g.`["/home", "/var"]`
	Paths pulumi.StringArrayInput `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// 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.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetNasBackupPlansPlanArgs) ElementType added in v3.7.0

func (GetNasBackupPlansPlanArgs) ElementType() reflect.Type

func (GetNasBackupPlansPlanArgs) ToGetNasBackupPlansPlanOutput added in v3.7.0

func (i GetNasBackupPlansPlanArgs) ToGetNasBackupPlansPlanOutput() GetNasBackupPlansPlanOutput

func (GetNasBackupPlansPlanArgs) ToGetNasBackupPlansPlanOutputWithContext added in v3.7.0

func (i GetNasBackupPlansPlanArgs) ToGetNasBackupPlansPlanOutputWithContext(ctx context.Context) GetNasBackupPlansPlanOutput

type GetNasBackupPlansPlanArray added in v3.7.0

type GetNasBackupPlansPlanArray []GetNasBackupPlansPlanInput

func (GetNasBackupPlansPlanArray) ElementType added in v3.7.0

func (GetNasBackupPlansPlanArray) ElementType() reflect.Type

func (GetNasBackupPlansPlanArray) ToGetNasBackupPlansPlanArrayOutput added in v3.7.0

func (i GetNasBackupPlansPlanArray) ToGetNasBackupPlansPlanArrayOutput() GetNasBackupPlansPlanArrayOutput

func (GetNasBackupPlansPlanArray) ToGetNasBackupPlansPlanArrayOutputWithContext added in v3.7.0

func (i GetNasBackupPlansPlanArray) ToGetNasBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetNasBackupPlansPlanArrayOutput

type GetNasBackupPlansPlanArrayInput added in v3.7.0

type GetNasBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetNasBackupPlansPlanArrayOutput() GetNasBackupPlansPlanArrayOutput
	ToGetNasBackupPlansPlanArrayOutputWithContext(context.Context) GetNasBackupPlansPlanArrayOutput
}

GetNasBackupPlansPlanArrayInput is an input type that accepts GetNasBackupPlansPlanArray and GetNasBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetNasBackupPlansPlanArrayInput` via:

GetNasBackupPlansPlanArray{ GetNasBackupPlansPlanArgs{...} }

type GetNasBackupPlansPlanArrayOutput added in v3.7.0

type GetNasBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetNasBackupPlansPlanArrayOutput) ElementType added in v3.7.0

func (GetNasBackupPlansPlanArrayOutput) Index added in v3.7.0

func (GetNasBackupPlansPlanArrayOutput) ToGetNasBackupPlansPlanArrayOutput added in v3.7.0

func (o GetNasBackupPlansPlanArrayOutput) ToGetNasBackupPlansPlanArrayOutput() GetNasBackupPlansPlanArrayOutput

func (GetNasBackupPlansPlanArrayOutput) ToGetNasBackupPlansPlanArrayOutputWithContext added in v3.7.0

func (o GetNasBackupPlansPlanArrayOutput) ToGetNasBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetNasBackupPlansPlanArrayOutput

type GetNasBackupPlansPlanInput added in v3.7.0

type GetNasBackupPlansPlanInput interface {
	pulumi.Input

	ToGetNasBackupPlansPlanOutput() GetNasBackupPlansPlanOutput
	ToGetNasBackupPlansPlanOutputWithContext(context.Context) GetNasBackupPlansPlanOutput
}

GetNasBackupPlansPlanInput is an input type that accepts GetNasBackupPlansPlanArgs and GetNasBackupPlansPlanOutput values. You can construct a concrete instance of `GetNasBackupPlansPlanInput` via:

GetNasBackupPlansPlanArgs{...}

type GetNasBackupPlansPlanOutput added in v3.7.0

type GetNasBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetNasBackupPlansPlanOutput) BackupType added in v3.7.0

Backup type. Valid values: `COMPLETE`.

func (GetNasBackupPlansPlanOutput) CreateTime added in v3.7.0

File System Creation Time. **Note** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST`.

func (GetNasBackupPlansPlanOutput) CreatedTime added in v3.9.0

The creation time of the backup plan. UNIX time in seconds.

func (GetNasBackupPlansPlanOutput) Disabled added in v3.7.0

Whether to be suspended. Valid values: `true`, `false`.

func (GetNasBackupPlansPlanOutput) ElementType added in v3.7.0

func (GetNasBackupPlansPlanOutput) FileSystemId added in v3.7.0

The File System ID of Nas.

func (GetNasBackupPlansPlanOutput) Id added in v3.7.0

The ID of Nas backup plan.

func (GetNasBackupPlansPlanOutput) NasBackupPlanId added in v3.7.0

func (o GetNasBackupPlansPlanOutput) NasBackupPlanId() pulumi.StringOutput

The ID of Nas backup plan.

func (GetNasBackupPlansPlanOutput) NasBackupPlanName added in v3.7.0

func (o GetNasBackupPlansPlanOutput) NasBackupPlanName() pulumi.StringOutput

The name of the resource.

func (GetNasBackupPlansPlanOutput) Options added in v3.7.0

Options field of Nas backup plan.

func (GetNasBackupPlansPlanOutput) Paths added in v3.7.0

List of backup path. Up to 65536 Characters. e.g.`["/home", "/var"]`

func (GetNasBackupPlansPlanOutput) Retention added in v3.7.0

Backup retention days, the minimum is 1.

func (GetNasBackupPlansPlanOutput) Schedule added in v3.7.0

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.

func (GetNasBackupPlansPlanOutput) ToGetNasBackupPlansPlanOutput added in v3.7.0

func (o GetNasBackupPlansPlanOutput) ToGetNasBackupPlansPlanOutput() GetNasBackupPlansPlanOutput

func (GetNasBackupPlansPlanOutput) ToGetNasBackupPlansPlanOutputWithContext added in v3.7.0

func (o GetNasBackupPlansPlanOutput) ToGetNasBackupPlansPlanOutputWithContext(ctx context.Context) GetNasBackupPlansPlanOutput

func (GetNasBackupPlansPlanOutput) UpdatedTime added in v3.9.0

The update time of the backup plan. UNIX time in seconds.

func (GetNasBackupPlansPlanOutput) VaultId added in v3.7.0

The ID of backup vault.

type GetNasBackupPlansResult added in v3.7.0

type GetNasBackupPlansResult struct {
	FileSystemId *string `pulumi:"fileSystemId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	Plans      []GetNasBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                 `pulumi:"vaultId"`
}

A collection of values returned by getNasBackupPlans.

func GetNasBackupPlans added in v3.7.0

func GetNasBackupPlans(ctx *pulumi.Context, args *GetNasBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetNasBackupPlansResult, error)

This data source provides the Hbr NasBackupPlans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
			NameRegex: pulumi.StringRef("^my-NasBackupPlan"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrNasBackupPlanId", ids.Plans[0].Id)
		return nil
	})
}

```

type GetNasBackupPlansResultOutput added in v3.9.0

type GetNasBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNasBackupPlans.

func GetNasBackupPlansOutput added in v3.9.0

func (GetNasBackupPlansResultOutput) ElementType added in v3.9.0

func (GetNasBackupPlansResultOutput) FileSystemId added in v3.9.0

func (GetNasBackupPlansResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetNasBackupPlansResultOutput) Ids added in v3.9.0

func (GetNasBackupPlansResultOutput) NameRegex added in v3.9.0

func (GetNasBackupPlansResultOutput) Names added in v3.9.0

func (GetNasBackupPlansResultOutput) OutputFile added in v3.9.0

func (GetNasBackupPlansResultOutput) Plans added in v3.9.0

func (GetNasBackupPlansResultOutput) ToGetNasBackupPlansResultOutput added in v3.9.0

func (o GetNasBackupPlansResultOutput) ToGetNasBackupPlansResultOutput() GetNasBackupPlansResultOutput

func (GetNasBackupPlansResultOutput) ToGetNasBackupPlansResultOutputWithContext added in v3.9.0

func (o GetNasBackupPlansResultOutput) ToGetNasBackupPlansResultOutputWithContext(ctx context.Context) GetNasBackupPlansResultOutput

func (GetNasBackupPlansResultOutput) VaultId added in v3.9.0

type GetOssBackupPlansArgs added in v3.6.0

type GetOssBackupPlansArgs struct {
	// The name of OSS bucket.
	Bucket *string `pulumi:"bucket"`
	// A list of OssBackupPlan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by OssBackupPlan name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The ID of backup vault the OssBackupPlan used.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getOssBackupPlans.

type GetOssBackupPlansOutputArgs added in v3.9.0

type GetOssBackupPlansOutputArgs struct {
	// The name of OSS bucket.
	Bucket pulumi.StringPtrInput `pulumi:"bucket"`
	// A list of OssBackupPlan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by OssBackupPlan name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of backup vault the OssBackupPlan used.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getOssBackupPlans.

func (GetOssBackupPlansOutputArgs) ElementType added in v3.9.0

type GetOssBackupPlansPlan added in v3.6.0

type GetOssBackupPlansPlan struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType string `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket string `pulumi:"bucket"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The ID of Oss backup plan.
	Id string `pulumi:"id"`
	// The ID of Oss backup plan.
	OssBackupPlanId string `pulumi:"ossBackupPlanId"`
	// 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.
	OssBackupPlanName string `pulumi:"ossBackupPlanName"`
	// Backup prefix.
	Prefix string `pulumi:"prefix"`
	// Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// 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 is not completed yet, the next backup task will not be triggered.
	Schedule string `pulumi:"schedule"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetOssBackupPlansPlanArgs added in v3.6.0

type GetOssBackupPlansPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The ID of Oss backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of Oss backup plan.
	OssBackupPlanId pulumi.StringInput `pulumi:"ossBackupPlanId"`
	// 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.
	OssBackupPlanName pulumi.StringInput `pulumi:"ossBackupPlanName"`
	// Backup prefix.
	Prefix pulumi.StringInput `pulumi:"prefix"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// 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 is not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The update time of the backup plan. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetOssBackupPlansPlanArgs) ElementType added in v3.6.0

func (GetOssBackupPlansPlanArgs) ElementType() reflect.Type

func (GetOssBackupPlansPlanArgs) ToGetOssBackupPlansPlanOutput added in v3.6.0

func (i GetOssBackupPlansPlanArgs) ToGetOssBackupPlansPlanOutput() GetOssBackupPlansPlanOutput

func (GetOssBackupPlansPlanArgs) ToGetOssBackupPlansPlanOutputWithContext added in v3.6.0

func (i GetOssBackupPlansPlanArgs) ToGetOssBackupPlansPlanOutputWithContext(ctx context.Context) GetOssBackupPlansPlanOutput

type GetOssBackupPlansPlanArray added in v3.6.0

type GetOssBackupPlansPlanArray []GetOssBackupPlansPlanInput

func (GetOssBackupPlansPlanArray) ElementType added in v3.6.0

func (GetOssBackupPlansPlanArray) ElementType() reflect.Type

func (GetOssBackupPlansPlanArray) ToGetOssBackupPlansPlanArrayOutput added in v3.6.0

func (i GetOssBackupPlansPlanArray) ToGetOssBackupPlansPlanArrayOutput() GetOssBackupPlansPlanArrayOutput

func (GetOssBackupPlansPlanArray) ToGetOssBackupPlansPlanArrayOutputWithContext added in v3.6.0

func (i GetOssBackupPlansPlanArray) ToGetOssBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetOssBackupPlansPlanArrayOutput

type GetOssBackupPlansPlanArrayInput added in v3.6.0

type GetOssBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetOssBackupPlansPlanArrayOutput() GetOssBackupPlansPlanArrayOutput
	ToGetOssBackupPlansPlanArrayOutputWithContext(context.Context) GetOssBackupPlansPlanArrayOutput
}

GetOssBackupPlansPlanArrayInput is an input type that accepts GetOssBackupPlansPlanArray and GetOssBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetOssBackupPlansPlanArrayInput` via:

GetOssBackupPlansPlanArray{ GetOssBackupPlansPlanArgs{...} }

type GetOssBackupPlansPlanArrayOutput added in v3.6.0

type GetOssBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetOssBackupPlansPlanArrayOutput) ElementType added in v3.6.0

func (GetOssBackupPlansPlanArrayOutput) Index added in v3.6.0

func (GetOssBackupPlansPlanArrayOutput) ToGetOssBackupPlansPlanArrayOutput added in v3.6.0

func (o GetOssBackupPlansPlanArrayOutput) ToGetOssBackupPlansPlanArrayOutput() GetOssBackupPlansPlanArrayOutput

func (GetOssBackupPlansPlanArrayOutput) ToGetOssBackupPlansPlanArrayOutputWithContext added in v3.6.0

func (o GetOssBackupPlansPlanArrayOutput) ToGetOssBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetOssBackupPlansPlanArrayOutput

type GetOssBackupPlansPlanInput added in v3.6.0

type GetOssBackupPlansPlanInput interface {
	pulumi.Input

	ToGetOssBackupPlansPlanOutput() GetOssBackupPlansPlanOutput
	ToGetOssBackupPlansPlanOutputWithContext(context.Context) GetOssBackupPlansPlanOutput
}

GetOssBackupPlansPlanInput is an input type that accepts GetOssBackupPlansPlanArgs and GetOssBackupPlansPlanOutput values. You can construct a concrete instance of `GetOssBackupPlansPlanInput` via:

GetOssBackupPlansPlanArgs{...}

type GetOssBackupPlansPlanOutput added in v3.6.0

type GetOssBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetOssBackupPlansPlanOutput) BackupType added in v3.6.0

Backup type. Valid values: `COMPLETE`.

func (GetOssBackupPlansPlanOutput) Bucket added in v3.6.0

The name of OSS bucket.

func (GetOssBackupPlansPlanOutput) CreatedTime added in v3.9.0

The creation time of the backup plan. UNIX time in seconds.

func (GetOssBackupPlansPlanOutput) Disabled added in v3.6.0

Whether to be suspended. Valid values: `true`, `false`.

func (GetOssBackupPlansPlanOutput) ElementType added in v3.6.0

func (GetOssBackupPlansPlanOutput) Id added in v3.6.0

The ID of Oss backup plan.

func (GetOssBackupPlansPlanOutput) OssBackupPlanId added in v3.6.0

func (o GetOssBackupPlansPlanOutput) OssBackupPlanId() pulumi.StringOutput

The ID of Oss backup plan.

func (GetOssBackupPlansPlanOutput) OssBackupPlanName added in v3.6.0

func (o GetOssBackupPlansPlanOutput) OssBackupPlanName() pulumi.StringOutput

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.

func (GetOssBackupPlansPlanOutput) Prefix added in v3.6.0

Backup prefix.

func (GetOssBackupPlansPlanOutput) Retention added in v3.6.0

Backup retention days, the minimum is 1.

func (GetOssBackupPlansPlanOutput) Schedule added in v3.6.0

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 is not completed yet, the next backup task will not be triggered.

func (GetOssBackupPlansPlanOutput) ToGetOssBackupPlansPlanOutput added in v3.6.0

func (o GetOssBackupPlansPlanOutput) ToGetOssBackupPlansPlanOutput() GetOssBackupPlansPlanOutput

func (GetOssBackupPlansPlanOutput) ToGetOssBackupPlansPlanOutputWithContext added in v3.6.0

func (o GetOssBackupPlansPlanOutput) ToGetOssBackupPlansPlanOutputWithContext(ctx context.Context) GetOssBackupPlansPlanOutput

func (GetOssBackupPlansPlanOutput) UpdatedTime added in v3.9.0

The update time of the backup plan. UNIX time in seconds.

func (GetOssBackupPlansPlanOutput) VaultId added in v3.6.0

The ID of backup vault.

type GetOssBackupPlansResult added in v3.6.0

type GetOssBackupPlansResult struct {
	Bucket *string `pulumi:"bucket"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	Plans      []GetOssBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                 `pulumi:"vaultId"`
}

A collection of values returned by getOssBackupPlans.

func GetOssBackupPlans added in v3.6.0

func GetOssBackupPlans(ctx *pulumi.Context, args *GetOssBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetOssBackupPlansResult, error)

This data source provides the Hbr OssBackupPlans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.131.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
			NameRegex: pulumi.StringRef("^my-OssBackupPlan"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrOssBackupPlanId", ids.Plans[0].Id)
		return nil
	})
}

```

type GetOssBackupPlansResultOutput added in v3.9.0

type GetOssBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOssBackupPlans.

func GetOssBackupPlansOutput added in v3.9.0

func (GetOssBackupPlansResultOutput) Bucket added in v3.9.0

func (GetOssBackupPlansResultOutput) ElementType added in v3.9.0

func (GetOssBackupPlansResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetOssBackupPlansResultOutput) Ids added in v3.9.0

func (GetOssBackupPlansResultOutput) NameRegex added in v3.9.0

func (GetOssBackupPlansResultOutput) Names added in v3.9.0

func (GetOssBackupPlansResultOutput) OutputFile added in v3.9.0

func (GetOssBackupPlansResultOutput) Plans added in v3.9.0

func (GetOssBackupPlansResultOutput) ToGetOssBackupPlansResultOutput added in v3.9.0

func (o GetOssBackupPlansResultOutput) ToGetOssBackupPlansResultOutput() GetOssBackupPlansResultOutput

func (GetOssBackupPlansResultOutput) ToGetOssBackupPlansResultOutputWithContext added in v3.9.0

func (o GetOssBackupPlansResultOutput) ToGetOssBackupPlansResultOutputWithContext(ctx context.Context) GetOssBackupPlansResultOutput

func (GetOssBackupPlansResultOutput) VaultId added in v3.9.0

type GetOtsBackupPlansArgs added in v3.20.0

type GetOtsBackupPlansArgs struct {
	// A list of OtsBackupPlan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by OtsBackupPlan name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The ID of the backup plan.
	PlanId *string `pulumi:"planId"`
	// The ID of the backup plan.
	PlanName *string `pulumi:"planName"`
	// The ID of backup vault the OtsBackupPlan used.
	VaultId *string `pulumi:"vaultId"`
}

A collection of arguments for invoking getOtsBackupPlans.

type GetOtsBackupPlansOutputArgs added in v3.20.0

type GetOtsBackupPlansOutputArgs struct {
	// A list of OtsBackupPlan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by OtsBackupPlan name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of the backup plan.
	PlanId pulumi.StringPtrInput `pulumi:"planId"`
	// The ID of the backup plan.
	PlanName pulumi.StringPtrInput `pulumi:"planName"`
	// The ID of backup vault the OtsBackupPlan used.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getOtsBackupPlans.

func (GetOtsBackupPlansOutputArgs) ElementType added in v3.20.0

type GetOtsBackupPlansPlan added in v3.20.0

type GetOtsBackupPlansPlan struct {
	// The Backup type. Valid values: `COMPLETE`.
	BackupType string `pulumi:"backupType"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The ID of ots backup plan.
	Id string `pulumi:"id"`
	// The ID of ots backup plan.
	OtsBackupPlanId string `pulumi:"otsBackupPlanId"`
	// 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.
	OtsBackupPlanName string                           `pulumi:"otsBackupPlanName"`
	OtsDetails        []GetOtsBackupPlansPlanOtsDetail `pulumi:"otsDetails"`
	// The Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// The 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 is not completed yet, the next backup task will not be triggered.
	Schedule string `pulumi:"schedule"`
	// The type of the data source.
	SourceType string `pulumi:"sourceType"`
	// The update time of the backup plan. UNIX time in seconds.
	// *ots_detail - The details about the Tablestore instance.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetOtsBackupPlansPlanArgs added in v3.20.0

type GetOtsBackupPlansPlanArgs struct {
	// The Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The creation time of the backup plan. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Whether to be suspended. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The ID of ots backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of ots backup plan.
	OtsBackupPlanId pulumi.StringInput `pulumi:"otsBackupPlanId"`
	// 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.
	OtsBackupPlanName pulumi.StringInput                       `pulumi:"otsBackupPlanName"`
	OtsDetails        GetOtsBackupPlansPlanOtsDetailArrayInput `pulumi:"otsDetails"`
	// The Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// The 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 is not completed yet, the next backup task will not be triggered.
	Schedule pulumi.StringInput `pulumi:"schedule"`
	// The type of the data source.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The update time of the backup plan. UNIX time in seconds.
	// *ots_detail - The details about the Tablestore instance.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetOtsBackupPlansPlanArgs) ElementType added in v3.20.0

func (GetOtsBackupPlansPlanArgs) ElementType() reflect.Type

func (GetOtsBackupPlansPlanArgs) ToGetOtsBackupPlansPlanOutput added in v3.20.0

func (i GetOtsBackupPlansPlanArgs) ToGetOtsBackupPlansPlanOutput() GetOtsBackupPlansPlanOutput

func (GetOtsBackupPlansPlanArgs) ToGetOtsBackupPlansPlanOutputWithContext added in v3.20.0

func (i GetOtsBackupPlansPlanArgs) ToGetOtsBackupPlansPlanOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOutput

type GetOtsBackupPlansPlanArray added in v3.20.0

type GetOtsBackupPlansPlanArray []GetOtsBackupPlansPlanInput

func (GetOtsBackupPlansPlanArray) ElementType added in v3.20.0

func (GetOtsBackupPlansPlanArray) ElementType() reflect.Type

func (GetOtsBackupPlansPlanArray) ToGetOtsBackupPlansPlanArrayOutput added in v3.20.0

func (i GetOtsBackupPlansPlanArray) ToGetOtsBackupPlansPlanArrayOutput() GetOtsBackupPlansPlanArrayOutput

func (GetOtsBackupPlansPlanArray) ToGetOtsBackupPlansPlanArrayOutputWithContext added in v3.20.0

func (i GetOtsBackupPlansPlanArray) ToGetOtsBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanArrayOutput

type GetOtsBackupPlansPlanArrayInput added in v3.20.0

type GetOtsBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetOtsBackupPlansPlanArrayOutput() GetOtsBackupPlansPlanArrayOutput
	ToGetOtsBackupPlansPlanArrayOutputWithContext(context.Context) GetOtsBackupPlansPlanArrayOutput
}

GetOtsBackupPlansPlanArrayInput is an input type that accepts GetOtsBackupPlansPlanArray and GetOtsBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetOtsBackupPlansPlanArrayInput` via:

GetOtsBackupPlansPlanArray{ GetOtsBackupPlansPlanArgs{...} }

type GetOtsBackupPlansPlanArrayOutput added in v3.20.0

type GetOtsBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetOtsBackupPlansPlanArrayOutput) ElementType added in v3.20.0

func (GetOtsBackupPlansPlanArrayOutput) Index added in v3.20.0

func (GetOtsBackupPlansPlanArrayOutput) ToGetOtsBackupPlansPlanArrayOutput added in v3.20.0

func (o GetOtsBackupPlansPlanArrayOutput) ToGetOtsBackupPlansPlanArrayOutput() GetOtsBackupPlansPlanArrayOutput

func (GetOtsBackupPlansPlanArrayOutput) ToGetOtsBackupPlansPlanArrayOutputWithContext added in v3.20.0

func (o GetOtsBackupPlansPlanArrayOutput) ToGetOtsBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanArrayOutput

type GetOtsBackupPlansPlanInput added in v3.20.0

type GetOtsBackupPlansPlanInput interface {
	pulumi.Input

	ToGetOtsBackupPlansPlanOutput() GetOtsBackupPlansPlanOutput
	ToGetOtsBackupPlansPlanOutputWithContext(context.Context) GetOtsBackupPlansPlanOutput
}

GetOtsBackupPlansPlanInput is an input type that accepts GetOtsBackupPlansPlanArgs and GetOtsBackupPlansPlanOutput values. You can construct a concrete instance of `GetOtsBackupPlansPlanInput` via:

GetOtsBackupPlansPlanArgs{...}

type GetOtsBackupPlansPlanOtsDetail added in v3.20.0

type GetOtsBackupPlansPlanOtsDetail struct {
	TableNames []string `pulumi:"tableNames"`
}

type GetOtsBackupPlansPlanOtsDetailArgs added in v3.20.0

type GetOtsBackupPlansPlanOtsDetailArgs struct {
	TableNames pulumi.StringArrayInput `pulumi:"tableNames"`
}

func (GetOtsBackupPlansPlanOtsDetailArgs) ElementType added in v3.20.0

func (GetOtsBackupPlansPlanOtsDetailArgs) ToGetOtsBackupPlansPlanOtsDetailOutput added in v3.20.0

func (i GetOtsBackupPlansPlanOtsDetailArgs) ToGetOtsBackupPlansPlanOtsDetailOutput() GetOtsBackupPlansPlanOtsDetailOutput

func (GetOtsBackupPlansPlanOtsDetailArgs) ToGetOtsBackupPlansPlanOtsDetailOutputWithContext added in v3.20.0

func (i GetOtsBackupPlansPlanOtsDetailArgs) ToGetOtsBackupPlansPlanOtsDetailOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOtsDetailOutput

type GetOtsBackupPlansPlanOtsDetailArray added in v3.20.0

type GetOtsBackupPlansPlanOtsDetailArray []GetOtsBackupPlansPlanOtsDetailInput

func (GetOtsBackupPlansPlanOtsDetailArray) ElementType added in v3.20.0

func (GetOtsBackupPlansPlanOtsDetailArray) ToGetOtsBackupPlansPlanOtsDetailArrayOutput added in v3.20.0

func (i GetOtsBackupPlansPlanOtsDetailArray) ToGetOtsBackupPlansPlanOtsDetailArrayOutput() GetOtsBackupPlansPlanOtsDetailArrayOutput

func (GetOtsBackupPlansPlanOtsDetailArray) ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext added in v3.20.0

func (i GetOtsBackupPlansPlanOtsDetailArray) ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOtsDetailArrayOutput

type GetOtsBackupPlansPlanOtsDetailArrayInput added in v3.20.0

type GetOtsBackupPlansPlanOtsDetailArrayInput interface {
	pulumi.Input

	ToGetOtsBackupPlansPlanOtsDetailArrayOutput() GetOtsBackupPlansPlanOtsDetailArrayOutput
	ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext(context.Context) GetOtsBackupPlansPlanOtsDetailArrayOutput
}

GetOtsBackupPlansPlanOtsDetailArrayInput is an input type that accepts GetOtsBackupPlansPlanOtsDetailArray and GetOtsBackupPlansPlanOtsDetailArrayOutput values. You can construct a concrete instance of `GetOtsBackupPlansPlanOtsDetailArrayInput` via:

GetOtsBackupPlansPlanOtsDetailArray{ GetOtsBackupPlansPlanOtsDetailArgs{...} }

type GetOtsBackupPlansPlanOtsDetailArrayOutput added in v3.20.0

type GetOtsBackupPlansPlanOtsDetailArrayOutput struct{ *pulumi.OutputState }

func (GetOtsBackupPlansPlanOtsDetailArrayOutput) ElementType added in v3.20.0

func (GetOtsBackupPlansPlanOtsDetailArrayOutput) Index added in v3.20.0

func (GetOtsBackupPlansPlanOtsDetailArrayOutput) ToGetOtsBackupPlansPlanOtsDetailArrayOutput added in v3.20.0

func (o GetOtsBackupPlansPlanOtsDetailArrayOutput) ToGetOtsBackupPlansPlanOtsDetailArrayOutput() GetOtsBackupPlansPlanOtsDetailArrayOutput

func (GetOtsBackupPlansPlanOtsDetailArrayOutput) ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext added in v3.20.0

func (o GetOtsBackupPlansPlanOtsDetailArrayOutput) ToGetOtsBackupPlansPlanOtsDetailArrayOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOtsDetailArrayOutput

type GetOtsBackupPlansPlanOtsDetailInput added in v3.20.0

type GetOtsBackupPlansPlanOtsDetailInput interface {
	pulumi.Input

	ToGetOtsBackupPlansPlanOtsDetailOutput() GetOtsBackupPlansPlanOtsDetailOutput
	ToGetOtsBackupPlansPlanOtsDetailOutputWithContext(context.Context) GetOtsBackupPlansPlanOtsDetailOutput
}

GetOtsBackupPlansPlanOtsDetailInput is an input type that accepts GetOtsBackupPlansPlanOtsDetailArgs and GetOtsBackupPlansPlanOtsDetailOutput values. You can construct a concrete instance of `GetOtsBackupPlansPlanOtsDetailInput` via:

GetOtsBackupPlansPlanOtsDetailArgs{...}

type GetOtsBackupPlansPlanOtsDetailOutput added in v3.20.0

type GetOtsBackupPlansPlanOtsDetailOutput struct{ *pulumi.OutputState }

func (GetOtsBackupPlansPlanOtsDetailOutput) ElementType added in v3.20.0

func (GetOtsBackupPlansPlanOtsDetailOutput) TableNames added in v3.20.0

func (GetOtsBackupPlansPlanOtsDetailOutput) ToGetOtsBackupPlansPlanOtsDetailOutput added in v3.20.0

func (o GetOtsBackupPlansPlanOtsDetailOutput) ToGetOtsBackupPlansPlanOtsDetailOutput() GetOtsBackupPlansPlanOtsDetailOutput

func (GetOtsBackupPlansPlanOtsDetailOutput) ToGetOtsBackupPlansPlanOtsDetailOutputWithContext added in v3.20.0

func (o GetOtsBackupPlansPlanOtsDetailOutput) ToGetOtsBackupPlansPlanOtsDetailOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOtsDetailOutput

type GetOtsBackupPlansPlanOutput added in v3.20.0

type GetOtsBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetOtsBackupPlansPlanOutput) BackupType added in v3.20.0

The Backup type. Valid values: `COMPLETE`.

func (GetOtsBackupPlansPlanOutput) CreatedTime added in v3.20.0

The creation time of the backup plan. UNIX time in seconds.

func (GetOtsBackupPlansPlanOutput) Disabled added in v3.20.0

Whether to be suspended. Valid values: `true`, `false`.

func (GetOtsBackupPlansPlanOutput) ElementType added in v3.20.0

func (GetOtsBackupPlansPlanOutput) Id added in v3.20.0

The ID of ots backup plan.

func (GetOtsBackupPlansPlanOutput) OtsBackupPlanId added in v3.20.0

func (o GetOtsBackupPlansPlanOutput) OtsBackupPlanId() pulumi.StringOutput

The ID of ots backup plan.

func (GetOtsBackupPlansPlanOutput) OtsBackupPlanName added in v3.20.0

func (o GetOtsBackupPlansPlanOutput) OtsBackupPlanName() pulumi.StringOutput

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.

func (GetOtsBackupPlansPlanOutput) OtsDetails added in v3.20.0

func (GetOtsBackupPlansPlanOutput) Retention added in v3.20.0

The Backup retention days, the minimum is 1.

func (GetOtsBackupPlansPlanOutput) Schedule added in v3.20.0

The 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 is not completed yet, the next backup task will not be triggered.

func (GetOtsBackupPlansPlanOutput) SourceType added in v3.20.0

The type of the data source.

func (GetOtsBackupPlansPlanOutput) ToGetOtsBackupPlansPlanOutput added in v3.20.0

func (o GetOtsBackupPlansPlanOutput) ToGetOtsBackupPlansPlanOutput() GetOtsBackupPlansPlanOutput

func (GetOtsBackupPlansPlanOutput) ToGetOtsBackupPlansPlanOutputWithContext added in v3.20.0

func (o GetOtsBackupPlansPlanOutput) ToGetOtsBackupPlansPlanOutputWithContext(ctx context.Context) GetOtsBackupPlansPlanOutput

func (GetOtsBackupPlansPlanOutput) UpdatedTime added in v3.20.0

The update time of the backup plan. UNIX time in seconds. *ots_detail - The details about the Tablestore instance.

func (GetOtsBackupPlansPlanOutput) VaultId added in v3.20.0

The ID of backup vault.

type GetOtsBackupPlansResult added in v3.20.0

type GetOtsBackupPlansResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                  `pulumi:"id"`
	Ids        []string                `pulumi:"ids"`
	NameRegex  *string                 `pulumi:"nameRegex"`
	Names      []string                `pulumi:"names"`
	OutputFile *string                 `pulumi:"outputFile"`
	PlanId     *string                 `pulumi:"planId"`
	PlanName   *string                 `pulumi:"planName"`
	Plans      []GetOtsBackupPlansPlan `pulumi:"plans"`
	VaultId    *string                 `pulumi:"vaultId"`
}

A collection of values returned by getOtsBackupPlans.

func GetOtsBackupPlans added in v3.20.0

func GetOtsBackupPlans(ctx *pulumi.Context, args *GetOtsBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetOtsBackupPlansResult, error)

This data source provides the Hbr OtsBackupPlans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.163.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hbr.GetOtsBackupPlans(ctx, &hbr.GetOtsBackupPlansArgs{
			NameRegex: pulumi.StringRef("^my-otsBackupPlan"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrOtsBackupPlanId", plans[0].Id)
		return nil
	})
}

```

type GetOtsBackupPlansResultOutput added in v3.20.0

type GetOtsBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOtsBackupPlans.

func GetOtsBackupPlansOutput added in v3.20.0

func (GetOtsBackupPlansResultOutput) ElementType added in v3.20.0

func (GetOtsBackupPlansResultOutput) Id added in v3.20.0

The provider-assigned unique ID for this managed resource.

func (GetOtsBackupPlansResultOutput) Ids added in v3.20.0

func (GetOtsBackupPlansResultOutput) NameRegex added in v3.20.0

func (GetOtsBackupPlansResultOutput) Names added in v3.20.0

func (GetOtsBackupPlansResultOutput) OutputFile added in v3.20.0

func (GetOtsBackupPlansResultOutput) PlanId added in v3.20.0

func (GetOtsBackupPlansResultOutput) PlanName added in v3.20.0

func (GetOtsBackupPlansResultOutput) Plans added in v3.20.0

func (GetOtsBackupPlansResultOutput) ToGetOtsBackupPlansResultOutput added in v3.20.0

func (o GetOtsBackupPlansResultOutput) ToGetOtsBackupPlansResultOutput() GetOtsBackupPlansResultOutput

func (GetOtsBackupPlansResultOutput) ToGetOtsBackupPlansResultOutputWithContext added in v3.20.0

func (o GetOtsBackupPlansResultOutput) ToGetOtsBackupPlansResultOutputWithContext(ctx context.Context) GetOtsBackupPlansResultOutput

func (GetOtsBackupPlansResultOutput) VaultId added in v3.20.0

type GetOtsSnapshotsArgs added in v3.20.0

type GetOtsSnapshotsArgs struct {
	// The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
	EndTime *string  `pulumi:"endTime"`
	Ids     []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The start time of the backup. This value must be a UNIX timestamp. Unit: milliseconds.
	StartTime *string `pulumi:"startTime"`
}

A collection of arguments for invoking getOtsSnapshots.

type GetOtsSnapshotsOutputArgs added in v3.20.0

type GetOtsSnapshotsOutputArgs struct {
	// The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
	EndTime pulumi.StringPtrInput   `pulumi:"endTime"`
	Ids     pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The start time of the backup. This value must be a UNIX timestamp. Unit: milliseconds.
	StartTime pulumi.StringPtrInput `pulumi:"startTime"`
}

A collection of arguments for invoking getOtsSnapshots.

func (GetOtsSnapshotsOutputArgs) ElementType added in v3.20.0

func (GetOtsSnapshotsOutputArgs) ElementType() reflect.Type

type GetOtsSnapshotsResult added in v3.20.0

type GetOtsSnapshotsResult struct {
	EndTime *string `pulumi:"endTime"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                    `pulumi:"id"`
	Ids        []string                  `pulumi:"ids"`
	OutputFile *string                   `pulumi:"outputFile"`
	Snapshots  []GetOtsSnapshotsSnapshot `pulumi:"snapshots"`
	StartTime  *string                   `pulumi:"startTime"`
}

A collection of values returned by getOtsSnapshots.

func GetOtsSnapshots added in v3.20.0

func GetOtsSnapshots(ctx *pulumi.Context, args *GetOtsSnapshotsArgs, opts ...pulumi.InvokeOption) (*GetOtsSnapshotsResult, error)

This data source provides the Hbr Ots Snapshots of the current Alibaba Cloud user.

> **NOTE:** Available in v1.164.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hbr.GetOtsSnapshots(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetOtsSnapshotsResultOutput added in v3.20.0

type GetOtsSnapshotsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOtsSnapshots.

func GetOtsSnapshotsOutput added in v3.20.0

func (GetOtsSnapshotsResultOutput) ElementType added in v3.20.0

func (GetOtsSnapshotsResultOutput) EndTime added in v3.20.0

func (GetOtsSnapshotsResultOutput) Id added in v3.20.0

The provider-assigned unique ID for this managed resource.

func (GetOtsSnapshotsResultOutput) Ids added in v3.20.0

func (GetOtsSnapshotsResultOutput) OutputFile added in v3.20.0

func (GetOtsSnapshotsResultOutput) Snapshots added in v3.20.0

func (GetOtsSnapshotsResultOutput) StartTime added in v3.20.0

func (GetOtsSnapshotsResultOutput) ToGetOtsSnapshotsResultOutput added in v3.20.0

func (o GetOtsSnapshotsResultOutput) ToGetOtsSnapshotsResultOutput() GetOtsSnapshotsResultOutput

func (GetOtsSnapshotsResultOutput) ToGetOtsSnapshotsResultOutputWithContext added in v3.20.0

func (o GetOtsSnapshotsResultOutput) ToGetOtsSnapshotsResultOutputWithContext(ctx context.Context) GetOtsSnapshotsResultOutput

type GetOtsSnapshotsSnapshot added in v3.20.0

type GetOtsSnapshotsSnapshot struct {
	// The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
	ActualBytes string `pulumi:"actualBytes"`
	// The backup type. Valid value: `COMPLETE`, which indicates full backup.
	BackupType string `pulumi:"backupType"`
	// The total amount of data. Unit: bytes.
	BytesTotal string `pulumi:"bytesTotal"`
	// The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
	CompleteTime string `pulumi:"completeTime"`
	// The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
	CreateTime string `pulumi:"createTime"`
	// The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.
	CreatedTime string `pulumi:"createdTime"`
	// The ID of the backup snapshot.
	Id string `pulumi:"id"`
	// The name of the Table store instance.
	InstanceName string `pulumi:"instanceName"`
	// The ID of the backup job.
	JobId string `pulumi:"jobId"`
	// The hash value of the parent backup snapshot.
	ParentSnapshotHash string `pulumi:"parentSnapshotHash"`
	// The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
	RangeEnd string `pulumi:"rangeEnd"`
	// The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.
	RangeStart string `pulumi:"rangeStart"`
	// The retention period of the backup snapshot.
	Retention string `pulumi:"retention"`
	// The hash value of the backup snapshot.
	SnapshotHash string `pulumi:"snapshotHash"`
	// The ID of the backup snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// The type of the data source. Valid values: `ECS_FILE`,`PARTIAL_COMPLETE`,`FAILED`
	SourceType string `pulumi:"sourceType"`
	// The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.
	StartTime string `pulumi:"startTime"`
	// The status of the backup job. Valid values: `COMPLETE`,`PARTIAL_COMPLETE`,`FAILED`.
	Status string `pulumi:"status"`
	// The name of the table in the Table store instance.
	TableName string `pulumi:"tableName"`
	// The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of the backup vault that stores the backup snapshot.
	VaultId string `pulumi:"vaultId"`
}

type GetOtsSnapshotsSnapshotArgs added in v3.20.0

type GetOtsSnapshotsSnapshotArgs struct {
	// The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
	ActualBytes pulumi.StringInput `pulumi:"actualBytes"`
	// The backup type. Valid value: `COMPLETE`, which indicates full backup.
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The total amount of data. Unit: bytes.
	BytesTotal pulumi.StringInput `pulumi:"bytesTotal"`
	// The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
	CompleteTime pulumi.StringInput `pulumi:"completeTime"`
	// The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// The ID of the backup snapshot.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the Table store instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The ID of the backup job.
	JobId pulumi.StringInput `pulumi:"jobId"`
	// The hash value of the parent backup snapshot.
	ParentSnapshotHash pulumi.StringInput `pulumi:"parentSnapshotHash"`
	// The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
	RangeEnd pulumi.StringInput `pulumi:"rangeEnd"`
	// The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.
	RangeStart pulumi.StringInput `pulumi:"rangeStart"`
	// The retention period of the backup snapshot.
	Retention pulumi.StringInput `pulumi:"retention"`
	// The hash value of the backup snapshot.
	SnapshotHash pulumi.StringInput `pulumi:"snapshotHash"`
	// The ID of the backup snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// The type of the data source. Valid values: `ECS_FILE`,`PARTIAL_COMPLETE`,`FAILED`
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The status of the backup job. Valid values: `COMPLETE`,`PARTIAL_COMPLETE`,`FAILED`.
	Status pulumi.StringInput `pulumi:"status"`
	// The name of the table in the Table store instance.
	TableName pulumi.StringInput `pulumi:"tableName"`
	// The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of the backup vault that stores the backup snapshot.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetOtsSnapshotsSnapshotArgs) ElementType added in v3.20.0

func (GetOtsSnapshotsSnapshotArgs) ToGetOtsSnapshotsSnapshotOutput added in v3.20.0

func (i GetOtsSnapshotsSnapshotArgs) ToGetOtsSnapshotsSnapshotOutput() GetOtsSnapshotsSnapshotOutput

func (GetOtsSnapshotsSnapshotArgs) ToGetOtsSnapshotsSnapshotOutputWithContext added in v3.20.0

func (i GetOtsSnapshotsSnapshotArgs) ToGetOtsSnapshotsSnapshotOutputWithContext(ctx context.Context) GetOtsSnapshotsSnapshotOutput

type GetOtsSnapshotsSnapshotArray added in v3.20.0

type GetOtsSnapshotsSnapshotArray []GetOtsSnapshotsSnapshotInput

func (GetOtsSnapshotsSnapshotArray) ElementType added in v3.20.0

func (GetOtsSnapshotsSnapshotArray) ToGetOtsSnapshotsSnapshotArrayOutput added in v3.20.0

func (i GetOtsSnapshotsSnapshotArray) ToGetOtsSnapshotsSnapshotArrayOutput() GetOtsSnapshotsSnapshotArrayOutput

func (GetOtsSnapshotsSnapshotArray) ToGetOtsSnapshotsSnapshotArrayOutputWithContext added in v3.20.0

func (i GetOtsSnapshotsSnapshotArray) ToGetOtsSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetOtsSnapshotsSnapshotArrayOutput

type GetOtsSnapshotsSnapshotArrayInput added in v3.20.0

type GetOtsSnapshotsSnapshotArrayInput interface {
	pulumi.Input

	ToGetOtsSnapshotsSnapshotArrayOutput() GetOtsSnapshotsSnapshotArrayOutput
	ToGetOtsSnapshotsSnapshotArrayOutputWithContext(context.Context) GetOtsSnapshotsSnapshotArrayOutput
}

GetOtsSnapshotsSnapshotArrayInput is an input type that accepts GetOtsSnapshotsSnapshotArray and GetOtsSnapshotsSnapshotArrayOutput values. You can construct a concrete instance of `GetOtsSnapshotsSnapshotArrayInput` via:

GetOtsSnapshotsSnapshotArray{ GetOtsSnapshotsSnapshotArgs{...} }

type GetOtsSnapshotsSnapshotArrayOutput added in v3.20.0

type GetOtsSnapshotsSnapshotArrayOutput struct{ *pulumi.OutputState }

func (GetOtsSnapshotsSnapshotArrayOutput) ElementType added in v3.20.0

func (GetOtsSnapshotsSnapshotArrayOutput) Index added in v3.20.0

func (GetOtsSnapshotsSnapshotArrayOutput) ToGetOtsSnapshotsSnapshotArrayOutput added in v3.20.0

func (o GetOtsSnapshotsSnapshotArrayOutput) ToGetOtsSnapshotsSnapshotArrayOutput() GetOtsSnapshotsSnapshotArrayOutput

func (GetOtsSnapshotsSnapshotArrayOutput) ToGetOtsSnapshotsSnapshotArrayOutputWithContext added in v3.20.0

func (o GetOtsSnapshotsSnapshotArrayOutput) ToGetOtsSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetOtsSnapshotsSnapshotArrayOutput

type GetOtsSnapshotsSnapshotInput added in v3.20.0

type GetOtsSnapshotsSnapshotInput interface {
	pulumi.Input

	ToGetOtsSnapshotsSnapshotOutput() GetOtsSnapshotsSnapshotOutput
	ToGetOtsSnapshotsSnapshotOutputWithContext(context.Context) GetOtsSnapshotsSnapshotOutput
}

GetOtsSnapshotsSnapshotInput is an input type that accepts GetOtsSnapshotsSnapshotArgs and GetOtsSnapshotsSnapshotOutput values. You can construct a concrete instance of `GetOtsSnapshotsSnapshotInput` via:

GetOtsSnapshotsSnapshotArgs{...}

type GetOtsSnapshotsSnapshotOutput added in v3.20.0

type GetOtsSnapshotsSnapshotOutput struct{ *pulumi.OutputState }

func (GetOtsSnapshotsSnapshotOutput) ActualBytes added in v3.20.0

The actual amount of backup snapshots after duplicates are removed. Unit: bytes.

func (GetOtsSnapshotsSnapshotOutput) BackupType added in v3.20.0

The backup type. Valid value: `COMPLETE`, which indicates full backup.

func (GetOtsSnapshotsSnapshotOutput) BytesTotal added in v3.20.0

The total amount of data. Unit: bytes.

func (GetOtsSnapshotsSnapshotOutput) CompleteTime added in v3.20.0

The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) CreateTime added in v3.20.0

The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) CreatedTime added in v3.20.0

The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) ElementType added in v3.20.0

func (GetOtsSnapshotsSnapshotOutput) Id added in v3.20.0

The ID of the backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) InstanceName added in v3.20.0

The name of the Table store instance.

func (GetOtsSnapshotsSnapshotOutput) JobId added in v3.20.0

The ID of the backup job.

func (GetOtsSnapshotsSnapshotOutput) ParentSnapshotHash added in v3.20.0

func (o GetOtsSnapshotsSnapshotOutput) ParentSnapshotHash() pulumi.StringOutput

The hash value of the parent backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) RangeEnd added in v3.20.0

The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.

func (GetOtsSnapshotsSnapshotOutput) RangeStart added in v3.20.0

The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.

func (GetOtsSnapshotsSnapshotOutput) Retention added in v3.20.0

The retention period of the backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) SnapshotHash added in v3.20.0

The hash value of the backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) SnapshotId added in v3.20.0

The ID of the backup snapshot.

func (GetOtsSnapshotsSnapshotOutput) SourceType added in v3.20.0

The type of the data source. Valid values: `ECS_FILE`,`PARTIAL_COMPLETE`,`FAILED`

func (GetOtsSnapshotsSnapshotOutput) StartTime added in v3.20.0

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) Status added in v3.20.0

The status of the backup job. Valid values: `COMPLETE`,`PARTIAL_COMPLETE`,`FAILED`.

func (GetOtsSnapshotsSnapshotOutput) TableName added in v3.20.0

The name of the table in the Table store instance.

func (GetOtsSnapshotsSnapshotOutput) ToGetOtsSnapshotsSnapshotOutput added in v3.20.0

func (o GetOtsSnapshotsSnapshotOutput) ToGetOtsSnapshotsSnapshotOutput() GetOtsSnapshotsSnapshotOutput

func (GetOtsSnapshotsSnapshotOutput) ToGetOtsSnapshotsSnapshotOutputWithContext added in v3.20.0

func (o GetOtsSnapshotsSnapshotOutput) ToGetOtsSnapshotsSnapshotOutputWithContext(ctx context.Context) GetOtsSnapshotsSnapshotOutput

func (GetOtsSnapshotsSnapshotOutput) UpdatedTime added in v3.20.0

The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.

func (GetOtsSnapshotsSnapshotOutput) VaultId added in v3.20.0

The ID of the backup vault that stores the backup snapshot.

type GetReplicationVaultRegionsArgs added in v3.16.0

type GetReplicationVaultRegionsArgs struct {
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getReplicationVaultRegions.

type GetReplicationVaultRegionsOutputArgs added in v3.16.0

type GetReplicationVaultRegionsOutputArgs struct {
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getReplicationVaultRegions.

func (GetReplicationVaultRegionsOutputArgs) ElementType added in v3.16.0

type GetReplicationVaultRegionsRegion added in v3.16.0

type GetReplicationVaultRegionsRegion struct {
	// The ID of the replication region.
	ReplicationRegionId string `pulumi:"replicationRegionId"`
}

type GetReplicationVaultRegionsRegionArgs added in v3.16.0

type GetReplicationVaultRegionsRegionArgs struct {
	// The ID of the replication region.
	ReplicationRegionId pulumi.StringInput `pulumi:"replicationRegionId"`
}

func (GetReplicationVaultRegionsRegionArgs) ElementType added in v3.16.0

func (GetReplicationVaultRegionsRegionArgs) ToGetReplicationVaultRegionsRegionOutput added in v3.16.0

func (i GetReplicationVaultRegionsRegionArgs) ToGetReplicationVaultRegionsRegionOutput() GetReplicationVaultRegionsRegionOutput

func (GetReplicationVaultRegionsRegionArgs) ToGetReplicationVaultRegionsRegionOutputWithContext added in v3.16.0

func (i GetReplicationVaultRegionsRegionArgs) ToGetReplicationVaultRegionsRegionOutputWithContext(ctx context.Context) GetReplicationVaultRegionsRegionOutput

type GetReplicationVaultRegionsRegionArray added in v3.16.0

type GetReplicationVaultRegionsRegionArray []GetReplicationVaultRegionsRegionInput

func (GetReplicationVaultRegionsRegionArray) ElementType added in v3.16.0

func (GetReplicationVaultRegionsRegionArray) ToGetReplicationVaultRegionsRegionArrayOutput added in v3.16.0

func (i GetReplicationVaultRegionsRegionArray) ToGetReplicationVaultRegionsRegionArrayOutput() GetReplicationVaultRegionsRegionArrayOutput

func (GetReplicationVaultRegionsRegionArray) ToGetReplicationVaultRegionsRegionArrayOutputWithContext added in v3.16.0

func (i GetReplicationVaultRegionsRegionArray) ToGetReplicationVaultRegionsRegionArrayOutputWithContext(ctx context.Context) GetReplicationVaultRegionsRegionArrayOutput

type GetReplicationVaultRegionsRegionArrayInput added in v3.16.0

type GetReplicationVaultRegionsRegionArrayInput interface {
	pulumi.Input

	ToGetReplicationVaultRegionsRegionArrayOutput() GetReplicationVaultRegionsRegionArrayOutput
	ToGetReplicationVaultRegionsRegionArrayOutputWithContext(context.Context) GetReplicationVaultRegionsRegionArrayOutput
}

GetReplicationVaultRegionsRegionArrayInput is an input type that accepts GetReplicationVaultRegionsRegionArray and GetReplicationVaultRegionsRegionArrayOutput values. You can construct a concrete instance of `GetReplicationVaultRegionsRegionArrayInput` via:

GetReplicationVaultRegionsRegionArray{ GetReplicationVaultRegionsRegionArgs{...} }

type GetReplicationVaultRegionsRegionArrayOutput added in v3.16.0

type GetReplicationVaultRegionsRegionArrayOutput struct{ *pulumi.OutputState }

func (GetReplicationVaultRegionsRegionArrayOutput) ElementType added in v3.16.0

func (GetReplicationVaultRegionsRegionArrayOutput) Index added in v3.16.0

func (GetReplicationVaultRegionsRegionArrayOutput) ToGetReplicationVaultRegionsRegionArrayOutput added in v3.16.0

func (o GetReplicationVaultRegionsRegionArrayOutput) ToGetReplicationVaultRegionsRegionArrayOutput() GetReplicationVaultRegionsRegionArrayOutput

func (GetReplicationVaultRegionsRegionArrayOutput) ToGetReplicationVaultRegionsRegionArrayOutputWithContext added in v3.16.0

func (o GetReplicationVaultRegionsRegionArrayOutput) ToGetReplicationVaultRegionsRegionArrayOutputWithContext(ctx context.Context) GetReplicationVaultRegionsRegionArrayOutput

type GetReplicationVaultRegionsRegionInput added in v3.16.0

type GetReplicationVaultRegionsRegionInput interface {
	pulumi.Input

	ToGetReplicationVaultRegionsRegionOutput() GetReplicationVaultRegionsRegionOutput
	ToGetReplicationVaultRegionsRegionOutputWithContext(context.Context) GetReplicationVaultRegionsRegionOutput
}

GetReplicationVaultRegionsRegionInput is an input type that accepts GetReplicationVaultRegionsRegionArgs and GetReplicationVaultRegionsRegionOutput values. You can construct a concrete instance of `GetReplicationVaultRegionsRegionInput` via:

GetReplicationVaultRegionsRegionArgs{...}

type GetReplicationVaultRegionsRegionOutput added in v3.16.0

type GetReplicationVaultRegionsRegionOutput struct{ *pulumi.OutputState }

func (GetReplicationVaultRegionsRegionOutput) ElementType added in v3.16.0

func (GetReplicationVaultRegionsRegionOutput) ReplicationRegionId added in v3.16.0

The ID of the replication region.

func (GetReplicationVaultRegionsRegionOutput) ToGetReplicationVaultRegionsRegionOutput added in v3.16.0

func (o GetReplicationVaultRegionsRegionOutput) ToGetReplicationVaultRegionsRegionOutput() GetReplicationVaultRegionsRegionOutput

func (GetReplicationVaultRegionsRegionOutput) ToGetReplicationVaultRegionsRegionOutputWithContext added in v3.16.0

func (o GetReplicationVaultRegionsRegionOutput) ToGetReplicationVaultRegionsRegionOutputWithContext(ctx context.Context) GetReplicationVaultRegionsRegionOutput

type GetReplicationVaultRegionsResult added in v3.16.0

type GetReplicationVaultRegionsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                             `pulumi:"id"`
	OutputFile *string                            `pulumi:"outputFile"`
	Regions    []GetReplicationVaultRegionsRegion `pulumi:"regions"`
}

A collection of values returned by getReplicationVaultRegions.

func GetReplicationVaultRegions added in v3.16.0

func GetReplicationVaultRegions(ctx *pulumi.Context, args *GetReplicationVaultRegionsArgs, opts ...pulumi.InvokeOption) (*GetReplicationVaultRegionsResult, error)

This data source provides the HBR Replication Vault Regions of the current Alibaba Cloud user.

> **NOTE:** Available in v1.152.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := hbr.GetReplicationVaultRegions(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrReplicationVaultRegionRegionId1", _default.Regions[0].ReplicationRegionId)
		return nil
	})
}

```

type GetReplicationVaultRegionsResultOutput added in v3.16.0

type GetReplicationVaultRegionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getReplicationVaultRegions.

func (GetReplicationVaultRegionsResultOutput) ElementType added in v3.16.0

func (GetReplicationVaultRegionsResultOutput) Id added in v3.16.0

The provider-assigned unique ID for this managed resource.

func (GetReplicationVaultRegionsResultOutput) OutputFile added in v3.16.0

func (GetReplicationVaultRegionsResultOutput) Regions added in v3.16.0

func (GetReplicationVaultRegionsResultOutput) ToGetReplicationVaultRegionsResultOutput added in v3.16.0

func (o GetReplicationVaultRegionsResultOutput) ToGetReplicationVaultRegionsResultOutput() GetReplicationVaultRegionsResultOutput

func (GetReplicationVaultRegionsResultOutput) ToGetReplicationVaultRegionsResultOutputWithContext added in v3.16.0

func (o GetReplicationVaultRegionsResultOutput) ToGetReplicationVaultRegionsResultOutputWithContext(ctx context.Context) GetReplicationVaultRegionsResultOutput

type GetRestoreJobsArgs added in v3.7.0

type GetRestoreJobsArgs struct {
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The list of restore job IDs.
	RestoreIds []string `pulumi:"restoreIds"`
	// The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.
	RestoreType string `pulumi:"restoreType"`
	// The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
	SourceTypes []string `pulumi:"sourceTypes"`
	// The status of restore job.
	Status *string `pulumi:"status"`
	// The name of target ofo OSS bucket.
	TargetBuckets []string `pulumi:"targetBuckets"`
	// The ID of destination file system.
	TargetFileSystemIds []string `pulumi:"targetFileSystemIds"`
	// The ID of target ECS instance.
	TargetInstanceIds []string `pulumi:"targetInstanceIds"`
	// The ID of backup vault.
	VaultIds []string `pulumi:"vaultIds"`
}

A collection of arguments for invoking getRestoreJobs.

type GetRestoreJobsJob added in v3.7.0

type GetRestoreJobsJob struct {
	// The actual size of Snapshot.
	ActualBytes string `pulumi:"actualBytes"`
	// The actual number of files.
	ActualItems string `pulumi:"actualItems"`
	// The size of restore job recovered.
	BytesDone string `pulumi:"bytesDone"`
	// The total size of restore job recovered.
	BytesTotal string `pulumi:"bytesTotal"`
	// The completion time of restore Job.
	CompleteTime string `pulumi:"completeTime"`
	// The creation time of restore job.
	CreateTime string `pulumi:"createTime"`
	ErrorFile  string `pulumi:"errorFile"`
	// The error message of recovery task execution.
	ErrorMessage string `pulumi:"errorMessage"`
	// The expiration time of restore job. Unix Time in seconds.
	ExpireTime string `pulumi:"expireTime"`
	// The ID of the restore job.
	Id string `pulumi:"id"`
	// The number of items restore job recovered.
	ItemsDone string `pulumi:"itemsDone"`
	// The total number of items restore job recovered.
	ItemsTotal string `pulumi:"itemsTotal"`
	// Recovery Options.
	Options  string `pulumi:"options"`
	ParentId string `pulumi:"parentId"`
	// The recovery progress.
	Progress int `pulumi:"progress"`
	// The ID of restore job.
	RestoreJobId string `pulumi:"restoreJobId"`
	// The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.
	RestoreType string `pulumi:"restoreType"`
	// The hashcode of Snapshot.
	SnapshotHash string `pulumi:"snapshotHash"`
	// The ID of Snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
	SourceType string `pulumi:"sourceType"`
	// The start time of restore job. Unix Time in Seconds.
	StartTime string `pulumi:"startTime"`
	// The status of restore job.
	Status string `pulumi:"status"`
	// The name of target ofo OSS bucket.
	TargetBucket   string `pulumi:"targetBucket"`
	TargetClientId string `pulumi:"targetClientId"`
	// The creation time of destination file system.
	TargetCreateTime   string `pulumi:"targetCreateTime"`
	TargetDataSourceId string `pulumi:"targetDataSourceId"`
	// The ID of destination file system.
	TargetFileSystemId string `pulumi:"targetFileSystemId"`
	// The ID of target ECS instance.
	TargetInstanceId string `pulumi:"targetInstanceId"`
	// The target file path of ECS instance.
	TargetPath string `pulumi:"targetPath"`
	// The file prefix of target OSS object.
	TargetPrefix string `pulumi:"targetPrefix"`
	// The update Time of restore job. Unix Time in Seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId string `pulumi:"vaultId"`
}

type GetRestoreJobsJobArgs added in v3.7.0

type GetRestoreJobsJobArgs struct {
	// The actual size of Snapshot.
	ActualBytes pulumi.StringInput `pulumi:"actualBytes"`
	// The actual number of files.
	ActualItems pulumi.StringInput `pulumi:"actualItems"`
	// The size of restore job recovered.
	BytesDone pulumi.StringInput `pulumi:"bytesDone"`
	// The total size of restore job recovered.
	BytesTotal pulumi.StringInput `pulumi:"bytesTotal"`
	// The completion time of restore Job.
	CompleteTime pulumi.StringInput `pulumi:"completeTime"`
	// The creation time of restore job.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	ErrorFile  pulumi.StringInput `pulumi:"errorFile"`
	// The error message of recovery task execution.
	ErrorMessage pulumi.StringInput `pulumi:"errorMessage"`
	// The expiration time of restore job. Unix Time in seconds.
	ExpireTime pulumi.StringInput `pulumi:"expireTime"`
	// The ID of the restore job.
	Id pulumi.StringInput `pulumi:"id"`
	// The number of items restore job recovered.
	ItemsDone pulumi.StringInput `pulumi:"itemsDone"`
	// The total number of items restore job recovered.
	ItemsTotal pulumi.StringInput `pulumi:"itemsTotal"`
	// Recovery Options.
	Options  pulumi.StringInput `pulumi:"options"`
	ParentId pulumi.StringInput `pulumi:"parentId"`
	// The recovery progress.
	Progress pulumi.IntInput `pulumi:"progress"`
	// The ID of restore job.
	RestoreJobId pulumi.StringInput `pulumi:"restoreJobId"`
	// The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.
	RestoreType pulumi.StringInput `pulumi:"restoreType"`
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringInput `pulumi:"snapshotHash"`
	// The ID of Snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The start time of restore job. Unix Time in Seconds.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The status of restore job.
	Status pulumi.StringInput `pulumi:"status"`
	// The name of target ofo OSS bucket.
	TargetBucket   pulumi.StringInput `pulumi:"targetBucket"`
	TargetClientId pulumi.StringInput `pulumi:"targetClientId"`
	// The creation time of destination file system.
	TargetCreateTime   pulumi.StringInput `pulumi:"targetCreateTime"`
	TargetDataSourceId pulumi.StringInput `pulumi:"targetDataSourceId"`
	// The ID of destination file system.
	TargetFileSystemId pulumi.StringInput `pulumi:"targetFileSystemId"`
	// The ID of target ECS instance.
	TargetInstanceId pulumi.StringInput `pulumi:"targetInstanceId"`
	// The target file path of ECS instance.
	TargetPath pulumi.StringInput `pulumi:"targetPath"`
	// The file prefix of target OSS object.
	TargetPrefix pulumi.StringInput `pulumi:"targetPrefix"`
	// The update Time of restore job. Unix Time in Seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of backup vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

func (GetRestoreJobsJobArgs) ElementType added in v3.7.0

func (GetRestoreJobsJobArgs) ElementType() reflect.Type

func (GetRestoreJobsJobArgs) ToGetRestoreJobsJobOutput added in v3.7.0

func (i GetRestoreJobsJobArgs) ToGetRestoreJobsJobOutput() GetRestoreJobsJobOutput

func (GetRestoreJobsJobArgs) ToGetRestoreJobsJobOutputWithContext added in v3.7.0

func (i GetRestoreJobsJobArgs) ToGetRestoreJobsJobOutputWithContext(ctx context.Context) GetRestoreJobsJobOutput

type GetRestoreJobsJobArray added in v3.7.0

type GetRestoreJobsJobArray []GetRestoreJobsJobInput

func (GetRestoreJobsJobArray) ElementType added in v3.7.0

func (GetRestoreJobsJobArray) ElementType() reflect.Type

func (GetRestoreJobsJobArray) ToGetRestoreJobsJobArrayOutput added in v3.7.0

func (i GetRestoreJobsJobArray) ToGetRestoreJobsJobArrayOutput() GetRestoreJobsJobArrayOutput

func (GetRestoreJobsJobArray) ToGetRestoreJobsJobArrayOutputWithContext added in v3.7.0

func (i GetRestoreJobsJobArray) ToGetRestoreJobsJobArrayOutputWithContext(ctx context.Context) GetRestoreJobsJobArrayOutput

type GetRestoreJobsJobArrayInput added in v3.7.0

type GetRestoreJobsJobArrayInput interface {
	pulumi.Input

	ToGetRestoreJobsJobArrayOutput() GetRestoreJobsJobArrayOutput
	ToGetRestoreJobsJobArrayOutputWithContext(context.Context) GetRestoreJobsJobArrayOutput
}

GetRestoreJobsJobArrayInput is an input type that accepts GetRestoreJobsJobArray and GetRestoreJobsJobArrayOutput values. You can construct a concrete instance of `GetRestoreJobsJobArrayInput` via:

GetRestoreJobsJobArray{ GetRestoreJobsJobArgs{...} }

type GetRestoreJobsJobArrayOutput added in v3.7.0

type GetRestoreJobsJobArrayOutput struct{ *pulumi.OutputState }

func (GetRestoreJobsJobArrayOutput) ElementType added in v3.7.0

func (GetRestoreJobsJobArrayOutput) Index added in v3.7.0

func (GetRestoreJobsJobArrayOutput) ToGetRestoreJobsJobArrayOutput added in v3.7.0

func (o GetRestoreJobsJobArrayOutput) ToGetRestoreJobsJobArrayOutput() GetRestoreJobsJobArrayOutput

func (GetRestoreJobsJobArrayOutput) ToGetRestoreJobsJobArrayOutputWithContext added in v3.7.0

func (o GetRestoreJobsJobArrayOutput) ToGetRestoreJobsJobArrayOutputWithContext(ctx context.Context) GetRestoreJobsJobArrayOutput

type GetRestoreJobsJobInput added in v3.7.0

type GetRestoreJobsJobInput interface {
	pulumi.Input

	ToGetRestoreJobsJobOutput() GetRestoreJobsJobOutput
	ToGetRestoreJobsJobOutputWithContext(context.Context) GetRestoreJobsJobOutput
}

GetRestoreJobsJobInput is an input type that accepts GetRestoreJobsJobArgs and GetRestoreJobsJobOutput values. You can construct a concrete instance of `GetRestoreJobsJobInput` via:

GetRestoreJobsJobArgs{...}

type GetRestoreJobsJobOutput added in v3.7.0

type GetRestoreJobsJobOutput struct{ *pulumi.OutputState }

func (GetRestoreJobsJobOutput) ActualBytes added in v3.7.0

The actual size of Snapshot.

func (GetRestoreJobsJobOutput) ActualItems added in v3.7.0

The actual number of files.

func (GetRestoreJobsJobOutput) BytesDone added in v3.7.0

The size of restore job recovered.

func (GetRestoreJobsJobOutput) BytesTotal added in v3.7.0

The total size of restore job recovered.

func (GetRestoreJobsJobOutput) CompleteTime added in v3.7.0

func (o GetRestoreJobsJobOutput) CompleteTime() pulumi.StringOutput

The completion time of restore Job.

func (GetRestoreJobsJobOutput) CreateTime added in v3.7.0

The creation time of restore job.

func (GetRestoreJobsJobOutput) ElementType added in v3.7.0

func (GetRestoreJobsJobOutput) ElementType() reflect.Type

func (GetRestoreJobsJobOutput) ErrorFile added in v3.7.0

func (GetRestoreJobsJobOutput) ErrorMessage added in v3.7.0

func (o GetRestoreJobsJobOutput) ErrorMessage() pulumi.StringOutput

The error message of recovery task execution.

func (GetRestoreJobsJobOutput) ExpireTime added in v3.7.0

The expiration time of restore job. Unix Time in seconds.

func (GetRestoreJobsJobOutput) Id added in v3.7.0

The ID of the restore job.

func (GetRestoreJobsJobOutput) ItemsDone added in v3.7.0

The number of items restore job recovered.

func (GetRestoreJobsJobOutput) ItemsTotal added in v3.7.0

The total number of items restore job recovered.

func (GetRestoreJobsJobOutput) Options added in v3.7.0

Recovery Options.

func (GetRestoreJobsJobOutput) ParentId added in v3.7.0

func (GetRestoreJobsJobOutput) Progress added in v3.7.0

The recovery progress.

func (GetRestoreJobsJobOutput) RestoreJobId added in v3.7.0

func (o GetRestoreJobsJobOutput) RestoreJobId() pulumi.StringOutput

The ID of restore job.

func (GetRestoreJobsJobOutput) RestoreType added in v3.7.0

The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.

func (GetRestoreJobsJobOutput) SnapshotHash added in v3.7.0

func (o GetRestoreJobsJobOutput) SnapshotHash() pulumi.StringOutput

The hashcode of Snapshot.

func (GetRestoreJobsJobOutput) SnapshotId added in v3.7.0

The ID of Snapshot.

func (GetRestoreJobsJobOutput) SourceType added in v3.7.0

The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.

func (GetRestoreJobsJobOutput) StartTime added in v3.7.0

The start time of restore job. Unix Time in Seconds.

func (GetRestoreJobsJobOutput) Status added in v3.7.0

The status of restore job.

func (GetRestoreJobsJobOutput) TargetBucket added in v3.7.0

func (o GetRestoreJobsJobOutput) TargetBucket() pulumi.StringOutput

The name of target ofo OSS bucket.

func (GetRestoreJobsJobOutput) TargetClientId added in v3.7.0

func (o GetRestoreJobsJobOutput) TargetClientId() pulumi.StringOutput

func (GetRestoreJobsJobOutput) TargetCreateTime added in v3.7.0

func (o GetRestoreJobsJobOutput) TargetCreateTime() pulumi.StringOutput

The creation time of destination file system.

func (GetRestoreJobsJobOutput) TargetDataSourceId added in v3.7.0

func (o GetRestoreJobsJobOutput) TargetDataSourceId() pulumi.StringOutput

func (GetRestoreJobsJobOutput) TargetFileSystemId added in v3.7.0

func (o GetRestoreJobsJobOutput) TargetFileSystemId() pulumi.StringOutput

The ID of destination file system.

func (GetRestoreJobsJobOutput) TargetInstanceId added in v3.7.0

func (o GetRestoreJobsJobOutput) TargetInstanceId() pulumi.StringOutput

The ID of target ECS instance.

func (GetRestoreJobsJobOutput) TargetPath added in v3.7.0

The target file path of ECS instance.

func (GetRestoreJobsJobOutput) TargetPrefix added in v3.7.0

func (o GetRestoreJobsJobOutput) TargetPrefix() pulumi.StringOutput

The file prefix of target OSS object.

func (GetRestoreJobsJobOutput) ToGetRestoreJobsJobOutput added in v3.7.0

func (o GetRestoreJobsJobOutput) ToGetRestoreJobsJobOutput() GetRestoreJobsJobOutput

func (GetRestoreJobsJobOutput) ToGetRestoreJobsJobOutputWithContext added in v3.7.0

func (o GetRestoreJobsJobOutput) ToGetRestoreJobsJobOutputWithContext(ctx context.Context) GetRestoreJobsJobOutput

func (GetRestoreJobsJobOutput) UpdatedTime added in v3.7.0

The update Time of restore job. Unix Time in Seconds.

func (GetRestoreJobsJobOutput) VaultId added in v3.7.0

The ID of backup vault.

type GetRestoreJobsOutputArgs added in v3.9.0

type GetRestoreJobsOutputArgs struct {
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The list of restore job IDs.
	RestoreIds pulumi.StringArrayInput `pulumi:"restoreIds"`
	// The type of recovery destination. Valid Values: `ECS_FILE`, `OSS`, `NAS`.
	RestoreType pulumi.StringInput `pulumi:"restoreType"`
	// The list of data source types. Valid values: `ECS_FILE`, `NAS`, `OSS`, `OTS_TABLE`,`UDM_ECS_ROLLBACK`.
	SourceTypes pulumi.StringArrayInput `pulumi:"sourceTypes"`
	// The status of restore job.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The name of target ofo OSS bucket.
	TargetBuckets pulumi.StringArrayInput `pulumi:"targetBuckets"`
	// The ID of destination file system.
	TargetFileSystemIds pulumi.StringArrayInput `pulumi:"targetFileSystemIds"`
	// The ID of target ECS instance.
	TargetInstanceIds pulumi.StringArrayInput `pulumi:"targetInstanceIds"`
	// The ID of backup vault.
	VaultIds pulumi.StringArrayInput `pulumi:"vaultIds"`
}

A collection of arguments for invoking getRestoreJobs.

func (GetRestoreJobsOutputArgs) ElementType added in v3.9.0

func (GetRestoreJobsOutputArgs) ElementType() reflect.Type

type GetRestoreJobsResult added in v3.7.0

type GetRestoreJobsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id                  string              `pulumi:"id"`
	Ids                 []string            `pulumi:"ids"`
	Jobs                []GetRestoreJobsJob `pulumi:"jobs"`
	OutputFile          *string             `pulumi:"outputFile"`
	RestoreIds          []string            `pulumi:"restoreIds"`
	RestoreType         string              `pulumi:"restoreType"`
	SourceTypes         []string            `pulumi:"sourceTypes"`
	Status              *string             `pulumi:"status"`
	TargetBuckets       []string            `pulumi:"targetBuckets"`
	TargetFileSystemIds []string            `pulumi:"targetFileSystemIds"`
	TargetInstanceIds   []string            `pulumi:"targetInstanceIds"`
	VaultIds            []string            `pulumi:"vaultIds"`
}

A collection of values returned by getRestoreJobs.

func GetRestoreJobs added in v3.7.0

func GetRestoreJobs(ctx *pulumi.Context, args *GetRestoreJobsArgs, opts ...pulumi.InvokeOption) (*GetRestoreJobsResult, error)

This data source provides the Hbr Restore Jobs of the current Alibaba Cloud user.

> **NOTE:** Available in v1.133.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _default, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{ NameRegex: pulumi.StringRef("plan-name"), }, nil); if err != nil { return err } _, err = hbr.GetRestoreJobs(ctx, &hbr.GetRestoreJobsArgs{ RestoreType: "ECS_FILE", VaultIds: interface{}{ _default.Plans[0].VaultId, }, TargetInstanceIds: interface{}{ _default.Plans[0].InstanceId, }, }, nil); if err != nil { return err } return nil }) } ```

type GetRestoreJobsResultOutput added in v3.9.0

type GetRestoreJobsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRestoreJobs.

func GetRestoreJobsOutput added in v3.9.0

func GetRestoreJobsOutput(ctx *pulumi.Context, args GetRestoreJobsOutputArgs, opts ...pulumi.InvokeOption) GetRestoreJobsResultOutput

func (GetRestoreJobsResultOutput) ElementType added in v3.9.0

func (GetRestoreJobsResultOutput) ElementType() reflect.Type

func (GetRestoreJobsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetRestoreJobsResultOutput) Ids added in v3.9.0

func (GetRestoreJobsResultOutput) Jobs added in v3.9.0

func (GetRestoreJobsResultOutput) OutputFile added in v3.9.0

func (GetRestoreJobsResultOutput) RestoreIds added in v3.9.0

func (GetRestoreJobsResultOutput) RestoreType added in v3.9.0

func (GetRestoreJobsResultOutput) SourceTypes added in v3.9.0

func (GetRestoreJobsResultOutput) Status added in v3.9.0

func (GetRestoreJobsResultOutput) TargetBuckets added in v3.9.0

func (GetRestoreJobsResultOutput) TargetFileSystemIds added in v3.9.0

func (o GetRestoreJobsResultOutput) TargetFileSystemIds() pulumi.StringArrayOutput

func (GetRestoreJobsResultOutput) TargetInstanceIds added in v3.9.0

func (o GetRestoreJobsResultOutput) TargetInstanceIds() pulumi.StringArrayOutput

func (GetRestoreJobsResultOutput) ToGetRestoreJobsResultOutput added in v3.9.0

func (o GetRestoreJobsResultOutput) ToGetRestoreJobsResultOutput() GetRestoreJobsResultOutput

func (GetRestoreJobsResultOutput) ToGetRestoreJobsResultOutputWithContext added in v3.9.0

func (o GetRestoreJobsResultOutput) ToGetRestoreJobsResultOutputWithContext(ctx context.Context) GetRestoreJobsResultOutput

func (GetRestoreJobsResultOutput) VaultIds added in v3.9.0

type GetServerBackupPlansArgs added in v3.10.0

type GetServerBackupPlansArgs struct {
	// The filters.
	Filters []GetServerBackupPlansFilter `pulumi:"filters"`
	// A list of Server Backup Plan IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerBackupPlans.

type GetServerBackupPlansFilter added in v3.10.0

type GetServerBackupPlansFilter struct {
	Key    *string  `pulumi:"key"`
	Values []string `pulumi:"values"`
}

type GetServerBackupPlansFilterArgs added in v3.10.0

type GetServerBackupPlansFilterArgs struct {
	Key    pulumi.StringPtrInput   `pulumi:"key"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetServerBackupPlansFilterArgs) ElementType added in v3.10.0

func (GetServerBackupPlansFilterArgs) ToGetServerBackupPlansFilterOutput added in v3.10.0

func (i GetServerBackupPlansFilterArgs) ToGetServerBackupPlansFilterOutput() GetServerBackupPlansFilterOutput

func (GetServerBackupPlansFilterArgs) ToGetServerBackupPlansFilterOutputWithContext added in v3.10.0

func (i GetServerBackupPlansFilterArgs) ToGetServerBackupPlansFilterOutputWithContext(ctx context.Context) GetServerBackupPlansFilterOutput

type GetServerBackupPlansFilterArray added in v3.10.0

type GetServerBackupPlansFilterArray []GetServerBackupPlansFilterInput

func (GetServerBackupPlansFilterArray) ElementType added in v3.10.0

func (GetServerBackupPlansFilterArray) ToGetServerBackupPlansFilterArrayOutput added in v3.10.0

func (i GetServerBackupPlansFilterArray) ToGetServerBackupPlansFilterArrayOutput() GetServerBackupPlansFilterArrayOutput

func (GetServerBackupPlansFilterArray) ToGetServerBackupPlansFilterArrayOutputWithContext added in v3.10.0

func (i GetServerBackupPlansFilterArray) ToGetServerBackupPlansFilterArrayOutputWithContext(ctx context.Context) GetServerBackupPlansFilterArrayOutput

type GetServerBackupPlansFilterArrayInput added in v3.10.0

type GetServerBackupPlansFilterArrayInput interface {
	pulumi.Input

	ToGetServerBackupPlansFilterArrayOutput() GetServerBackupPlansFilterArrayOutput
	ToGetServerBackupPlansFilterArrayOutputWithContext(context.Context) GetServerBackupPlansFilterArrayOutput
}

GetServerBackupPlansFilterArrayInput is an input type that accepts GetServerBackupPlansFilterArray and GetServerBackupPlansFilterArrayOutput values. You can construct a concrete instance of `GetServerBackupPlansFilterArrayInput` via:

GetServerBackupPlansFilterArray{ GetServerBackupPlansFilterArgs{...} }

type GetServerBackupPlansFilterArrayOutput added in v3.10.0

type GetServerBackupPlansFilterArrayOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansFilterArrayOutput) ElementType added in v3.10.0

func (GetServerBackupPlansFilterArrayOutput) Index added in v3.10.0

func (GetServerBackupPlansFilterArrayOutput) ToGetServerBackupPlansFilterArrayOutput added in v3.10.0

func (o GetServerBackupPlansFilterArrayOutput) ToGetServerBackupPlansFilterArrayOutput() GetServerBackupPlansFilterArrayOutput

func (GetServerBackupPlansFilterArrayOutput) ToGetServerBackupPlansFilterArrayOutputWithContext added in v3.10.0

func (o GetServerBackupPlansFilterArrayOutput) ToGetServerBackupPlansFilterArrayOutputWithContext(ctx context.Context) GetServerBackupPlansFilterArrayOutput

type GetServerBackupPlansFilterInput added in v3.10.0

type GetServerBackupPlansFilterInput interface {
	pulumi.Input

	ToGetServerBackupPlansFilterOutput() GetServerBackupPlansFilterOutput
	ToGetServerBackupPlansFilterOutputWithContext(context.Context) GetServerBackupPlansFilterOutput
}

GetServerBackupPlansFilterInput is an input type that accepts GetServerBackupPlansFilterArgs and GetServerBackupPlansFilterOutput values. You can construct a concrete instance of `GetServerBackupPlansFilterInput` via:

GetServerBackupPlansFilterArgs{...}

type GetServerBackupPlansFilterOutput added in v3.10.0

type GetServerBackupPlansFilterOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansFilterOutput) ElementType added in v3.10.0

func (GetServerBackupPlansFilterOutput) Key added in v3.10.0

func (GetServerBackupPlansFilterOutput) ToGetServerBackupPlansFilterOutput added in v3.10.0

func (o GetServerBackupPlansFilterOutput) ToGetServerBackupPlansFilterOutput() GetServerBackupPlansFilterOutput

func (GetServerBackupPlansFilterOutput) ToGetServerBackupPlansFilterOutputWithContext added in v3.10.0

func (o GetServerBackupPlansFilterOutput) ToGetServerBackupPlansFilterOutputWithContext(ctx context.Context) GetServerBackupPlansFilterOutput

func (GetServerBackupPlansFilterOutput) Values added in v3.10.0

type GetServerBackupPlansOutputArgs added in v3.10.0

type GetServerBackupPlansOutputArgs struct {
	// The filters.
	Filters GetServerBackupPlansFilterArrayInput `pulumi:"filters"`
	// A list of Server Backup Plan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerBackupPlans.

func (GetServerBackupPlansOutputArgs) ElementType added in v3.10.0

type GetServerBackupPlansPlan added in v3.10.0

type GetServerBackupPlansPlan struct {
	// The creation time of backup plan.
	CreateTime string `pulumi:"createTime"`
	// ECS server backup plan details.
	Details []GetServerBackupPlansPlanDetail `pulumi:"details"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled bool `pulumi:"disabled"`
	// The ID of the server backup plan.
	EcsServerBackupPlanId string `pulumi:"ecsServerBackupPlanId"`
	// 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.
	EcsServerBackupPlanName string `pulumi:"ecsServerBackupPlanName"`
	// The ID of the server backup plan.
	Id string `pulumi:"id"`
	// The ID of ECS Instance.
	InstanceId string `pulumi:"instanceId"`
	// Backup retention days, the minimum is 1.
	Retention string `pulumi:"retention"`
	// Backup strategy.
	Schedule string `pulumi:"schedule"`
}

type GetServerBackupPlansPlanArgs added in v3.10.0

type GetServerBackupPlansPlanArgs struct {
	// The creation time of backup plan.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// ECS server backup plan details.
	Details GetServerBackupPlansPlanDetailArrayInput `pulumi:"details"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolInput `pulumi:"disabled"`
	// The ID of the server backup plan.
	EcsServerBackupPlanId pulumi.StringInput `pulumi:"ecsServerBackupPlanId"`
	// 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.
	EcsServerBackupPlanName pulumi.StringInput `pulumi:"ecsServerBackupPlanName"`
	// The ID of the server backup plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of ECS Instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput `pulumi:"retention"`
	// Backup strategy.
	Schedule pulumi.StringInput `pulumi:"schedule"`
}

func (GetServerBackupPlansPlanArgs) ElementType added in v3.10.0

func (GetServerBackupPlansPlanArgs) ToGetServerBackupPlansPlanOutput added in v3.10.0

func (i GetServerBackupPlansPlanArgs) ToGetServerBackupPlansPlanOutput() GetServerBackupPlansPlanOutput

func (GetServerBackupPlansPlanArgs) ToGetServerBackupPlansPlanOutputWithContext added in v3.10.0

func (i GetServerBackupPlansPlanArgs) ToGetServerBackupPlansPlanOutputWithContext(ctx context.Context) GetServerBackupPlansPlanOutput

type GetServerBackupPlansPlanArray added in v3.10.0

type GetServerBackupPlansPlanArray []GetServerBackupPlansPlanInput

func (GetServerBackupPlansPlanArray) ElementType added in v3.10.0

func (GetServerBackupPlansPlanArray) ToGetServerBackupPlansPlanArrayOutput added in v3.10.0

func (i GetServerBackupPlansPlanArray) ToGetServerBackupPlansPlanArrayOutput() GetServerBackupPlansPlanArrayOutput

func (GetServerBackupPlansPlanArray) ToGetServerBackupPlansPlanArrayOutputWithContext added in v3.10.0

func (i GetServerBackupPlansPlanArray) ToGetServerBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetServerBackupPlansPlanArrayOutput

type GetServerBackupPlansPlanArrayInput added in v3.10.0

type GetServerBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetServerBackupPlansPlanArrayOutput() GetServerBackupPlansPlanArrayOutput
	ToGetServerBackupPlansPlanArrayOutputWithContext(context.Context) GetServerBackupPlansPlanArrayOutput
}

GetServerBackupPlansPlanArrayInput is an input type that accepts GetServerBackupPlansPlanArray and GetServerBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetServerBackupPlansPlanArrayInput` via:

GetServerBackupPlansPlanArray{ GetServerBackupPlansPlanArgs{...} }

type GetServerBackupPlansPlanArrayOutput added in v3.10.0

type GetServerBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansPlanArrayOutput) ElementType added in v3.10.0

func (GetServerBackupPlansPlanArrayOutput) Index added in v3.10.0

func (GetServerBackupPlansPlanArrayOutput) ToGetServerBackupPlansPlanArrayOutput added in v3.10.0

func (o GetServerBackupPlansPlanArrayOutput) ToGetServerBackupPlansPlanArrayOutput() GetServerBackupPlansPlanArrayOutput

func (GetServerBackupPlansPlanArrayOutput) ToGetServerBackupPlansPlanArrayOutputWithContext added in v3.10.0

func (o GetServerBackupPlansPlanArrayOutput) ToGetServerBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetServerBackupPlansPlanArrayOutput

type GetServerBackupPlansPlanDetail added in v3.10.0

type GetServerBackupPlansPlanDetail struct {
	AppConsistent        bool     `pulumi:"appConsistent"`
	DestinationRegionId  string   `pulumi:"destinationRegionId"`
	DestinationRetention int      `pulumi:"destinationRetention"`
	DiskIdLists          []string `pulumi:"diskIdLists"`
	DoCopy               bool     `pulumi:"doCopy"`
	EnableFsFreeze       bool     `pulumi:"enableFsFreeze"`
	PostScriptPath       string   `pulumi:"postScriptPath"`
	PreScriptPath        string   `pulumi:"preScriptPath"`
	SnapshotGroup        bool     `pulumi:"snapshotGroup"`
	TimeoutInSeconds     int      `pulumi:"timeoutInSeconds"`
}

type GetServerBackupPlansPlanDetailArgs added in v3.10.0

type GetServerBackupPlansPlanDetailArgs struct {
	AppConsistent        pulumi.BoolInput        `pulumi:"appConsistent"`
	DestinationRegionId  pulumi.StringInput      `pulumi:"destinationRegionId"`
	DestinationRetention pulumi.IntInput         `pulumi:"destinationRetention"`
	DiskIdLists          pulumi.StringArrayInput `pulumi:"diskIdLists"`
	DoCopy               pulumi.BoolInput        `pulumi:"doCopy"`
	EnableFsFreeze       pulumi.BoolInput        `pulumi:"enableFsFreeze"`
	PostScriptPath       pulumi.StringInput      `pulumi:"postScriptPath"`
	PreScriptPath        pulumi.StringInput      `pulumi:"preScriptPath"`
	SnapshotGroup        pulumi.BoolInput        `pulumi:"snapshotGroup"`
	TimeoutInSeconds     pulumi.IntInput         `pulumi:"timeoutInSeconds"`
}

func (GetServerBackupPlansPlanDetailArgs) ElementType added in v3.10.0

func (GetServerBackupPlansPlanDetailArgs) ToGetServerBackupPlansPlanDetailOutput added in v3.10.0

func (i GetServerBackupPlansPlanDetailArgs) ToGetServerBackupPlansPlanDetailOutput() GetServerBackupPlansPlanDetailOutput

func (GetServerBackupPlansPlanDetailArgs) ToGetServerBackupPlansPlanDetailOutputWithContext added in v3.10.0

func (i GetServerBackupPlansPlanDetailArgs) ToGetServerBackupPlansPlanDetailOutputWithContext(ctx context.Context) GetServerBackupPlansPlanDetailOutput

type GetServerBackupPlansPlanDetailArray added in v3.10.0

type GetServerBackupPlansPlanDetailArray []GetServerBackupPlansPlanDetailInput

func (GetServerBackupPlansPlanDetailArray) ElementType added in v3.10.0

func (GetServerBackupPlansPlanDetailArray) ToGetServerBackupPlansPlanDetailArrayOutput added in v3.10.0

func (i GetServerBackupPlansPlanDetailArray) ToGetServerBackupPlansPlanDetailArrayOutput() GetServerBackupPlansPlanDetailArrayOutput

func (GetServerBackupPlansPlanDetailArray) ToGetServerBackupPlansPlanDetailArrayOutputWithContext added in v3.10.0

func (i GetServerBackupPlansPlanDetailArray) ToGetServerBackupPlansPlanDetailArrayOutputWithContext(ctx context.Context) GetServerBackupPlansPlanDetailArrayOutput

type GetServerBackupPlansPlanDetailArrayInput added in v3.10.0

type GetServerBackupPlansPlanDetailArrayInput interface {
	pulumi.Input

	ToGetServerBackupPlansPlanDetailArrayOutput() GetServerBackupPlansPlanDetailArrayOutput
	ToGetServerBackupPlansPlanDetailArrayOutputWithContext(context.Context) GetServerBackupPlansPlanDetailArrayOutput
}

GetServerBackupPlansPlanDetailArrayInput is an input type that accepts GetServerBackupPlansPlanDetailArray and GetServerBackupPlansPlanDetailArrayOutput values. You can construct a concrete instance of `GetServerBackupPlansPlanDetailArrayInput` via:

GetServerBackupPlansPlanDetailArray{ GetServerBackupPlansPlanDetailArgs{...} }

type GetServerBackupPlansPlanDetailArrayOutput added in v3.10.0

type GetServerBackupPlansPlanDetailArrayOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansPlanDetailArrayOutput) ElementType added in v3.10.0

func (GetServerBackupPlansPlanDetailArrayOutput) Index added in v3.10.0

func (GetServerBackupPlansPlanDetailArrayOutput) ToGetServerBackupPlansPlanDetailArrayOutput added in v3.10.0

func (o GetServerBackupPlansPlanDetailArrayOutput) ToGetServerBackupPlansPlanDetailArrayOutput() GetServerBackupPlansPlanDetailArrayOutput

func (GetServerBackupPlansPlanDetailArrayOutput) ToGetServerBackupPlansPlanDetailArrayOutputWithContext added in v3.10.0

func (o GetServerBackupPlansPlanDetailArrayOutput) ToGetServerBackupPlansPlanDetailArrayOutputWithContext(ctx context.Context) GetServerBackupPlansPlanDetailArrayOutput

type GetServerBackupPlansPlanDetailInput added in v3.10.0

type GetServerBackupPlansPlanDetailInput interface {
	pulumi.Input

	ToGetServerBackupPlansPlanDetailOutput() GetServerBackupPlansPlanDetailOutput
	ToGetServerBackupPlansPlanDetailOutputWithContext(context.Context) GetServerBackupPlansPlanDetailOutput
}

GetServerBackupPlansPlanDetailInput is an input type that accepts GetServerBackupPlansPlanDetailArgs and GetServerBackupPlansPlanDetailOutput values. You can construct a concrete instance of `GetServerBackupPlansPlanDetailInput` via:

GetServerBackupPlansPlanDetailArgs{...}

type GetServerBackupPlansPlanDetailOutput added in v3.10.0

type GetServerBackupPlansPlanDetailOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansPlanDetailOutput) AppConsistent added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) DestinationRegionId added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) DestinationRetention added in v3.10.0

func (o GetServerBackupPlansPlanDetailOutput) DestinationRetention() pulumi.IntOutput

func (GetServerBackupPlansPlanDetailOutput) DiskIdLists added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) DoCopy added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) ElementType added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) EnableFsFreeze added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) PostScriptPath added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) PreScriptPath added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) SnapshotGroup added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) TimeoutInSeconds added in v3.10.0

func (GetServerBackupPlansPlanDetailOutput) ToGetServerBackupPlansPlanDetailOutput added in v3.10.0

func (o GetServerBackupPlansPlanDetailOutput) ToGetServerBackupPlansPlanDetailOutput() GetServerBackupPlansPlanDetailOutput

func (GetServerBackupPlansPlanDetailOutput) ToGetServerBackupPlansPlanDetailOutputWithContext added in v3.10.0

func (o GetServerBackupPlansPlanDetailOutput) ToGetServerBackupPlansPlanDetailOutputWithContext(ctx context.Context) GetServerBackupPlansPlanDetailOutput

type GetServerBackupPlansPlanInput added in v3.10.0

type GetServerBackupPlansPlanInput interface {
	pulumi.Input

	ToGetServerBackupPlansPlanOutput() GetServerBackupPlansPlanOutput
	ToGetServerBackupPlansPlanOutputWithContext(context.Context) GetServerBackupPlansPlanOutput
}

GetServerBackupPlansPlanInput is an input type that accepts GetServerBackupPlansPlanArgs and GetServerBackupPlansPlanOutput values. You can construct a concrete instance of `GetServerBackupPlansPlanInput` via:

GetServerBackupPlansPlanArgs{...}

type GetServerBackupPlansPlanOutput added in v3.10.0

type GetServerBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetServerBackupPlansPlanOutput) CreateTime added in v3.10.0

The creation time of backup plan.

func (GetServerBackupPlansPlanOutput) Details added in v3.10.0

ECS server backup plan details.

func (GetServerBackupPlansPlanOutput) Disabled added in v3.10.0

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

func (GetServerBackupPlansPlanOutput) EcsServerBackupPlanId added in v3.10.0

func (o GetServerBackupPlansPlanOutput) EcsServerBackupPlanId() pulumi.StringOutput

The ID of the server backup plan.

func (GetServerBackupPlansPlanOutput) EcsServerBackupPlanName added in v3.10.0

func (o GetServerBackupPlansPlanOutput) EcsServerBackupPlanName() pulumi.StringOutput

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.

func (GetServerBackupPlansPlanOutput) ElementType added in v3.10.0

func (GetServerBackupPlansPlanOutput) Id added in v3.10.0

The ID of the server backup plan.

func (GetServerBackupPlansPlanOutput) InstanceId added in v3.10.0

The ID of ECS Instance.

func (GetServerBackupPlansPlanOutput) Retention added in v3.10.0

Backup retention days, the minimum is 1.

func (GetServerBackupPlansPlanOutput) Schedule added in v3.10.0

Backup strategy.

func (GetServerBackupPlansPlanOutput) ToGetServerBackupPlansPlanOutput added in v3.10.0

func (o GetServerBackupPlansPlanOutput) ToGetServerBackupPlansPlanOutput() GetServerBackupPlansPlanOutput

func (GetServerBackupPlansPlanOutput) ToGetServerBackupPlansPlanOutputWithContext added in v3.10.0

func (o GetServerBackupPlansPlanOutput) ToGetServerBackupPlansPlanOutputWithContext(ctx context.Context) GetServerBackupPlansPlanOutput

type GetServerBackupPlansResult added in v3.10.0

type GetServerBackupPlansResult struct {
	Filters []GetServerBackupPlansFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                     `pulumi:"id"`
	Ids        []string                   `pulumi:"ids"`
	OutputFile *string                    `pulumi:"outputFile"`
	Plans      []GetServerBackupPlansPlan `pulumi:"plans"`
}

A collection of values returned by getServerBackupPlans.

func GetServerBackupPlans added in v3.10.0

func GetServerBackupPlans(ctx *pulumi.Context, args *GetServerBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetServerBackupPlansResult, error)

This data source provides the Hbr Server Backup Plans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.142.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _default, err := ecs.GetInstances(ctx, &ecs.GetInstancesArgs{ NameRegex: pulumi.StringRef("no-deleteing-hbr-ecs-server-backup-plan"), Status: pulumi.StringRef("Running"), }, nil); if err != nil { return err } ids, err := hbr.GetServerBackupPlans(ctx, &hbr.GetServerBackupPlansArgs{ Filters: []hbr.GetServerBackupPlansFilter{ { Key: pulumi.StringRef("instanceId"), Values: interface{}{ _default.Instances[0].Id, }, }, }, }, nil); if err != nil { return err } ctx.Export("hbrServerBackupPlanId1", ids.Plans[0].Id) return nil }) } ```

type GetServerBackupPlansResultOutput added in v3.10.0

type GetServerBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerBackupPlans.

func GetServerBackupPlansOutput added in v3.10.0

func (GetServerBackupPlansResultOutput) ElementType added in v3.10.0

func (GetServerBackupPlansResultOutput) Filters added in v3.10.0

func (GetServerBackupPlansResultOutput) Id added in v3.10.0

The provider-assigned unique ID for this managed resource.

func (GetServerBackupPlansResultOutput) Ids added in v3.10.0

func (GetServerBackupPlansResultOutput) OutputFile added in v3.10.0

func (GetServerBackupPlansResultOutput) Plans added in v3.10.0

func (GetServerBackupPlansResultOutput) ToGetServerBackupPlansResultOutput added in v3.10.0

func (o GetServerBackupPlansResultOutput) ToGetServerBackupPlansResultOutput() GetServerBackupPlansResultOutput

func (GetServerBackupPlansResultOutput) ToGetServerBackupPlansResultOutputWithContext added in v3.10.0

func (o GetServerBackupPlansResultOutput) ToGetServerBackupPlansResultOutputWithContext(ctx context.Context) GetServerBackupPlansResultOutput

type GetServiceArgs added in v3.29.0

type GetServiceArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: `On` or `Off`. Default to `Off`.
	//
	// > **NOTE:** Setting `enable = "On"` to open the HBR service that means you have read and agreed the [HBR Terms of Service](https://help.aliyun.com/document_detail/62906.html). The service can not closed once it is opened.
	Enable *string `pulumi:"enable"`
}

A collection of arguments for invoking getService.

type GetServiceOutputArgs added in v3.29.0

type GetServiceOutputArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: `On` or `Off`. Default to `Off`.
	//
	// > **NOTE:** Setting `enable = "On"` to open the HBR service that means you have read and agreed the [HBR Terms of Service](https://help.aliyun.com/document_detail/62906.html). The service can not closed once it is opened.
	Enable pulumi.StringPtrInput `pulumi:"enable"`
}

A collection of arguments for invoking getService.

func (GetServiceOutputArgs) ElementType added in v3.29.0

func (GetServiceOutputArgs) ElementType() reflect.Type

type GetServiceResult added in v3.29.0

type GetServiceResult struct {
	Enable *string `pulumi:"enable"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current service enable status.
	Status string `pulumi:"status"`
}

A collection of values returned by getService.

func GetService added in v3.29.0

func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)

Using this data source can open HBR service automatically. If the service has been opened, it will return opened.

For information about HBR and how to use it, see [What is HBR](https://www.alibabacloud.com/help/en/hybrid-backup-recovery).

> **NOTE:** Available since v1.184.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hbr.GetService(ctx, &hbr.GetServiceArgs{
			Enable: pulumi.StringRef("On"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetServiceResultOutput added in v3.29.0

type GetServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getService.

func GetServiceOutput added in v3.29.0

func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput

func (GetServiceResultOutput) ElementType added in v3.29.0

func (GetServiceResultOutput) ElementType() reflect.Type

func (GetServiceResultOutput) Enable added in v3.29.0

func (GetServiceResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetServiceResultOutput) Status added in v3.29.0

The current service enable status.

func (GetServiceResultOutput) ToGetServiceResultOutput added in v3.29.0

func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput

func (GetServiceResultOutput) ToGetServiceResultOutputWithContext added in v3.29.0

func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput

type GetSnapshotsArgs added in v3.7.0

type GetSnapshotsArgs struct {
	// The name of OSS bucket.
	Bucket *string `pulumi:"bucket"`
	// The time when the snapshot completed. UNIX time in seconds.
	CompleteTime *string `pulumi:"completeTime"`
	// Complete time filter operator. Optional values: `MATCH_TERM`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL`, `BETWEEN`.
	CompleteTimeChecker *string `pulumi:"completeTimeChecker"`
	// File System Creation Time of Nas. Unix Time Seconds.
	CreateTime *string `pulumi:"createTime"`
	// The ID of NAS File system.
	FileSystemId *string `pulumi:"fileSystemId"`
	// A list of Snapshot IDs.
	Ids []string `pulumi:"ids"`
	// The ID of ECS instance.
	InstanceId *string `pulumi:"instanceId"`
	Limit      *int    `pulumi:"limit"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	Query      *string `pulumi:"query"`
	// Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.
	SourceType string `pulumi:"sourceType"`
	// The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.
	Status *string `pulumi:"status"`
	// The ID of Vault.
	VaultId string `pulumi:"vaultId"`
}

A collection of arguments for invoking getSnapshots.

type GetSnapshotsOutputArgs added in v3.9.0

type GetSnapshotsOutputArgs struct {
	// The name of OSS bucket.
	Bucket pulumi.StringPtrInput `pulumi:"bucket"`
	// The time when the snapshot completed. UNIX time in seconds.
	CompleteTime pulumi.StringPtrInput `pulumi:"completeTime"`
	// Complete time filter operator. Optional values: `MATCH_TERM`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL`, `BETWEEN`.
	CompleteTimeChecker pulumi.StringPtrInput `pulumi:"completeTimeChecker"`
	// File System Creation Time of Nas. Unix Time Seconds.
	CreateTime pulumi.StringPtrInput `pulumi:"createTime"`
	// The ID of NAS File system.
	FileSystemId pulumi.StringPtrInput `pulumi:"fileSystemId"`
	// A list of Snapshot IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The ID of ECS instance.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	Limit      pulumi.IntPtrInput    `pulumi:"limit"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	Query      pulumi.StringPtrInput `pulumi:"query"`
	// Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of Vault.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
}

A collection of arguments for invoking getSnapshots.

func (GetSnapshotsOutputArgs) ElementType added in v3.9.0

func (GetSnapshotsOutputArgs) ElementType() reflect.Type

type GetSnapshotsResult added in v3.7.0

type GetSnapshotsResult struct {
	Bucket              *string `pulumi:"bucket"`
	CompleteTime        *string `pulumi:"completeTime"`
	CompleteTimeChecker *string `pulumi:"completeTimeChecker"`
	CreateTime          *string `pulumi:"createTime"`
	FileSystemId        *string `pulumi:"fileSystemId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                 `pulumi:"id"`
	Ids        []string               `pulumi:"ids"`
	InstanceId *string                `pulumi:"instanceId"`
	Limit      *int                   `pulumi:"limit"`
	OutputFile *string                `pulumi:"outputFile"`
	Query      *string                `pulumi:"query"`
	Snapshots  []GetSnapshotsSnapshot `pulumi:"snapshots"`
	SourceType string                 `pulumi:"sourceType"`
	Status     *string                `pulumi:"status"`
	VaultId    string                 `pulumi:"vaultId"`
}

A collection of values returned by getSnapshots.

func GetSnapshots added in v3.7.0

func GetSnapshots(ctx *pulumi.Context, args *GetSnapshotsArgs, opts ...pulumi.InvokeOption) (*GetSnapshotsResult, error)

This data source provides the Hbr Snapshots of the current Alibaba Cloud user.

> **NOTE:** Available in v1.133.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetOssBackupPlans, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetNasBackupPlans, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType: "ECS_FILE",
			VaultId:    _default.Plans[0].VaultId,
			InstanceId: pulumi.StringRef(_default.Plans[0].InstanceId),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType:          "OSS",
			VaultId:             defaultGetOssBackupPlans.Plans[0].VaultId,
			Bucket:              pulumi.StringRef(defaultGetOssBackupPlans.Plans[0].Bucket),
			CompleteTime:        pulumi.StringRef("2021-07-20T14:17:15CST,2021-07-24T14:17:15CST"),
			CompleteTimeChecker: pulumi.StringRef("BETWEEN"),
		}, nil)
		if err != nil {
			return err
		}
		nasSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType:          "NAS",
			VaultId:             defaultGetNasBackupPlans.Plans[0].VaultId,
			FileSystemId:        pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].FileSystemId),
			CreateTime:          pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].CreateTime),
			CompleteTime:        pulumi.StringRef("2021-08-23T14:17:15CST"),
			CompleteTimeChecker: pulumi.StringRef("GREATER_THAN_OR_EQUAL"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrSnapshotId1", nasSnapshots.Snapshots[0].Id)
		return nil
	})
}

```

type GetSnapshotsResultOutput added in v3.9.0

type GetSnapshotsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSnapshots.

func GetSnapshotsOutput added in v3.9.0

func GetSnapshotsOutput(ctx *pulumi.Context, args GetSnapshotsOutputArgs, opts ...pulumi.InvokeOption) GetSnapshotsResultOutput

func (GetSnapshotsResultOutput) Bucket added in v3.9.0

func (GetSnapshotsResultOutput) CompleteTime added in v3.9.0

func (GetSnapshotsResultOutput) CompleteTimeChecker added in v3.9.0

func (o GetSnapshotsResultOutput) CompleteTimeChecker() pulumi.StringPtrOutput

func (GetSnapshotsResultOutput) CreateTime added in v3.9.0

func (GetSnapshotsResultOutput) ElementType added in v3.9.0

func (GetSnapshotsResultOutput) ElementType() reflect.Type

func (GetSnapshotsResultOutput) FileSystemId added in v3.9.0

func (GetSnapshotsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetSnapshotsResultOutput) Ids added in v3.9.0

func (GetSnapshotsResultOutput) InstanceId added in v3.9.0

func (GetSnapshotsResultOutput) Limit added in v3.9.0

func (GetSnapshotsResultOutput) OutputFile added in v3.9.0

func (GetSnapshotsResultOutput) Query added in v3.9.0

func (GetSnapshotsResultOutput) Snapshots added in v3.9.0

func (GetSnapshotsResultOutput) SourceType added in v3.9.0

func (GetSnapshotsResultOutput) Status added in v3.9.0

func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutput added in v3.9.0

func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutput() GetSnapshotsResultOutput

func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext added in v3.9.0

func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext(ctx context.Context) GetSnapshotsResultOutput

func (GetSnapshotsResultOutput) VaultId added in v3.9.0

type GetSnapshotsSnapshot added in v3.7.0

type GetSnapshotsSnapshot struct {
	// The actual data volume of the snapshot. Unit byte.
	ActualBytes string `pulumi:"actualBytes"`
	// The actual number of items in the snapshot. (Currently only file backup is available).
	ActualItems string `pulumi:"actualItems"`
	// Backup type. Possible values: `COMPLETE` (full backup).
	BackupType string `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket string `pulumi:"bucket"`
	// The incremental amount of backup data. Unit byte.
	BytesDone string `pulumi:"bytesDone"`
	// The total amount of data sources. Unit byte.
	BytesTotal string `pulumi:"bytesTotal"`
	// The ID of ECS backup client.
	ClientId string `pulumi:"clientId"`
	// The time when the snapshot completed. UNIX time in seconds.
	CompleteTime string `pulumi:"completeTime"`
	// File System Creation Time of Nas. Unix Time Seconds.
	CreateTime string `pulumi:"createTime"`
	// Snapshot creation time. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	ErrorFile   string `pulumi:"errorFile"`
	// The ID of NAS File system.
	FileSystemId string `pulumi:"fileSystemId"`
	// The ID of the Snapshot.
	Id string `pulumi:"id"`
	// The ID of ECS instance.
	InstanceId string `pulumi:"instanceId"`
	// The number of backup items. (Currently only file backup is available).
	ItemsDone string `pulumi:"itemsDone"`
	// The total number of data source items. (Currently only file backup is available).
	ItemsTotal string `pulumi:"itemsTotal"`
	// The job ID of backup task.
	JobId string `pulumi:"jobId"`
	// The hashcode of parent backup snapshot.
	ParentSnapshotHash string `pulumi:"parentSnapshotHash"`
	// Backup Path.
	Path string `pulumi:"path"`
	// Backup file prefix.
	Prefix string `pulumi:"prefix"`
	// The number of days to keep.
	Retention string `pulumi:"retention"`
	// The hashcode of Snapshot.
	SnapshotHash string `pulumi:"snapshotHash"`
	// The ID of the Snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.
	SourceType string `pulumi:"sourceType"`
	// The start time of the snapshot. UNIX time in seconds.
	StartTime string `pulumi:"startTime"`
	// The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.
	Status string `pulumi:"status"`
	// The update time of snapshot. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
}

type GetSnapshotsSnapshotArgs added in v3.7.0

type GetSnapshotsSnapshotArgs struct {
	// The actual data volume of the snapshot. Unit byte.
	ActualBytes pulumi.StringInput `pulumi:"actualBytes"`
	// The actual number of items in the snapshot. (Currently only file backup is available).
	ActualItems pulumi.StringInput `pulumi:"actualItems"`
	// Backup type. Possible values: `COMPLETE` (full backup).
	BackupType pulumi.StringInput `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket pulumi.StringInput `pulumi:"bucket"`
	// The incremental amount of backup data. Unit byte.
	BytesDone pulumi.StringInput `pulumi:"bytesDone"`
	// The total amount of data sources. Unit byte.
	BytesTotal pulumi.StringInput `pulumi:"bytesTotal"`
	// The ID of ECS backup client.
	ClientId pulumi.StringInput `pulumi:"clientId"`
	// The time when the snapshot completed. UNIX time in seconds.
	CompleteTime pulumi.StringInput `pulumi:"completeTime"`
	// File System Creation Time of Nas. Unix Time Seconds.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Snapshot creation time. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	ErrorFile   pulumi.StringInput `pulumi:"errorFile"`
	// The ID of NAS File system.
	FileSystemId pulumi.StringInput `pulumi:"fileSystemId"`
	// The ID of the Snapshot.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of ECS instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The number of backup items. (Currently only file backup is available).
	ItemsDone pulumi.StringInput `pulumi:"itemsDone"`
	// The total number of data source items. (Currently only file backup is available).
	ItemsTotal pulumi.StringInput `pulumi:"itemsTotal"`
	// The job ID of backup task.
	JobId pulumi.StringInput `pulumi:"jobId"`
	// The hashcode of parent backup snapshot.
	ParentSnapshotHash pulumi.StringInput `pulumi:"parentSnapshotHash"`
	// Backup Path.
	Path pulumi.StringInput `pulumi:"path"`
	// Backup file prefix.
	Prefix pulumi.StringInput `pulumi:"prefix"`
	// The number of days to keep.
	Retention pulumi.StringInput `pulumi:"retention"`
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringInput `pulumi:"snapshotHash"`
	// The ID of the Snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
	// The start time of the snapshot. UNIX time in seconds.
	StartTime pulumi.StringInput `pulumi:"startTime"`
	// The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.
	Status pulumi.StringInput `pulumi:"status"`
	// The update time of snapshot. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
}

func (GetSnapshotsSnapshotArgs) ElementType added in v3.7.0

func (GetSnapshotsSnapshotArgs) ElementType() reflect.Type

func (GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutput added in v3.7.0

func (i GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput

func (GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutputWithContext added in v3.7.0

func (i GetSnapshotsSnapshotArgs) ToGetSnapshotsSnapshotOutputWithContext(ctx context.Context) GetSnapshotsSnapshotOutput

type GetSnapshotsSnapshotArray added in v3.7.0

type GetSnapshotsSnapshotArray []GetSnapshotsSnapshotInput

func (GetSnapshotsSnapshotArray) ElementType added in v3.7.0

func (GetSnapshotsSnapshotArray) ElementType() reflect.Type

func (GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutput added in v3.7.0

func (i GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput

func (GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutputWithContext added in v3.7.0

func (i GetSnapshotsSnapshotArray) ToGetSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotArrayOutput

type GetSnapshotsSnapshotArrayInput added in v3.7.0

type GetSnapshotsSnapshotArrayInput interface {
	pulumi.Input

	ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput
	ToGetSnapshotsSnapshotArrayOutputWithContext(context.Context) GetSnapshotsSnapshotArrayOutput
}

GetSnapshotsSnapshotArrayInput is an input type that accepts GetSnapshotsSnapshotArray and GetSnapshotsSnapshotArrayOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotArrayInput` via:

GetSnapshotsSnapshotArray{ GetSnapshotsSnapshotArgs{...} }

type GetSnapshotsSnapshotArrayOutput added in v3.7.0

type GetSnapshotsSnapshotArrayOutput struct{ *pulumi.OutputState }

func (GetSnapshotsSnapshotArrayOutput) ElementType added in v3.7.0

func (GetSnapshotsSnapshotArrayOutput) Index added in v3.7.0

func (GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutput added in v3.7.0

func (o GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutput() GetSnapshotsSnapshotArrayOutput

func (GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutputWithContext added in v3.7.0

func (o GetSnapshotsSnapshotArrayOutput) ToGetSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotArrayOutput

type GetSnapshotsSnapshotInput added in v3.7.0

type GetSnapshotsSnapshotInput interface {
	pulumi.Input

	ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput
	ToGetSnapshotsSnapshotOutputWithContext(context.Context) GetSnapshotsSnapshotOutput
}

GetSnapshotsSnapshotInput is an input type that accepts GetSnapshotsSnapshotArgs and GetSnapshotsSnapshotOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotInput` via:

GetSnapshotsSnapshotArgs{...}

type GetSnapshotsSnapshotOutput added in v3.7.0

type GetSnapshotsSnapshotOutput struct{ *pulumi.OutputState }

func (GetSnapshotsSnapshotOutput) ActualBytes added in v3.7.0

The actual data volume of the snapshot. Unit byte.

func (GetSnapshotsSnapshotOutput) ActualItems added in v3.7.0

The actual number of items in the snapshot. (Currently only file backup is available).

func (GetSnapshotsSnapshotOutput) BackupType added in v3.7.0

Backup type. Possible values: `COMPLETE` (full backup).

func (GetSnapshotsSnapshotOutput) Bucket added in v3.7.0

The name of OSS bucket.

func (GetSnapshotsSnapshotOutput) BytesDone added in v3.7.0

The incremental amount of backup data. Unit byte.

func (GetSnapshotsSnapshotOutput) BytesTotal added in v3.7.0

The total amount of data sources. Unit byte.

func (GetSnapshotsSnapshotOutput) ClientId added in v3.9.0

The ID of ECS backup client.

func (GetSnapshotsSnapshotOutput) CompleteTime added in v3.7.0

The time when the snapshot completed. UNIX time in seconds.

func (GetSnapshotsSnapshotOutput) CreateTime added in v3.7.0

File System Creation Time of Nas. Unix Time Seconds.

func (GetSnapshotsSnapshotOutput) CreatedTime added in v3.7.0

Snapshot creation time. UNIX time in seconds.

func (GetSnapshotsSnapshotOutput) ElementType added in v3.7.0

func (GetSnapshotsSnapshotOutput) ElementType() reflect.Type

func (GetSnapshotsSnapshotOutput) ErrorFile added in v3.7.0

func (GetSnapshotsSnapshotOutput) FileSystemId added in v3.7.0

The ID of NAS File system.

func (GetSnapshotsSnapshotOutput) Id added in v3.7.0

The ID of the Snapshot.

func (GetSnapshotsSnapshotOutput) InstanceId added in v3.7.0

The ID of ECS instance.

func (GetSnapshotsSnapshotOutput) ItemsDone added in v3.7.0

The number of backup items. (Currently only file backup is available).

func (GetSnapshotsSnapshotOutput) ItemsTotal added in v3.7.0

The total number of data source items. (Currently only file backup is available).

func (GetSnapshotsSnapshotOutput) JobId added in v3.7.0

The job ID of backup task.

func (GetSnapshotsSnapshotOutput) ParentSnapshotHash added in v3.7.0

func (o GetSnapshotsSnapshotOutput) ParentSnapshotHash() pulumi.StringOutput

The hashcode of parent backup snapshot.

func (GetSnapshotsSnapshotOutput) Path added in v3.7.0

Backup Path.

func (GetSnapshotsSnapshotOutput) Prefix added in v3.7.0

Backup file prefix.

func (GetSnapshotsSnapshotOutput) Retention added in v3.7.0

The number of days to keep.

func (GetSnapshotsSnapshotOutput) SnapshotHash added in v3.7.0

The hashcode of Snapshot.

func (GetSnapshotsSnapshotOutput) SnapshotId added in v3.7.0

The ID of the Snapshot.

func (GetSnapshotsSnapshotOutput) SourceType added in v3.7.0

Data source type, optional values: `ECS_FILE`, `OSS`, `NAS`.

func (GetSnapshotsSnapshotOutput) StartTime added in v3.7.0

The start time of the snapshot. UNIX time in seconds.

func (GetSnapshotsSnapshotOutput) Status added in v3.7.0

The status of snapshot execution. Possible values: `COMPLETE`, `PARTIAL_COMPLETE`, `FAILED`.

func (GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutput added in v3.7.0

func (o GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutput() GetSnapshotsSnapshotOutput

func (GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutputWithContext added in v3.7.0

func (o GetSnapshotsSnapshotOutput) ToGetSnapshotsSnapshotOutputWithContext(ctx context.Context) GetSnapshotsSnapshotOutput

func (GetSnapshotsSnapshotOutput) UpdatedTime added in v3.7.0

The update time of snapshot. UNIX time in seconds.

type GetVaultsArgs

type GetVaultsArgs struct {
	// A list of Vault IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Vault name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.
	Status *string `pulumi:"status"`
	// VaultType. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType *string `pulumi:"vaultType"`
}

A collection of arguments for invoking getVaults.

type GetVaultsOutputArgs added in v3.9.0

type GetVaultsOutputArgs struct {
	// A list of Vault IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Vault name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// VaultType. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType pulumi.StringPtrInput `pulumi:"vaultType"`
}

A collection of arguments for invoking getVaults.

func (GetVaultsOutputArgs) ElementType added in v3.9.0

func (GetVaultsOutputArgs) ElementType() reflect.Type

type GetVaultsResult

type GetVaultsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string           `pulumi:"id"`
	Ids        []string         `pulumi:"ids"`
	NameRegex  *string          `pulumi:"nameRegex"`
	Names      []string         `pulumi:"names"`
	OutputFile *string          `pulumi:"outputFile"`
	Status     *string          `pulumi:"status"`
	VaultType  *string          `pulumi:"vaultType"`
	Vaults     []GetVaultsVault `pulumi:"vaults"`
}

A collection of values returned by getVaults.

func GetVaults

func GetVaults(ctx *pulumi.Context, args *GetVaultsArgs, opts ...pulumi.InvokeOption) (*GetVaultsResult, error)

This data source provides the Hbr Vaults of the current Alibaba Cloud user.

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := hbr.GetVaults(ctx, &hbr.GetVaultsArgs{
			NameRegex: pulumi.StringRef("^my-Vault"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("hbrVaultId1", ids.Vaults[0].Id)
		return nil
	})
}

```

type GetVaultsResultOutput added in v3.9.0

type GetVaultsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVaults.

func GetVaultsOutput added in v3.9.0

func GetVaultsOutput(ctx *pulumi.Context, args GetVaultsOutputArgs, opts ...pulumi.InvokeOption) GetVaultsResultOutput

func (GetVaultsResultOutput) ElementType added in v3.9.0

func (GetVaultsResultOutput) ElementType() reflect.Type

func (GetVaultsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetVaultsResultOutput) Ids added in v3.9.0

func (GetVaultsResultOutput) NameRegex added in v3.9.0

func (GetVaultsResultOutput) Names added in v3.9.0

func (GetVaultsResultOutput) OutputFile added in v3.9.0

func (GetVaultsResultOutput) Status added in v3.9.0

func (GetVaultsResultOutput) ToGetVaultsResultOutput added in v3.9.0

func (o GetVaultsResultOutput) ToGetVaultsResultOutput() GetVaultsResultOutput

func (GetVaultsResultOutput) ToGetVaultsResultOutputWithContext added in v3.9.0

func (o GetVaultsResultOutput) ToGetVaultsResultOutputWithContext(ctx context.Context) GetVaultsResultOutput

func (GetVaultsResultOutput) VaultType added in v3.9.0

func (GetVaultsResultOutput) Vaults added in v3.9.0

type GetVaultsVault

type GetVaultsVault struct {
	// The name of the OSS bucket of the Vault.
	BucketName string `pulumi:"bucketName"`
	// The amount of backup data. The unit is Byte.
	BytesDone string `pulumi:"bytesDone"`
	// The creation time of the Vault. UNIX time in seconds.
	CreatedTime string `pulumi:"createdTime"`
	// Whether to enable the deduplication function for the database backup Vault.
	Dedup bool `pulumi:"dedup"`
	// The description of the vault.
	Description string `pulumi:"description"`
	// The ID of vault.
	Id string `pulumi:"id"`
	// Index available.
	IndexAvailable bool `pulumi:"indexAvailable"`
	// Index level.
	IndexLevel string `pulumi:"indexLevel"`
	// Index update time.
	IndexUpdateTime string `pulumi:"indexUpdateTime"`
	// The time of the last remote backup synchronization.
	LatestReplicationTime string `pulumi:"latestReplicationTime"`
	// Billing model, possible values:
	PaymentType string `pulumi:"paymentType"`
	// Whether it is a remote backup warehouse. It's a boolean value.
	Replication bool `pulumi:"replication"`
	// The region ID to which the remote backup Vault belongs.
	ReplicationSourceRegionId string `pulumi:"replicationSourceRegionId"`
	// The source vault ID of the remote backup Vault.
	ReplicationSourceVaultId string `pulumi:"replicationSourceVaultId"`
	// Warehouse-level data retention days, only valid for archive libraries.
	Retention string `pulumi:"retention"`
	// Whether to enable the backup search function.
	SearchEnabled bool     `pulumi:"searchEnabled"`
	SourceTypes   []string `pulumi:"sourceTypes"`
	// The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.
	Status string `pulumi:"status"`
	// Backup vault storage usage. The unit is Byte.
	StorageSize string `pulumi:"storageSize"`
	// The update time of the Vault. UNIX time in seconds.
	UpdatedTime string `pulumi:"updatedTime"`
	// The ID of vault, same as `id`.
	VaultId string `pulumi:"vaultId"`
	// The name of vault.
	VaultName string `pulumi:"vaultName"`
	// Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
	VaultStatusMessage string `pulumi:"vaultStatusMessage"`
	// The storage class of vault. Valid values: `STANDARD`.
	VaultStorageClass string `pulumi:"vaultStorageClass"`
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType string `pulumi:"vaultType"`
}

type GetVaultsVaultArgs

type GetVaultsVaultArgs struct {
	// The name of the OSS bucket of the Vault.
	BucketName pulumi.StringInput `pulumi:"bucketName"`
	// The amount of backup data. The unit is Byte.
	BytesDone pulumi.StringInput `pulumi:"bytesDone"`
	// The creation time of the Vault. UNIX time in seconds.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Whether to enable the deduplication function for the database backup Vault.
	Dedup pulumi.BoolInput `pulumi:"dedup"`
	// The description of the vault.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of vault.
	Id pulumi.StringInput `pulumi:"id"`
	// Index available.
	IndexAvailable pulumi.BoolInput `pulumi:"indexAvailable"`
	// Index level.
	IndexLevel pulumi.StringInput `pulumi:"indexLevel"`
	// Index update time.
	IndexUpdateTime pulumi.StringInput `pulumi:"indexUpdateTime"`
	// The time of the last remote backup synchronization.
	LatestReplicationTime pulumi.StringInput `pulumi:"latestReplicationTime"`
	// Billing model, possible values:
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// Whether it is a remote backup warehouse. It's a boolean value.
	Replication pulumi.BoolInput `pulumi:"replication"`
	// The region ID to which the remote backup Vault belongs.
	ReplicationSourceRegionId pulumi.StringInput `pulumi:"replicationSourceRegionId"`
	// The source vault ID of the remote backup Vault.
	ReplicationSourceVaultId pulumi.StringInput `pulumi:"replicationSourceVaultId"`
	// Warehouse-level data retention days, only valid for archive libraries.
	Retention pulumi.StringInput `pulumi:"retention"`
	// Whether to enable the backup search function.
	SearchEnabled pulumi.BoolInput        `pulumi:"searchEnabled"`
	SourceTypes   pulumi.StringArrayInput `pulumi:"sourceTypes"`
	// The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.
	Status pulumi.StringInput `pulumi:"status"`
	// Backup vault storage usage. The unit is Byte.
	StorageSize pulumi.StringInput `pulumi:"storageSize"`
	// The update time of the Vault. UNIX time in seconds.
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
	// The ID of vault, same as `id`.
	VaultId pulumi.StringInput `pulumi:"vaultId"`
	// The name of vault.
	VaultName pulumi.StringInput `pulumi:"vaultName"`
	// Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.
	VaultStatusMessage pulumi.StringInput `pulumi:"vaultStatusMessage"`
	// The storage class of vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringInput `pulumi:"vaultStorageClass"`
	// The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.
	VaultType pulumi.StringInput `pulumi:"vaultType"`
}

func (GetVaultsVaultArgs) ElementType

func (GetVaultsVaultArgs) ElementType() reflect.Type

func (GetVaultsVaultArgs) ToGetVaultsVaultOutput

func (i GetVaultsVaultArgs) ToGetVaultsVaultOutput() GetVaultsVaultOutput

func (GetVaultsVaultArgs) ToGetVaultsVaultOutputWithContext

func (i GetVaultsVaultArgs) ToGetVaultsVaultOutputWithContext(ctx context.Context) GetVaultsVaultOutput

type GetVaultsVaultArray

type GetVaultsVaultArray []GetVaultsVaultInput

func (GetVaultsVaultArray) ElementType

func (GetVaultsVaultArray) ElementType() reflect.Type

func (GetVaultsVaultArray) ToGetVaultsVaultArrayOutput

func (i GetVaultsVaultArray) ToGetVaultsVaultArrayOutput() GetVaultsVaultArrayOutput

func (GetVaultsVaultArray) ToGetVaultsVaultArrayOutputWithContext

func (i GetVaultsVaultArray) ToGetVaultsVaultArrayOutputWithContext(ctx context.Context) GetVaultsVaultArrayOutput

type GetVaultsVaultArrayInput

type GetVaultsVaultArrayInput interface {
	pulumi.Input

	ToGetVaultsVaultArrayOutput() GetVaultsVaultArrayOutput
	ToGetVaultsVaultArrayOutputWithContext(context.Context) GetVaultsVaultArrayOutput
}

GetVaultsVaultArrayInput is an input type that accepts GetVaultsVaultArray and GetVaultsVaultArrayOutput values. You can construct a concrete instance of `GetVaultsVaultArrayInput` via:

GetVaultsVaultArray{ GetVaultsVaultArgs{...} }

type GetVaultsVaultArrayOutput

type GetVaultsVaultArrayOutput struct{ *pulumi.OutputState }

func (GetVaultsVaultArrayOutput) ElementType

func (GetVaultsVaultArrayOutput) ElementType() reflect.Type

func (GetVaultsVaultArrayOutput) Index

func (GetVaultsVaultArrayOutput) ToGetVaultsVaultArrayOutput

func (o GetVaultsVaultArrayOutput) ToGetVaultsVaultArrayOutput() GetVaultsVaultArrayOutput

func (GetVaultsVaultArrayOutput) ToGetVaultsVaultArrayOutputWithContext

func (o GetVaultsVaultArrayOutput) ToGetVaultsVaultArrayOutputWithContext(ctx context.Context) GetVaultsVaultArrayOutput

type GetVaultsVaultInput

type GetVaultsVaultInput interface {
	pulumi.Input

	ToGetVaultsVaultOutput() GetVaultsVaultOutput
	ToGetVaultsVaultOutputWithContext(context.Context) GetVaultsVaultOutput
}

GetVaultsVaultInput is an input type that accepts GetVaultsVaultArgs and GetVaultsVaultOutput values. You can construct a concrete instance of `GetVaultsVaultInput` via:

GetVaultsVaultArgs{...}

type GetVaultsVaultOutput

type GetVaultsVaultOutput struct{ *pulumi.OutputState }

func (GetVaultsVaultOutput) BucketName

func (o GetVaultsVaultOutput) BucketName() pulumi.StringOutput

The name of the OSS bucket of the Vault.

func (GetVaultsVaultOutput) BytesDone

The amount of backup data. The unit is Byte.

func (GetVaultsVaultOutput) CreatedTime added in v3.9.0

func (o GetVaultsVaultOutput) CreatedTime() pulumi.StringOutput

The creation time of the Vault. UNIX time in seconds.

func (GetVaultsVaultOutput) Dedup

Whether to enable the deduplication function for the database backup Vault.

func (GetVaultsVaultOutput) Description

func (o GetVaultsVaultOutput) Description() pulumi.StringOutput

The description of the vault.

func (GetVaultsVaultOutput) ElementType

func (GetVaultsVaultOutput) ElementType() reflect.Type

func (GetVaultsVaultOutput) Id

The ID of vault.

func (GetVaultsVaultOutput) IndexAvailable

func (o GetVaultsVaultOutput) IndexAvailable() pulumi.BoolOutput

Index available.

func (GetVaultsVaultOutput) IndexLevel

func (o GetVaultsVaultOutput) IndexLevel() pulumi.StringOutput

Index level.

func (GetVaultsVaultOutput) IndexUpdateTime

func (o GetVaultsVaultOutput) IndexUpdateTime() pulumi.StringOutput

Index update time.

func (GetVaultsVaultOutput) LatestReplicationTime

func (o GetVaultsVaultOutput) LatestReplicationTime() pulumi.StringOutput

The time of the last remote backup synchronization.

func (GetVaultsVaultOutput) PaymentType

func (o GetVaultsVaultOutput) PaymentType() pulumi.StringOutput

Billing model, possible values:

func (GetVaultsVaultOutput) Replication

func (o GetVaultsVaultOutput) Replication() pulumi.BoolOutput

Whether it is a remote backup warehouse. It's a boolean value.

func (GetVaultsVaultOutput) ReplicationSourceRegionId

func (o GetVaultsVaultOutput) ReplicationSourceRegionId() pulumi.StringOutput

The region ID to which the remote backup Vault belongs.

func (GetVaultsVaultOutput) ReplicationSourceVaultId

func (o GetVaultsVaultOutput) ReplicationSourceVaultId() pulumi.StringOutput

The source vault ID of the remote backup Vault.

func (GetVaultsVaultOutput) Retention

Warehouse-level data retention days, only valid for archive libraries.

func (GetVaultsVaultOutput) SearchEnabled

func (o GetVaultsVaultOutput) SearchEnabled() pulumi.BoolOutput

Whether to enable the backup search function.

func (GetVaultsVaultOutput) SourceTypes

func (GetVaultsVaultOutput) Status

The status of Vault. Valid values: `CREATED`, `ERROR`, `UNKNOWN`.

func (GetVaultsVaultOutput) StorageSize

func (o GetVaultsVaultOutput) StorageSize() pulumi.StringOutput

Backup vault storage usage. The unit is Byte.

func (GetVaultsVaultOutput) ToGetVaultsVaultOutput

func (o GetVaultsVaultOutput) ToGetVaultsVaultOutput() GetVaultsVaultOutput

func (GetVaultsVaultOutput) ToGetVaultsVaultOutputWithContext

func (o GetVaultsVaultOutput) ToGetVaultsVaultOutputWithContext(ctx context.Context) GetVaultsVaultOutput

func (GetVaultsVaultOutput) UpdatedTime

func (o GetVaultsVaultOutput) UpdatedTime() pulumi.StringOutput

The update time of the Vault. UNIX time in seconds.

func (GetVaultsVaultOutput) VaultId

The ID of vault, same as `id`.

func (GetVaultsVaultOutput) VaultName

The name of vault.

func (GetVaultsVaultOutput) VaultStatusMessage

func (o GetVaultsVaultOutput) VaultStatusMessage() pulumi.StringOutput

Error status information of Vault. Only valid for remote backup warehouses. Only the remote backup warehouse is valid.

func (GetVaultsVaultOutput) VaultStorageClass

func (o GetVaultsVaultOutput) VaultStorageClass() pulumi.StringOutput

The storage class of vault. Valid values: `STANDARD`.

func (GetVaultsVaultOutput) VaultType

The type of Vault. Valid values: `STANDARD`,`OTS_BACKUP`.

type HanaBackupClient added in v3.31.0

type HanaBackupClient struct {
	pulumi.CustomResourceState

	// The alert settings. Valid value: `INHERITED`.
	AlertSetting pulumi.StringOutput `pulumi:"alertSetting"`
	// The ID of the backup client.
	ClientId pulumi.StringOutput `pulumi:"clientId"`
	// The installation information of the HBR clients.
	ClientInfo pulumi.StringPtrOutput `pulumi:"clientInfo"`
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The ID of the instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The status of the Hana Backup Client.
	Status pulumi.StringOutput `pulumi:"status"`
	// Specifies whether to transmit data over HTTPS. Valid values: `true`, `false`.
	UseHttps pulumi.BoolPtrOutput `pulumi:"useHttps"`
	// The ID of the backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a Hybrid Backup Recovery (HBR) Hana Backup Client resource.

For information about Hybrid Backup Recovery (HBR) Hana Backup Client and how to use it, see [What is Hana Backup Client](https://www.alibabacloud.com/help/en/hybrid-backup-recovery/latest/api-hbr-2017-09-08-createclients).

> **NOTE:** Available in v1.198.0+.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("Instance"),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			AvailabilityZone: pulumi.StringRef(example.Zones[0].Id),
			CpuCoreCount:     pulumi.IntRef(1),
			MemorySize:       pulumi.Float64Ref(2),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"),
			Owners:    pulumi.StringRef("system"),
		}, nil)
		if err != nil {
			return err
		}
		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
			VpcName:   pulumi.String("terraform-example"),
			CidrBlock: pulumi.String("172.17.3.0/24"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
			VswitchName: pulumi.String("terraform-example"),
			CidrBlock:   pulumi.String("172.17.3.0/24"),
			VpcId:       exampleNetwork.ID(),
			ZoneId:      pulumi.String(example.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
			Name:  pulumi.String("terraform-example"),
			VpcId: exampleNetwork.ID(),
		})
		if err != nil {
			return err
		}
		exampleInstance, err := ecs.NewInstance(ctx, "example", &ecs.InstanceArgs{
			ImageId:          pulumi.String(exampleGetImages.Images[0].Id),
			InstanceType:     pulumi.String(exampleGetInstanceTypes.InstanceTypes[0].Id),
			AvailabilityZone: pulumi.String(example.Zones[0].Id),
			SecurityGroups: pulumi.StringArray{
				exampleSecurityGroup.ID(),
			},
			InstanceName:       pulumi.String("terraform-example"),
			InternetChargeType: pulumi.String("PayByBandwidth"),
			VswitchId:          exampleSwitch.ID(),
		})
		if err != nil {
			return err
		}
		exampleGetResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			Status: pulumi.StringRef("OK"),
		}, nil)
		if err != nil {
			return err
		}
		exampleVault, err := hbr.NewVault(ctx, "example", &hbr.VaultArgs{
			VaultName: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		exampleHanaInstance, err := hbr.NewHanaInstance(ctx, "example", &hbr.HanaInstanceArgs{
			AlertSetting:        pulumi.String("INHERITED"),
			HanaName:            pulumi.String("terraform-example"),
			Host:                pulumi.String("1.1.1.1"),
			InstanceNumber:      pulumi.Int(1),
			Password:            pulumi.String("YouPassword123"),
			ResourceGroupId:     pulumi.String(exampleGetResourceGroups.Groups[0].Id),
			Sid:                 pulumi.String("HXE"),
			UseSsl:              pulumi.Bool(false),
			UserName:            pulumi.String("admin"),
			ValidateCertificate: pulumi.Bool(false),
			VaultId:             exampleVault.ID(),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewHanaBackupClient(ctx, "default", &hbr.HanaBackupClientArgs{
			VaultId: exampleVault.ID(),
			ClientInfo: pulumi.All(exampleInstance.ID(), exampleHanaInstance.HanaInstanceId).ApplyT(func(_args []interface{}) (string, error) {
				id := _args[0].(string)
				hanaInstanceId := _args[1].(string)
				return fmt.Sprintf("[ { \"instanceId\": \"%v\", \"clusterId\": \"%v\", \"sourceTypes\": [ \"HANA\" ]  }]", id, hanaInstanceId), nil
			}).(pulumi.StringOutput),
			AlertSetting: pulumi.String("INHERITED"),
			UseHttps:     pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Hana Backup Client can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/hanaBackupClient:HanaBackupClient example <vault_id>:<client_id> ```

func GetHanaBackupClient added in v3.31.0

func GetHanaBackupClient(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HanaBackupClientState, opts ...pulumi.ResourceOption) (*HanaBackupClient, error)

GetHanaBackupClient gets an existing HanaBackupClient resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewHanaBackupClient added in v3.31.0

func NewHanaBackupClient(ctx *pulumi.Context,
	name string, args *HanaBackupClientArgs, opts ...pulumi.ResourceOption) (*HanaBackupClient, error)

NewHanaBackupClient registers a new resource with the given unique name, arguments, and options.

func (*HanaBackupClient) ElementType added in v3.31.0

func (*HanaBackupClient) ElementType() reflect.Type

func (*HanaBackupClient) ToHanaBackupClientOutput added in v3.31.0

func (i *HanaBackupClient) ToHanaBackupClientOutput() HanaBackupClientOutput

func (*HanaBackupClient) ToHanaBackupClientOutputWithContext added in v3.31.0

func (i *HanaBackupClient) ToHanaBackupClientOutputWithContext(ctx context.Context) HanaBackupClientOutput

type HanaBackupClientArgs added in v3.31.0

type HanaBackupClientArgs struct {
	// The alert settings. Valid value: `INHERITED`.
	AlertSetting pulumi.StringPtrInput
	// The installation information of the HBR clients.
	ClientInfo pulumi.StringPtrInput
	// Specifies whether to transmit data over HTTPS. Valid values: `true`, `false`.
	UseHttps pulumi.BoolPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a HanaBackupClient resource.

func (HanaBackupClientArgs) ElementType added in v3.31.0

func (HanaBackupClientArgs) ElementType() reflect.Type

type HanaBackupClientArray added in v3.31.0

type HanaBackupClientArray []HanaBackupClientInput

func (HanaBackupClientArray) ElementType added in v3.31.0

func (HanaBackupClientArray) ElementType() reflect.Type

func (HanaBackupClientArray) ToHanaBackupClientArrayOutput added in v3.31.0

func (i HanaBackupClientArray) ToHanaBackupClientArrayOutput() HanaBackupClientArrayOutput

func (HanaBackupClientArray) ToHanaBackupClientArrayOutputWithContext added in v3.31.0

func (i HanaBackupClientArray) ToHanaBackupClientArrayOutputWithContext(ctx context.Context) HanaBackupClientArrayOutput

type HanaBackupClientArrayInput added in v3.31.0

type HanaBackupClientArrayInput interface {
	pulumi.Input

	ToHanaBackupClientArrayOutput() HanaBackupClientArrayOutput
	ToHanaBackupClientArrayOutputWithContext(context.Context) HanaBackupClientArrayOutput
}

HanaBackupClientArrayInput is an input type that accepts HanaBackupClientArray and HanaBackupClientArrayOutput values. You can construct a concrete instance of `HanaBackupClientArrayInput` via:

HanaBackupClientArray{ HanaBackupClientArgs{...} }

type HanaBackupClientArrayOutput added in v3.31.0

type HanaBackupClientArrayOutput struct{ *pulumi.OutputState }

func (HanaBackupClientArrayOutput) ElementType added in v3.31.0

func (HanaBackupClientArrayOutput) Index added in v3.31.0

func (HanaBackupClientArrayOutput) ToHanaBackupClientArrayOutput added in v3.31.0

func (o HanaBackupClientArrayOutput) ToHanaBackupClientArrayOutput() HanaBackupClientArrayOutput

func (HanaBackupClientArrayOutput) ToHanaBackupClientArrayOutputWithContext added in v3.31.0

func (o HanaBackupClientArrayOutput) ToHanaBackupClientArrayOutputWithContext(ctx context.Context) HanaBackupClientArrayOutput

type HanaBackupClientInput added in v3.31.0

type HanaBackupClientInput interface {
	pulumi.Input

	ToHanaBackupClientOutput() HanaBackupClientOutput
	ToHanaBackupClientOutputWithContext(ctx context.Context) HanaBackupClientOutput
}

type HanaBackupClientMap added in v3.31.0

type HanaBackupClientMap map[string]HanaBackupClientInput

func (HanaBackupClientMap) ElementType added in v3.31.0

func (HanaBackupClientMap) ElementType() reflect.Type

func (HanaBackupClientMap) ToHanaBackupClientMapOutput added in v3.31.0

func (i HanaBackupClientMap) ToHanaBackupClientMapOutput() HanaBackupClientMapOutput

func (HanaBackupClientMap) ToHanaBackupClientMapOutputWithContext added in v3.31.0

func (i HanaBackupClientMap) ToHanaBackupClientMapOutputWithContext(ctx context.Context) HanaBackupClientMapOutput

type HanaBackupClientMapInput added in v3.31.0

type HanaBackupClientMapInput interface {
	pulumi.Input

	ToHanaBackupClientMapOutput() HanaBackupClientMapOutput
	ToHanaBackupClientMapOutputWithContext(context.Context) HanaBackupClientMapOutput
}

HanaBackupClientMapInput is an input type that accepts HanaBackupClientMap and HanaBackupClientMapOutput values. You can construct a concrete instance of `HanaBackupClientMapInput` via:

HanaBackupClientMap{ "key": HanaBackupClientArgs{...} }

type HanaBackupClientMapOutput added in v3.31.0

type HanaBackupClientMapOutput struct{ *pulumi.OutputState }

func (HanaBackupClientMapOutput) ElementType added in v3.31.0

func (HanaBackupClientMapOutput) ElementType() reflect.Type

func (HanaBackupClientMapOutput) MapIndex added in v3.31.0

func (HanaBackupClientMapOutput) ToHanaBackupClientMapOutput added in v3.31.0

func (o HanaBackupClientMapOutput) ToHanaBackupClientMapOutput() HanaBackupClientMapOutput

func (HanaBackupClientMapOutput) ToHanaBackupClientMapOutputWithContext added in v3.31.0

func (o HanaBackupClientMapOutput) ToHanaBackupClientMapOutputWithContext(ctx context.Context) HanaBackupClientMapOutput

type HanaBackupClientOutput added in v3.31.0

type HanaBackupClientOutput struct{ *pulumi.OutputState }

func (HanaBackupClientOutput) AlertSetting added in v3.31.0

func (o HanaBackupClientOutput) AlertSetting() pulumi.StringOutput

The alert settings. Valid value: `INHERITED`.

func (HanaBackupClientOutput) ClientId added in v3.31.0

The ID of the backup client.

func (HanaBackupClientOutput) ClientInfo added in v3.31.0

The installation information of the HBR clients.

func (HanaBackupClientOutput) ClusterId added in v3.31.0

The ID of the SAP HANA instance.

func (HanaBackupClientOutput) ElementType added in v3.31.0

func (HanaBackupClientOutput) ElementType() reflect.Type

func (HanaBackupClientOutput) InstanceId added in v3.31.0

The ID of the instance.

func (HanaBackupClientOutput) Status added in v3.31.0

The status of the Hana Backup Client.

func (HanaBackupClientOutput) ToHanaBackupClientOutput added in v3.31.0

func (o HanaBackupClientOutput) ToHanaBackupClientOutput() HanaBackupClientOutput

func (HanaBackupClientOutput) ToHanaBackupClientOutputWithContext added in v3.31.0

func (o HanaBackupClientOutput) ToHanaBackupClientOutputWithContext(ctx context.Context) HanaBackupClientOutput

func (HanaBackupClientOutput) UseHttps added in v3.31.0

Specifies whether to transmit data over HTTPS. Valid values: `true`, `false`.

func (HanaBackupClientOutput) VaultId added in v3.31.0

The ID of the backup vault.

type HanaBackupClientState added in v3.31.0

type HanaBackupClientState struct {
	// The alert settings. Valid value: `INHERITED`.
	AlertSetting pulumi.StringPtrInput
	// The ID of the backup client.
	ClientId pulumi.StringPtrInput
	// The installation information of the HBR clients.
	ClientInfo pulumi.StringPtrInput
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringPtrInput
	// The ID of the instance.
	InstanceId pulumi.StringPtrInput
	// The status of the Hana Backup Client.
	Status pulumi.StringPtrInput
	// Specifies whether to transmit data over HTTPS. Valid values: `true`, `false`.
	UseHttps pulumi.BoolPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput
}

func (HanaBackupClientState) ElementType added in v3.31.0

func (HanaBackupClientState) ElementType() reflect.Type

type HanaBackupPlan added in v3.27.0

type HanaBackupPlan struct {
	pulumi.CustomResourceState

	// The backup prefix.
	BackupPrefix pulumi.StringPtrOutput `pulumi:"backupPrefix"`
	// The backup type. Valid values:
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The name of the database.
	DatabaseName pulumi.StringOutput `pulumi:"databaseName"`
	// The id of the plan.
	PlanId pulumi.StringOutput `pulumi:"planId"`
	// The name of the backup plan.
	PlanName pulumi.StringOutput `pulumi:"planName"`
	// The resource attribute field that represents the resource group ID.
	ResourceGroupId pulumi.StringPtrOutput `pulumi:"resourceGroupId"`
	// The backup policy. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// The status of the resource. Valid values: `Enabled`, `Disabled`.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID of the backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a Hybrid Backup Recovery (HBR) Hana Backup Plan resource.

For information about Hybrid Backup Recovery (HBR) Hana Backup Plan and how to use it, see [What is Hana Backup Plan](https://www.alibabacloud.com/help/en/hybrid-backup-recovery/latest/api-hbr-2017-09-08-createhanabackupplan).

> **NOTE:** Available in v1.179.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			Status: pulumi.StringRef("OK"),
		}, nil)
		if err != nil {
			return err
		}
		exampleVault, err := hbr.NewVault(ctx, "example", &hbr.VaultArgs{
			VaultName: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		exampleHanaInstance, err := hbr.NewHanaInstance(ctx, "example", &hbr.HanaInstanceArgs{
			AlertSetting:        pulumi.String("INHERITED"),
			HanaName:            pulumi.String("terraform-example"),
			Host:                pulumi.String("1.1.1.1"),
			InstanceNumber:      pulumi.Int(1),
			Password:            pulumi.String("YouPassword123"),
			ResourceGroupId:     pulumi.String(example.Groups[0].Id),
			Sid:                 pulumi.String("HXE"),
			UseSsl:              pulumi.Bool(false),
			UserName:            pulumi.String("admin"),
			ValidateCertificate: pulumi.Bool(false),
			VaultId:             exampleVault.ID(),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewHanaBackupPlan(ctx, "example", &hbr.HanaBackupPlanArgs{
			BackupPrefix:    pulumi.String("DIFF_DATA_BACKUP"),
			BackupType:      pulumi.String("COMPLETE"),
			ClusterId:       exampleHanaInstance.HanaInstanceId,
			DatabaseName:    pulumi.String("SYSTEMDB"),
			PlanName:        pulumi.String("terraform-example"),
			ResourceGroupId: pulumi.String(example.Groups[0].Id),
			Schedule:        pulumi.String("I|1602673264|P1D"),
			VaultId:         exampleHanaInstance.VaultId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Hana Backup Plan can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/hanaBackupPlan:HanaBackupPlan example <plan_id>:<vault_id>:<cluster_id> ```

func GetHanaBackupPlan added in v3.27.0

func GetHanaBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HanaBackupPlanState, opts ...pulumi.ResourceOption) (*HanaBackupPlan, error)

GetHanaBackupPlan gets an existing HanaBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewHanaBackupPlan added in v3.27.0

func NewHanaBackupPlan(ctx *pulumi.Context,
	name string, args *HanaBackupPlanArgs, opts ...pulumi.ResourceOption) (*HanaBackupPlan, error)

NewHanaBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*HanaBackupPlan) ElementType added in v3.27.0

func (*HanaBackupPlan) ElementType() reflect.Type

func (*HanaBackupPlan) ToHanaBackupPlanOutput added in v3.27.0

func (i *HanaBackupPlan) ToHanaBackupPlanOutput() HanaBackupPlanOutput

func (*HanaBackupPlan) ToHanaBackupPlanOutputWithContext added in v3.27.0

func (i *HanaBackupPlan) ToHanaBackupPlanOutputWithContext(ctx context.Context) HanaBackupPlanOutput

type HanaBackupPlanArgs added in v3.27.0

type HanaBackupPlanArgs struct {
	// The backup prefix.
	BackupPrefix pulumi.StringPtrInput
	// The backup type. Valid values:
	BackupType pulumi.StringInput
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringInput
	// The name of the database.
	DatabaseName pulumi.StringInput
	// The name of the backup plan.
	PlanName pulumi.StringInput
	// The resource attribute field that represents the resource group ID.
	ResourceGroupId pulumi.StringPtrInput
	// The backup policy. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.
	Schedule pulumi.StringInput
	// The status of the resource. Valid values: `Enabled`, `Disabled`.
	Status pulumi.StringPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a HanaBackupPlan resource.

func (HanaBackupPlanArgs) ElementType added in v3.27.0

func (HanaBackupPlanArgs) ElementType() reflect.Type

type HanaBackupPlanArray added in v3.27.0

type HanaBackupPlanArray []HanaBackupPlanInput

func (HanaBackupPlanArray) ElementType added in v3.27.0

func (HanaBackupPlanArray) ElementType() reflect.Type

func (HanaBackupPlanArray) ToHanaBackupPlanArrayOutput added in v3.27.0

func (i HanaBackupPlanArray) ToHanaBackupPlanArrayOutput() HanaBackupPlanArrayOutput

func (HanaBackupPlanArray) ToHanaBackupPlanArrayOutputWithContext added in v3.27.0

func (i HanaBackupPlanArray) ToHanaBackupPlanArrayOutputWithContext(ctx context.Context) HanaBackupPlanArrayOutput

type HanaBackupPlanArrayInput added in v3.27.0

type HanaBackupPlanArrayInput interface {
	pulumi.Input

	ToHanaBackupPlanArrayOutput() HanaBackupPlanArrayOutput
	ToHanaBackupPlanArrayOutputWithContext(context.Context) HanaBackupPlanArrayOutput
}

HanaBackupPlanArrayInput is an input type that accepts HanaBackupPlanArray and HanaBackupPlanArrayOutput values. You can construct a concrete instance of `HanaBackupPlanArrayInput` via:

HanaBackupPlanArray{ HanaBackupPlanArgs{...} }

type HanaBackupPlanArrayOutput added in v3.27.0

type HanaBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (HanaBackupPlanArrayOutput) ElementType added in v3.27.0

func (HanaBackupPlanArrayOutput) ElementType() reflect.Type

func (HanaBackupPlanArrayOutput) Index added in v3.27.0

func (HanaBackupPlanArrayOutput) ToHanaBackupPlanArrayOutput added in v3.27.0

func (o HanaBackupPlanArrayOutput) ToHanaBackupPlanArrayOutput() HanaBackupPlanArrayOutput

func (HanaBackupPlanArrayOutput) ToHanaBackupPlanArrayOutputWithContext added in v3.27.0

func (o HanaBackupPlanArrayOutput) ToHanaBackupPlanArrayOutputWithContext(ctx context.Context) HanaBackupPlanArrayOutput

type HanaBackupPlanInput added in v3.27.0

type HanaBackupPlanInput interface {
	pulumi.Input

	ToHanaBackupPlanOutput() HanaBackupPlanOutput
	ToHanaBackupPlanOutputWithContext(ctx context.Context) HanaBackupPlanOutput
}

type HanaBackupPlanMap added in v3.27.0

type HanaBackupPlanMap map[string]HanaBackupPlanInput

func (HanaBackupPlanMap) ElementType added in v3.27.0

func (HanaBackupPlanMap) ElementType() reflect.Type

func (HanaBackupPlanMap) ToHanaBackupPlanMapOutput added in v3.27.0

func (i HanaBackupPlanMap) ToHanaBackupPlanMapOutput() HanaBackupPlanMapOutput

func (HanaBackupPlanMap) ToHanaBackupPlanMapOutputWithContext added in v3.27.0

func (i HanaBackupPlanMap) ToHanaBackupPlanMapOutputWithContext(ctx context.Context) HanaBackupPlanMapOutput

type HanaBackupPlanMapInput added in v3.27.0

type HanaBackupPlanMapInput interface {
	pulumi.Input

	ToHanaBackupPlanMapOutput() HanaBackupPlanMapOutput
	ToHanaBackupPlanMapOutputWithContext(context.Context) HanaBackupPlanMapOutput
}

HanaBackupPlanMapInput is an input type that accepts HanaBackupPlanMap and HanaBackupPlanMapOutput values. You can construct a concrete instance of `HanaBackupPlanMapInput` via:

HanaBackupPlanMap{ "key": HanaBackupPlanArgs{...} }

type HanaBackupPlanMapOutput added in v3.27.0

type HanaBackupPlanMapOutput struct{ *pulumi.OutputState }

func (HanaBackupPlanMapOutput) ElementType added in v3.27.0

func (HanaBackupPlanMapOutput) ElementType() reflect.Type

func (HanaBackupPlanMapOutput) MapIndex added in v3.27.0

func (HanaBackupPlanMapOutput) ToHanaBackupPlanMapOutput added in v3.27.0

func (o HanaBackupPlanMapOutput) ToHanaBackupPlanMapOutput() HanaBackupPlanMapOutput

func (HanaBackupPlanMapOutput) ToHanaBackupPlanMapOutputWithContext added in v3.27.0

func (o HanaBackupPlanMapOutput) ToHanaBackupPlanMapOutputWithContext(ctx context.Context) HanaBackupPlanMapOutput

type HanaBackupPlanOutput added in v3.27.0

type HanaBackupPlanOutput struct{ *pulumi.OutputState }

func (HanaBackupPlanOutput) BackupPrefix added in v3.27.0

func (o HanaBackupPlanOutput) BackupPrefix() pulumi.StringPtrOutput

The backup prefix.

func (HanaBackupPlanOutput) BackupType added in v3.27.0

func (o HanaBackupPlanOutput) BackupType() pulumi.StringOutput

The backup type. Valid values:

func (HanaBackupPlanOutput) ClusterId added in v3.27.0

The ID of the SAP HANA instance.

func (HanaBackupPlanOutput) DatabaseName added in v3.27.0

func (o HanaBackupPlanOutput) DatabaseName() pulumi.StringOutput

The name of the database.

func (HanaBackupPlanOutput) ElementType added in v3.27.0

func (HanaBackupPlanOutput) ElementType() reflect.Type

func (HanaBackupPlanOutput) PlanId added in v3.27.0

The id of the plan.

func (HanaBackupPlanOutput) PlanName added in v3.27.0

The name of the backup plan.

func (HanaBackupPlanOutput) ResourceGroupId added in v3.27.0

func (o HanaBackupPlanOutput) ResourceGroupId() pulumi.StringPtrOutput

The resource attribute field that represents the resource group ID.

func (HanaBackupPlanOutput) Schedule added in v3.27.0

The backup policy. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.

func (HanaBackupPlanOutput) Status added in v3.27.0

The status of the resource. Valid values: `Enabled`, `Disabled`.

func (HanaBackupPlanOutput) ToHanaBackupPlanOutput added in v3.27.0

func (o HanaBackupPlanOutput) ToHanaBackupPlanOutput() HanaBackupPlanOutput

func (HanaBackupPlanOutput) ToHanaBackupPlanOutputWithContext added in v3.27.0

func (o HanaBackupPlanOutput) ToHanaBackupPlanOutputWithContext(ctx context.Context) HanaBackupPlanOutput

func (HanaBackupPlanOutput) VaultId added in v3.27.0

The ID of the backup vault.

type HanaBackupPlanState added in v3.27.0

type HanaBackupPlanState struct {
	// The backup prefix.
	BackupPrefix pulumi.StringPtrInput
	// The backup type. Valid values:
	BackupType pulumi.StringPtrInput
	// The ID of the SAP HANA instance.
	ClusterId pulumi.StringPtrInput
	// The name of the database.
	DatabaseName pulumi.StringPtrInput
	// The id of the plan.
	PlanId pulumi.StringPtrInput
	// The name of the backup plan.
	PlanName pulumi.StringPtrInput
	// The resource attribute field that represents the resource group ID.
	ResourceGroupId pulumi.StringPtrInput
	// The backup policy. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is completed. For example, I|1631685600|P1D specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.
	Schedule pulumi.StringPtrInput
	// The status of the resource. Valid values: `Enabled`, `Disabled`.
	Status pulumi.StringPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput
}

func (HanaBackupPlanState) ElementType added in v3.27.0

func (HanaBackupPlanState) ElementType() reflect.Type

type HanaInstance added in v3.26.0

type HanaInstance struct {
	pulumi.CustomResourceState

	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting pulumi.StringOutput `pulumi:"alertSetting"`
	// The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.
	EcsInstanceIds pulumi.StringArrayOutput `pulumi:"ecsInstanceIds"`
	// The id of the Hana Instance.
	HanaInstanceId pulumi.StringOutput `pulumi:"hanaInstanceId"`
	// The name of the SAP HANA instance.
	HanaName pulumi.StringPtrOutput `pulumi:"hanaName"`
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host pulumi.StringPtrOutput `pulumi:"host"`
	// The instance number of the SAP HANA system.
	InstanceNumber pulumi.IntPtrOutput `pulumi:"instanceNumber"`
	// The password that is used to connect with the SAP HANA database.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
	// The security identifier (SID) of the SAP HANA database.
	Sid pulumi.StringPtrOutput `pulumi:"sid"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
	// Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).
	UseSsl pulumi.BoolPtrOutput `pulumi:"useSsl"`
	// The username of the SYSTEMDB database.
	UserName pulumi.StringPtrOutput `pulumi:"userName"`
	// Specifies whether to verify the SSL certificate of the SAP HANA database.
	ValidateCertificate pulumi.BoolPtrOutput `pulumi:"validateCertificate"`
	// The ID of the backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a Hybrid Backup Recovery (HBR) Hana Instance resource.

For information about Hybrid Backup Recovery (HBR) Hana Instance and how to use it, see [What is Hana Instance](https://www.alibabacloud.com/help/en/hybrid-backup-recovery/latest/api-hbr-2017-09-08-createhanainstance).

> **NOTE:** Available in v1.178.0+.

> **NOTE:** The `sid` attribute is required when destroying resources.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			Status: pulumi.StringRef("OK"),
		}, nil)
		if err != nil {
			return err
		}
		exampleVault, err := hbr.NewVault(ctx, "example", &hbr.VaultArgs{
			VaultName: pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewHanaInstance(ctx, "example", &hbr.HanaInstanceArgs{
			AlertSetting:        pulumi.String("INHERITED"),
			HanaName:            pulumi.String("terraform-example"),
			Host:                pulumi.String("1.1.1.1"),
			InstanceNumber:      pulumi.Int(1),
			Password:            pulumi.String("YouPassword123"),
			ResourceGroupId:     pulumi.String(example.Groups[0].Id),
			Sid:                 pulumi.String("HXE"),
			UseSsl:              pulumi.Bool(false),
			UserName:            pulumi.String("admin"),
			ValidateCertificate: pulumi.Bool(false),
			VaultId:             exampleVault.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Hana Instance can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/hanaInstance:HanaInstance example <vault_id>:<hana_instance_id> ```

func GetHanaInstance added in v3.26.0

func GetHanaInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HanaInstanceState, opts ...pulumi.ResourceOption) (*HanaInstance, error)

GetHanaInstance gets an existing HanaInstance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewHanaInstance added in v3.26.0

func NewHanaInstance(ctx *pulumi.Context,
	name string, args *HanaInstanceArgs, opts ...pulumi.ResourceOption) (*HanaInstance, error)

NewHanaInstance registers a new resource with the given unique name, arguments, and options.

func (*HanaInstance) ElementType added in v3.26.0

func (*HanaInstance) ElementType() reflect.Type

func (*HanaInstance) ToHanaInstanceOutput added in v3.26.0

func (i *HanaInstance) ToHanaInstanceOutput() HanaInstanceOutput

func (*HanaInstance) ToHanaInstanceOutputWithContext added in v3.26.0

func (i *HanaInstance) ToHanaInstanceOutputWithContext(ctx context.Context) HanaInstanceOutput

type HanaInstanceArgs added in v3.26.0

type HanaInstanceArgs struct {
	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting pulumi.StringPtrInput
	// The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.
	EcsInstanceIds pulumi.StringArrayInput
	// The name of the SAP HANA instance.
	HanaName pulumi.StringPtrInput
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host pulumi.StringPtrInput
	// The instance number of the SAP HANA system.
	InstanceNumber pulumi.IntPtrInput
	// The password that is used to connect with the SAP HANA database.
	Password pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The security identifier (SID) of the SAP HANA database.
	Sid pulumi.StringPtrInput
	// Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).
	UseSsl pulumi.BoolPtrInput
	// The username of the SYSTEMDB database.
	UserName pulumi.StringPtrInput
	// Specifies whether to verify the SSL certificate of the SAP HANA database.
	ValidateCertificate pulumi.BoolPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a HanaInstance resource.

func (HanaInstanceArgs) ElementType added in v3.26.0

func (HanaInstanceArgs) ElementType() reflect.Type

type HanaInstanceArray added in v3.26.0

type HanaInstanceArray []HanaInstanceInput

func (HanaInstanceArray) ElementType added in v3.26.0

func (HanaInstanceArray) ElementType() reflect.Type

func (HanaInstanceArray) ToHanaInstanceArrayOutput added in v3.26.0

func (i HanaInstanceArray) ToHanaInstanceArrayOutput() HanaInstanceArrayOutput

func (HanaInstanceArray) ToHanaInstanceArrayOutputWithContext added in v3.26.0

func (i HanaInstanceArray) ToHanaInstanceArrayOutputWithContext(ctx context.Context) HanaInstanceArrayOutput

type HanaInstanceArrayInput added in v3.26.0

type HanaInstanceArrayInput interface {
	pulumi.Input

	ToHanaInstanceArrayOutput() HanaInstanceArrayOutput
	ToHanaInstanceArrayOutputWithContext(context.Context) HanaInstanceArrayOutput
}

HanaInstanceArrayInput is an input type that accepts HanaInstanceArray and HanaInstanceArrayOutput values. You can construct a concrete instance of `HanaInstanceArrayInput` via:

HanaInstanceArray{ HanaInstanceArgs{...} }

type HanaInstanceArrayOutput added in v3.26.0

type HanaInstanceArrayOutput struct{ *pulumi.OutputState }

func (HanaInstanceArrayOutput) ElementType added in v3.26.0

func (HanaInstanceArrayOutput) ElementType() reflect.Type

func (HanaInstanceArrayOutput) Index added in v3.26.0

func (HanaInstanceArrayOutput) ToHanaInstanceArrayOutput added in v3.26.0

func (o HanaInstanceArrayOutput) ToHanaInstanceArrayOutput() HanaInstanceArrayOutput

func (HanaInstanceArrayOutput) ToHanaInstanceArrayOutputWithContext added in v3.26.0

func (o HanaInstanceArrayOutput) ToHanaInstanceArrayOutputWithContext(ctx context.Context) HanaInstanceArrayOutput

type HanaInstanceInput added in v3.26.0

type HanaInstanceInput interface {
	pulumi.Input

	ToHanaInstanceOutput() HanaInstanceOutput
	ToHanaInstanceOutputWithContext(ctx context.Context) HanaInstanceOutput
}

type HanaInstanceMap added in v3.26.0

type HanaInstanceMap map[string]HanaInstanceInput

func (HanaInstanceMap) ElementType added in v3.26.0

func (HanaInstanceMap) ElementType() reflect.Type

func (HanaInstanceMap) ToHanaInstanceMapOutput added in v3.26.0

func (i HanaInstanceMap) ToHanaInstanceMapOutput() HanaInstanceMapOutput

func (HanaInstanceMap) ToHanaInstanceMapOutputWithContext added in v3.26.0

func (i HanaInstanceMap) ToHanaInstanceMapOutputWithContext(ctx context.Context) HanaInstanceMapOutput

type HanaInstanceMapInput added in v3.26.0

type HanaInstanceMapInput interface {
	pulumi.Input

	ToHanaInstanceMapOutput() HanaInstanceMapOutput
	ToHanaInstanceMapOutputWithContext(context.Context) HanaInstanceMapOutput
}

HanaInstanceMapInput is an input type that accepts HanaInstanceMap and HanaInstanceMapOutput values. You can construct a concrete instance of `HanaInstanceMapInput` via:

HanaInstanceMap{ "key": HanaInstanceArgs{...} }

type HanaInstanceMapOutput added in v3.26.0

type HanaInstanceMapOutput struct{ *pulumi.OutputState }

func (HanaInstanceMapOutput) ElementType added in v3.26.0

func (HanaInstanceMapOutput) ElementType() reflect.Type

func (HanaInstanceMapOutput) MapIndex added in v3.26.0

func (HanaInstanceMapOutput) ToHanaInstanceMapOutput added in v3.26.0

func (o HanaInstanceMapOutput) ToHanaInstanceMapOutput() HanaInstanceMapOutput

func (HanaInstanceMapOutput) ToHanaInstanceMapOutputWithContext added in v3.26.0

func (o HanaInstanceMapOutput) ToHanaInstanceMapOutputWithContext(ctx context.Context) HanaInstanceMapOutput

type HanaInstanceOutput added in v3.26.0

type HanaInstanceOutput struct{ *pulumi.OutputState }

func (HanaInstanceOutput) AlertSetting added in v3.27.0

func (o HanaInstanceOutput) AlertSetting() pulumi.StringOutput

The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.

func (HanaInstanceOutput) EcsInstanceIds added in v3.27.0

func (o HanaInstanceOutput) EcsInstanceIds() pulumi.StringArrayOutput

The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.

func (HanaInstanceOutput) ElementType added in v3.26.0

func (HanaInstanceOutput) ElementType() reflect.Type

func (HanaInstanceOutput) HanaInstanceId added in v3.27.0

func (o HanaInstanceOutput) HanaInstanceId() pulumi.StringOutput

The id of the Hana Instance.

func (HanaInstanceOutput) HanaName added in v3.27.0

The name of the SAP HANA instance.

func (HanaInstanceOutput) Host added in v3.27.0

The private or internal IP address of the host where the primary node of the SAP HANA instance resides.

func (HanaInstanceOutput) InstanceNumber added in v3.27.0

func (o HanaInstanceOutput) InstanceNumber() pulumi.IntPtrOutput

The instance number of the SAP HANA system.

func (HanaInstanceOutput) Password added in v3.27.0

The password that is used to connect with the SAP HANA database.

func (HanaInstanceOutput) ResourceGroupId added in v3.27.0

func (o HanaInstanceOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (HanaInstanceOutput) Sid added in v3.27.0

The security identifier (SID) of the SAP HANA database.

func (HanaInstanceOutput) Status added in v3.27.0

The status of the resource.

func (HanaInstanceOutput) ToHanaInstanceOutput added in v3.26.0

func (o HanaInstanceOutput) ToHanaInstanceOutput() HanaInstanceOutput

func (HanaInstanceOutput) ToHanaInstanceOutputWithContext added in v3.26.0

func (o HanaInstanceOutput) ToHanaInstanceOutputWithContext(ctx context.Context) HanaInstanceOutput

func (HanaInstanceOutput) UseSsl added in v3.27.0

Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).

func (HanaInstanceOutput) UserName added in v3.27.0

The username of the SYSTEMDB database.

func (HanaInstanceOutput) ValidateCertificate added in v3.27.0

func (o HanaInstanceOutput) ValidateCertificate() pulumi.BoolPtrOutput

Specifies whether to verify the SSL certificate of the SAP HANA database.

func (HanaInstanceOutput) VaultId added in v3.27.0

The ID of the backup vault.

type HanaInstanceState added in v3.26.0

type HanaInstanceState struct {
	// The alert settings. Valid value: `INHERITED`, which indicates that the backup client sends alert notifications in the same way as the backup vault.
	AlertSetting pulumi.StringPtrInput
	// The IDs of ECS instances that host the SAP HANA instance to be registered. HBR installs backup clients on the specified ECS instances.
	EcsInstanceIds pulumi.StringArrayInput
	// The id of the Hana Instance.
	HanaInstanceId pulumi.StringPtrInput
	// The name of the SAP HANA instance.
	HanaName pulumi.StringPtrInput
	// The private or internal IP address of the host where the primary node of the SAP HANA instance resides.
	Host pulumi.StringPtrInput
	// The instance number of the SAP HANA system.
	InstanceNumber pulumi.IntPtrInput
	// The password that is used to connect with the SAP HANA database.
	Password pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The security identifier (SID) of the SAP HANA database.
	Sid pulumi.StringPtrInput
	// The status of the resource.
	Status pulumi.StringPtrInput
	// Specifies whether to connect with the SAP HANA database over Secure Sockets Layer (SSL).
	UseSsl pulumi.BoolPtrInput
	// The username of the SYSTEMDB database.
	UserName pulumi.StringPtrInput
	// Specifies whether to verify the SSL certificate of the SAP HANA database.
	ValidateCertificate pulumi.BoolPtrInput
	// The ID of the backup vault.
	VaultId pulumi.StringPtrInput
}

func (HanaInstanceState) ElementType added in v3.26.0

func (HanaInstanceState) ElementType() reflect.Type

type NasBackupPlan added in v3.7.0

type NasBackupPlan struct {
	pulumi.CustomResourceState

	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. **Note** The time format of the API adopts the ISO 8601, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	//
	// Deprecated: Field 'create_time' has been deprecated from provider version 1.153.0.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	//
	// > **Note** `hbr.NasBackupPlan` depends on the `nas.FileSystem` and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// The File System ID of Nas.
	FileSystemId pulumi.StringOutput `pulumi:"fileSystemId"`
	// 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.
	NasBackupPlanName pulumi.StringOutput `pulumi:"nasBackupPlanName"`
	// This parameter specifies whether to use Windows VSS to define a backup path.
	Options pulumi.StringPtrOutput `pulumi:"options"`
	// List of backup path. Up to 65536 characters. e.g.`["/home", "/var"]`. **Note** You should at least specify a backup path, empty array not allowed here.
	Paths pulumi.StringArrayOutput `pulumi:"paths"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringOutput `pulumi:"retention"`
	// 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.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// The ID of Backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a HBR Nas Backup Plan resource.

For information about HBR Nas Backup Plan and how to use it, see [What is Nas Backup Plan](https://www.alibabacloud.com/help/doc-detail/132248.htm).

> **NOTE:** Available in v1.132.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/nas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hbr.NewVault(ctx, "default", &hbr.VaultArgs{
			VaultName: pulumi.String("terraform-example2"),
		})
		if err != nil {
			return err
		}
		defaultFileSystem, err := nas.NewFileSystem(ctx, "default", &nas.FileSystemArgs{
			ProtocolType: pulumi.String("NFS"),
			StorageType:  pulumi.String("Performance"),
			Description:  pulumi.String("terraform-example"),
			EncryptType:  pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewNasBackupPlan(ctx, "default", &hbr.NasBackupPlanArgs{
			NasBackupPlanName: pulumi.String("terraform-example"),
			FileSystemId:      defaultFileSystem.ID(),
			Schedule:          pulumi.String("I|1602673264|PT2H"),
			BackupType:        pulumi.String("COMPLETE"),
			VaultId:           _default.ID(),
			Retention:         pulumi.String("2"),
			Paths: pulumi.StringArray{
				pulumi.String("/"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh $ pulumi import alicloud:hbr/nasBackupPlan:NasBackupPlan example <id> ```

func GetNasBackupPlan added in v3.7.0

func GetNasBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NasBackupPlanState, opts ...pulumi.ResourceOption) (*NasBackupPlan, error)

GetNasBackupPlan gets an existing NasBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNasBackupPlan added in v3.7.0

func NewNasBackupPlan(ctx *pulumi.Context,
	name string, args *NasBackupPlanArgs, opts ...pulumi.ResourceOption) (*NasBackupPlan, error)

NewNasBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*NasBackupPlan) ElementType added in v3.7.0

func (*NasBackupPlan) ElementType() reflect.Type

func (*NasBackupPlan) ToNasBackupPlanOutput added in v3.7.0

func (i *NasBackupPlan) ToNasBackupPlanOutput() NasBackupPlanOutput

func (*NasBackupPlan) ToNasBackupPlanOutputWithContext added in v3.7.0

func (i *NasBackupPlan) ToNasBackupPlanOutputWithContext(ctx context.Context) NasBackupPlanOutput

type NasBackupPlanArgs added in v3.7.0

type NasBackupPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput
	// This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. **Note** The time format of the API adopts the ISO 8601, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	//
	// Deprecated: Field 'create_time' has been deprecated from provider version 1.153.0.
	CreateTime pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	//
	// > **Note** `hbr.NasBackupPlan` depends on the `nas.FileSystem` and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The File System ID of Nas.
	FileSystemId pulumi.StringInput
	// 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.
	NasBackupPlanName pulumi.StringInput
	// This parameter specifies whether to use Windows VSS to define a backup path.
	Options pulumi.StringPtrInput
	// List of backup path. Up to 65536 characters. e.g.`["/home", "/var"]`. **Note** You should at least specify a backup path, empty array not allowed here.
	Paths pulumi.StringArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput
	// 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.
	Schedule pulumi.StringInput
	// The ID of Backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a NasBackupPlan resource.

func (NasBackupPlanArgs) ElementType added in v3.7.0

func (NasBackupPlanArgs) ElementType() reflect.Type

type NasBackupPlanArray added in v3.7.0

type NasBackupPlanArray []NasBackupPlanInput

func (NasBackupPlanArray) ElementType added in v3.7.0

func (NasBackupPlanArray) ElementType() reflect.Type

func (NasBackupPlanArray) ToNasBackupPlanArrayOutput added in v3.7.0

func (i NasBackupPlanArray) ToNasBackupPlanArrayOutput() NasBackupPlanArrayOutput

func (NasBackupPlanArray) ToNasBackupPlanArrayOutputWithContext added in v3.7.0

func (i NasBackupPlanArray) ToNasBackupPlanArrayOutputWithContext(ctx context.Context) NasBackupPlanArrayOutput

type NasBackupPlanArrayInput added in v3.7.0

type NasBackupPlanArrayInput interface {
	pulumi.Input

	ToNasBackupPlanArrayOutput() NasBackupPlanArrayOutput
	ToNasBackupPlanArrayOutputWithContext(context.Context) NasBackupPlanArrayOutput
}

NasBackupPlanArrayInput is an input type that accepts NasBackupPlanArray and NasBackupPlanArrayOutput values. You can construct a concrete instance of `NasBackupPlanArrayInput` via:

NasBackupPlanArray{ NasBackupPlanArgs{...} }

type NasBackupPlanArrayOutput added in v3.7.0

type NasBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (NasBackupPlanArrayOutput) ElementType added in v3.7.0

func (NasBackupPlanArrayOutput) ElementType() reflect.Type

func (NasBackupPlanArrayOutput) Index added in v3.7.0

func (NasBackupPlanArrayOutput) ToNasBackupPlanArrayOutput added in v3.7.0

func (o NasBackupPlanArrayOutput) ToNasBackupPlanArrayOutput() NasBackupPlanArrayOutput

func (NasBackupPlanArrayOutput) ToNasBackupPlanArrayOutputWithContext added in v3.7.0

func (o NasBackupPlanArrayOutput) ToNasBackupPlanArrayOutputWithContext(ctx context.Context) NasBackupPlanArrayOutput

type NasBackupPlanInput added in v3.7.0

type NasBackupPlanInput interface {
	pulumi.Input

	ToNasBackupPlanOutput() NasBackupPlanOutput
	ToNasBackupPlanOutputWithContext(ctx context.Context) NasBackupPlanOutput
}

type NasBackupPlanMap added in v3.7.0

type NasBackupPlanMap map[string]NasBackupPlanInput

func (NasBackupPlanMap) ElementType added in v3.7.0

func (NasBackupPlanMap) ElementType() reflect.Type

func (NasBackupPlanMap) ToNasBackupPlanMapOutput added in v3.7.0

func (i NasBackupPlanMap) ToNasBackupPlanMapOutput() NasBackupPlanMapOutput

func (NasBackupPlanMap) ToNasBackupPlanMapOutputWithContext added in v3.7.0

func (i NasBackupPlanMap) ToNasBackupPlanMapOutputWithContext(ctx context.Context) NasBackupPlanMapOutput

type NasBackupPlanMapInput added in v3.7.0

type NasBackupPlanMapInput interface {
	pulumi.Input

	ToNasBackupPlanMapOutput() NasBackupPlanMapOutput
	ToNasBackupPlanMapOutputWithContext(context.Context) NasBackupPlanMapOutput
}

NasBackupPlanMapInput is an input type that accepts NasBackupPlanMap and NasBackupPlanMapOutput values. You can construct a concrete instance of `NasBackupPlanMapInput` via:

NasBackupPlanMap{ "key": NasBackupPlanArgs{...} }

type NasBackupPlanMapOutput added in v3.7.0

type NasBackupPlanMapOutput struct{ *pulumi.OutputState }

func (NasBackupPlanMapOutput) ElementType added in v3.7.0

func (NasBackupPlanMapOutput) ElementType() reflect.Type

func (NasBackupPlanMapOutput) MapIndex added in v3.7.0

func (NasBackupPlanMapOutput) ToNasBackupPlanMapOutput added in v3.7.0

func (o NasBackupPlanMapOutput) ToNasBackupPlanMapOutput() NasBackupPlanMapOutput

func (NasBackupPlanMapOutput) ToNasBackupPlanMapOutputWithContext added in v3.7.0

func (o NasBackupPlanMapOutput) ToNasBackupPlanMapOutputWithContext(ctx context.Context) NasBackupPlanMapOutput

type NasBackupPlanOutput added in v3.7.0

type NasBackupPlanOutput struct{ *pulumi.OutputState }

func (NasBackupPlanOutput) BackupType added in v3.27.0

func (o NasBackupPlanOutput) BackupType() pulumi.StringOutput

Backup type. Valid values: `COMPLETE`.

func (NasBackupPlanOutput) CreateTime deprecated added in v3.27.0

func (o NasBackupPlanOutput) CreateTime() pulumi.StringOutput

This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. **Note** The time format of the API adopts the ISO 8601, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.

Deprecated: Field 'create_time' has been deprecated from provider version 1.153.0.

func (NasBackupPlanOutput) CrossAccountRoleName added in v3.29.0

func (o NasBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

> **Note** `hbr.NasBackupPlan` depends on the `nas.FileSystem` and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.

func (NasBackupPlanOutput) CrossAccountType added in v3.29.0

func (o NasBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (NasBackupPlanOutput) CrossAccountUserId added in v3.29.0

func (o NasBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (NasBackupPlanOutput) Disabled added in v3.27.0

func (o NasBackupPlanOutput) Disabled() pulumi.BoolOutput

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

func (NasBackupPlanOutput) ElementType added in v3.7.0

func (NasBackupPlanOutput) ElementType() reflect.Type

func (NasBackupPlanOutput) FileSystemId added in v3.27.0

func (o NasBackupPlanOutput) FileSystemId() pulumi.StringOutput

The File System ID of Nas.

func (NasBackupPlanOutput) NasBackupPlanName added in v3.27.0

func (o NasBackupPlanOutput) NasBackupPlanName() pulumi.StringOutput

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.

func (NasBackupPlanOutput) Options added in v3.27.0

This parameter specifies whether to use Windows VSS to define a backup path.

func (NasBackupPlanOutput) Paths added in v3.27.0

List of backup path. Up to 65536 characters. e.g.`["/home", "/var"]`. **Note** You should at least specify a backup path, empty array not allowed here.

func (NasBackupPlanOutput) Retention added in v3.27.0

func (o NasBackupPlanOutput) Retention() pulumi.StringOutput

Backup retention days, the minimum is 1.

func (NasBackupPlanOutput) Schedule added in v3.27.0

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.

func (NasBackupPlanOutput) ToNasBackupPlanOutput added in v3.7.0

func (o NasBackupPlanOutput) ToNasBackupPlanOutput() NasBackupPlanOutput

func (NasBackupPlanOutput) ToNasBackupPlanOutputWithContext added in v3.7.0

func (o NasBackupPlanOutput) ToNasBackupPlanOutputWithContext(ctx context.Context) NasBackupPlanOutput

func (NasBackupPlanOutput) VaultId added in v3.27.0

The ID of Backup vault.

type NasBackupPlanState added in v3.7.0

type NasBackupPlanState struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringPtrInput
	// This field has been deprecated from provider version 1.153.0+. The creation time of NAS file system. **Note** The time format of the API adopts the ISO 8601, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	//
	// Deprecated: Field 'create_time' has been deprecated from provider version 1.153.0.
	CreateTime pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	//
	// > **Note** `hbr.NasBackupPlan` depends on the `nas.FileSystem` and creates a mount point on the file system. If this dependency has not declared, the file system may not be deleted correctly.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// The File System ID of Nas.
	FileSystemId pulumi.StringPtrInput
	// 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.
	NasBackupPlanName pulumi.StringPtrInput
	// This parameter specifies whether to use Windows VSS to define a backup path.
	Options pulumi.StringPtrInput
	// List of backup path. Up to 65536 characters. e.g.`["/home", "/var"]`. **Note** You should at least specify a backup path, empty array not allowed here.
	Paths pulumi.StringArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringPtrInput
	// 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.
	Schedule pulumi.StringPtrInput
	// The ID of Backup vault.
	VaultId pulumi.StringPtrInput
}

func (NasBackupPlanState) ElementType added in v3.7.0

func (NasBackupPlanState) ElementType() reflect.Type

type OssBackupPlan added in v3.6.0

type OssBackupPlan struct {
	pulumi.CustomResourceState

	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// The name of OSS bucket.
	Bucket pulumi.StringOutput `pulumi:"bucket"`
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// 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.
	OssBackupPlanName pulumi.StringOutput `pulumi:"ossBackupPlanName"`
	// Backup prefix. Once specified, only objects with matching prefixes will be backed up.
	Prefix pulumi.StringPtrOutput `pulumi:"prefix"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringOutput `pulumi:"retention"`
	// 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.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// The ID of backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

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](https://www.alibabacloud.com/help/doc-detail/130040.htm).

> **NOTE:** Available since v1.131.0+.

## Example Usage

Basic Usage

```go 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 {
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		defaultVault, err := hbr.NewVault(ctx, "default", &hbr.VaultArgs{
			VaultName: pulumi.String(fmt.Sprintf("terraform-example-%v", _default.Result)),
		})
		if err != nil {
			return err
		}
		defaultBucket, err := oss.NewBucket(ctx, "default", &oss.BucketArgs{
			Bucket: pulumi.String(fmt.Sprintf("terraform-example-%v", _default.Result)),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewOssBackupPlan(ctx, "default", &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
	})
}

```

## Import

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

```sh $ pulumi import alicloud:hbr/ossBackupPlan:OssBackupPlan example <id> ```

func GetOssBackupPlan added in v3.6.0

func GetOssBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OssBackupPlanState, opts ...pulumi.ResourceOption) (*OssBackupPlan, error)

GetOssBackupPlan gets an existing OssBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOssBackupPlan added in v3.6.0

func NewOssBackupPlan(ctx *pulumi.Context,
	name string, args *OssBackupPlanArgs, opts ...pulumi.ResourceOption) (*OssBackupPlan, error)

NewOssBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*OssBackupPlan) ElementType added in v3.6.0

func (*OssBackupPlan) ElementType() reflect.Type

func (*OssBackupPlan) ToOssBackupPlanOutput added in v3.6.0

func (i *OssBackupPlan) ToOssBackupPlanOutput() OssBackupPlanOutput

func (*OssBackupPlan) ToOssBackupPlanOutputWithContext added in v3.6.0

func (i *OssBackupPlan) ToOssBackupPlanOutputWithContext(ctx context.Context) OssBackupPlanOutput

type OssBackupPlanArgs added in v3.6.0

type OssBackupPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput
	// The name of OSS bucket.
	Bucket pulumi.StringInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// 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.
	OssBackupPlanName pulumi.StringInput
	// Backup prefix. Once specified, only objects with matching prefixes will be backed up.
	Prefix pulumi.StringPtrInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput
	// 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.
	Schedule pulumi.StringInput
	// The ID of backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a OssBackupPlan resource.

func (OssBackupPlanArgs) ElementType added in v3.6.0

func (OssBackupPlanArgs) ElementType() reflect.Type

type OssBackupPlanArray added in v3.6.0

type OssBackupPlanArray []OssBackupPlanInput

func (OssBackupPlanArray) ElementType added in v3.6.0

func (OssBackupPlanArray) ElementType() reflect.Type

func (OssBackupPlanArray) ToOssBackupPlanArrayOutput added in v3.6.0

func (i OssBackupPlanArray) ToOssBackupPlanArrayOutput() OssBackupPlanArrayOutput

func (OssBackupPlanArray) ToOssBackupPlanArrayOutputWithContext added in v3.6.0

func (i OssBackupPlanArray) ToOssBackupPlanArrayOutputWithContext(ctx context.Context) OssBackupPlanArrayOutput

type OssBackupPlanArrayInput added in v3.6.0

type OssBackupPlanArrayInput interface {
	pulumi.Input

	ToOssBackupPlanArrayOutput() OssBackupPlanArrayOutput
	ToOssBackupPlanArrayOutputWithContext(context.Context) OssBackupPlanArrayOutput
}

OssBackupPlanArrayInput is an input type that accepts OssBackupPlanArray and OssBackupPlanArrayOutput values. You can construct a concrete instance of `OssBackupPlanArrayInput` via:

OssBackupPlanArray{ OssBackupPlanArgs{...} }

type OssBackupPlanArrayOutput added in v3.6.0

type OssBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (OssBackupPlanArrayOutput) ElementType added in v3.6.0

func (OssBackupPlanArrayOutput) ElementType() reflect.Type

func (OssBackupPlanArrayOutput) Index added in v3.6.0

func (OssBackupPlanArrayOutput) ToOssBackupPlanArrayOutput added in v3.6.0

func (o OssBackupPlanArrayOutput) ToOssBackupPlanArrayOutput() OssBackupPlanArrayOutput

func (OssBackupPlanArrayOutput) ToOssBackupPlanArrayOutputWithContext added in v3.6.0

func (o OssBackupPlanArrayOutput) ToOssBackupPlanArrayOutputWithContext(ctx context.Context) OssBackupPlanArrayOutput

type OssBackupPlanInput added in v3.6.0

type OssBackupPlanInput interface {
	pulumi.Input

	ToOssBackupPlanOutput() OssBackupPlanOutput
	ToOssBackupPlanOutputWithContext(ctx context.Context) OssBackupPlanOutput
}

type OssBackupPlanMap added in v3.6.0

type OssBackupPlanMap map[string]OssBackupPlanInput

func (OssBackupPlanMap) ElementType added in v3.6.0

func (OssBackupPlanMap) ElementType() reflect.Type

func (OssBackupPlanMap) ToOssBackupPlanMapOutput added in v3.6.0

func (i OssBackupPlanMap) ToOssBackupPlanMapOutput() OssBackupPlanMapOutput

func (OssBackupPlanMap) ToOssBackupPlanMapOutputWithContext added in v3.6.0

func (i OssBackupPlanMap) ToOssBackupPlanMapOutputWithContext(ctx context.Context) OssBackupPlanMapOutput

type OssBackupPlanMapInput added in v3.6.0

type OssBackupPlanMapInput interface {
	pulumi.Input

	ToOssBackupPlanMapOutput() OssBackupPlanMapOutput
	ToOssBackupPlanMapOutputWithContext(context.Context) OssBackupPlanMapOutput
}

OssBackupPlanMapInput is an input type that accepts OssBackupPlanMap and OssBackupPlanMapOutput values. You can construct a concrete instance of `OssBackupPlanMapInput` via:

OssBackupPlanMap{ "key": OssBackupPlanArgs{...} }

type OssBackupPlanMapOutput added in v3.6.0

type OssBackupPlanMapOutput struct{ *pulumi.OutputState }

func (OssBackupPlanMapOutput) ElementType added in v3.6.0

func (OssBackupPlanMapOutput) ElementType() reflect.Type

func (OssBackupPlanMapOutput) MapIndex added in v3.6.0

func (OssBackupPlanMapOutput) ToOssBackupPlanMapOutput added in v3.6.0

func (o OssBackupPlanMapOutput) ToOssBackupPlanMapOutput() OssBackupPlanMapOutput

func (OssBackupPlanMapOutput) ToOssBackupPlanMapOutputWithContext added in v3.6.0

func (o OssBackupPlanMapOutput) ToOssBackupPlanMapOutputWithContext(ctx context.Context) OssBackupPlanMapOutput

type OssBackupPlanOutput added in v3.6.0

type OssBackupPlanOutput struct{ *pulumi.OutputState }

func (OssBackupPlanOutput) BackupType added in v3.27.0

func (o OssBackupPlanOutput) BackupType() pulumi.StringOutput

Backup type. Valid values: `COMPLETE`.

func (OssBackupPlanOutput) Bucket added in v3.27.0

The name of OSS bucket.

func (OssBackupPlanOutput) CrossAccountRoleName added in v3.29.0

func (o OssBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (OssBackupPlanOutput) CrossAccountType added in v3.29.0

func (o OssBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (OssBackupPlanOutput) CrossAccountUserId added in v3.29.0

func (o OssBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (OssBackupPlanOutput) Disabled added in v3.27.0

func (o OssBackupPlanOutput) Disabled() pulumi.BoolOutput

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

func (OssBackupPlanOutput) ElementType added in v3.6.0

func (OssBackupPlanOutput) ElementType() reflect.Type

func (OssBackupPlanOutput) OssBackupPlanName added in v3.27.0

func (o OssBackupPlanOutput) OssBackupPlanName() pulumi.StringOutput

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.

func (OssBackupPlanOutput) Prefix added in v3.27.0

Backup prefix. Once specified, only objects with matching prefixes will be backed up.

func (OssBackupPlanOutput) Retention added in v3.27.0

func (o OssBackupPlanOutput) Retention() pulumi.StringOutput

Backup retention days, the minimum is 1.

func (OssBackupPlanOutput) Schedule added in v3.27.0

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.

func (OssBackupPlanOutput) ToOssBackupPlanOutput added in v3.6.0

func (o OssBackupPlanOutput) ToOssBackupPlanOutput() OssBackupPlanOutput

func (OssBackupPlanOutput) ToOssBackupPlanOutputWithContext added in v3.6.0

func (o OssBackupPlanOutput) ToOssBackupPlanOutputWithContext(ctx context.Context) OssBackupPlanOutput

func (OssBackupPlanOutput) VaultId added in v3.27.0

The ID of backup vault.

type OssBackupPlanState added in v3.6.0

type OssBackupPlanState struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringPtrInput
	// The name of OSS bucket.
	Bucket pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// 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.
	OssBackupPlanName pulumi.StringPtrInput
	// Backup prefix. Once specified, only objects with matching prefixes will be backed up.
	Prefix pulumi.StringPtrInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringPtrInput
	// 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.
	Schedule pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput
}

func (OssBackupPlanState) ElementType added in v3.6.0

func (OssBackupPlanState) ElementType() reflect.Type

type OtsBackupPlan added in v3.20.0

type OtsBackupPlan struct {
	pulumi.CustomResourceState

	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringOutput `pulumi:"backupType"`
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// Whether to disable the backup task. Valid values: `true`, `false`. Default values: `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// The name of the Table store instance. **Note:** Required while sourceType equals `OTS_TABLE`.
	InstanceName pulumi.StringPtrOutput `pulumi:"instanceName"`
	// 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.
	OtsBackupPlanName pulumi.StringOutput `pulumi:"otsBackupPlanName"`
	// The details about the Table store instance. See the following `Block otsDetail`. **Note:** Required while sourceType equals `OTS_TABLE`.
	OtsDetails OtsBackupPlanOtsDetailArrayOutput `pulumi:"otsDetails"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringOutput `pulumi:"retention"`
	// The backup plan rule. See the following `Block rules`. **Note:** Required while sourceType equals `OTS_TABLE`.
	Rules OtsBackupPlanRuleArrayOutput `pulumi:"rules"`
	// 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.
	//
	// Deprecated: Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
	Schedule pulumi.StringPtrOutput `pulumi:"schedule"`
	// The ID of backup vault.
	VaultId pulumi.StringPtrOutput `pulumi:"vaultId"`
}

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](https://www.alibabacloud.com/help/en/hybrid-backup-recovery/latest/overview).

> **NOTE:** Available in v1.163.0+.

## Example Usage

Basic Usage

```go 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 {
		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		defaultVault, err := hbr.NewVault(ctx, "default", &hbr.VaultArgs{
			VaultName: pulumi.String(fmt.Sprintf("terraform-example-%v", defaultInteger.Result)),
			VaultType: pulumi.String("OTS_BACKUP"),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := ots.NewInstance(ctx, "default", &ots.InstanceArgs{
			Name:        pulumi.String(fmt.Sprintf("Example-%v", defaultInteger.Result)),
			Description: pulumi.String("terraform-example"),
			AccessedBy:  pulumi.String("Any"),
			Tags: pulumi.Map{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("example"),
			},
		})
		if err != nil {
			return err
		}
		defaultTable, err := ots.NewTable(ctx, "default", &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, "default", &ram.RoleArgs{
			Name: pulumi.String("hbrexamplerole"),
			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
		}
		_default, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = hbr.NewOtsBackupPlan(ctx, "example", &hbr.OtsBackupPlanArgs{
			OtsBackupPlanName:    pulumi.String(fmt.Sprintf("terraform-example-%v", defaultInteger.Result)),
			VaultId:              defaultVault.ID(),
			BackupType:           pulumi.String("COMPLETE"),
			Retention:            pulumi.String("1"),
			InstanceName:         defaultInstance.Name,
			CrossAccountType:     pulumi.String("SELF_ACCOUNT"),
			CrossAccountUserId:   pulumi.String(_default.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
	})
}

```

## Import

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

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

func GetOtsBackupPlan added in v3.20.0

func GetOtsBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OtsBackupPlanState, opts ...pulumi.ResourceOption) (*OtsBackupPlan, error)

GetOtsBackupPlan gets an existing OtsBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOtsBackupPlan added in v3.20.0

func NewOtsBackupPlan(ctx *pulumi.Context,
	name string, args *OtsBackupPlanArgs, opts ...pulumi.ResourceOption) (*OtsBackupPlan, error)

NewOtsBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*OtsBackupPlan) ElementType added in v3.20.0

func (*OtsBackupPlan) ElementType() reflect.Type

func (*OtsBackupPlan) ToOtsBackupPlanOutput added in v3.20.0

func (i *OtsBackupPlan) ToOtsBackupPlanOutput() OtsBackupPlanOutput

func (*OtsBackupPlan) ToOtsBackupPlanOutputWithContext added in v3.20.0

func (i *OtsBackupPlan) ToOtsBackupPlanOutputWithContext(ctx context.Context) OtsBackupPlanOutput

type OtsBackupPlanArgs added in v3.20.0

type OtsBackupPlanArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`. Default values: `false`.
	Disabled pulumi.BoolPtrInput
	// The name of the Table store instance. **Note:** Required while sourceType equals `OTS_TABLE`.
	InstanceName pulumi.StringPtrInput
	// 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.
	OtsBackupPlanName pulumi.StringInput
	// The details about the Table store instance. See the following `Block otsDetail`. **Note:** Required while sourceType equals `OTS_TABLE`.
	OtsDetails OtsBackupPlanOtsDetailArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringInput
	// The backup plan rule. See the following `Block rules`. **Note:** Required while sourceType equals `OTS_TABLE`.
	Rules OtsBackupPlanRuleArrayInput
	// 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.
	//
	// Deprecated: Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
	Schedule pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput
}

The set of arguments for constructing a OtsBackupPlan resource.

func (OtsBackupPlanArgs) ElementType added in v3.20.0

func (OtsBackupPlanArgs) ElementType() reflect.Type

type OtsBackupPlanArray added in v3.20.0

type OtsBackupPlanArray []OtsBackupPlanInput

func (OtsBackupPlanArray) ElementType added in v3.20.0

func (OtsBackupPlanArray) ElementType() reflect.Type

func (OtsBackupPlanArray) ToOtsBackupPlanArrayOutput added in v3.20.0

func (i OtsBackupPlanArray) ToOtsBackupPlanArrayOutput() OtsBackupPlanArrayOutput

func (OtsBackupPlanArray) ToOtsBackupPlanArrayOutputWithContext added in v3.20.0

func (i OtsBackupPlanArray) ToOtsBackupPlanArrayOutputWithContext(ctx context.Context) OtsBackupPlanArrayOutput

type OtsBackupPlanArrayInput added in v3.20.0

type OtsBackupPlanArrayInput interface {
	pulumi.Input

	ToOtsBackupPlanArrayOutput() OtsBackupPlanArrayOutput
	ToOtsBackupPlanArrayOutputWithContext(context.Context) OtsBackupPlanArrayOutput
}

OtsBackupPlanArrayInput is an input type that accepts OtsBackupPlanArray and OtsBackupPlanArrayOutput values. You can construct a concrete instance of `OtsBackupPlanArrayInput` via:

OtsBackupPlanArray{ OtsBackupPlanArgs{...} }

type OtsBackupPlanArrayOutput added in v3.20.0

type OtsBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanArrayOutput) ElementType added in v3.20.0

func (OtsBackupPlanArrayOutput) ElementType() reflect.Type

func (OtsBackupPlanArrayOutput) Index added in v3.20.0

func (OtsBackupPlanArrayOutput) ToOtsBackupPlanArrayOutput added in v3.20.0

func (o OtsBackupPlanArrayOutput) ToOtsBackupPlanArrayOutput() OtsBackupPlanArrayOutput

func (OtsBackupPlanArrayOutput) ToOtsBackupPlanArrayOutputWithContext added in v3.20.0

func (o OtsBackupPlanArrayOutput) ToOtsBackupPlanArrayOutputWithContext(ctx context.Context) OtsBackupPlanArrayOutput

type OtsBackupPlanInput added in v3.20.0

type OtsBackupPlanInput interface {
	pulumi.Input

	ToOtsBackupPlanOutput() OtsBackupPlanOutput
	ToOtsBackupPlanOutputWithContext(ctx context.Context) OtsBackupPlanOutput
}

type OtsBackupPlanMap added in v3.20.0

type OtsBackupPlanMap map[string]OtsBackupPlanInput

func (OtsBackupPlanMap) ElementType added in v3.20.0

func (OtsBackupPlanMap) ElementType() reflect.Type

func (OtsBackupPlanMap) ToOtsBackupPlanMapOutput added in v3.20.0

func (i OtsBackupPlanMap) ToOtsBackupPlanMapOutput() OtsBackupPlanMapOutput

func (OtsBackupPlanMap) ToOtsBackupPlanMapOutputWithContext added in v3.20.0

func (i OtsBackupPlanMap) ToOtsBackupPlanMapOutputWithContext(ctx context.Context) OtsBackupPlanMapOutput

type OtsBackupPlanMapInput added in v3.20.0

type OtsBackupPlanMapInput interface {
	pulumi.Input

	ToOtsBackupPlanMapOutput() OtsBackupPlanMapOutput
	ToOtsBackupPlanMapOutputWithContext(context.Context) OtsBackupPlanMapOutput
}

OtsBackupPlanMapInput is an input type that accepts OtsBackupPlanMap and OtsBackupPlanMapOutput values. You can construct a concrete instance of `OtsBackupPlanMapInput` via:

OtsBackupPlanMap{ "key": OtsBackupPlanArgs{...} }

type OtsBackupPlanMapOutput added in v3.20.0

type OtsBackupPlanMapOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanMapOutput) ElementType added in v3.20.0

func (OtsBackupPlanMapOutput) ElementType() reflect.Type

func (OtsBackupPlanMapOutput) MapIndex added in v3.20.0

func (OtsBackupPlanMapOutput) ToOtsBackupPlanMapOutput added in v3.20.0

func (o OtsBackupPlanMapOutput) ToOtsBackupPlanMapOutput() OtsBackupPlanMapOutput

func (OtsBackupPlanMapOutput) ToOtsBackupPlanMapOutputWithContext added in v3.20.0

func (o OtsBackupPlanMapOutput) ToOtsBackupPlanMapOutputWithContext(ctx context.Context) OtsBackupPlanMapOutput

type OtsBackupPlanOtsDetail added in v3.20.0

type OtsBackupPlanOtsDetail struct {
	TableNames []string `pulumi:"tableNames"`
}

type OtsBackupPlanOtsDetailArgs added in v3.20.0

type OtsBackupPlanOtsDetailArgs struct {
	TableNames pulumi.StringArrayInput `pulumi:"tableNames"`
}

func (OtsBackupPlanOtsDetailArgs) ElementType added in v3.20.0

func (OtsBackupPlanOtsDetailArgs) ElementType() reflect.Type

func (OtsBackupPlanOtsDetailArgs) ToOtsBackupPlanOtsDetailOutput added in v3.20.0

func (i OtsBackupPlanOtsDetailArgs) ToOtsBackupPlanOtsDetailOutput() OtsBackupPlanOtsDetailOutput

func (OtsBackupPlanOtsDetailArgs) ToOtsBackupPlanOtsDetailOutputWithContext added in v3.20.0

func (i OtsBackupPlanOtsDetailArgs) ToOtsBackupPlanOtsDetailOutputWithContext(ctx context.Context) OtsBackupPlanOtsDetailOutput

type OtsBackupPlanOtsDetailArray added in v3.20.0

type OtsBackupPlanOtsDetailArray []OtsBackupPlanOtsDetailInput

func (OtsBackupPlanOtsDetailArray) ElementType added in v3.20.0

func (OtsBackupPlanOtsDetailArray) ToOtsBackupPlanOtsDetailArrayOutput added in v3.20.0

func (i OtsBackupPlanOtsDetailArray) ToOtsBackupPlanOtsDetailArrayOutput() OtsBackupPlanOtsDetailArrayOutput

func (OtsBackupPlanOtsDetailArray) ToOtsBackupPlanOtsDetailArrayOutputWithContext added in v3.20.0

func (i OtsBackupPlanOtsDetailArray) ToOtsBackupPlanOtsDetailArrayOutputWithContext(ctx context.Context) OtsBackupPlanOtsDetailArrayOutput

type OtsBackupPlanOtsDetailArrayInput added in v3.20.0

type OtsBackupPlanOtsDetailArrayInput interface {
	pulumi.Input

	ToOtsBackupPlanOtsDetailArrayOutput() OtsBackupPlanOtsDetailArrayOutput
	ToOtsBackupPlanOtsDetailArrayOutputWithContext(context.Context) OtsBackupPlanOtsDetailArrayOutput
}

OtsBackupPlanOtsDetailArrayInput is an input type that accepts OtsBackupPlanOtsDetailArray and OtsBackupPlanOtsDetailArrayOutput values. You can construct a concrete instance of `OtsBackupPlanOtsDetailArrayInput` via:

OtsBackupPlanOtsDetailArray{ OtsBackupPlanOtsDetailArgs{...} }

type OtsBackupPlanOtsDetailArrayOutput added in v3.20.0

type OtsBackupPlanOtsDetailArrayOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanOtsDetailArrayOutput) ElementType added in v3.20.0

func (OtsBackupPlanOtsDetailArrayOutput) Index added in v3.20.0

func (OtsBackupPlanOtsDetailArrayOutput) ToOtsBackupPlanOtsDetailArrayOutput added in v3.20.0

func (o OtsBackupPlanOtsDetailArrayOutput) ToOtsBackupPlanOtsDetailArrayOutput() OtsBackupPlanOtsDetailArrayOutput

func (OtsBackupPlanOtsDetailArrayOutput) ToOtsBackupPlanOtsDetailArrayOutputWithContext added in v3.20.0

func (o OtsBackupPlanOtsDetailArrayOutput) ToOtsBackupPlanOtsDetailArrayOutputWithContext(ctx context.Context) OtsBackupPlanOtsDetailArrayOutput

type OtsBackupPlanOtsDetailInput added in v3.20.0

type OtsBackupPlanOtsDetailInput interface {
	pulumi.Input

	ToOtsBackupPlanOtsDetailOutput() OtsBackupPlanOtsDetailOutput
	ToOtsBackupPlanOtsDetailOutputWithContext(context.Context) OtsBackupPlanOtsDetailOutput
}

OtsBackupPlanOtsDetailInput is an input type that accepts OtsBackupPlanOtsDetailArgs and OtsBackupPlanOtsDetailOutput values. You can construct a concrete instance of `OtsBackupPlanOtsDetailInput` via:

OtsBackupPlanOtsDetailArgs{...}

type OtsBackupPlanOtsDetailOutput added in v3.20.0

type OtsBackupPlanOtsDetailOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanOtsDetailOutput) ElementType added in v3.20.0

func (OtsBackupPlanOtsDetailOutput) TableNames added in v3.20.0

func (OtsBackupPlanOtsDetailOutput) ToOtsBackupPlanOtsDetailOutput added in v3.20.0

func (o OtsBackupPlanOtsDetailOutput) ToOtsBackupPlanOtsDetailOutput() OtsBackupPlanOtsDetailOutput

func (OtsBackupPlanOtsDetailOutput) ToOtsBackupPlanOtsDetailOutputWithContext added in v3.20.0

func (o OtsBackupPlanOtsDetailOutput) ToOtsBackupPlanOtsDetailOutputWithContext(ctx context.Context) OtsBackupPlanOtsDetailOutput

type OtsBackupPlanOutput added in v3.20.0

type OtsBackupPlanOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanOutput) BackupType added in v3.27.0

func (o OtsBackupPlanOutput) BackupType() pulumi.StringOutput

Backup type. Valid values: `COMPLETE`.

func (OtsBackupPlanOutput) CrossAccountRoleName added in v3.29.0

func (o OtsBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (OtsBackupPlanOutput) CrossAccountType added in v3.29.0

func (o OtsBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (OtsBackupPlanOutput) CrossAccountUserId added in v3.29.0

func (o OtsBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (OtsBackupPlanOutput) Disabled added in v3.27.0

func (o OtsBackupPlanOutput) Disabled() pulumi.BoolOutput

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

func (OtsBackupPlanOutput) ElementType added in v3.20.0

func (OtsBackupPlanOutput) ElementType() reflect.Type

func (OtsBackupPlanOutput) InstanceName added in v3.27.0

func (o OtsBackupPlanOutput) InstanceName() pulumi.StringPtrOutput

The name of the Table store instance. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanOutput) OtsBackupPlanName added in v3.27.0

func (o OtsBackupPlanOutput) OtsBackupPlanName() pulumi.StringOutput

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.

func (OtsBackupPlanOutput) OtsDetails added in v3.27.0

The details about the Table store instance. See the following `Block otsDetail`. **Note:** Required while sourceType equals `OTS_TABLE`.

func (OtsBackupPlanOutput) Retention added in v3.27.0

func (o OtsBackupPlanOutput) Retention() pulumi.StringOutput

Backup retention days, the minimum is 1.

func (OtsBackupPlanOutput) Rules added in v3.27.0

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

func (OtsBackupPlanOutput) Schedule deprecated added in v3.27.0

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.

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

func (OtsBackupPlanOutput) ToOtsBackupPlanOutput added in v3.20.0

func (o OtsBackupPlanOutput) ToOtsBackupPlanOutput() OtsBackupPlanOutput

func (OtsBackupPlanOutput) ToOtsBackupPlanOutputWithContext added in v3.20.0

func (o OtsBackupPlanOutput) ToOtsBackupPlanOutputWithContext(ctx context.Context) OtsBackupPlanOutput

func (OtsBackupPlanOutput) VaultId added in v3.27.0

The ID of backup vault.

type OtsBackupPlanRule added in v3.20.0

type OtsBackupPlanRule struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType *string `pulumi:"backupType"`
	// Whether to disable the backup task. Valid values: `true`, `false`. Default values: `false`.
	Disabled *bool `pulumi:"disabled"`
	// Backup retention days, the minimum is 1.
	Retention *string `pulumi:"retention"`
	RuleName  *string `pulumi:"ruleName"`
	// 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.
	Schedule *string `pulumi:"schedule"`
}

type OtsBackupPlanRuleArgs added in v3.20.0

type OtsBackupPlanRuleArgs struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringPtrInput `pulumi:"backupType"`
	// Whether to disable the backup task. Valid values: `true`, `false`. Default values: `false`.
	Disabled pulumi.BoolPtrInput `pulumi:"disabled"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringPtrInput `pulumi:"retention"`
	RuleName  pulumi.StringPtrInput `pulumi:"ruleName"`
	// 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.
	Schedule pulumi.StringPtrInput `pulumi:"schedule"`
}

func (OtsBackupPlanRuleArgs) ElementType added in v3.20.0

func (OtsBackupPlanRuleArgs) ElementType() reflect.Type

func (OtsBackupPlanRuleArgs) ToOtsBackupPlanRuleOutput added in v3.20.0

func (i OtsBackupPlanRuleArgs) ToOtsBackupPlanRuleOutput() OtsBackupPlanRuleOutput

func (OtsBackupPlanRuleArgs) ToOtsBackupPlanRuleOutputWithContext added in v3.20.0

func (i OtsBackupPlanRuleArgs) ToOtsBackupPlanRuleOutputWithContext(ctx context.Context) OtsBackupPlanRuleOutput

type OtsBackupPlanRuleArray added in v3.20.0

type OtsBackupPlanRuleArray []OtsBackupPlanRuleInput

func (OtsBackupPlanRuleArray) ElementType added in v3.20.0

func (OtsBackupPlanRuleArray) ElementType() reflect.Type

func (OtsBackupPlanRuleArray) ToOtsBackupPlanRuleArrayOutput added in v3.20.0

func (i OtsBackupPlanRuleArray) ToOtsBackupPlanRuleArrayOutput() OtsBackupPlanRuleArrayOutput

func (OtsBackupPlanRuleArray) ToOtsBackupPlanRuleArrayOutputWithContext added in v3.20.0

func (i OtsBackupPlanRuleArray) ToOtsBackupPlanRuleArrayOutputWithContext(ctx context.Context) OtsBackupPlanRuleArrayOutput

type OtsBackupPlanRuleArrayInput added in v3.20.0

type OtsBackupPlanRuleArrayInput interface {
	pulumi.Input

	ToOtsBackupPlanRuleArrayOutput() OtsBackupPlanRuleArrayOutput
	ToOtsBackupPlanRuleArrayOutputWithContext(context.Context) OtsBackupPlanRuleArrayOutput
}

OtsBackupPlanRuleArrayInput is an input type that accepts OtsBackupPlanRuleArray and OtsBackupPlanRuleArrayOutput values. You can construct a concrete instance of `OtsBackupPlanRuleArrayInput` via:

OtsBackupPlanRuleArray{ OtsBackupPlanRuleArgs{...} }

type OtsBackupPlanRuleArrayOutput added in v3.20.0

type OtsBackupPlanRuleArrayOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanRuleArrayOutput) ElementType added in v3.20.0

func (OtsBackupPlanRuleArrayOutput) Index added in v3.20.0

func (OtsBackupPlanRuleArrayOutput) ToOtsBackupPlanRuleArrayOutput added in v3.20.0

func (o OtsBackupPlanRuleArrayOutput) ToOtsBackupPlanRuleArrayOutput() OtsBackupPlanRuleArrayOutput

func (OtsBackupPlanRuleArrayOutput) ToOtsBackupPlanRuleArrayOutputWithContext added in v3.20.0

func (o OtsBackupPlanRuleArrayOutput) ToOtsBackupPlanRuleArrayOutputWithContext(ctx context.Context) OtsBackupPlanRuleArrayOutput

type OtsBackupPlanRuleInput added in v3.20.0

type OtsBackupPlanRuleInput interface {
	pulumi.Input

	ToOtsBackupPlanRuleOutput() OtsBackupPlanRuleOutput
	ToOtsBackupPlanRuleOutputWithContext(context.Context) OtsBackupPlanRuleOutput
}

OtsBackupPlanRuleInput is an input type that accepts OtsBackupPlanRuleArgs and OtsBackupPlanRuleOutput values. You can construct a concrete instance of `OtsBackupPlanRuleInput` via:

OtsBackupPlanRuleArgs{...}

type OtsBackupPlanRuleOutput added in v3.20.0

type OtsBackupPlanRuleOutput struct{ *pulumi.OutputState }

func (OtsBackupPlanRuleOutput) BackupType added in v3.20.0

Backup type. Valid values: `COMPLETE`.

func (OtsBackupPlanRuleOutput) Disabled added in v3.20.0

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

func (OtsBackupPlanRuleOutput) ElementType added in v3.20.0

func (OtsBackupPlanRuleOutput) ElementType() reflect.Type

func (OtsBackupPlanRuleOutput) Retention added in v3.20.0

Backup retention days, the minimum is 1.

func (OtsBackupPlanRuleOutput) RuleName added in v3.20.0

func (OtsBackupPlanRuleOutput) Schedule added in v3.20.0

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.

func (OtsBackupPlanRuleOutput) ToOtsBackupPlanRuleOutput added in v3.20.0

func (o OtsBackupPlanRuleOutput) ToOtsBackupPlanRuleOutput() OtsBackupPlanRuleOutput

func (OtsBackupPlanRuleOutput) ToOtsBackupPlanRuleOutputWithContext added in v3.20.0

func (o OtsBackupPlanRuleOutput) ToOtsBackupPlanRuleOutputWithContext(ctx context.Context) OtsBackupPlanRuleOutput

type OtsBackupPlanState added in v3.20.0

type OtsBackupPlanState struct {
	// Backup type. Valid values: `COMPLETE`.
	BackupType pulumi.StringPtrInput
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// Whether to disable the backup task. Valid values: `true`, `false`. Default values: `false`.
	Disabled pulumi.BoolPtrInput
	// The name of the Table store instance. **Note:** Required while sourceType equals `OTS_TABLE`.
	InstanceName pulumi.StringPtrInput
	// 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.
	OtsBackupPlanName pulumi.StringPtrInput
	// The details about the Table store instance. See the following `Block otsDetail`. **Note:** Required while sourceType equals `OTS_TABLE`.
	OtsDetails OtsBackupPlanOtsDetailArrayInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.StringPtrInput
	// The backup plan rule. See the following `Block rules`. **Note:** Required while sourceType equals `OTS_TABLE`.
	Rules OtsBackupPlanRuleArrayInput
	// 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.
	//
	// Deprecated: Field 'schedule' has been deprecated from version 1.163.0. Use 'rules' instead.
	Schedule pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput
}

func (OtsBackupPlanState) ElementType added in v3.20.0

func (OtsBackupPlanState) ElementType() reflect.Type

type Policy added in v3.53.0

type Policy struct {
	pulumi.CustomResourceState

	// Policy creation time.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The policy description.
	PolicyDescription pulumi.StringPtrOutput `pulumi:"policyDescription"`
	// Policy Name.
	PolicyName pulumi.StringPtrOutput `pulumi:"policyName"`
	// A list of policy rules. See `rules` below.
	Rules PolicyRuleArrayOutput `pulumi:"rules"`
}

Provides a HBR Policy resource.

For information about HBR Policy and how to use it, see [What is Policy](https://www.alibabacloud.com/help/en/cloud-backup/developer-reference/api-hbr-2017-09-08-createpolicyv2).

> **NOTE:** Available since v1.221.0.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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 := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		defaultyk84Hc, err := hbr.NewVault(ctx, "defaultyk84Hc", &hbr.VaultArgs{
			VaultType: pulumi.String("STANDARD"),
			VaultName: pulumi.String(fmt.Sprintf("example-value-%v", _default.Result)),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewPolicy(ctx, "defaultoqWvHQ", &hbr.PolicyArgs{
			PolicyName: pulumi.String(fmt.Sprintf("example-value-%v", _default.Result)),
			Rules: hbr.PolicyRuleArray{
				&hbr.PolicyRuleArgs{
					RuleType:    pulumi.String("BACKUP"),
					BackupType:  pulumi.String("COMPLETE"),
					Schedule:    pulumi.String("I|1631685600|P1D"),
					Retention:   pulumi.Int(7),
					ArchiveDays: pulumi.Int(0),
					VaultId:     defaultyk84Hc.ID(),
				},
			},
			PolicyDescription: pulumi.String("policy example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

HBR Policy can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/policy:Policy example <id> ```

func GetPolicy added in v3.53.0

func GetPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyState, opts ...pulumi.ResourceOption) (*Policy, error)

GetPolicy gets an existing Policy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPolicy added in v3.53.0

func NewPolicy(ctx *pulumi.Context,
	name string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error)

NewPolicy registers a new resource with the given unique name, arguments, and options.

func (*Policy) ElementType added in v3.53.0

func (*Policy) ElementType() reflect.Type

func (*Policy) ToPolicyOutput added in v3.53.0

func (i *Policy) ToPolicyOutput() PolicyOutput

func (*Policy) ToPolicyOutputWithContext added in v3.53.0

func (i *Policy) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput

type PolicyArgs added in v3.53.0

type PolicyArgs struct {
	// The policy description.
	PolicyDescription pulumi.StringPtrInput
	// Policy Name.
	PolicyName pulumi.StringPtrInput
	// A list of policy rules. See `rules` below.
	Rules PolicyRuleArrayInput
}

The set of arguments for constructing a Policy resource.

func (PolicyArgs) ElementType added in v3.53.0

func (PolicyArgs) ElementType() reflect.Type

type PolicyArray added in v3.53.0

type PolicyArray []PolicyInput

func (PolicyArray) ElementType added in v3.53.0

func (PolicyArray) ElementType() reflect.Type

func (PolicyArray) ToPolicyArrayOutput added in v3.53.0

func (i PolicyArray) ToPolicyArrayOutput() PolicyArrayOutput

func (PolicyArray) ToPolicyArrayOutputWithContext added in v3.53.0

func (i PolicyArray) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput

type PolicyArrayInput added in v3.53.0

type PolicyArrayInput interface {
	pulumi.Input

	ToPolicyArrayOutput() PolicyArrayOutput
	ToPolicyArrayOutputWithContext(context.Context) PolicyArrayOutput
}

PolicyArrayInput is an input type that accepts PolicyArray and PolicyArrayOutput values. You can construct a concrete instance of `PolicyArrayInput` via:

PolicyArray{ PolicyArgs{...} }

type PolicyArrayOutput added in v3.53.0

type PolicyArrayOutput struct{ *pulumi.OutputState }

func (PolicyArrayOutput) ElementType added in v3.53.0

func (PolicyArrayOutput) ElementType() reflect.Type

func (PolicyArrayOutput) Index added in v3.53.0

func (PolicyArrayOutput) ToPolicyArrayOutput added in v3.53.0

func (o PolicyArrayOutput) ToPolicyArrayOutput() PolicyArrayOutput

func (PolicyArrayOutput) ToPolicyArrayOutputWithContext added in v3.53.0

func (o PolicyArrayOutput) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput

type PolicyBinding added in v3.53.0

type PolicyBinding struct {
	pulumi.CustomResourceState

	// Backup Advanced Options. See `advancedOptions` below.
	AdvancedOptions PolicyBindingAdvancedOptionsOutput `pulumi:"advancedOptions"`
	// The creation time of the resource.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The data source ID.
	DataSourceId pulumi.StringOutput `pulumi:"dataSourceId"`
	// Whether the policy is effective for the data source.
	// - true: Pause
	// - false: not paused.
	Disabled pulumi.BoolPtrOutput `pulumi:"disabled"`
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates a file type that does not need to be backed up. All files of this type are not backed up. A maximum of 255 characters is supported.
	Exclude pulumi.StringPtrOutput `pulumi:"exclude"`
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates the file types to be backed up, and all files of these types are backed up. A maximum of 255 characters is supported.
	Include pulumi.StringPtrOutput `pulumi:"include"`
	// Resource Description.
	PolicyBindingDescription pulumi.StringPtrOutput `pulumi:"policyBindingDescription"`
	// The policy ID.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// When SourceType is OSS, a prefix is specified to be backed up. If it is not specified, the entire root directory of the Bucket is backed up.
	Source pulumi.StringPtrOutput `pulumi:"source"`
	// Data source type, value range:
	// - **UDM_ECS**: indicates the ECS instance backup.
	// - **OSS**: indicates an OSS backup.
	// - **NAS**: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
	// - **ECS_FILE**: indicates that the ECS file is backed up.
	// - **File**: indicates a local File backup.
	SourceType pulumi.StringOutput `pulumi:"sourceType"`
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates backup flow control. The format is {start}{end}{bandwidth}. Multiple flow control configurations use partitioning, and no overlap in configuration time is allowed. start: start hour. end: end of hour. bandwidth: limit rate, in KB/s.
	SpeedLimit pulumi.StringPtrOutput `pulumi:"speedLimit"`
}

Provides a HBR Policy Binding resource. A policy binding relationship consists of a data source, a policy, and binding options.

For information about HBR Policy Binding and how to use it, see [What is Policy Binding](https://www.alibabacloud.com/help/en/cloud-backup/developer-reference/api-hbr-2017-09-08-createpolicybindings).

> **NOTE:** Available since v1.221.0.

## Example Usage

Basic Usage

```go 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"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		defaultyk84Hc, err := hbr.NewVault(ctx, "defaultyk84Hc", &hbr.VaultArgs{
			VaultType: pulumi.String("STANDARD"),
			VaultName: pulumi.String(fmt.Sprintf("example-value-%v", _default.Result)),
		})
		if err != nil {
			return err
		}
		defaultoqWvHQ, err := hbr.NewPolicy(ctx, "defaultoqWvHQ", &hbr.PolicyArgs{
			PolicyName: pulumi.String(fmt.Sprintf("example-value-%v", _default.Result)),
			Rules: hbr.PolicyRuleArray{
				&hbr.PolicyRuleArgs{
					RuleType:    pulumi.String("BACKUP"),
					BackupType:  pulumi.String("COMPLETE"),
					Schedule:    pulumi.String("I|1631685600|P1D"),
					Retention:   pulumi.Int(7),
					ArchiveDays: pulumi.Int(0),
					VaultId:     defaultyk84Hc.ID(),
				},
			},
			PolicyDescription: pulumi.String("policy example"),
		})
		if err != nil {
			return err
		}
		defaultKtt2XY, err := oss.NewBucket(ctx, "defaultKtt2XY", &oss.BucketArgs{
			StorageClass: pulumi.String("Standard"),
			Bucket:       pulumi.String(fmt.Sprintf("example-value-%v", _default.Result)),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewPolicyBinding(ctx, "default", &hbr.PolicyBindingArgs{
			SourceType:               pulumi.String("OSS"),
			Disabled:                 pulumi.Bool(false),
			PolicyId:                 defaultoqWvHQ.ID(),
			DataSourceId:             defaultKtt2XY.Bucket,
			PolicyBindingDescription: pulumi.String("policy binding example (update)"),
			Source:                   pulumi.String("prefix-example-update/"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

HBR Policy Binding can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/policyBinding:PolicyBinding example <policy_id>:<source_type>:<data_source_id> ```

func GetPolicyBinding added in v3.53.0

func GetPolicyBinding(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyBindingState, opts ...pulumi.ResourceOption) (*PolicyBinding, error)

GetPolicyBinding gets an existing PolicyBinding resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPolicyBinding added in v3.53.0

func NewPolicyBinding(ctx *pulumi.Context,
	name string, args *PolicyBindingArgs, opts ...pulumi.ResourceOption) (*PolicyBinding, error)

NewPolicyBinding registers a new resource with the given unique name, arguments, and options.

func (*PolicyBinding) ElementType added in v3.53.0

func (*PolicyBinding) ElementType() reflect.Type

func (*PolicyBinding) ToPolicyBindingOutput added in v3.53.0

func (i *PolicyBinding) ToPolicyBindingOutput() PolicyBindingOutput

func (*PolicyBinding) ToPolicyBindingOutputWithContext added in v3.53.0

func (i *PolicyBinding) ToPolicyBindingOutputWithContext(ctx context.Context) PolicyBindingOutput

type PolicyBindingAdvancedOptions added in v3.53.0

type PolicyBindingAdvancedOptions struct {
	// ECS Backup Advanced options. See `udmDetail` below.
	UdmDetail *PolicyBindingAdvancedOptionsUdmDetail `pulumi:"udmDetail"`
}

type PolicyBindingAdvancedOptionsArgs added in v3.53.0

type PolicyBindingAdvancedOptionsArgs struct {
	// ECS Backup Advanced options. See `udmDetail` below.
	UdmDetail PolicyBindingAdvancedOptionsUdmDetailPtrInput `pulumi:"udmDetail"`
}

func (PolicyBindingAdvancedOptionsArgs) ElementType added in v3.53.0

func (PolicyBindingAdvancedOptionsArgs) ToPolicyBindingAdvancedOptionsOutput added in v3.53.0

func (i PolicyBindingAdvancedOptionsArgs) ToPolicyBindingAdvancedOptionsOutput() PolicyBindingAdvancedOptionsOutput

func (PolicyBindingAdvancedOptionsArgs) ToPolicyBindingAdvancedOptionsOutputWithContext added in v3.53.0

func (i PolicyBindingAdvancedOptionsArgs) ToPolicyBindingAdvancedOptionsOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsOutput

func (PolicyBindingAdvancedOptionsArgs) ToPolicyBindingAdvancedOptionsPtrOutput added in v3.53.0

func (i PolicyBindingAdvancedOptionsArgs) ToPolicyBindingAdvancedOptionsPtrOutput() PolicyBindingAdvancedOptionsPtrOutput

func (PolicyBindingAdvancedOptionsArgs) ToPolicyBindingAdvancedOptionsPtrOutputWithContext added in v3.53.0

func (i PolicyBindingAdvancedOptionsArgs) ToPolicyBindingAdvancedOptionsPtrOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsPtrOutput

type PolicyBindingAdvancedOptionsInput added in v3.53.0

type PolicyBindingAdvancedOptionsInput interface {
	pulumi.Input

	ToPolicyBindingAdvancedOptionsOutput() PolicyBindingAdvancedOptionsOutput
	ToPolicyBindingAdvancedOptionsOutputWithContext(context.Context) PolicyBindingAdvancedOptionsOutput
}

PolicyBindingAdvancedOptionsInput is an input type that accepts PolicyBindingAdvancedOptionsArgs and PolicyBindingAdvancedOptionsOutput values. You can construct a concrete instance of `PolicyBindingAdvancedOptionsInput` via:

PolicyBindingAdvancedOptionsArgs{...}

type PolicyBindingAdvancedOptionsOutput added in v3.53.0

type PolicyBindingAdvancedOptionsOutput struct{ *pulumi.OutputState }

func (PolicyBindingAdvancedOptionsOutput) ElementType added in v3.53.0

func (PolicyBindingAdvancedOptionsOutput) ToPolicyBindingAdvancedOptionsOutput added in v3.53.0

func (o PolicyBindingAdvancedOptionsOutput) ToPolicyBindingAdvancedOptionsOutput() PolicyBindingAdvancedOptionsOutput

func (PolicyBindingAdvancedOptionsOutput) ToPolicyBindingAdvancedOptionsOutputWithContext added in v3.53.0

func (o PolicyBindingAdvancedOptionsOutput) ToPolicyBindingAdvancedOptionsOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsOutput

func (PolicyBindingAdvancedOptionsOutput) ToPolicyBindingAdvancedOptionsPtrOutput added in v3.53.0

func (o PolicyBindingAdvancedOptionsOutput) ToPolicyBindingAdvancedOptionsPtrOutput() PolicyBindingAdvancedOptionsPtrOutput

func (PolicyBindingAdvancedOptionsOutput) ToPolicyBindingAdvancedOptionsPtrOutputWithContext added in v3.53.0

func (o PolicyBindingAdvancedOptionsOutput) ToPolicyBindingAdvancedOptionsPtrOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsPtrOutput

func (PolicyBindingAdvancedOptionsOutput) UdmDetail added in v3.53.0

ECS Backup Advanced options. See `udmDetail` below.

type PolicyBindingAdvancedOptionsPtrInput added in v3.53.0

type PolicyBindingAdvancedOptionsPtrInput interface {
	pulumi.Input

	ToPolicyBindingAdvancedOptionsPtrOutput() PolicyBindingAdvancedOptionsPtrOutput
	ToPolicyBindingAdvancedOptionsPtrOutputWithContext(context.Context) PolicyBindingAdvancedOptionsPtrOutput
}

PolicyBindingAdvancedOptionsPtrInput is an input type that accepts PolicyBindingAdvancedOptionsArgs, PolicyBindingAdvancedOptionsPtr and PolicyBindingAdvancedOptionsPtrOutput values. You can construct a concrete instance of `PolicyBindingAdvancedOptionsPtrInput` via:

        PolicyBindingAdvancedOptionsArgs{...}

or:

        nil

func PolicyBindingAdvancedOptionsPtr added in v3.53.0

type PolicyBindingAdvancedOptionsPtrOutput added in v3.53.0

type PolicyBindingAdvancedOptionsPtrOutput struct{ *pulumi.OutputState }

func (PolicyBindingAdvancedOptionsPtrOutput) Elem added in v3.53.0

func (PolicyBindingAdvancedOptionsPtrOutput) ElementType added in v3.53.0

func (PolicyBindingAdvancedOptionsPtrOutput) ToPolicyBindingAdvancedOptionsPtrOutput added in v3.53.0

func (o PolicyBindingAdvancedOptionsPtrOutput) ToPolicyBindingAdvancedOptionsPtrOutput() PolicyBindingAdvancedOptionsPtrOutput

func (PolicyBindingAdvancedOptionsPtrOutput) ToPolicyBindingAdvancedOptionsPtrOutputWithContext added in v3.53.0

func (o PolicyBindingAdvancedOptionsPtrOutput) ToPolicyBindingAdvancedOptionsPtrOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsPtrOutput

func (PolicyBindingAdvancedOptionsPtrOutput) UdmDetail added in v3.53.0

ECS Backup Advanced options. See `udmDetail` below.

type PolicyBindingAdvancedOptionsUdmDetail added in v3.53.0

type PolicyBindingAdvancedOptionsUdmDetail struct {
	DestinationKmsKeyId *string  `pulumi:"destinationKmsKeyId"`
	DiskIdLists         []string `pulumi:"diskIdLists"`
	ExcludeDiskIdLists  []string `pulumi:"excludeDiskIdLists"`
}

type PolicyBindingAdvancedOptionsUdmDetailArgs added in v3.53.0

type PolicyBindingAdvancedOptionsUdmDetailArgs struct {
	DestinationKmsKeyId pulumi.StringPtrInput   `pulumi:"destinationKmsKeyId"`
	DiskIdLists         pulumi.StringArrayInput `pulumi:"diskIdLists"`
	ExcludeDiskIdLists  pulumi.StringArrayInput `pulumi:"excludeDiskIdLists"`
}

func (PolicyBindingAdvancedOptionsUdmDetailArgs) ElementType added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailArgs) ToPolicyBindingAdvancedOptionsUdmDetailOutput added in v3.53.0

func (i PolicyBindingAdvancedOptionsUdmDetailArgs) ToPolicyBindingAdvancedOptionsUdmDetailOutput() PolicyBindingAdvancedOptionsUdmDetailOutput

func (PolicyBindingAdvancedOptionsUdmDetailArgs) ToPolicyBindingAdvancedOptionsUdmDetailOutputWithContext added in v3.53.0

func (i PolicyBindingAdvancedOptionsUdmDetailArgs) ToPolicyBindingAdvancedOptionsUdmDetailOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsUdmDetailOutput

func (PolicyBindingAdvancedOptionsUdmDetailArgs) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutput added in v3.53.0

func (i PolicyBindingAdvancedOptionsUdmDetailArgs) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutput() PolicyBindingAdvancedOptionsUdmDetailPtrOutput

func (PolicyBindingAdvancedOptionsUdmDetailArgs) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutputWithContext added in v3.53.0

func (i PolicyBindingAdvancedOptionsUdmDetailArgs) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsUdmDetailPtrOutput

type PolicyBindingAdvancedOptionsUdmDetailInput added in v3.53.0

type PolicyBindingAdvancedOptionsUdmDetailInput interface {
	pulumi.Input

	ToPolicyBindingAdvancedOptionsUdmDetailOutput() PolicyBindingAdvancedOptionsUdmDetailOutput
	ToPolicyBindingAdvancedOptionsUdmDetailOutputWithContext(context.Context) PolicyBindingAdvancedOptionsUdmDetailOutput
}

PolicyBindingAdvancedOptionsUdmDetailInput is an input type that accepts PolicyBindingAdvancedOptionsUdmDetailArgs and PolicyBindingAdvancedOptionsUdmDetailOutput values. You can construct a concrete instance of `PolicyBindingAdvancedOptionsUdmDetailInput` via:

PolicyBindingAdvancedOptionsUdmDetailArgs{...}

type PolicyBindingAdvancedOptionsUdmDetailOutput added in v3.53.0

type PolicyBindingAdvancedOptionsUdmDetailOutput struct{ *pulumi.OutputState }

func (PolicyBindingAdvancedOptionsUdmDetailOutput) DestinationKmsKeyId added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailOutput) DiskIdLists added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailOutput) ElementType added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailOutput) ExcludeDiskIdLists added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailOutput) ToPolicyBindingAdvancedOptionsUdmDetailOutput added in v3.53.0

func (o PolicyBindingAdvancedOptionsUdmDetailOutput) ToPolicyBindingAdvancedOptionsUdmDetailOutput() PolicyBindingAdvancedOptionsUdmDetailOutput

func (PolicyBindingAdvancedOptionsUdmDetailOutput) ToPolicyBindingAdvancedOptionsUdmDetailOutputWithContext added in v3.53.0

func (o PolicyBindingAdvancedOptionsUdmDetailOutput) ToPolicyBindingAdvancedOptionsUdmDetailOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsUdmDetailOutput

func (PolicyBindingAdvancedOptionsUdmDetailOutput) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutput added in v3.53.0

func (o PolicyBindingAdvancedOptionsUdmDetailOutput) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutput() PolicyBindingAdvancedOptionsUdmDetailPtrOutput

func (PolicyBindingAdvancedOptionsUdmDetailOutput) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutputWithContext added in v3.53.0

func (o PolicyBindingAdvancedOptionsUdmDetailOutput) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsUdmDetailPtrOutput

type PolicyBindingAdvancedOptionsUdmDetailPtrInput added in v3.53.0

type PolicyBindingAdvancedOptionsUdmDetailPtrInput interface {
	pulumi.Input

	ToPolicyBindingAdvancedOptionsUdmDetailPtrOutput() PolicyBindingAdvancedOptionsUdmDetailPtrOutput
	ToPolicyBindingAdvancedOptionsUdmDetailPtrOutputWithContext(context.Context) PolicyBindingAdvancedOptionsUdmDetailPtrOutput
}

PolicyBindingAdvancedOptionsUdmDetailPtrInput is an input type that accepts PolicyBindingAdvancedOptionsUdmDetailArgs, PolicyBindingAdvancedOptionsUdmDetailPtr and PolicyBindingAdvancedOptionsUdmDetailPtrOutput values. You can construct a concrete instance of `PolicyBindingAdvancedOptionsUdmDetailPtrInput` via:

        PolicyBindingAdvancedOptionsUdmDetailArgs{...}

or:

        nil

type PolicyBindingAdvancedOptionsUdmDetailPtrOutput added in v3.53.0

type PolicyBindingAdvancedOptionsUdmDetailPtrOutput struct{ *pulumi.OutputState }

func (PolicyBindingAdvancedOptionsUdmDetailPtrOutput) DestinationKmsKeyId added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailPtrOutput) DiskIdLists added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailPtrOutput) Elem added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailPtrOutput) ElementType added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailPtrOutput) ExcludeDiskIdLists added in v3.53.0

func (PolicyBindingAdvancedOptionsUdmDetailPtrOutput) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutput added in v3.53.0

func (o PolicyBindingAdvancedOptionsUdmDetailPtrOutput) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutput() PolicyBindingAdvancedOptionsUdmDetailPtrOutput

func (PolicyBindingAdvancedOptionsUdmDetailPtrOutput) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutputWithContext added in v3.53.0

func (o PolicyBindingAdvancedOptionsUdmDetailPtrOutput) ToPolicyBindingAdvancedOptionsUdmDetailPtrOutputWithContext(ctx context.Context) PolicyBindingAdvancedOptionsUdmDetailPtrOutput

type PolicyBindingArgs added in v3.53.0

type PolicyBindingArgs struct {
	// Backup Advanced Options. See `advancedOptions` below.
	AdvancedOptions PolicyBindingAdvancedOptionsPtrInput
	// The data source ID.
	DataSourceId pulumi.StringPtrInput
	// Whether the policy is effective for the data source.
	// - true: Pause
	// - false: not paused.
	Disabled pulumi.BoolPtrInput
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates a file type that does not need to be backed up. All files of this type are not backed up. A maximum of 255 characters is supported.
	Exclude pulumi.StringPtrInput
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates the file types to be backed up, and all files of these types are backed up. A maximum of 255 characters is supported.
	Include pulumi.StringPtrInput
	// Resource Description.
	PolicyBindingDescription pulumi.StringPtrInput
	// The policy ID.
	PolicyId pulumi.StringPtrInput
	// When SourceType is OSS, a prefix is specified to be backed up. If it is not specified, the entire root directory of the Bucket is backed up.
	Source pulumi.StringPtrInput
	// Data source type, value range:
	// - **UDM_ECS**: indicates the ECS instance backup.
	// - **OSS**: indicates an OSS backup.
	// - **NAS**: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
	// - **ECS_FILE**: indicates that the ECS file is backed up.
	// - **File**: indicates a local File backup.
	SourceType pulumi.StringPtrInput
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates backup flow control. The format is {start}{end}{bandwidth}. Multiple flow control configurations use partitioning, and no overlap in configuration time is allowed. start: start hour. end: end of hour. bandwidth: limit rate, in KB/s.
	SpeedLimit pulumi.StringPtrInput
}

The set of arguments for constructing a PolicyBinding resource.

func (PolicyBindingArgs) ElementType added in v3.53.0

func (PolicyBindingArgs) ElementType() reflect.Type

type PolicyBindingArray added in v3.53.0

type PolicyBindingArray []PolicyBindingInput

func (PolicyBindingArray) ElementType added in v3.53.0

func (PolicyBindingArray) ElementType() reflect.Type

func (PolicyBindingArray) ToPolicyBindingArrayOutput added in v3.53.0

func (i PolicyBindingArray) ToPolicyBindingArrayOutput() PolicyBindingArrayOutput

func (PolicyBindingArray) ToPolicyBindingArrayOutputWithContext added in v3.53.0

func (i PolicyBindingArray) ToPolicyBindingArrayOutputWithContext(ctx context.Context) PolicyBindingArrayOutput

type PolicyBindingArrayInput added in v3.53.0

type PolicyBindingArrayInput interface {
	pulumi.Input

	ToPolicyBindingArrayOutput() PolicyBindingArrayOutput
	ToPolicyBindingArrayOutputWithContext(context.Context) PolicyBindingArrayOutput
}

PolicyBindingArrayInput is an input type that accepts PolicyBindingArray and PolicyBindingArrayOutput values. You can construct a concrete instance of `PolicyBindingArrayInput` via:

PolicyBindingArray{ PolicyBindingArgs{...} }

type PolicyBindingArrayOutput added in v3.53.0

type PolicyBindingArrayOutput struct{ *pulumi.OutputState }

func (PolicyBindingArrayOutput) ElementType added in v3.53.0

func (PolicyBindingArrayOutput) ElementType() reflect.Type

func (PolicyBindingArrayOutput) Index added in v3.53.0

func (PolicyBindingArrayOutput) ToPolicyBindingArrayOutput added in v3.53.0

func (o PolicyBindingArrayOutput) ToPolicyBindingArrayOutput() PolicyBindingArrayOutput

func (PolicyBindingArrayOutput) ToPolicyBindingArrayOutputWithContext added in v3.53.0

func (o PolicyBindingArrayOutput) ToPolicyBindingArrayOutputWithContext(ctx context.Context) PolicyBindingArrayOutput

type PolicyBindingInput added in v3.53.0

type PolicyBindingInput interface {
	pulumi.Input

	ToPolicyBindingOutput() PolicyBindingOutput
	ToPolicyBindingOutputWithContext(ctx context.Context) PolicyBindingOutput
}

type PolicyBindingMap added in v3.53.0

type PolicyBindingMap map[string]PolicyBindingInput

func (PolicyBindingMap) ElementType added in v3.53.0

func (PolicyBindingMap) ElementType() reflect.Type

func (PolicyBindingMap) ToPolicyBindingMapOutput added in v3.53.0

func (i PolicyBindingMap) ToPolicyBindingMapOutput() PolicyBindingMapOutput

func (PolicyBindingMap) ToPolicyBindingMapOutputWithContext added in v3.53.0

func (i PolicyBindingMap) ToPolicyBindingMapOutputWithContext(ctx context.Context) PolicyBindingMapOutput

type PolicyBindingMapInput added in v3.53.0

type PolicyBindingMapInput interface {
	pulumi.Input

	ToPolicyBindingMapOutput() PolicyBindingMapOutput
	ToPolicyBindingMapOutputWithContext(context.Context) PolicyBindingMapOutput
}

PolicyBindingMapInput is an input type that accepts PolicyBindingMap and PolicyBindingMapOutput values. You can construct a concrete instance of `PolicyBindingMapInput` via:

PolicyBindingMap{ "key": PolicyBindingArgs{...} }

type PolicyBindingMapOutput added in v3.53.0

type PolicyBindingMapOutput struct{ *pulumi.OutputState }

func (PolicyBindingMapOutput) ElementType added in v3.53.0

func (PolicyBindingMapOutput) ElementType() reflect.Type

func (PolicyBindingMapOutput) MapIndex added in v3.53.0

func (PolicyBindingMapOutput) ToPolicyBindingMapOutput added in v3.53.0

func (o PolicyBindingMapOutput) ToPolicyBindingMapOutput() PolicyBindingMapOutput

func (PolicyBindingMapOutput) ToPolicyBindingMapOutputWithContext added in v3.53.0

func (o PolicyBindingMapOutput) ToPolicyBindingMapOutputWithContext(ctx context.Context) PolicyBindingMapOutput

type PolicyBindingOutput added in v3.53.0

type PolicyBindingOutput struct{ *pulumi.OutputState }

func (PolicyBindingOutput) AdvancedOptions added in v3.53.0

Backup Advanced Options. See `advancedOptions` below.

func (PolicyBindingOutput) CreateTime added in v3.53.0

func (o PolicyBindingOutput) CreateTime() pulumi.StringOutput

The creation time of the resource.

func (PolicyBindingOutput) DataSourceId added in v3.53.0

func (o PolicyBindingOutput) DataSourceId() pulumi.StringOutput

The data source ID.

func (PolicyBindingOutput) Disabled added in v3.53.0

Whether the policy is effective for the data source. - true: Pause - false: not paused.

func (PolicyBindingOutput) ElementType added in v3.53.0

func (PolicyBindingOutput) ElementType() reflect.Type

func (PolicyBindingOutput) Exclude added in v3.53.0

This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates a file type that does not need to be backed up. All files of this type are not backed up. A maximum of 255 characters is supported.

func (PolicyBindingOutput) Include added in v3.53.0

This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates the file types to be backed up, and all files of these types are backed up. A maximum of 255 characters is supported.

func (PolicyBindingOutput) PolicyBindingDescription added in v3.53.0

func (o PolicyBindingOutput) PolicyBindingDescription() pulumi.StringPtrOutput

Resource Description.

func (PolicyBindingOutput) PolicyId added in v3.53.0

The policy ID.

func (PolicyBindingOutput) Source added in v3.53.0

When SourceType is OSS, a prefix is specified to be backed up. If it is not specified, the entire root directory of the Bucket is backed up.

func (PolicyBindingOutput) SourceType added in v3.53.0

func (o PolicyBindingOutput) SourceType() pulumi.StringOutput

Data source type, value range: - **UDM_ECS**: indicates the ECS instance backup. - **OSS**: indicates an OSS backup. - **NAS**: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually. - **ECS_FILE**: indicates that the ECS file is backed up. - **File**: indicates a local File backup.

func (PolicyBindingOutput) SpeedLimit added in v3.53.0

This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates backup flow control. The format is {start}{end}{bandwidth}. Multiple flow control configurations use partitioning, and no overlap in configuration time is allowed. start: start hour. end: end of hour. bandwidth: limit rate, in KB/s.

func (PolicyBindingOutput) ToPolicyBindingOutput added in v3.53.0

func (o PolicyBindingOutput) ToPolicyBindingOutput() PolicyBindingOutput

func (PolicyBindingOutput) ToPolicyBindingOutputWithContext added in v3.53.0

func (o PolicyBindingOutput) ToPolicyBindingOutputWithContext(ctx context.Context) PolicyBindingOutput

type PolicyBindingState added in v3.53.0

type PolicyBindingState struct {
	// Backup Advanced Options. See `advancedOptions` below.
	AdvancedOptions PolicyBindingAdvancedOptionsPtrInput
	// The creation time of the resource.
	CreateTime pulumi.StringPtrInput
	// The data source ID.
	DataSourceId pulumi.StringPtrInput
	// Whether the policy is effective for the data source.
	// - true: Pause
	// - false: not paused.
	Disabled pulumi.BoolPtrInput
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates a file type that does not need to be backed up. All files of this type are not backed up. A maximum of 255 characters is supported.
	Exclude pulumi.StringPtrInput
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates the file types to be backed up, and all files of these types are backed up. A maximum of 255 characters is supported.
	Include pulumi.StringPtrInput
	// Resource Description.
	PolicyBindingDescription pulumi.StringPtrInput
	// The policy ID.
	PolicyId pulumi.StringPtrInput
	// When SourceType is OSS, a prefix is specified to be backed up. If it is not specified, the entire root directory of the Bucket is backed up.
	Source pulumi.StringPtrInput
	// Data source type, value range:
	// - **UDM_ECS**: indicates the ECS instance backup.
	// - **OSS**: indicates an OSS backup.
	// - **NAS**: indicates an Alibaba Cloud NAS Backup. When you bind a file system to a policy, Cloud Backup automatically creates a mount point for the file system. If you no longer need the mount point, delete it manually.
	// - **ECS_FILE**: indicates that the ECS file is backed up.
	// - **File**: indicates a local File backup.
	SourceType pulumi.StringPtrInput
	// This parameter is required only when the value of SourceType is ECS_FILE or File. Indicates backup flow control. The format is {start}{end}{bandwidth}. Multiple flow control configurations use partitioning, and no overlap in configuration time is allowed. start: start hour. end: end of hour. bandwidth: limit rate, in KB/s.
	SpeedLimit pulumi.StringPtrInput
}

func (PolicyBindingState) ElementType added in v3.53.0

func (PolicyBindingState) ElementType() reflect.Type

type PolicyInput added in v3.53.0

type PolicyInput interface {
	pulumi.Input

	ToPolicyOutput() PolicyOutput
	ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
}

type PolicyMap added in v3.53.0

type PolicyMap map[string]PolicyInput

func (PolicyMap) ElementType added in v3.53.0

func (PolicyMap) ElementType() reflect.Type

func (PolicyMap) ToPolicyMapOutput added in v3.53.0

func (i PolicyMap) ToPolicyMapOutput() PolicyMapOutput

func (PolicyMap) ToPolicyMapOutputWithContext added in v3.53.0

func (i PolicyMap) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput

type PolicyMapInput added in v3.53.0

type PolicyMapInput interface {
	pulumi.Input

	ToPolicyMapOutput() PolicyMapOutput
	ToPolicyMapOutputWithContext(context.Context) PolicyMapOutput
}

PolicyMapInput is an input type that accepts PolicyMap and PolicyMapOutput values. You can construct a concrete instance of `PolicyMapInput` via:

PolicyMap{ "key": PolicyArgs{...} }

type PolicyMapOutput added in v3.53.0

type PolicyMapOutput struct{ *pulumi.OutputState }

func (PolicyMapOutput) ElementType added in v3.53.0

func (PolicyMapOutput) ElementType() reflect.Type

func (PolicyMapOutput) MapIndex added in v3.53.0

func (PolicyMapOutput) ToPolicyMapOutput added in v3.53.0

func (o PolicyMapOutput) ToPolicyMapOutput() PolicyMapOutput

func (PolicyMapOutput) ToPolicyMapOutputWithContext added in v3.53.0

func (o PolicyMapOutput) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput

type PolicyOutput added in v3.53.0

type PolicyOutput struct{ *pulumi.OutputState }

func (PolicyOutput) CreateTime added in v3.53.0

func (o PolicyOutput) CreateTime() pulumi.StringOutput

Policy creation time.

func (PolicyOutput) ElementType added in v3.53.0

func (PolicyOutput) ElementType() reflect.Type

func (PolicyOutput) PolicyDescription added in v3.53.0

func (o PolicyOutput) PolicyDescription() pulumi.StringPtrOutput

The policy description.

func (PolicyOutput) PolicyName added in v3.53.0

func (o PolicyOutput) PolicyName() pulumi.StringPtrOutput

Policy Name.

func (PolicyOutput) Rules added in v3.53.0

A list of policy rules. See `rules` below.

func (PolicyOutput) ToPolicyOutput added in v3.53.0

func (o PolicyOutput) ToPolicyOutput() PolicyOutput

func (PolicyOutput) ToPolicyOutputWithContext added in v3.53.0

func (o PolicyOutput) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput

type PolicyRule added in v3.53.0

type PolicyRule struct {
	// This parameter is required only when the value of **RuleType** is **TRANSITION. The minimum value is 30, and the Retention-ArchiveDays needs to be greater than or equal to 60.
	ArchiveDays *int `pulumi:"archiveDays"`
	// This parameter is required only when the **RuleType** value is **BACKUP. Backup Type.
	BackupType *string `pulumi:"backupType"`
	// This parameter is required only when **RuleType** is set to **BACKUP**.
	KeepLatestSnapshots *int `pulumi:"keepLatestSnapshots"`
	// Only when the **RuleType** value is.
	ReplicationRegionId *string `pulumi:"replicationRegionId"`
	// Retention time, in days.
	Retention *int `pulumi:"retention"`
	// This parameter is required only when the value of **RuleType** is **TRANSITION**. See `retentionRules` below.
	RetentionRules []PolicyRuleRetentionRule `pulumi:"retentionRules"`
	// Rule ID.
	RuleId *string `pulumi:"ruleId"`
	// Rule Type.
	RuleType string `pulumi:"ruleType"`
	// This parameter is required only if you set the **RuleType** parameter to **BACKUP**. This parameter specifies the backup schedule settings. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is complete. For example, `I|1631685600|P1D` specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.  *   startTime: the time at which the system starts to run a backup job. The time must follow the UNIX time format. Unit: seconds. *   interval: the interval at which the system runs a backup job. The interval must follow the ISO 8601 standard. For example, PT1H specifies an interval of one hour. P1D specifies an interval of one day.
	Schedule *string `pulumi:"schedule"`
	// Vault ID.
	VaultId *string `pulumi:"vaultId"`
}

type PolicyRuleArgs added in v3.53.0

type PolicyRuleArgs struct {
	// This parameter is required only when the value of **RuleType** is **TRANSITION. The minimum value is 30, and the Retention-ArchiveDays needs to be greater than or equal to 60.
	ArchiveDays pulumi.IntPtrInput `pulumi:"archiveDays"`
	// This parameter is required only when the **RuleType** value is **BACKUP. Backup Type.
	BackupType pulumi.StringPtrInput `pulumi:"backupType"`
	// This parameter is required only when **RuleType** is set to **BACKUP**.
	KeepLatestSnapshots pulumi.IntPtrInput `pulumi:"keepLatestSnapshots"`
	// Only when the **RuleType** value is.
	ReplicationRegionId pulumi.StringPtrInput `pulumi:"replicationRegionId"`
	// Retention time, in days.
	Retention pulumi.IntPtrInput `pulumi:"retention"`
	// This parameter is required only when the value of **RuleType** is **TRANSITION**. See `retentionRules` below.
	RetentionRules PolicyRuleRetentionRuleArrayInput `pulumi:"retentionRules"`
	// Rule ID.
	RuleId pulumi.StringPtrInput `pulumi:"ruleId"`
	// Rule Type.
	RuleType pulumi.StringInput `pulumi:"ruleType"`
	// This parameter is required only if you set the **RuleType** parameter to **BACKUP**. This parameter specifies the backup schedule settings. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is complete. For example, `I|1631685600|P1D` specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day.  *   startTime: the time at which the system starts to run a backup job. The time must follow the UNIX time format. Unit: seconds. *   interval: the interval at which the system runs a backup job. The interval must follow the ISO 8601 standard. For example, PT1H specifies an interval of one hour. P1D specifies an interval of one day.
	Schedule pulumi.StringPtrInput `pulumi:"schedule"`
	// Vault ID.
	VaultId pulumi.StringPtrInput `pulumi:"vaultId"`
}

func (PolicyRuleArgs) ElementType added in v3.53.0

func (PolicyRuleArgs) ElementType() reflect.Type

func (PolicyRuleArgs) ToPolicyRuleOutput added in v3.53.0

func (i PolicyRuleArgs) ToPolicyRuleOutput() PolicyRuleOutput

func (PolicyRuleArgs) ToPolicyRuleOutputWithContext added in v3.53.0

func (i PolicyRuleArgs) ToPolicyRuleOutputWithContext(ctx context.Context) PolicyRuleOutput

type PolicyRuleArray added in v3.53.0

type PolicyRuleArray []PolicyRuleInput

func (PolicyRuleArray) ElementType added in v3.53.0

func (PolicyRuleArray) ElementType() reflect.Type

func (PolicyRuleArray) ToPolicyRuleArrayOutput added in v3.53.0

func (i PolicyRuleArray) ToPolicyRuleArrayOutput() PolicyRuleArrayOutput

func (PolicyRuleArray) ToPolicyRuleArrayOutputWithContext added in v3.53.0

func (i PolicyRuleArray) ToPolicyRuleArrayOutputWithContext(ctx context.Context) PolicyRuleArrayOutput

type PolicyRuleArrayInput added in v3.53.0

type PolicyRuleArrayInput interface {
	pulumi.Input

	ToPolicyRuleArrayOutput() PolicyRuleArrayOutput
	ToPolicyRuleArrayOutputWithContext(context.Context) PolicyRuleArrayOutput
}

PolicyRuleArrayInput is an input type that accepts PolicyRuleArray and PolicyRuleArrayOutput values. You can construct a concrete instance of `PolicyRuleArrayInput` via:

PolicyRuleArray{ PolicyRuleArgs{...} }

type PolicyRuleArrayOutput added in v3.53.0

type PolicyRuleArrayOutput struct{ *pulumi.OutputState }

func (PolicyRuleArrayOutput) ElementType added in v3.53.0

func (PolicyRuleArrayOutput) ElementType() reflect.Type

func (PolicyRuleArrayOutput) Index added in v3.53.0

func (PolicyRuleArrayOutput) ToPolicyRuleArrayOutput added in v3.53.0

func (o PolicyRuleArrayOutput) ToPolicyRuleArrayOutput() PolicyRuleArrayOutput

func (PolicyRuleArrayOutput) ToPolicyRuleArrayOutputWithContext added in v3.53.0

func (o PolicyRuleArrayOutput) ToPolicyRuleArrayOutputWithContext(ctx context.Context) PolicyRuleArrayOutput

type PolicyRuleInput added in v3.53.0

type PolicyRuleInput interface {
	pulumi.Input

	ToPolicyRuleOutput() PolicyRuleOutput
	ToPolicyRuleOutputWithContext(context.Context) PolicyRuleOutput
}

PolicyRuleInput is an input type that accepts PolicyRuleArgs and PolicyRuleOutput values. You can construct a concrete instance of `PolicyRuleInput` via:

PolicyRuleArgs{...}

type PolicyRuleOutput added in v3.53.0

type PolicyRuleOutput struct{ *pulumi.OutputState }

func (PolicyRuleOutput) ArchiveDays added in v3.53.0

func (o PolicyRuleOutput) ArchiveDays() pulumi.IntPtrOutput

This parameter is required only when the value of **RuleType** is **TRANSITION. The minimum value is 30, and the Retention-ArchiveDays needs to be greater than or equal to 60.

func (PolicyRuleOutput) BackupType added in v3.53.0

func (o PolicyRuleOutput) BackupType() pulumi.StringPtrOutput

This parameter is required only when the **RuleType** value is **BACKUP. Backup Type.

func (PolicyRuleOutput) ElementType added in v3.53.0

func (PolicyRuleOutput) ElementType() reflect.Type

func (PolicyRuleOutput) KeepLatestSnapshots added in v3.53.0

func (o PolicyRuleOutput) KeepLatestSnapshots() pulumi.IntPtrOutput

This parameter is required only when **RuleType** is set to **BACKUP**.

func (PolicyRuleOutput) ReplicationRegionId added in v3.53.0

func (o PolicyRuleOutput) ReplicationRegionId() pulumi.StringPtrOutput

Only when the **RuleType** value is.

func (PolicyRuleOutput) Retention added in v3.53.0

func (o PolicyRuleOutput) Retention() pulumi.IntPtrOutput

Retention time, in days.

func (PolicyRuleOutput) RetentionRules added in v3.53.0

This parameter is required only when the value of **RuleType** is **TRANSITION**. See `retentionRules` below.

func (PolicyRuleOutput) RuleId added in v3.53.0

Rule ID.

func (PolicyRuleOutput) RuleType added in v3.53.0

func (o PolicyRuleOutput) RuleType() pulumi.StringOutput

Rule Type.

func (PolicyRuleOutput) Schedule added in v3.53.0

This parameter is required only if you set the **RuleType** parameter to **BACKUP**. This parameter specifies the backup schedule settings. Format: `I|{startTime}|{interval}`. The system runs the first backup job at a point in time that is specified in the {startTime} parameter and the subsequent backup jobs at an interval that is specified in the {interval} parameter. The system does not run a backup job before the specified point in time. Each backup job, except the first one, starts only after the previous backup job is complete. For example, `I|1631685600|P1D` specifies that the system runs the first backup job at 14:00:00 on September 15, 2021 and the subsequent backup jobs once a day. * startTime: the time at which the system starts to run a backup job. The time must follow the UNIX time format. Unit: seconds. * interval: the interval at which the system runs a backup job. The interval must follow the ISO 8601 standard. For example, PT1H specifies an interval of one hour. P1D specifies an interval of one day.

func (PolicyRuleOutput) ToPolicyRuleOutput added in v3.53.0

func (o PolicyRuleOutput) ToPolicyRuleOutput() PolicyRuleOutput

func (PolicyRuleOutput) ToPolicyRuleOutputWithContext added in v3.53.0

func (o PolicyRuleOutput) ToPolicyRuleOutputWithContext(ctx context.Context) PolicyRuleOutput

func (PolicyRuleOutput) VaultId added in v3.53.0

Vault ID.

type PolicyRuleRetentionRule added in v3.53.0

type PolicyRuleRetentionRule struct {
	AdvancedRetentionType *string `pulumi:"advancedRetentionType"`
	Retention             *int    `pulumi:"retention"`
}

type PolicyRuleRetentionRuleArgs added in v3.53.0

type PolicyRuleRetentionRuleArgs struct {
	AdvancedRetentionType pulumi.StringPtrInput `pulumi:"advancedRetentionType"`
	Retention             pulumi.IntPtrInput    `pulumi:"retention"`
}

func (PolicyRuleRetentionRuleArgs) ElementType added in v3.53.0

func (PolicyRuleRetentionRuleArgs) ToPolicyRuleRetentionRuleOutput added in v3.53.0

func (i PolicyRuleRetentionRuleArgs) ToPolicyRuleRetentionRuleOutput() PolicyRuleRetentionRuleOutput

func (PolicyRuleRetentionRuleArgs) ToPolicyRuleRetentionRuleOutputWithContext added in v3.53.0

func (i PolicyRuleRetentionRuleArgs) ToPolicyRuleRetentionRuleOutputWithContext(ctx context.Context) PolicyRuleRetentionRuleOutput

type PolicyRuleRetentionRuleArray added in v3.53.0

type PolicyRuleRetentionRuleArray []PolicyRuleRetentionRuleInput

func (PolicyRuleRetentionRuleArray) ElementType added in v3.53.0

func (PolicyRuleRetentionRuleArray) ToPolicyRuleRetentionRuleArrayOutput added in v3.53.0

func (i PolicyRuleRetentionRuleArray) ToPolicyRuleRetentionRuleArrayOutput() PolicyRuleRetentionRuleArrayOutput

func (PolicyRuleRetentionRuleArray) ToPolicyRuleRetentionRuleArrayOutputWithContext added in v3.53.0

func (i PolicyRuleRetentionRuleArray) ToPolicyRuleRetentionRuleArrayOutputWithContext(ctx context.Context) PolicyRuleRetentionRuleArrayOutput

type PolicyRuleRetentionRuleArrayInput added in v3.53.0

type PolicyRuleRetentionRuleArrayInput interface {
	pulumi.Input

	ToPolicyRuleRetentionRuleArrayOutput() PolicyRuleRetentionRuleArrayOutput
	ToPolicyRuleRetentionRuleArrayOutputWithContext(context.Context) PolicyRuleRetentionRuleArrayOutput
}

PolicyRuleRetentionRuleArrayInput is an input type that accepts PolicyRuleRetentionRuleArray and PolicyRuleRetentionRuleArrayOutput values. You can construct a concrete instance of `PolicyRuleRetentionRuleArrayInput` via:

PolicyRuleRetentionRuleArray{ PolicyRuleRetentionRuleArgs{...} }

type PolicyRuleRetentionRuleArrayOutput added in v3.53.0

type PolicyRuleRetentionRuleArrayOutput struct{ *pulumi.OutputState }

func (PolicyRuleRetentionRuleArrayOutput) ElementType added in v3.53.0

func (PolicyRuleRetentionRuleArrayOutput) Index added in v3.53.0

func (PolicyRuleRetentionRuleArrayOutput) ToPolicyRuleRetentionRuleArrayOutput added in v3.53.0

func (o PolicyRuleRetentionRuleArrayOutput) ToPolicyRuleRetentionRuleArrayOutput() PolicyRuleRetentionRuleArrayOutput

func (PolicyRuleRetentionRuleArrayOutput) ToPolicyRuleRetentionRuleArrayOutputWithContext added in v3.53.0

func (o PolicyRuleRetentionRuleArrayOutput) ToPolicyRuleRetentionRuleArrayOutputWithContext(ctx context.Context) PolicyRuleRetentionRuleArrayOutput

type PolicyRuleRetentionRuleInput added in v3.53.0

type PolicyRuleRetentionRuleInput interface {
	pulumi.Input

	ToPolicyRuleRetentionRuleOutput() PolicyRuleRetentionRuleOutput
	ToPolicyRuleRetentionRuleOutputWithContext(context.Context) PolicyRuleRetentionRuleOutput
}

PolicyRuleRetentionRuleInput is an input type that accepts PolicyRuleRetentionRuleArgs and PolicyRuleRetentionRuleOutput values. You can construct a concrete instance of `PolicyRuleRetentionRuleInput` via:

PolicyRuleRetentionRuleArgs{...}

type PolicyRuleRetentionRuleOutput added in v3.53.0

type PolicyRuleRetentionRuleOutput struct{ *pulumi.OutputState }

func (PolicyRuleRetentionRuleOutput) AdvancedRetentionType added in v3.53.0

func (o PolicyRuleRetentionRuleOutput) AdvancedRetentionType() pulumi.StringPtrOutput

func (PolicyRuleRetentionRuleOutput) ElementType added in v3.53.0

func (PolicyRuleRetentionRuleOutput) Retention added in v3.53.0

func (PolicyRuleRetentionRuleOutput) ToPolicyRuleRetentionRuleOutput added in v3.53.0

func (o PolicyRuleRetentionRuleOutput) ToPolicyRuleRetentionRuleOutput() PolicyRuleRetentionRuleOutput

func (PolicyRuleRetentionRuleOutput) ToPolicyRuleRetentionRuleOutputWithContext added in v3.53.0

func (o PolicyRuleRetentionRuleOutput) ToPolicyRuleRetentionRuleOutputWithContext(ctx context.Context) PolicyRuleRetentionRuleOutput

type PolicyState added in v3.53.0

type PolicyState struct {
	// Policy creation time.
	CreateTime pulumi.StringPtrInput
	// The policy description.
	PolicyDescription pulumi.StringPtrInput
	// Policy Name.
	PolicyName pulumi.StringPtrInput
	// A list of policy rules. See `rules` below.
	Rules PolicyRuleArrayInput
}

func (PolicyState) ElementType added in v3.53.0

func (PolicyState) ElementType() reflect.Type

type ReplicationVault added in v3.16.0

type ReplicationVault struct {
	pulumi.CustomResourceState

	// The description of the backup vault. The description must be 0 to 255 characters in length.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The ID of the region where the source vault resides.
	ReplicationSourceRegionId pulumi.StringOutput `pulumi:"replicationSourceRegionId"`
	// The ID of the source vault.
	ReplicationSourceVaultId pulumi.StringOutput `pulumi:"replicationSourceVaultId"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
	// The name of the backup vault. The name must be 1 to 64 characters in length.
	VaultName pulumi.StringOutput `pulumi:"vaultName"`
	// The storage type of the backup vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringOutput `pulumi:"vaultStorageClass"`
}

Provides a Hybrid Backup Recovery (HBR) Replication Vault resource.

For information about Hybrid Backup Recovery (HBR) Replication Vault and how to use it, see [What is Replication Vault](https://www.alibabacloud.com/help/en/doc-detail/345603.html).

> **NOTE:** Available in v1.152.0+.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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, "")
		sourceRegion := "cn-hangzhou"
		if param := cfg.Get("sourceRegion"); param != "" {
			sourceRegion = param
		}
		_, err := hbr.GetReplicationVaultRegions(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		defaultVault, err := hbr.NewVault(ctx, "default", &hbr.VaultArgs{
			VaultName: pulumi.String(fmt.Sprintf("terraform-example-%v", defaultInteger.Result)),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewReplicationVault(ctx, "default", &hbr.ReplicationVaultArgs{
			ReplicationSourceRegionId: pulumi.String(sourceRegion),
			ReplicationSourceVaultId:  defaultVault.ID(),
			VaultName:                 pulumi.String("terraform-example"),
			VaultStorageClass:         pulumi.String("STANDARD"),
			Description:               pulumi.String("terraform-example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Replication Vault can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/replicationVault:ReplicationVault example <id> ```

func GetReplicationVault added in v3.16.0

func GetReplicationVault(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ReplicationVaultState, opts ...pulumi.ResourceOption) (*ReplicationVault, error)

GetReplicationVault gets an existing ReplicationVault resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewReplicationVault added in v3.16.0

func NewReplicationVault(ctx *pulumi.Context,
	name string, args *ReplicationVaultArgs, opts ...pulumi.ResourceOption) (*ReplicationVault, error)

NewReplicationVault registers a new resource with the given unique name, arguments, and options.

func (*ReplicationVault) ElementType added in v3.16.0

func (*ReplicationVault) ElementType() reflect.Type

func (*ReplicationVault) ToReplicationVaultOutput added in v3.16.0

func (i *ReplicationVault) ToReplicationVaultOutput() ReplicationVaultOutput

func (*ReplicationVault) ToReplicationVaultOutputWithContext added in v3.16.0

func (i *ReplicationVault) ToReplicationVaultOutputWithContext(ctx context.Context) ReplicationVaultOutput

type ReplicationVaultArgs added in v3.16.0

type ReplicationVaultArgs struct {
	// The description of the backup vault. The description must be 0 to 255 characters in length.
	Description pulumi.StringPtrInput
	// The ID of the region where the source vault resides.
	ReplicationSourceRegionId pulumi.StringInput
	// The ID of the source vault.
	ReplicationSourceVaultId pulumi.StringInput
	// The name of the backup vault. The name must be 1 to 64 characters in length.
	VaultName pulumi.StringInput
	// The storage type of the backup vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringPtrInput
}

The set of arguments for constructing a ReplicationVault resource.

func (ReplicationVaultArgs) ElementType added in v3.16.0

func (ReplicationVaultArgs) ElementType() reflect.Type

type ReplicationVaultArray added in v3.16.0

type ReplicationVaultArray []ReplicationVaultInput

func (ReplicationVaultArray) ElementType added in v3.16.0

func (ReplicationVaultArray) ElementType() reflect.Type

func (ReplicationVaultArray) ToReplicationVaultArrayOutput added in v3.16.0

func (i ReplicationVaultArray) ToReplicationVaultArrayOutput() ReplicationVaultArrayOutput

func (ReplicationVaultArray) ToReplicationVaultArrayOutputWithContext added in v3.16.0

func (i ReplicationVaultArray) ToReplicationVaultArrayOutputWithContext(ctx context.Context) ReplicationVaultArrayOutput

type ReplicationVaultArrayInput added in v3.16.0

type ReplicationVaultArrayInput interface {
	pulumi.Input

	ToReplicationVaultArrayOutput() ReplicationVaultArrayOutput
	ToReplicationVaultArrayOutputWithContext(context.Context) ReplicationVaultArrayOutput
}

ReplicationVaultArrayInput is an input type that accepts ReplicationVaultArray and ReplicationVaultArrayOutput values. You can construct a concrete instance of `ReplicationVaultArrayInput` via:

ReplicationVaultArray{ ReplicationVaultArgs{...} }

type ReplicationVaultArrayOutput added in v3.16.0

type ReplicationVaultArrayOutput struct{ *pulumi.OutputState }

func (ReplicationVaultArrayOutput) ElementType added in v3.16.0

func (ReplicationVaultArrayOutput) Index added in v3.16.0

func (ReplicationVaultArrayOutput) ToReplicationVaultArrayOutput added in v3.16.0

func (o ReplicationVaultArrayOutput) ToReplicationVaultArrayOutput() ReplicationVaultArrayOutput

func (ReplicationVaultArrayOutput) ToReplicationVaultArrayOutputWithContext added in v3.16.0

func (o ReplicationVaultArrayOutput) ToReplicationVaultArrayOutputWithContext(ctx context.Context) ReplicationVaultArrayOutput

type ReplicationVaultInput added in v3.16.0

type ReplicationVaultInput interface {
	pulumi.Input

	ToReplicationVaultOutput() ReplicationVaultOutput
	ToReplicationVaultOutputWithContext(ctx context.Context) ReplicationVaultOutput
}

type ReplicationVaultMap added in v3.16.0

type ReplicationVaultMap map[string]ReplicationVaultInput

func (ReplicationVaultMap) ElementType added in v3.16.0

func (ReplicationVaultMap) ElementType() reflect.Type

func (ReplicationVaultMap) ToReplicationVaultMapOutput added in v3.16.0

func (i ReplicationVaultMap) ToReplicationVaultMapOutput() ReplicationVaultMapOutput

func (ReplicationVaultMap) ToReplicationVaultMapOutputWithContext added in v3.16.0

func (i ReplicationVaultMap) ToReplicationVaultMapOutputWithContext(ctx context.Context) ReplicationVaultMapOutput

type ReplicationVaultMapInput added in v3.16.0

type ReplicationVaultMapInput interface {
	pulumi.Input

	ToReplicationVaultMapOutput() ReplicationVaultMapOutput
	ToReplicationVaultMapOutputWithContext(context.Context) ReplicationVaultMapOutput
}

ReplicationVaultMapInput is an input type that accepts ReplicationVaultMap and ReplicationVaultMapOutput values. You can construct a concrete instance of `ReplicationVaultMapInput` via:

ReplicationVaultMap{ "key": ReplicationVaultArgs{...} }

type ReplicationVaultMapOutput added in v3.16.0

type ReplicationVaultMapOutput struct{ *pulumi.OutputState }

func (ReplicationVaultMapOutput) ElementType added in v3.16.0

func (ReplicationVaultMapOutput) ElementType() reflect.Type

func (ReplicationVaultMapOutput) MapIndex added in v3.16.0

func (ReplicationVaultMapOutput) ToReplicationVaultMapOutput added in v3.16.0

func (o ReplicationVaultMapOutput) ToReplicationVaultMapOutput() ReplicationVaultMapOutput

func (ReplicationVaultMapOutput) ToReplicationVaultMapOutputWithContext added in v3.16.0

func (o ReplicationVaultMapOutput) ToReplicationVaultMapOutputWithContext(ctx context.Context) ReplicationVaultMapOutput

type ReplicationVaultOutput added in v3.16.0

type ReplicationVaultOutput struct{ *pulumi.OutputState }

func (ReplicationVaultOutput) Description added in v3.27.0

The description of the backup vault. The description must be 0 to 255 characters in length.

func (ReplicationVaultOutput) ElementType added in v3.16.0

func (ReplicationVaultOutput) ElementType() reflect.Type

func (ReplicationVaultOutput) ReplicationSourceRegionId added in v3.27.0

func (o ReplicationVaultOutput) ReplicationSourceRegionId() pulumi.StringOutput

The ID of the region where the source vault resides.

func (ReplicationVaultOutput) ReplicationSourceVaultId added in v3.27.0

func (o ReplicationVaultOutput) ReplicationSourceVaultId() pulumi.StringOutput

The ID of the source vault.

func (ReplicationVaultOutput) Status added in v3.27.0

The status of the resource.

func (ReplicationVaultOutput) ToReplicationVaultOutput added in v3.16.0

func (o ReplicationVaultOutput) ToReplicationVaultOutput() ReplicationVaultOutput

func (ReplicationVaultOutput) ToReplicationVaultOutputWithContext added in v3.16.0

func (o ReplicationVaultOutput) ToReplicationVaultOutputWithContext(ctx context.Context) ReplicationVaultOutput

func (ReplicationVaultOutput) VaultName added in v3.27.0

The name of the backup vault. The name must be 1 to 64 characters in length.

func (ReplicationVaultOutput) VaultStorageClass added in v3.27.0

func (o ReplicationVaultOutput) VaultStorageClass() pulumi.StringOutput

The storage type of the backup vault. Valid values: `STANDARD`.

type ReplicationVaultState added in v3.16.0

type ReplicationVaultState struct {
	// The description of the backup vault. The description must be 0 to 255 characters in length.
	Description pulumi.StringPtrInput
	// The ID of the region where the source vault resides.
	ReplicationSourceRegionId pulumi.StringPtrInput
	// The ID of the source vault.
	ReplicationSourceVaultId pulumi.StringPtrInput
	// The status of the resource.
	Status pulumi.StringPtrInput
	// The name of the backup vault. The name must be 1 to 64 characters in length.
	VaultName pulumi.StringPtrInput
	// The storage type of the backup vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringPtrInput
}

func (ReplicationVaultState) ElementType added in v3.16.0

func (ReplicationVaultState) ElementType() reflect.Type

type RestoreJob added in v3.7.0

type RestoreJob struct {
	pulumi.CustomResourceState

	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Exclude pulumi.StringPtrOutput `pulumi:"exclude"`
	// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Include pulumi.StringPtrOutput `pulumi:"include"`
	// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
	Options pulumi.StringPtrOutput `pulumi:"options"`
	// The details about the Tablestore instance. See the following `Block otsDetail`.
	OtsDetail RestoreJobOtsDetailOutput `pulumi:"otsDetail"`
	// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
	RestoreJobId pulumi.StringOutput `pulumi:"restoreJobId"`
	// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
	RestoreType pulumi.StringOutput `pulumi:"restoreType"`
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringOutput `pulumi:"snapshotHash"`
	// The ID of Snapshot.
	SnapshotId pulumi.StringOutput `pulumi:"snapshotId"`
	// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
	SourceType pulumi.StringOutput `pulumi:"sourceType"`
	// The Restore Job Status.
	Status pulumi.StringOutput `pulumi:"status"`
	// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
	TargetBucket pulumi.StringPtrOutput `pulumi:"targetBucket"`
	// The target client ID.
	TargetClientId pulumi.StringPtrOutput `pulumi:"targetClientId"`
	// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	TargetCreateTime pulumi.StringPtrOutput `pulumi:"targetCreateTime"`
	// The target data source ID.
	TargetDataSourceId pulumi.StringPtrOutput `pulumi:"targetDataSourceId"`
	// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
	TargetFileSystemId pulumi.StringPtrOutput `pulumi:"targetFileSystemId"`
	// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
	TargetInstanceId pulumi.StringPtrOutput `pulumi:"targetInstanceId"`
	// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetInstanceName pulumi.StringPtrOutput `pulumi:"targetInstanceName"`
	// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPath pulumi.StringPtrOutput `pulumi:"targetPath"`
	// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPrefix pulumi.StringPtrOutput `pulumi:"targetPrefix"`
	// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetTableName pulumi.StringPtrOutput `pulumi:"targetTableName"`
	// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
	TargetTime pulumi.StringPtrOutput `pulumi:"targetTime"`
	// The full machine backup details.
	UdmDetail pulumi.StringPtrOutput `pulumi:"udmDetail"`
	// The ID of backup vault.
	VaultId pulumi.StringOutput `pulumi:"vaultId"`
}

Provides a Hybrid Backup Recovery (HBR) Restore Job resource.

For information about Hybrid Backup Recovery (HBR) Restore Job and how to use it, see [What is Restore Job](https://www.alibabacloud.com/help/doc-detail/186575.htm).

> **NOTE:** Available in v1.133.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetOssBackupPlans, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetNasBackupPlans, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		ecsSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType: "ECS_FILE",
			VaultId:    _default.Plans[0].VaultId,
			InstanceId: pulumi.StringRef(_default.Plans[0].InstanceId),
		}, nil)
		if err != nil {
			return err
		}
		ossSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType: "OSS",
			VaultId:    defaultGetOssBackupPlans.Plans[0].VaultId,
			Bucket:     pulumi.StringRef(defaultGetOssBackupPlans.Plans[0].Bucket),
		}, nil)
		if err != nil {
			return err
		}
		nasSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType:   "NAS",
			VaultId:      defaultGetNasBackupPlans.Plans[0].VaultId,
			FileSystemId: pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].FileSystemId),
			CreateTime:   pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].CreateTime),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.NewRestoreJob(ctx, "nasJob", &hbr.RestoreJobArgs{
			SnapshotHash:       pulumi.String(nasSnapshots.Snapshots[0].SnapshotHash),
			VaultId:            pulumi.String(defaultGetNasBackupPlans.Plans[0].VaultId),
			SourceType:         pulumi.String("NAS"),
			RestoreType:        pulumi.String("NAS"),
			SnapshotId:         pulumi.String(nasSnapshots.Snapshots[0].SnapshotId),
			TargetFileSystemId: pulumi.String(defaultGetNasBackupPlans.Plans[0].FileSystemId),
			TargetCreateTime:   pulumi.String(defaultGetNasBackupPlans.Plans[0].CreateTime),
			TargetPath:         pulumi.String("/"),
			Options:            pulumi.String("    {\"includes\":[], \"excludes\":[]}\n"),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewRestoreJob(ctx, "ossJob", &hbr.RestoreJobArgs{
			SnapshotHash: pulumi.String(ossSnapshots.Snapshots[0].SnapshotHash),
			VaultId:      pulumi.String(defaultGetOssBackupPlans.Plans[0].VaultId),
			SourceType:   pulumi.String("OSS"),
			RestoreType:  pulumi.String("OSS"),
			SnapshotId:   pulumi.String(ossSnapshots.Snapshots[0].SnapshotId),
			TargetBucket: pulumi.String(defaultGetOssBackupPlans.Plans[0].Bucket),
			TargetPrefix: pulumi.String(""),
			Options:      pulumi.String("    {\"includes\":[], \"excludes\":[]}\n"),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewRestoreJob(ctx, "ecsJob", &hbr.RestoreJobArgs{
			SnapshotHash:     pulumi.String(ecsSnapshots.Snapshots[0].SnapshotHash),
			VaultId:          pulumi.String(_default.Plans[0].VaultId),
			SourceType:       pulumi.String("ECS_FILE"),
			RestoreType:      pulumi.String("ECS_FILE"),
			SnapshotId:       pulumi.String(ecsSnapshots.Snapshots[0].SnapshotId),
			TargetInstanceId: pulumi.String(_default.Plans[0].InstanceId),
			TargetPath:       pulumi.String("/"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

> **NOTE:** This resource can only be created, cannot be modified or deleted. Therefore, any modification of the resource attribute will not affect exist resource.

## Import

Hybrid Backup Recovery (HBR) Restore Job can be imported using the id. Format to `<restore_job_id>:<restore_type>`, e.g.

```sh $ pulumi import alicloud:hbr/restoreJob:RestoreJob example your_restore_job_id:your_restore_type ```

func GetRestoreJob added in v3.7.0

func GetRestoreJob(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RestoreJobState, opts ...pulumi.ResourceOption) (*RestoreJob, error)

GetRestoreJob gets an existing RestoreJob resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRestoreJob added in v3.7.0

func NewRestoreJob(ctx *pulumi.Context,
	name string, args *RestoreJobArgs, opts ...pulumi.ResourceOption) (*RestoreJob, error)

NewRestoreJob registers a new resource with the given unique name, arguments, and options.

func (*RestoreJob) ElementType added in v3.7.0

func (*RestoreJob) ElementType() reflect.Type

func (*RestoreJob) ToRestoreJobOutput added in v3.7.0

func (i *RestoreJob) ToRestoreJobOutput() RestoreJobOutput

func (*RestoreJob) ToRestoreJobOutputWithContext added in v3.7.0

func (i *RestoreJob) ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput

type RestoreJobArgs added in v3.7.0

type RestoreJobArgs struct {
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Exclude pulumi.StringPtrInput
	// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Include pulumi.StringPtrInput
	// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
	Options pulumi.StringPtrInput
	// The details about the Tablestore instance. See the following `Block otsDetail`.
	OtsDetail RestoreJobOtsDetailPtrInput
	// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
	RestoreJobId pulumi.StringPtrInput
	// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
	RestoreType pulumi.StringInput
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringInput
	// The ID of Snapshot.
	SnapshotId pulumi.StringInput
	// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
	SourceType pulumi.StringInput
	// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
	TargetBucket pulumi.StringPtrInput
	// The target client ID.
	TargetClientId pulumi.StringPtrInput
	// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	TargetCreateTime pulumi.StringPtrInput
	// The target data source ID.
	TargetDataSourceId pulumi.StringPtrInput
	// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
	TargetFileSystemId pulumi.StringPtrInput
	// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
	TargetInstanceId pulumi.StringPtrInput
	// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetInstanceName pulumi.StringPtrInput
	// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPath pulumi.StringPtrInput
	// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPrefix pulumi.StringPtrInput
	// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetTableName pulumi.StringPtrInput
	// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
	TargetTime pulumi.StringPtrInput
	// The full machine backup details.
	UdmDetail pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringInput
}

The set of arguments for constructing a RestoreJob resource.

func (RestoreJobArgs) ElementType added in v3.7.0

func (RestoreJobArgs) ElementType() reflect.Type

type RestoreJobArray added in v3.7.0

type RestoreJobArray []RestoreJobInput

func (RestoreJobArray) ElementType added in v3.7.0

func (RestoreJobArray) ElementType() reflect.Type

func (RestoreJobArray) ToRestoreJobArrayOutput added in v3.7.0

func (i RestoreJobArray) ToRestoreJobArrayOutput() RestoreJobArrayOutput

func (RestoreJobArray) ToRestoreJobArrayOutputWithContext added in v3.7.0

func (i RestoreJobArray) ToRestoreJobArrayOutputWithContext(ctx context.Context) RestoreJobArrayOutput

type RestoreJobArrayInput added in v3.7.0

type RestoreJobArrayInput interface {
	pulumi.Input

	ToRestoreJobArrayOutput() RestoreJobArrayOutput
	ToRestoreJobArrayOutputWithContext(context.Context) RestoreJobArrayOutput
}

RestoreJobArrayInput is an input type that accepts RestoreJobArray and RestoreJobArrayOutput values. You can construct a concrete instance of `RestoreJobArrayInput` via:

RestoreJobArray{ RestoreJobArgs{...} }

type RestoreJobArrayOutput added in v3.7.0

type RestoreJobArrayOutput struct{ *pulumi.OutputState }

func (RestoreJobArrayOutput) ElementType added in v3.7.0

func (RestoreJobArrayOutput) ElementType() reflect.Type

func (RestoreJobArrayOutput) Index added in v3.7.0

func (RestoreJobArrayOutput) ToRestoreJobArrayOutput added in v3.7.0

func (o RestoreJobArrayOutput) ToRestoreJobArrayOutput() RestoreJobArrayOutput

func (RestoreJobArrayOutput) ToRestoreJobArrayOutputWithContext added in v3.7.0

func (o RestoreJobArrayOutput) ToRestoreJobArrayOutputWithContext(ctx context.Context) RestoreJobArrayOutput

type RestoreJobInput added in v3.7.0

type RestoreJobInput interface {
	pulumi.Input

	ToRestoreJobOutput() RestoreJobOutput
	ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput
}

type RestoreJobMap added in v3.7.0

type RestoreJobMap map[string]RestoreJobInput

func (RestoreJobMap) ElementType added in v3.7.0

func (RestoreJobMap) ElementType() reflect.Type

func (RestoreJobMap) ToRestoreJobMapOutput added in v3.7.0

func (i RestoreJobMap) ToRestoreJobMapOutput() RestoreJobMapOutput

func (RestoreJobMap) ToRestoreJobMapOutputWithContext added in v3.7.0

func (i RestoreJobMap) ToRestoreJobMapOutputWithContext(ctx context.Context) RestoreJobMapOutput

type RestoreJobMapInput added in v3.7.0

type RestoreJobMapInput interface {
	pulumi.Input

	ToRestoreJobMapOutput() RestoreJobMapOutput
	ToRestoreJobMapOutputWithContext(context.Context) RestoreJobMapOutput
}

RestoreJobMapInput is an input type that accepts RestoreJobMap and RestoreJobMapOutput values. You can construct a concrete instance of `RestoreJobMapInput` via:

RestoreJobMap{ "key": RestoreJobArgs{...} }

type RestoreJobMapOutput added in v3.7.0

type RestoreJobMapOutput struct{ *pulumi.OutputState }

func (RestoreJobMapOutput) ElementType added in v3.7.0

func (RestoreJobMapOutput) ElementType() reflect.Type

func (RestoreJobMapOutput) MapIndex added in v3.7.0

func (RestoreJobMapOutput) ToRestoreJobMapOutput added in v3.7.0

func (o RestoreJobMapOutput) ToRestoreJobMapOutput() RestoreJobMapOutput

func (RestoreJobMapOutput) ToRestoreJobMapOutputWithContext added in v3.7.0

func (o RestoreJobMapOutput) ToRestoreJobMapOutputWithContext(ctx context.Context) RestoreJobMapOutput

type RestoreJobOtsDetail added in v3.29.0

type RestoreJobOtsDetail struct {
	OverwriteExisting *bool `pulumi:"overwriteExisting"`
}

type RestoreJobOtsDetailArgs added in v3.29.0

type RestoreJobOtsDetailArgs struct {
	OverwriteExisting pulumi.BoolPtrInput `pulumi:"overwriteExisting"`
}

func (RestoreJobOtsDetailArgs) ElementType added in v3.29.0

func (RestoreJobOtsDetailArgs) ElementType() reflect.Type

func (RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailOutput added in v3.29.0

func (i RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailOutput() RestoreJobOtsDetailOutput

func (RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailOutputWithContext added in v3.29.0

func (i RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailOutputWithContext(ctx context.Context) RestoreJobOtsDetailOutput

func (RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailPtrOutput added in v3.29.0

func (i RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailPtrOutput() RestoreJobOtsDetailPtrOutput

func (RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailPtrOutputWithContext added in v3.29.0

func (i RestoreJobOtsDetailArgs) ToRestoreJobOtsDetailPtrOutputWithContext(ctx context.Context) RestoreJobOtsDetailPtrOutput

type RestoreJobOtsDetailInput added in v3.29.0

type RestoreJobOtsDetailInput interface {
	pulumi.Input

	ToRestoreJobOtsDetailOutput() RestoreJobOtsDetailOutput
	ToRestoreJobOtsDetailOutputWithContext(context.Context) RestoreJobOtsDetailOutput
}

RestoreJobOtsDetailInput is an input type that accepts RestoreJobOtsDetailArgs and RestoreJobOtsDetailOutput values. You can construct a concrete instance of `RestoreJobOtsDetailInput` via:

RestoreJobOtsDetailArgs{...}

type RestoreJobOtsDetailOutput added in v3.29.0

type RestoreJobOtsDetailOutput struct{ *pulumi.OutputState }

func (RestoreJobOtsDetailOutput) ElementType added in v3.29.0

func (RestoreJobOtsDetailOutput) ElementType() reflect.Type

func (RestoreJobOtsDetailOutput) OverwriteExisting added in v3.29.0

func (o RestoreJobOtsDetailOutput) OverwriteExisting() pulumi.BoolPtrOutput

func (RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailOutput added in v3.29.0

func (o RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailOutput() RestoreJobOtsDetailOutput

func (RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailOutputWithContext added in v3.29.0

func (o RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailOutputWithContext(ctx context.Context) RestoreJobOtsDetailOutput

func (RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailPtrOutput added in v3.29.0

func (o RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailPtrOutput() RestoreJobOtsDetailPtrOutput

func (RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailPtrOutputWithContext added in v3.29.0

func (o RestoreJobOtsDetailOutput) ToRestoreJobOtsDetailPtrOutputWithContext(ctx context.Context) RestoreJobOtsDetailPtrOutput

type RestoreJobOtsDetailPtrInput added in v3.29.0

type RestoreJobOtsDetailPtrInput interface {
	pulumi.Input

	ToRestoreJobOtsDetailPtrOutput() RestoreJobOtsDetailPtrOutput
	ToRestoreJobOtsDetailPtrOutputWithContext(context.Context) RestoreJobOtsDetailPtrOutput
}

RestoreJobOtsDetailPtrInput is an input type that accepts RestoreJobOtsDetailArgs, RestoreJobOtsDetailPtr and RestoreJobOtsDetailPtrOutput values. You can construct a concrete instance of `RestoreJobOtsDetailPtrInput` via:

        RestoreJobOtsDetailArgs{...}

or:

        nil

func RestoreJobOtsDetailPtr added in v3.29.0

func RestoreJobOtsDetailPtr(v *RestoreJobOtsDetailArgs) RestoreJobOtsDetailPtrInput

type RestoreJobOtsDetailPtrOutput added in v3.29.0

type RestoreJobOtsDetailPtrOutput struct{ *pulumi.OutputState }

func (RestoreJobOtsDetailPtrOutput) Elem added in v3.29.0

func (RestoreJobOtsDetailPtrOutput) ElementType added in v3.29.0

func (RestoreJobOtsDetailPtrOutput) OverwriteExisting added in v3.29.0

func (o RestoreJobOtsDetailPtrOutput) OverwriteExisting() pulumi.BoolPtrOutput

func (RestoreJobOtsDetailPtrOutput) ToRestoreJobOtsDetailPtrOutput added in v3.29.0

func (o RestoreJobOtsDetailPtrOutput) ToRestoreJobOtsDetailPtrOutput() RestoreJobOtsDetailPtrOutput

func (RestoreJobOtsDetailPtrOutput) ToRestoreJobOtsDetailPtrOutputWithContext added in v3.29.0

func (o RestoreJobOtsDetailPtrOutput) ToRestoreJobOtsDetailPtrOutputWithContext(ctx context.Context) RestoreJobOtsDetailPtrOutput

type RestoreJobOutput added in v3.7.0

type RestoreJobOutput struct{ *pulumi.OutputState }

func (RestoreJobOutput) CrossAccountRoleName added in v3.29.0

func (o RestoreJobOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (RestoreJobOutput) CrossAccountType added in v3.29.0

func (o RestoreJobOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (RestoreJobOutput) CrossAccountUserId added in v3.29.0

func (o RestoreJobOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (RestoreJobOutput) ElementType added in v3.7.0

func (RestoreJobOutput) ElementType() reflect.Type

func (RestoreJobOutput) Exclude added in v3.27.0

The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

func (RestoreJobOutput) Include added in v3.27.0

The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

func (RestoreJobOutput) Options added in v3.27.0

Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.

func (RestoreJobOutput) OtsDetail added in v3.29.0

The details about the Tablestore instance. See the following `Block otsDetail`.

func (RestoreJobOutput) RestoreJobId added in v3.27.0

func (o RestoreJobOutput) RestoreJobId() pulumi.StringOutput

Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.

func (RestoreJobOutput) RestoreType added in v3.27.0

func (o RestoreJobOutput) RestoreType() pulumi.StringOutput

The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.

func (RestoreJobOutput) SnapshotHash added in v3.27.0

func (o RestoreJobOutput) SnapshotHash() pulumi.StringOutput

The hashcode of Snapshot.

func (RestoreJobOutput) SnapshotId added in v3.27.0

func (o RestoreJobOutput) SnapshotId() pulumi.StringOutput

The ID of Snapshot.

func (RestoreJobOutput) SourceType added in v3.27.0

func (o RestoreJobOutput) SourceType() pulumi.StringOutput

The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.

func (RestoreJobOutput) Status added in v3.27.0

The Restore Job Status.

func (RestoreJobOutput) TargetBucket added in v3.27.0

func (o RestoreJobOutput) TargetBucket() pulumi.StringPtrOutput

The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,

func (RestoreJobOutput) TargetClientId added in v3.27.0

func (o RestoreJobOutput) TargetClientId() pulumi.StringPtrOutput

The target client ID.

func (RestoreJobOutput) TargetCreateTime added in v3.27.0

func (o RestoreJobOutput) TargetCreateTime() pulumi.StringPtrOutput

The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.

func (RestoreJobOutput) TargetDataSourceId added in v3.27.0

func (o RestoreJobOutput) TargetDataSourceId() pulumi.StringPtrOutput

The target data source ID.

func (RestoreJobOutput) TargetFileSystemId added in v3.27.0

func (o RestoreJobOutput) TargetFileSystemId() pulumi.StringPtrOutput

The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`

func (RestoreJobOutput) TargetInstanceId added in v3.27.0

func (o RestoreJobOutput) TargetInstanceId() pulumi.StringPtrOutput

The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`

func (RestoreJobOutput) TargetInstanceName added in v3.27.0

func (o RestoreJobOutput) TargetInstanceName() pulumi.StringPtrOutput

The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.

func (RestoreJobOutput) TargetPath added in v3.27.0

func (o RestoreJobOutput) TargetPath() pulumi.StringPtrOutput

The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

func (RestoreJobOutput) TargetPrefix added in v3.27.0

func (o RestoreJobOutput) TargetPrefix() pulumi.StringPtrOutput

The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.

func (RestoreJobOutput) TargetTableName added in v3.27.0

func (o RestoreJobOutput) TargetTableName() pulumi.StringPtrOutput

The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.

func (RestoreJobOutput) TargetTime added in v3.27.0

func (o RestoreJobOutput) TargetTime() pulumi.StringPtrOutput

The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.

func (RestoreJobOutput) ToRestoreJobOutput added in v3.7.0

func (o RestoreJobOutput) ToRestoreJobOutput() RestoreJobOutput

func (RestoreJobOutput) ToRestoreJobOutputWithContext added in v3.7.0

func (o RestoreJobOutput) ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput

func (RestoreJobOutput) UdmDetail added in v3.27.0

func (o RestoreJobOutput) UdmDetail() pulumi.StringPtrOutput

The full machine backup details.

func (RestoreJobOutput) VaultId added in v3.27.0

func (o RestoreJobOutput) VaultId() pulumi.StringOutput

The ID of backup vault.

type RestoreJobState added in v3.7.0

type RestoreJobState struct {
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Exclude pulumi.StringPtrInput
	// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	Include pulumi.StringPtrInput
	// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
	Options pulumi.StringPtrInput
	// The details about the Tablestore instance. See the following `Block otsDetail`.
	OtsDetail RestoreJobOtsDetailPtrInput
	// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
	RestoreJobId pulumi.StringPtrInput
	// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
	RestoreType pulumi.StringPtrInput
	// The hashcode of Snapshot.
	SnapshotHash pulumi.StringPtrInput
	// The ID of Snapshot.
	SnapshotId pulumi.StringPtrInput
	// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
	SourceType pulumi.StringPtrInput
	// The Restore Job Status.
	Status pulumi.StringPtrInput
	// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
	TargetBucket pulumi.StringPtrInput
	// The target client ID.
	TargetClientId pulumi.StringPtrInput
	// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
	TargetCreateTime pulumi.StringPtrInput
	// The target data source ID.
	TargetDataSourceId pulumi.StringPtrInput
	// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
	TargetFileSystemId pulumi.StringPtrInput
	// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
	TargetInstanceId pulumi.StringPtrInput
	// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetInstanceName pulumi.StringPtrInput
	// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPath pulumi.StringPtrInput
	// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
	TargetPrefix pulumi.StringPtrInput
	// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
	TargetTableName pulumi.StringPtrInput
	// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
	TargetTime pulumi.StringPtrInput
	// The full machine backup details.
	UdmDetail pulumi.StringPtrInput
	// The ID of backup vault.
	VaultId pulumi.StringPtrInput
}

func (RestoreJobState) ElementType added in v3.7.0

func (RestoreJobState) ElementType() reflect.Type

type ServerBackupPlan added in v3.10.0

type ServerBackupPlan struct {
	pulumi.CustomResourceState

	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
	// ECS server backup plan details.
	Details ServerBackupPlanDetailArrayOutput `pulumi:"details"`
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// 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.
	EcsServerBackupPlanName pulumi.StringOutput `pulumi:"ecsServerBackupPlanName"`
	// The ID of ECS instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// Backup retention days, the minimum is 1.
	Retention pulumi.IntOutput `pulumi:"retention"`
	// Backup strategy. Optional format: `I|{startTime}|{interval}`
	Schedule pulumi.StringOutput `pulumi:"schedule"`
}

Provides a Hybrid Backup Recovery (HBR) Server Backup Plan resource.

For information about Hybrid Backup Recovery (HBR) Server Backup Plan and how to use it, see [What is Server Backup Plan](https://www.alibabacloud.com/help/doc-detail/211140.htm).

> **NOTE:** Available in v1.142.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("Instance"),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			AvailabilityZone: pulumi.StringRef(example.Zones[0].Id),
			CpuCoreCount:     pulumi.IntRef(1),
			MemorySize:       pulumi.Float64Ref(2),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"),
			Owners:    pulumi.StringRef("system"),
		}, nil)
		if err != nil {
			return err
		}
		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
			VpcName:   pulumi.String("terraform-example"),
			CidrBlock: pulumi.String("172.17.3.0/24"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
			VswitchName: pulumi.String("terraform-example"),
			CidrBlock:   pulumi.String("172.17.3.0/24"),
			VpcId:       exampleNetwork.ID(),
			ZoneId:      pulumi.String(example.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
			Name:  pulumi.String("terraform-example"),
			VpcId: exampleNetwork.ID(),
		})
		if err != nil {
			return err
		}
		exampleInstance, err := ecs.NewInstance(ctx, "example", &ecs.InstanceArgs{
			ImageId:          pulumi.String(exampleGetImages.Images[0].Id),
			InstanceType:     pulumi.String(exampleGetInstanceTypes.InstanceTypes[0].Id),
			AvailabilityZone: pulumi.String(example.Zones[0].Id),
			SecurityGroups: pulumi.StringArray{
				exampleSecurityGroup.ID(),
			},
			InstanceName:       pulumi.String("terraform-example"),
			InternetChargeType: pulumi.String("PayByBandwidth"),
			VswitchId:          exampleSwitch.ID(),
		})
		if err != nil {
			return err
		}
		_, err = hbr.NewServerBackupPlan(ctx, "example", &hbr.ServerBackupPlanArgs{
			EcsServerBackupPlanName: pulumi.String("terraform-example"),
			InstanceId:              exampleInstance.ID(),
			Schedule:                pulumi.String("I|1602673264|PT2H"),
			Retention:               pulumi.Int(1),
			Details: hbr.ServerBackupPlanDetailArray{
				&hbr.ServerBackupPlanDetailArgs{
					AppConsistent: pulumi.Bool(true),
					SnapshotGroup: pulumi.Bool(true),
				},
			},
			Disabled: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Hybrid Backup Recovery (HBR) Server Backup Plan can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/serverBackupPlan:ServerBackupPlan example <id> ```

func GetServerBackupPlan added in v3.10.0

func GetServerBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServerBackupPlanState, opts ...pulumi.ResourceOption) (*ServerBackupPlan, error)

GetServerBackupPlan gets an existing ServerBackupPlan resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewServerBackupPlan added in v3.10.0

func NewServerBackupPlan(ctx *pulumi.Context,
	name string, args *ServerBackupPlanArgs, opts ...pulumi.ResourceOption) (*ServerBackupPlan, error)

NewServerBackupPlan registers a new resource with the given unique name, arguments, and options.

func (*ServerBackupPlan) ElementType added in v3.10.0

func (*ServerBackupPlan) ElementType() reflect.Type

func (*ServerBackupPlan) ToServerBackupPlanOutput added in v3.10.0

func (i *ServerBackupPlan) ToServerBackupPlanOutput() ServerBackupPlanOutput

func (*ServerBackupPlan) ToServerBackupPlanOutputWithContext added in v3.10.0

func (i *ServerBackupPlan) ToServerBackupPlanOutputWithContext(ctx context.Context) ServerBackupPlanOutput

type ServerBackupPlanArgs added in v3.10.0

type ServerBackupPlanArgs struct {
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// ECS server backup plan details.
	Details ServerBackupPlanDetailArrayInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// 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.
	EcsServerBackupPlanName pulumi.StringInput
	// The ID of ECS instance.
	InstanceId pulumi.StringInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.IntInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`
	Schedule pulumi.StringInput
}

The set of arguments for constructing a ServerBackupPlan resource.

func (ServerBackupPlanArgs) ElementType added in v3.10.0

func (ServerBackupPlanArgs) ElementType() reflect.Type

type ServerBackupPlanArray added in v3.10.0

type ServerBackupPlanArray []ServerBackupPlanInput

func (ServerBackupPlanArray) ElementType added in v3.10.0

func (ServerBackupPlanArray) ElementType() reflect.Type

func (ServerBackupPlanArray) ToServerBackupPlanArrayOutput added in v3.10.0

func (i ServerBackupPlanArray) ToServerBackupPlanArrayOutput() ServerBackupPlanArrayOutput

func (ServerBackupPlanArray) ToServerBackupPlanArrayOutputWithContext added in v3.10.0

func (i ServerBackupPlanArray) ToServerBackupPlanArrayOutputWithContext(ctx context.Context) ServerBackupPlanArrayOutput

type ServerBackupPlanArrayInput added in v3.10.0

type ServerBackupPlanArrayInput interface {
	pulumi.Input

	ToServerBackupPlanArrayOutput() ServerBackupPlanArrayOutput
	ToServerBackupPlanArrayOutputWithContext(context.Context) ServerBackupPlanArrayOutput
}

ServerBackupPlanArrayInput is an input type that accepts ServerBackupPlanArray and ServerBackupPlanArrayOutput values. You can construct a concrete instance of `ServerBackupPlanArrayInput` via:

ServerBackupPlanArray{ ServerBackupPlanArgs{...} }

type ServerBackupPlanArrayOutput added in v3.10.0

type ServerBackupPlanArrayOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanArrayOutput) ElementType added in v3.10.0

func (ServerBackupPlanArrayOutput) Index added in v3.10.0

func (ServerBackupPlanArrayOutput) ToServerBackupPlanArrayOutput added in v3.10.0

func (o ServerBackupPlanArrayOutput) ToServerBackupPlanArrayOutput() ServerBackupPlanArrayOutput

func (ServerBackupPlanArrayOutput) ToServerBackupPlanArrayOutputWithContext added in v3.10.0

func (o ServerBackupPlanArrayOutput) ToServerBackupPlanArrayOutputWithContext(ctx context.Context) ServerBackupPlanArrayOutput

type ServerBackupPlanDetail added in v3.10.0

type ServerBackupPlanDetail struct {
	// Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.
	AppConsistent bool `pulumi:"appConsistent"`
	// Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRegionId *string `pulumi:"destinationRegionId"`
	// Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRetention *int `pulumi:"destinationRetention"`
	// The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.
	DiskIdLists []string `pulumi:"diskIdLists"`
	// Whether replicate to another region. Valid values: `true`, `false`.
	DoCopy *bool `pulumi:"doCopy"`
	// Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.
	EnableFsFreeze *bool `pulumi:"enableFsFreeze"`
	// Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PostScriptPath *string `pulumi:"postScriptPath"`
	// Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PreScriptPath *string `pulumi:"preScriptPath"`
	// Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.
	SnapshotGroup bool `pulumi:"snapshotGroup"`
	// Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.
	TimeoutInSeconds *int `pulumi:"timeoutInSeconds"`
}

type ServerBackupPlanDetailArgs added in v3.10.0

type ServerBackupPlanDetailArgs struct {
	// Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.
	AppConsistent pulumi.BoolInput `pulumi:"appConsistent"`
	// Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRegionId pulumi.StringPtrInput `pulumi:"destinationRegionId"`
	// Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
	DestinationRetention pulumi.IntPtrInput `pulumi:"destinationRetention"`
	// The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.
	DiskIdLists pulumi.StringArrayInput `pulumi:"diskIdLists"`
	// Whether replicate to another region. Valid values: `true`, `false`.
	DoCopy pulumi.BoolPtrInput `pulumi:"doCopy"`
	// Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.
	EnableFsFreeze pulumi.BoolPtrInput `pulumi:"enableFsFreeze"`
	// Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PostScriptPath pulumi.StringPtrInput `pulumi:"postScriptPath"`
	// Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.
	PreScriptPath pulumi.StringPtrInput `pulumi:"preScriptPath"`
	// Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.
	SnapshotGroup pulumi.BoolInput `pulumi:"snapshotGroup"`
	// Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.
	TimeoutInSeconds pulumi.IntPtrInput `pulumi:"timeoutInSeconds"`
}

func (ServerBackupPlanDetailArgs) ElementType added in v3.10.0

func (ServerBackupPlanDetailArgs) ElementType() reflect.Type

func (ServerBackupPlanDetailArgs) ToServerBackupPlanDetailOutput added in v3.10.0

func (i ServerBackupPlanDetailArgs) ToServerBackupPlanDetailOutput() ServerBackupPlanDetailOutput

func (ServerBackupPlanDetailArgs) ToServerBackupPlanDetailOutputWithContext added in v3.10.0

func (i ServerBackupPlanDetailArgs) ToServerBackupPlanDetailOutputWithContext(ctx context.Context) ServerBackupPlanDetailOutput

type ServerBackupPlanDetailArray added in v3.10.0

type ServerBackupPlanDetailArray []ServerBackupPlanDetailInput

func (ServerBackupPlanDetailArray) ElementType added in v3.10.0

func (ServerBackupPlanDetailArray) ToServerBackupPlanDetailArrayOutput added in v3.10.0

func (i ServerBackupPlanDetailArray) ToServerBackupPlanDetailArrayOutput() ServerBackupPlanDetailArrayOutput

func (ServerBackupPlanDetailArray) ToServerBackupPlanDetailArrayOutputWithContext added in v3.10.0

func (i ServerBackupPlanDetailArray) ToServerBackupPlanDetailArrayOutputWithContext(ctx context.Context) ServerBackupPlanDetailArrayOutput

type ServerBackupPlanDetailArrayInput added in v3.10.0

type ServerBackupPlanDetailArrayInput interface {
	pulumi.Input

	ToServerBackupPlanDetailArrayOutput() ServerBackupPlanDetailArrayOutput
	ToServerBackupPlanDetailArrayOutputWithContext(context.Context) ServerBackupPlanDetailArrayOutput
}

ServerBackupPlanDetailArrayInput is an input type that accepts ServerBackupPlanDetailArray and ServerBackupPlanDetailArrayOutput values. You can construct a concrete instance of `ServerBackupPlanDetailArrayInput` via:

ServerBackupPlanDetailArray{ ServerBackupPlanDetailArgs{...} }

type ServerBackupPlanDetailArrayOutput added in v3.10.0

type ServerBackupPlanDetailArrayOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanDetailArrayOutput) ElementType added in v3.10.0

func (ServerBackupPlanDetailArrayOutput) Index added in v3.10.0

func (ServerBackupPlanDetailArrayOutput) ToServerBackupPlanDetailArrayOutput added in v3.10.0

func (o ServerBackupPlanDetailArrayOutput) ToServerBackupPlanDetailArrayOutput() ServerBackupPlanDetailArrayOutput

func (ServerBackupPlanDetailArrayOutput) ToServerBackupPlanDetailArrayOutputWithContext added in v3.10.0

func (o ServerBackupPlanDetailArrayOutput) ToServerBackupPlanDetailArrayOutputWithContext(ctx context.Context) ServerBackupPlanDetailArrayOutput

type ServerBackupPlanDetailInput added in v3.10.0

type ServerBackupPlanDetailInput interface {
	pulumi.Input

	ToServerBackupPlanDetailOutput() ServerBackupPlanDetailOutput
	ToServerBackupPlanDetailOutputWithContext(context.Context) ServerBackupPlanDetailOutput
}

ServerBackupPlanDetailInput is an input type that accepts ServerBackupPlanDetailArgs and ServerBackupPlanDetailOutput values. You can construct a concrete instance of `ServerBackupPlanDetailInput` via:

ServerBackupPlanDetailArgs{...}

type ServerBackupPlanDetailOutput added in v3.10.0

type ServerBackupPlanDetailOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanDetailOutput) AppConsistent added in v3.10.0

Whether to turn on application consistency. The application consistency snapshot backs up memory data and ongoing database transactions at the time of snapshot creation to ensure the consistency of application system data and database transactions. By applying consistent snapshots, there is no data damage or loss, so as to avoid log rollback during database startup and ensure that the application is in a consistent startup state. Valid values: `true`, `false`.

func (ServerBackupPlanDetailOutput) DestinationRegionId added in v3.10.0

func (o ServerBackupPlanDetailOutput) DestinationRegionId() pulumi.StringPtrOutput

Only vaild when DoCopy is true. The destination region ID when replicating to another region. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.

func (ServerBackupPlanDetailOutput) DestinationRetention added in v3.10.0

func (o ServerBackupPlanDetailOutput) DestinationRetention() pulumi.IntPtrOutput

Only vaild when DoCopy is true. The retention days of the destination backup. When not specified, the destination backup will be saved permanently. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.

func (ServerBackupPlanDetailOutput) DiskIdLists added in v3.10.0

The list of cloud disks to be backed up in the ECS instance. When not specified, a snapshot is executed for all the disks on the ECS instance.

func (ServerBackupPlanDetailOutput) DoCopy added in v3.10.0

Whether replicate to another region. Valid values: `true`, `false`.

func (ServerBackupPlanDetailOutput) ElementType added in v3.10.0

func (ServerBackupPlanDetailOutput) EnableFsFreeze added in v3.10.0

Only the Linux system is valid. Whether to use the Linux FsFreeze mechanism to ensure that the file system is read-only consistent before creating a storage snapshot. The default is True. Valid values: `true`, `false`.

func (ServerBackupPlanDetailOutput) PostScriptPath added in v3.10.0

Only vaild for the linux system when AppConsistent is true. The application thaw script path (e.g. /tmp/postscript.sh). The postscript.sh script must meet the following conditions: in terms of permissions, only the root user as the owner has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.

func (ServerBackupPlanDetailOutput) PreScriptPath added in v3.10.0

Only vaild for the linux system when AppConsistent is true. Apply the freeze script path (e.g. /tmp/prescript.sh). prescript.sh scripts must meet the following conditions: in terms of permissions, only root, as the owner, has read, write, and execute permissions, that is, 700 permissions. In terms of content, the script content needs to be customized according to the application itself. This indicates that this parameter must be set when creating an application consistency snapshot for a Linux instance. If the script is set incorrectly (for example, permissions, save path, or file name are set incorrectly), the resulting snapshot is a file system consistency snapshot.

func (ServerBackupPlanDetailOutput) SnapshotGroup added in v3.10.0

Whether to turn on file system consistency. If SnapshotGroup is true, when AppConsistent is true but the relevant conditions are not met or AppConsistent is false, the resulting snapshot will be a file system consistency snapshot. The file system consistency ensures that the file system memory and disk information are synchronized at the time of snapshot creation, and the file system write operation is frozen to make the file system in a consistent state. The file system consistency snapshot can prevent the operating system from performing disk inspection and repair operations such as CHKDSK or fsck after restart. Valid values: `true`, `false`.

func (ServerBackupPlanDetailOutput) TimeoutInSeconds added in v3.10.0

func (o ServerBackupPlanDetailOutput) TimeoutInSeconds() pulumi.IntPtrOutput

Only the Linux system is valid, and the IO freeze timeout period. The default is 30 seconds.

func (ServerBackupPlanDetailOutput) ToServerBackupPlanDetailOutput added in v3.10.0

func (o ServerBackupPlanDetailOutput) ToServerBackupPlanDetailOutput() ServerBackupPlanDetailOutput

func (ServerBackupPlanDetailOutput) ToServerBackupPlanDetailOutputWithContext added in v3.10.0

func (o ServerBackupPlanDetailOutput) ToServerBackupPlanDetailOutputWithContext(ctx context.Context) ServerBackupPlanDetailOutput

type ServerBackupPlanInput added in v3.10.0

type ServerBackupPlanInput interface {
	pulumi.Input

	ToServerBackupPlanOutput() ServerBackupPlanOutput
	ToServerBackupPlanOutputWithContext(ctx context.Context) ServerBackupPlanOutput
}

type ServerBackupPlanMap added in v3.10.0

type ServerBackupPlanMap map[string]ServerBackupPlanInput

func (ServerBackupPlanMap) ElementType added in v3.10.0

func (ServerBackupPlanMap) ElementType() reflect.Type

func (ServerBackupPlanMap) ToServerBackupPlanMapOutput added in v3.10.0

func (i ServerBackupPlanMap) ToServerBackupPlanMapOutput() ServerBackupPlanMapOutput

func (ServerBackupPlanMap) ToServerBackupPlanMapOutputWithContext added in v3.10.0

func (i ServerBackupPlanMap) ToServerBackupPlanMapOutputWithContext(ctx context.Context) ServerBackupPlanMapOutput

type ServerBackupPlanMapInput added in v3.10.0

type ServerBackupPlanMapInput interface {
	pulumi.Input

	ToServerBackupPlanMapOutput() ServerBackupPlanMapOutput
	ToServerBackupPlanMapOutputWithContext(context.Context) ServerBackupPlanMapOutput
}

ServerBackupPlanMapInput is an input type that accepts ServerBackupPlanMap and ServerBackupPlanMapOutput values. You can construct a concrete instance of `ServerBackupPlanMapInput` via:

ServerBackupPlanMap{ "key": ServerBackupPlanArgs{...} }

type ServerBackupPlanMapOutput added in v3.10.0

type ServerBackupPlanMapOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanMapOutput) ElementType added in v3.10.0

func (ServerBackupPlanMapOutput) ElementType() reflect.Type

func (ServerBackupPlanMapOutput) MapIndex added in v3.10.0

func (ServerBackupPlanMapOutput) ToServerBackupPlanMapOutput added in v3.10.0

func (o ServerBackupPlanMapOutput) ToServerBackupPlanMapOutput() ServerBackupPlanMapOutput

func (ServerBackupPlanMapOutput) ToServerBackupPlanMapOutputWithContext added in v3.10.0

func (o ServerBackupPlanMapOutput) ToServerBackupPlanMapOutputWithContext(ctx context.Context) ServerBackupPlanMapOutput

type ServerBackupPlanOutput added in v3.10.0

type ServerBackupPlanOutput struct{ *pulumi.OutputState }

func (ServerBackupPlanOutput) CrossAccountRoleName added in v3.33.0

func (o ServerBackupPlanOutput) CrossAccountRoleName() pulumi.StringPtrOutput

The role name created in the original account RAM backup by the cross account managed by the current account.

func (ServerBackupPlanOutput) CrossAccountType added in v3.33.0

func (o ServerBackupPlanOutput) CrossAccountType() pulumi.StringOutput

The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.

func (ServerBackupPlanOutput) CrossAccountUserId added in v3.33.0

func (o ServerBackupPlanOutput) CrossAccountUserId() pulumi.IntPtrOutput

The original account ID of the cross account backup managed by the current account.

func (ServerBackupPlanOutput) Details added in v3.27.0

ECS server backup plan details.

func (ServerBackupPlanOutput) Disabled added in v3.27.0

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

func (ServerBackupPlanOutput) EcsServerBackupPlanName added in v3.27.0

func (o ServerBackupPlanOutput) EcsServerBackupPlanName() pulumi.StringOutput

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.

func (ServerBackupPlanOutput) ElementType added in v3.10.0

func (ServerBackupPlanOutput) ElementType() reflect.Type

func (ServerBackupPlanOutput) InstanceId added in v3.27.0

The ID of ECS instance.

func (ServerBackupPlanOutput) Retention added in v3.27.0

func (o ServerBackupPlanOutput) Retention() pulumi.IntOutput

Backup retention days, the minimum is 1.

func (ServerBackupPlanOutput) Schedule added in v3.27.0

Backup strategy. Optional format: `I|{startTime}|{interval}`

func (ServerBackupPlanOutput) ToServerBackupPlanOutput added in v3.10.0

func (o ServerBackupPlanOutput) ToServerBackupPlanOutput() ServerBackupPlanOutput

func (ServerBackupPlanOutput) ToServerBackupPlanOutputWithContext added in v3.10.0

func (o ServerBackupPlanOutput) ToServerBackupPlanOutputWithContext(ctx context.Context) ServerBackupPlanOutput

type ServerBackupPlanState added in v3.10.0

type ServerBackupPlanState struct {
	// The role name created in the original account RAM backup by the cross account managed by the current account.
	CrossAccountRoleName pulumi.StringPtrInput
	// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
	CrossAccountType pulumi.StringPtrInput
	// The original account ID of the cross account backup managed by the current account.
	CrossAccountUserId pulumi.IntPtrInput
	// ECS server backup plan details.
	Details ServerBackupPlanDetailArrayInput
	// Whether to disable the backup task. Valid values: `true`, `false`.
	Disabled pulumi.BoolPtrInput
	// 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.
	EcsServerBackupPlanName pulumi.StringPtrInput
	// The ID of ECS instance.
	InstanceId pulumi.StringPtrInput
	// Backup retention days, the minimum is 1.
	Retention pulumi.IntPtrInput
	// Backup strategy. Optional format: `I|{startTime}|{interval}`
	Schedule pulumi.StringPtrInput
}

func (ServerBackupPlanState) ElementType added in v3.10.0

func (ServerBackupPlanState) ElementType() reflect.Type

type Vault

type Vault struct {
	pulumi.CustomResourceState

	// The description of Vault. Defaults to an empty string.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Source Encryption Type,It is valid only when vaultType is `STANDARD` or `OTS_BACKUP`. Default value: `HBR_PRIVATE`. Valid values:
	EncryptType pulumi.StringOutput `pulumi:"encryptType"`
	// The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encryptType is `KMS`.
	KmsKeyId pulumi.StringPtrOutput `pulumi:"kmsKeyId"`
	// The status of the Vault.
	Status pulumi.StringOutput `pulumi:"status"`
	// The name of Vault.
	VaultName pulumi.StringOutput `pulumi:"vaultName"`
	// The storage class of Vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringOutput `pulumi:"vaultStorageClass"`
	// The type of Vault. Valid values: `STANDARD`, `OTS_BACKUP`.
	VaultType pulumi.StringOutput `pulumi:"vaultType"`
}

Provides a HBR Backup vault resource.

For information about HBR Backup vault and how to use it, see [What is Backup vault](https://www.alibabacloud.com/help/en/hybrid-backup-recovery/latest/api-hbr-2017-09-08-createvault).

> **NOTE:** Available since v1.129.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hbr.NewVault(ctx, "example", &hbr.VaultArgs{
			VaultName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

HBR Vault can be imported using the id, e.g.

```sh $ pulumi import alicloud:hbr/vault:Vault example <id> ```

func GetVault

func GetVault(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VaultState, opts ...pulumi.ResourceOption) (*Vault, error)

GetVault gets an existing Vault resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVault

func NewVault(ctx *pulumi.Context,
	name string, args *VaultArgs, opts ...pulumi.ResourceOption) (*Vault, error)

NewVault registers a new resource with the given unique name, arguments, and options.

func (*Vault) ElementType

func (*Vault) ElementType() reflect.Type

func (*Vault) ToVaultOutput

func (i *Vault) ToVaultOutput() VaultOutput

func (*Vault) ToVaultOutputWithContext

func (i *Vault) ToVaultOutputWithContext(ctx context.Context) VaultOutput

type VaultArgs

type VaultArgs struct {
	// The description of Vault. Defaults to an empty string.
	Description pulumi.StringPtrInput
	// Source Encryption Type,It is valid only when vaultType is `STANDARD` or `OTS_BACKUP`. Default value: `HBR_PRIVATE`. Valid values:
	EncryptType pulumi.StringPtrInput
	// The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encryptType is `KMS`.
	KmsKeyId pulumi.StringPtrInput
	// The name of Vault.
	VaultName pulumi.StringInput
	// The storage class of Vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringPtrInput
	// The type of Vault. Valid values: `STANDARD`, `OTS_BACKUP`.
	VaultType pulumi.StringPtrInput
}

The set of arguments for constructing a Vault resource.

func (VaultArgs) ElementType

func (VaultArgs) ElementType() reflect.Type

type VaultArray

type VaultArray []VaultInput

func (VaultArray) ElementType

func (VaultArray) ElementType() reflect.Type

func (VaultArray) ToVaultArrayOutput

func (i VaultArray) ToVaultArrayOutput() VaultArrayOutput

func (VaultArray) ToVaultArrayOutputWithContext

func (i VaultArray) ToVaultArrayOutputWithContext(ctx context.Context) VaultArrayOutput

type VaultArrayInput

type VaultArrayInput interface {
	pulumi.Input

	ToVaultArrayOutput() VaultArrayOutput
	ToVaultArrayOutputWithContext(context.Context) VaultArrayOutput
}

VaultArrayInput is an input type that accepts VaultArray and VaultArrayOutput values. You can construct a concrete instance of `VaultArrayInput` via:

VaultArray{ VaultArgs{...} }

type VaultArrayOutput

type VaultArrayOutput struct{ *pulumi.OutputState }

func (VaultArrayOutput) ElementType

func (VaultArrayOutput) ElementType() reflect.Type

func (VaultArrayOutput) Index

func (VaultArrayOutput) ToVaultArrayOutput

func (o VaultArrayOutput) ToVaultArrayOutput() VaultArrayOutput

func (VaultArrayOutput) ToVaultArrayOutputWithContext

func (o VaultArrayOutput) ToVaultArrayOutputWithContext(ctx context.Context) VaultArrayOutput

type VaultInput

type VaultInput interface {
	pulumi.Input

	ToVaultOutput() VaultOutput
	ToVaultOutputWithContext(ctx context.Context) VaultOutput
}

type VaultMap

type VaultMap map[string]VaultInput

func (VaultMap) ElementType

func (VaultMap) ElementType() reflect.Type

func (VaultMap) ToVaultMapOutput

func (i VaultMap) ToVaultMapOutput() VaultMapOutput

func (VaultMap) ToVaultMapOutputWithContext

func (i VaultMap) ToVaultMapOutputWithContext(ctx context.Context) VaultMapOutput

type VaultMapInput

type VaultMapInput interface {
	pulumi.Input

	ToVaultMapOutput() VaultMapOutput
	ToVaultMapOutputWithContext(context.Context) VaultMapOutput
}

VaultMapInput is an input type that accepts VaultMap and VaultMapOutput values. You can construct a concrete instance of `VaultMapInput` via:

VaultMap{ "key": VaultArgs{...} }

type VaultMapOutput

type VaultMapOutput struct{ *pulumi.OutputState }

func (VaultMapOutput) ElementType

func (VaultMapOutput) ElementType() reflect.Type

func (VaultMapOutput) MapIndex

func (VaultMapOutput) ToVaultMapOutput

func (o VaultMapOutput) ToVaultMapOutput() VaultMapOutput

func (VaultMapOutput) ToVaultMapOutputWithContext

func (o VaultMapOutput) ToVaultMapOutputWithContext(ctx context.Context) VaultMapOutput

type VaultOutput

type VaultOutput struct{ *pulumi.OutputState }

func (VaultOutput) Description added in v3.27.0

func (o VaultOutput) Description() pulumi.StringPtrOutput

The description of Vault. Defaults to an empty string.

func (VaultOutput) ElementType

func (VaultOutput) ElementType() reflect.Type

func (VaultOutput) EncryptType added in v3.27.0

func (o VaultOutput) EncryptType() pulumi.StringOutput

Source Encryption Type,It is valid only when vaultType is `STANDARD` or `OTS_BACKUP`. Default value: `HBR_PRIVATE`. Valid values:

func (VaultOutput) KmsKeyId added in v3.27.0

func (o VaultOutput) KmsKeyId() pulumi.StringPtrOutput

The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encryptType is `KMS`.

func (VaultOutput) Status added in v3.27.0

func (o VaultOutput) Status() pulumi.StringOutput

The status of the Vault.

func (VaultOutput) ToVaultOutput

func (o VaultOutput) ToVaultOutput() VaultOutput

func (VaultOutput) ToVaultOutputWithContext

func (o VaultOutput) ToVaultOutputWithContext(ctx context.Context) VaultOutput

func (VaultOutput) VaultName added in v3.27.0

func (o VaultOutput) VaultName() pulumi.StringOutput

The name of Vault.

func (VaultOutput) VaultStorageClass added in v3.27.0

func (o VaultOutput) VaultStorageClass() pulumi.StringOutput

The storage class of Vault. Valid values: `STANDARD`.

func (VaultOutput) VaultType added in v3.27.0

func (o VaultOutput) VaultType() pulumi.StringOutput

The type of Vault. Valid values: `STANDARD`, `OTS_BACKUP`.

type VaultState

type VaultState struct {
	// The description of Vault. Defaults to an empty string.
	Description pulumi.StringPtrInput
	// Source Encryption Type,It is valid only when vaultType is `STANDARD` or `OTS_BACKUP`. Default value: `HBR_PRIVATE`. Valid values:
	EncryptType pulumi.StringPtrInput
	// The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encryptType is `KMS`.
	KmsKeyId pulumi.StringPtrInput
	// The status of the Vault.
	Status pulumi.StringPtrInput
	// The name of Vault.
	VaultName pulumi.StringPtrInput
	// The storage class of Vault. Valid values: `STANDARD`.
	VaultStorageClass pulumi.StringPtrInput
	// The type of Vault. Valid values: `STANDARD`, `OTS_BACKUP`.
	VaultType pulumi.StringPtrInput
}

func (VaultState) ElementType

func (VaultState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL