dbs

package
v3.56.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 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 BackupPlan

type BackupPlan struct {
	pulumi.CustomResourceState

	// The ID of the backup gateway. This parameter is required when the `sourceEndpointInstanceType` is `Agent`.
	BackupGatewayId pulumi.StringOutput `pulumi:"backupGatewayId"`
	// The backup log interval seconds.
	BackupLogIntervalSeconds pulumi.IntPtrOutput `pulumi:"backupLogIntervalSeconds"`
	// Backup method. Valid values: `duplication`, `logical`, `physical`.
	BackupMethod pulumi.StringOutput `pulumi:"backupMethod"`
	// The backup object.
	BackupObjects pulumi.StringOutput `pulumi:"backupObjects"`
	// Full backup cycle, Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. supports the selection of multiple fetch values, separated by English commas (,).
	BackupPeriod pulumi.StringOutput `pulumi:"backupPeriod"`
	// The name of the resource.
	BackupPlanName pulumi.StringOutput `pulumi:"backupPlanName"`
	// The backup rate limit.
	BackupRateLimit pulumi.StringPtrOutput `pulumi:"backupRateLimit"`
	// The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
	BackupRetentionPeriod pulumi.IntOutput `pulumi:"backupRetentionPeriod"`
	// The backup speed limit.
	BackupSpeedLimit pulumi.StringPtrOutput `pulumi:"backupSpeedLimit"`
	// The start time of full Backup. The format is `<I> HH:mm</I>` Z(UTC time).
	BackupStartTime pulumi.StringOutput `pulumi:"backupStartTime"`
	// Built-in storage type, Valid values: `system`.
	BackupStorageType pulumi.StringOutput `pulumi:"backupStorageType"`
	// The backup strategy type. Valid values: `simple`, `manual`.
	BackupStrategyType pulumi.StringPtrOutput `pulumi:"backupStrategyType"`
	// The UID that is backed up across Alibaba cloud accounts.
	CrossAliyunId pulumi.StringOutput `pulumi:"crossAliyunId"`
	// The name of the RAM role that is backed up across Alibaba cloud accounts.
	CrossRoleName pulumi.StringOutput `pulumi:"crossRoleName"`
	// The database region.
	DatabaseRegion pulumi.StringPtrOutput `pulumi:"databaseRegion"`
	// Database type. Valid values: `DRDS`, `FIle`, `MSSQL`, `MariaDB`, `MongoDB`, `MySQL`, `Oracle`, `PPAS`, `PostgreSQL`, `Redis`.
	DatabaseType pulumi.StringOutput `pulumi:"databaseType"`
	// The storage time for conversion to archive cold standby is 365 days by default.
	DuplicationArchivePeriod pulumi.IntOutput `pulumi:"duplicationArchivePeriod"`
	// The storage time is converted to low-frequency access. The default time is 180 days.
	DuplicationInfrequentAccessPeriod pulumi.IntOutput `pulumi:"duplicationInfrequentAccessPeriod"`
	// Whether to enable incremental log Backup.
	EnableBackupLog pulumi.BoolOutput `pulumi:"enableBackupLog"`
	// The instance class. Valid values: `large`, `medium`, `micro`, `small`, `xlarge`.
	InstanceClass pulumi.StringOutput `pulumi:"instanceClass"`
	// The instance type. Valid values: `RDS`, `PolarDB`, `DDS`, `Kvstore`, `Other`.
	InstanceType pulumi.StringPtrOutput `pulumi:"instanceType"`
	// The OSS Bucket name. The system automatically generates a new name by default.
	OssBucketName pulumi.StringOutput `pulumi:"ossBucketName"`
	// The payment type of the resource. Valid values: `PayAsYouGo`, `Subscription`.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// Specify that the prepaid instance is of the package year or monthly type. Valid values: `Month`, `Year`.
	Period pulumi.StringPtrOutput `pulumi:"period"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
	// The name of the database. This parameter is required when the `databaseType` is `PostgreSQL` or `MongoDB`.
	SourceEndpointDatabaseName pulumi.StringOutput `pulumi:"sourceEndpointDatabaseName"`
	// The ID of the database instance. This parameter is required when the `sourceEndpointInstanceType` is `RDS`, `ECS`, `DDS`, or `Express`.
	SourceEndpointInstanceId pulumi.StringOutput `pulumi:"sourceEndpointInstanceId"`
	// The location of the database. Valid values: `RDS`, `ECS`, `Express`, `Agent`, `DDS`, `Other`.
	SourceEndpointInstanceType pulumi.StringOutput `pulumi:"sourceEndpointInstanceType"`
	// The source endpoint ip.
	SourceEndpointIp pulumi.StringPtrOutput `pulumi:"sourceEndpointIp"`
	// Oracle SID name. This parameter is required when the `databaseType` is `Oracle`.
	SourceEndpointOracleSid pulumi.StringPtrOutput `pulumi:"sourceEndpointOracleSid"`
	// The source endpoint password.  This parameter is not required when the `databaseType` is `Redis`, or when the `sourceEndpointInstanceType` is `Agent` and the `databaseType` is `MSSQL`. This parameter is required in other scenarios.
	SourceEndpointPassword pulumi.StringPtrOutput `pulumi:"sourceEndpointPassword"`
	// The source endpoint port.
	SourceEndpointPort pulumi.IntPtrOutput `pulumi:"sourceEndpointPort"`
	// The region of the database. This parameter is required when the `sourceEndpointInstanceType` is `RDS`, `ECS`, `DDS`, `Express`, or `Agent`.
	SourceEndpointRegion pulumi.StringOutput `pulumi:"sourceEndpointRegion"`
	// Oracle SID name. This parameter is required when the `databaseType` is `Oracle`.
	SourceEndpointSid pulumi.StringOutput `pulumi:"sourceEndpointSid"`
	// The source endpoint username. This parameter is not required when the `databaseType` is `Redis`, or when the `sourceEndpointInstanceType` is `Agent` and the `databaseType` is `MSSQL`. This parameter is required in other scenarios.
	SourceEndpointUserName pulumi.StringOutput `pulumi:"sourceEndpointUserName"`
	// The status of the resource. Valid values: `pause`, `running`.
	Status pulumi.StringOutput `pulumi:"status"`
	// The storage region.
	StorageRegion pulumi.StringPtrOutput `pulumi:"storageRegion"`
	// Specify purchase duration. When the parameter `period` is `Year`, the `usedTime` value is 1 to 9. When the parameter `period` is `Month`, the `usedTime` value is 1 to 11.
	UsedTime pulumi.IntPtrOutput `pulumi:"usedTime"`
}

Provides a DBS Backup Plan resource.

For information about DBS Backup Plan and how to use it, see [What is Backup Plan](https://www.alibabacloud.com/help/en/dbs/developer-reference/api-dbs-2019-03-06-createandstartbackupplan).

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

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dbs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
"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"
"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
		}
		_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			Status: pulumi.StringRef("OK"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetZones, err := rds.GetZones(ctx, &rds.GetZonesArgs{
			Engine:                pulumi.StringRef("MySQL"),
			EngineVersion:         pulumi.StringRef("8.0"),
			InstanceChargeType:    pulumi.StringRef("PostPaid"),
			Category:              pulumi.StringRef("HighAvailability"),
			DbInstanceStorageType: pulumi.StringRef("cloud_essd"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetInstanceClasses, err := rds.GetInstanceClasses(ctx, &rds.GetInstanceClassesArgs{
			ZoneId:                pulumi.StringRef(defaultGetZones.Zones[1].Id),
			Engine:                pulumi.StringRef("MySQL"),
			EngineVersion:         pulumi.StringRef("8.0"),
			Category:              pulumi.StringRef("HighAvailability"),
			DbInstanceStorageType: pulumi.StringRef("cloud_essd"),
			InstanceChargeType:    pulumi.StringRef("PostPaid"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("^default-NODELETING"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultGetZones.Zones[1].Id),
		}, nil)
		if err != nil {
			return err
		}
		vswitchId := defaultGetSwitches.Ids[0]
		_ := defaultGetZones.Ids[1]
		_, err = ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
			Name:  pulumi.String(name),
			VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := rds.NewInstance(ctx, "default", &rds.InstanceArgs{
			Engine:                pulumi.String("MySQL"),
			EngineVersion:         pulumi.String("8.0"),
			DbInstanceStorageType: pulumi.String("cloud_essd"),
			InstanceType:          pulumi.String(defaultGetInstanceClasses.InstanceClasses[0].InstanceClass),
			InstanceStorage:       pulumi.String(defaultGetInstanceClasses.InstanceClasses[0].StorageRange.Min),
			VswitchId:             pulumi.String(vswitchId),
			InstanceName:          pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultDatabase, err := rds.NewDatabase(ctx, "default", &rds.DatabaseArgs{
			InstanceId: defaultInstance.ID(),
			Name:       pulumi.String("tfdatabase"),
		})
		if err != nil {
			return err
		}
		defaultRdsAccount, err := rds.NewRdsAccount(ctx, "default", &rds.RdsAccountArgs{
			DbInstanceId:    defaultInstance.ID(),
			AccountName:     pulumi.String("tfnormal000"),
			AccountPassword: pulumi.String("Test12345"),
		})
		if err != nil {
			return err
		}
		defaultAccountPrivilege, err := rds.NewAccountPrivilege(ctx, "default", &rds.AccountPrivilegeArgs{
			InstanceId:  defaultInstance.ID(),
			AccountName: defaultRdsAccount.AccountName,
			Privilege:   pulumi.String("ReadWrite"),
			DbNames: pulumi.StringArray{
				defaultDatabase.Name,
			},
		})
		if err != nil {
			return err
		}
		_, err = dbs.NewBackupPlan(ctx, "default", &dbs.BackupPlanArgs{
			BackupPlanName:             pulumi.String(name),
			PaymentType:                pulumi.String("PayAsYouGo"),
			InstanceClass:              pulumi.String("xlarge"),
			BackupMethod:               pulumi.String("logical"),
			DatabaseType:               pulumi.String("MySQL"),
			DatabaseRegion:             pulumi.String("cn-hangzhou"),
			StorageRegion:              pulumi.String("cn-hangzhou"),
			InstanceType:               pulumi.String("RDS"),
			SourceEndpointInstanceType: pulumi.String("RDS"),
			ResourceGroupId:            pulumi.String(_default.Ids[0]),
			SourceEndpointRegion:       pulumi.String("cn-hangzhou"),
			SourceEndpointInstanceId:   defaultInstance.ID(),
			SourceEndpointUserName:     defaultAccountPrivilege.AccountName,
			SourceEndpointPassword:     defaultRdsAccount.AccountPassword,
			BackupObjects: defaultDatabase.Name.ApplyT(func(name string) (string, error) {
				return fmt.Sprintf("[{\"DBName\":\"%v\"}]", name), nil
			}).(pulumi.StringOutput),
			BackupPeriod:          pulumi.String("Monday"),
			BackupStartTime:       pulumi.String("14:22"),
			BackupStorageType:     pulumi.String("system"),
			BackupRetentionPeriod: pulumi.Int(740),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh $ pulumi import alicloud:dbs/backupPlan:BackupPlan example <id> ```

func GetBackupPlan

func GetBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BackupPlanState, opts ...pulumi.ResourceOption) (*BackupPlan, error)

GetBackupPlan gets an existing BackupPlan 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 NewBackupPlan

func NewBackupPlan(ctx *pulumi.Context,
	name string, args *BackupPlanArgs, opts ...pulumi.ResourceOption) (*BackupPlan, error)

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

func (*BackupPlan) ElementType

func (*BackupPlan) ElementType() reflect.Type

func (*BackupPlan) ToBackupPlanOutput

func (i *BackupPlan) ToBackupPlanOutput() BackupPlanOutput

func (*BackupPlan) ToBackupPlanOutputWithContext

func (i *BackupPlan) ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput

type BackupPlanArgs

type BackupPlanArgs struct {
	// The ID of the backup gateway. This parameter is required when the `sourceEndpointInstanceType` is `Agent`.
	BackupGatewayId pulumi.StringPtrInput
	// The backup log interval seconds.
	BackupLogIntervalSeconds pulumi.IntPtrInput
	// Backup method. Valid values: `duplication`, `logical`, `physical`.
	BackupMethod pulumi.StringInput
	// The backup object.
	BackupObjects pulumi.StringPtrInput
	// Full backup cycle, Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. supports the selection of multiple fetch values, separated by English commas (,).
	BackupPeriod pulumi.StringPtrInput
	// The name of the resource.
	BackupPlanName pulumi.StringInput
	// The backup rate limit.
	BackupRateLimit pulumi.StringPtrInput
	// The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
	BackupRetentionPeriod pulumi.IntPtrInput
	// The backup speed limit.
	BackupSpeedLimit pulumi.StringPtrInput
	// The start time of full Backup. The format is `<I> HH:mm</I>` Z(UTC time).
	BackupStartTime pulumi.StringPtrInput
	// Built-in storage type, Valid values: `system`.
	BackupStorageType pulumi.StringPtrInput
	// The backup strategy type. Valid values: `simple`, `manual`.
	BackupStrategyType pulumi.StringPtrInput
	// The UID that is backed up across Alibaba cloud accounts.
	CrossAliyunId pulumi.StringPtrInput
	// The name of the RAM role that is backed up across Alibaba cloud accounts.
	CrossRoleName pulumi.StringPtrInput
	// The database region.
	DatabaseRegion pulumi.StringPtrInput
	// Database type. Valid values: `DRDS`, `FIle`, `MSSQL`, `MariaDB`, `MongoDB`, `MySQL`, `Oracle`, `PPAS`, `PostgreSQL`, `Redis`.
	DatabaseType pulumi.StringInput
	// The storage time for conversion to archive cold standby is 365 days by default.
	DuplicationArchivePeriod pulumi.IntPtrInput
	// The storage time is converted to low-frequency access. The default time is 180 days.
	DuplicationInfrequentAccessPeriod pulumi.IntPtrInput
	// Whether to enable incremental log Backup.
	EnableBackupLog pulumi.BoolPtrInput
	// The instance class. Valid values: `large`, `medium`, `micro`, `small`, `xlarge`.
	InstanceClass pulumi.StringInput
	// The instance type. Valid values: `RDS`, `PolarDB`, `DDS`, `Kvstore`, `Other`.
	InstanceType pulumi.StringPtrInput
	// The OSS Bucket name. The system automatically generates a new name by default.
	OssBucketName pulumi.StringPtrInput
	// The payment type of the resource. Valid values: `PayAsYouGo`, `Subscription`.
	PaymentType pulumi.StringPtrInput
	// Specify that the prepaid instance is of the package year or monthly type. Valid values: `Month`, `Year`.
	Period pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The name of the database. This parameter is required when the `databaseType` is `PostgreSQL` or `MongoDB`.
	SourceEndpointDatabaseName pulumi.StringPtrInput
	// The ID of the database instance. This parameter is required when the `sourceEndpointInstanceType` is `RDS`, `ECS`, `DDS`, or `Express`.
	SourceEndpointInstanceId pulumi.StringPtrInput
	// The location of the database. Valid values: `RDS`, `ECS`, `Express`, `Agent`, `DDS`, `Other`.
	SourceEndpointInstanceType pulumi.StringInput
	// The source endpoint ip.
	SourceEndpointIp pulumi.StringPtrInput
	// Oracle SID name. This parameter is required when the `databaseType` is `Oracle`.
	SourceEndpointOracleSid pulumi.StringPtrInput
	// The source endpoint password.  This parameter is not required when the `databaseType` is `Redis`, or when the `sourceEndpointInstanceType` is `Agent` and the `databaseType` is `MSSQL`. This parameter is required in other scenarios.
	SourceEndpointPassword pulumi.StringPtrInput
	// The source endpoint port.
	SourceEndpointPort pulumi.IntPtrInput
	// The region of the database. This parameter is required when the `sourceEndpointInstanceType` is `RDS`, `ECS`, `DDS`, `Express`, or `Agent`.
	SourceEndpointRegion pulumi.StringPtrInput
	// Oracle SID name. This parameter is required when the `databaseType` is `Oracle`.
	SourceEndpointSid pulumi.StringPtrInput
	// The source endpoint username. This parameter is not required when the `databaseType` is `Redis`, or when the `sourceEndpointInstanceType` is `Agent` and the `databaseType` is `MSSQL`. This parameter is required in other scenarios.
	SourceEndpointUserName pulumi.StringPtrInput
	// The status of the resource. Valid values: `pause`, `running`.
	Status pulumi.StringPtrInput
	// The storage region.
	StorageRegion pulumi.StringPtrInput
	// Specify purchase duration. When the parameter `period` is `Year`, the `usedTime` value is 1 to 9. When the parameter `period` is `Month`, the `usedTime` value is 1 to 11.
	UsedTime pulumi.IntPtrInput
}

The set of arguments for constructing a BackupPlan resource.

func (BackupPlanArgs) ElementType

func (BackupPlanArgs) ElementType() reflect.Type

type BackupPlanArray

type BackupPlanArray []BackupPlanInput

func (BackupPlanArray) ElementType

func (BackupPlanArray) ElementType() reflect.Type

func (BackupPlanArray) ToBackupPlanArrayOutput

func (i BackupPlanArray) ToBackupPlanArrayOutput() BackupPlanArrayOutput

func (BackupPlanArray) ToBackupPlanArrayOutputWithContext

func (i BackupPlanArray) ToBackupPlanArrayOutputWithContext(ctx context.Context) BackupPlanArrayOutput

type BackupPlanArrayInput

type BackupPlanArrayInput interface {
	pulumi.Input

	ToBackupPlanArrayOutput() BackupPlanArrayOutput
	ToBackupPlanArrayOutputWithContext(context.Context) BackupPlanArrayOutput
}

BackupPlanArrayInput is an input type that accepts BackupPlanArray and BackupPlanArrayOutput values. You can construct a concrete instance of `BackupPlanArrayInput` via:

BackupPlanArray{ BackupPlanArgs{...} }

type BackupPlanArrayOutput

type BackupPlanArrayOutput struct{ *pulumi.OutputState }

func (BackupPlanArrayOutput) ElementType

func (BackupPlanArrayOutput) ElementType() reflect.Type

func (BackupPlanArrayOutput) Index

func (BackupPlanArrayOutput) ToBackupPlanArrayOutput

func (o BackupPlanArrayOutput) ToBackupPlanArrayOutput() BackupPlanArrayOutput

func (BackupPlanArrayOutput) ToBackupPlanArrayOutputWithContext

func (o BackupPlanArrayOutput) ToBackupPlanArrayOutputWithContext(ctx context.Context) BackupPlanArrayOutput

type BackupPlanInput

type BackupPlanInput interface {
	pulumi.Input

	ToBackupPlanOutput() BackupPlanOutput
	ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput
}

type BackupPlanMap

type BackupPlanMap map[string]BackupPlanInput

func (BackupPlanMap) ElementType

func (BackupPlanMap) ElementType() reflect.Type

func (BackupPlanMap) ToBackupPlanMapOutput

func (i BackupPlanMap) ToBackupPlanMapOutput() BackupPlanMapOutput

func (BackupPlanMap) ToBackupPlanMapOutputWithContext

func (i BackupPlanMap) ToBackupPlanMapOutputWithContext(ctx context.Context) BackupPlanMapOutput

type BackupPlanMapInput

type BackupPlanMapInput interface {
	pulumi.Input

	ToBackupPlanMapOutput() BackupPlanMapOutput
	ToBackupPlanMapOutputWithContext(context.Context) BackupPlanMapOutput
}

BackupPlanMapInput is an input type that accepts BackupPlanMap and BackupPlanMapOutput values. You can construct a concrete instance of `BackupPlanMapInput` via:

BackupPlanMap{ "key": BackupPlanArgs{...} }

type BackupPlanMapOutput

type BackupPlanMapOutput struct{ *pulumi.OutputState }

func (BackupPlanMapOutput) ElementType

func (BackupPlanMapOutput) ElementType() reflect.Type

func (BackupPlanMapOutput) MapIndex

func (BackupPlanMapOutput) ToBackupPlanMapOutput

func (o BackupPlanMapOutput) ToBackupPlanMapOutput() BackupPlanMapOutput

func (BackupPlanMapOutput) ToBackupPlanMapOutputWithContext

func (o BackupPlanMapOutput) ToBackupPlanMapOutputWithContext(ctx context.Context) BackupPlanMapOutput

type BackupPlanOutput

type BackupPlanOutput struct{ *pulumi.OutputState }

func (BackupPlanOutput) BackupGatewayId

func (o BackupPlanOutput) BackupGatewayId() pulumi.StringOutput

The ID of the backup gateway. This parameter is required when the `sourceEndpointInstanceType` is `Agent`.

func (BackupPlanOutput) BackupLogIntervalSeconds

func (o BackupPlanOutput) BackupLogIntervalSeconds() pulumi.IntPtrOutput

The backup log interval seconds.

func (BackupPlanOutput) BackupMethod

func (o BackupPlanOutput) BackupMethod() pulumi.StringOutput

Backup method. Valid values: `duplication`, `logical`, `physical`.

func (BackupPlanOutput) BackupObjects

func (o BackupPlanOutput) BackupObjects() pulumi.StringOutput

The backup object.

func (BackupPlanOutput) BackupPeriod

func (o BackupPlanOutput) BackupPeriod() pulumi.StringOutput

Full backup cycle, Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. supports the selection of multiple fetch values, separated by English commas (,).

func (BackupPlanOutput) BackupPlanName

func (o BackupPlanOutput) BackupPlanName() pulumi.StringOutput

The name of the resource.

func (BackupPlanOutput) BackupRateLimit

func (o BackupPlanOutput) BackupRateLimit() pulumi.StringPtrOutput

The backup rate limit.

func (BackupPlanOutput) BackupRetentionPeriod

func (o BackupPlanOutput) BackupRetentionPeriod() pulumi.IntOutput

The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.

func (BackupPlanOutput) BackupSpeedLimit

func (o BackupPlanOutput) BackupSpeedLimit() pulumi.StringPtrOutput

The backup speed limit.

func (BackupPlanOutput) BackupStartTime

func (o BackupPlanOutput) BackupStartTime() pulumi.StringOutput

The start time of full Backup. The format is `<I> HH:mm</I>` Z(UTC time).

func (BackupPlanOutput) BackupStorageType

func (o BackupPlanOutput) BackupStorageType() pulumi.StringOutput

Built-in storage type, Valid values: `system`.

func (BackupPlanOutput) BackupStrategyType

func (o BackupPlanOutput) BackupStrategyType() pulumi.StringPtrOutput

The backup strategy type. Valid values: `simple`, `manual`.

func (BackupPlanOutput) CrossAliyunId

func (o BackupPlanOutput) CrossAliyunId() pulumi.StringOutput

The UID that is backed up across Alibaba cloud accounts.

func (BackupPlanOutput) CrossRoleName

func (o BackupPlanOutput) CrossRoleName() pulumi.StringOutput

The name of the RAM role that is backed up across Alibaba cloud accounts.

func (BackupPlanOutput) DatabaseRegion

func (o BackupPlanOutput) DatabaseRegion() pulumi.StringPtrOutput

The database region.

func (BackupPlanOutput) DatabaseType

func (o BackupPlanOutput) DatabaseType() pulumi.StringOutput

Database type. Valid values: `DRDS`, `FIle`, `MSSQL`, `MariaDB`, `MongoDB`, `MySQL`, `Oracle`, `PPAS`, `PostgreSQL`, `Redis`.

func (BackupPlanOutput) DuplicationArchivePeriod

func (o BackupPlanOutput) DuplicationArchivePeriod() pulumi.IntOutput

The storage time for conversion to archive cold standby is 365 days by default.

func (BackupPlanOutput) DuplicationInfrequentAccessPeriod

func (o BackupPlanOutput) DuplicationInfrequentAccessPeriod() pulumi.IntOutput

The storage time is converted to low-frequency access. The default time is 180 days.

func (BackupPlanOutput) ElementType

func (BackupPlanOutput) ElementType() reflect.Type

func (BackupPlanOutput) EnableBackupLog

func (o BackupPlanOutput) EnableBackupLog() pulumi.BoolOutput

Whether to enable incremental log Backup.

func (BackupPlanOutput) InstanceClass

func (o BackupPlanOutput) InstanceClass() pulumi.StringOutput

The instance class. Valid values: `large`, `medium`, `micro`, `small`, `xlarge`.

func (BackupPlanOutput) InstanceType

func (o BackupPlanOutput) InstanceType() pulumi.StringPtrOutput

The instance type. Valid values: `RDS`, `PolarDB`, `DDS`, `Kvstore`, `Other`.

func (BackupPlanOutput) OssBucketName

func (o BackupPlanOutput) OssBucketName() pulumi.StringOutput

The OSS Bucket name. The system automatically generates a new name by default.

func (BackupPlanOutput) PaymentType

func (o BackupPlanOutput) PaymentType() pulumi.StringOutput

The payment type of the resource. Valid values: `PayAsYouGo`, `Subscription`.

func (BackupPlanOutput) Period

Specify that the prepaid instance is of the package year or monthly type. Valid values: `Month`, `Year`.

func (BackupPlanOutput) ResourceGroupId

func (o BackupPlanOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (BackupPlanOutput) SourceEndpointDatabaseName

func (o BackupPlanOutput) SourceEndpointDatabaseName() pulumi.StringOutput

The name of the database. This parameter is required when the `databaseType` is `PostgreSQL` or `MongoDB`.

func (BackupPlanOutput) SourceEndpointInstanceId

func (o BackupPlanOutput) SourceEndpointInstanceId() pulumi.StringOutput

The ID of the database instance. This parameter is required when the `sourceEndpointInstanceType` is `RDS`, `ECS`, `DDS`, or `Express`.

func (BackupPlanOutput) SourceEndpointInstanceType

func (o BackupPlanOutput) SourceEndpointInstanceType() pulumi.StringOutput

The location of the database. Valid values: `RDS`, `ECS`, `Express`, `Agent`, `DDS`, `Other`.

func (BackupPlanOutput) SourceEndpointIp

func (o BackupPlanOutput) SourceEndpointIp() pulumi.StringPtrOutput

The source endpoint ip.

func (BackupPlanOutput) SourceEndpointOracleSid

func (o BackupPlanOutput) SourceEndpointOracleSid() pulumi.StringPtrOutput

Oracle SID name. This parameter is required when the `databaseType` is `Oracle`.

func (BackupPlanOutput) SourceEndpointPassword

func (o BackupPlanOutput) SourceEndpointPassword() pulumi.StringPtrOutput

The source endpoint password. This parameter is not required when the `databaseType` is `Redis`, or when the `sourceEndpointInstanceType` is `Agent` and the `databaseType` is `MSSQL`. This parameter is required in other scenarios.

func (BackupPlanOutput) SourceEndpointPort

func (o BackupPlanOutput) SourceEndpointPort() pulumi.IntPtrOutput

The source endpoint port.

func (BackupPlanOutput) SourceEndpointRegion

func (o BackupPlanOutput) SourceEndpointRegion() pulumi.StringOutput

The region of the database. This parameter is required when the `sourceEndpointInstanceType` is `RDS`, `ECS`, `DDS`, `Express`, or `Agent`.

func (BackupPlanOutput) SourceEndpointSid

func (o BackupPlanOutput) SourceEndpointSid() pulumi.StringOutput

Oracle SID name. This parameter is required when the `databaseType` is `Oracle`.

func (BackupPlanOutput) SourceEndpointUserName

func (o BackupPlanOutput) SourceEndpointUserName() pulumi.StringOutput

The source endpoint username. This parameter is not required when the `databaseType` is `Redis`, or when the `sourceEndpointInstanceType` is `Agent` and the `databaseType` is `MSSQL`. This parameter is required in other scenarios.

func (BackupPlanOutput) Status

The status of the resource. Valid values: `pause`, `running`.

func (BackupPlanOutput) StorageRegion

func (o BackupPlanOutput) StorageRegion() pulumi.StringPtrOutput

The storage region.

func (BackupPlanOutput) ToBackupPlanOutput

func (o BackupPlanOutput) ToBackupPlanOutput() BackupPlanOutput

func (BackupPlanOutput) ToBackupPlanOutputWithContext

func (o BackupPlanOutput) ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput

func (BackupPlanOutput) UsedTime

func (o BackupPlanOutput) UsedTime() pulumi.IntPtrOutput

Specify purchase duration. When the parameter `period` is `Year`, the `usedTime` value is 1 to 9. When the parameter `period` is `Month`, the `usedTime` value is 1 to 11.

type BackupPlanState

type BackupPlanState struct {
	// The ID of the backup gateway. This parameter is required when the `sourceEndpointInstanceType` is `Agent`.
	BackupGatewayId pulumi.StringPtrInput
	// The backup log interval seconds.
	BackupLogIntervalSeconds pulumi.IntPtrInput
	// Backup method. Valid values: `duplication`, `logical`, `physical`.
	BackupMethod pulumi.StringPtrInput
	// The backup object.
	BackupObjects pulumi.StringPtrInput
	// Full backup cycle, Valid values: `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`. supports the selection of multiple fetch values, separated by English commas (,).
	BackupPeriod pulumi.StringPtrInput
	// The name of the resource.
	BackupPlanName pulumi.StringPtrInput
	// The backup rate limit.
	BackupRateLimit pulumi.StringPtrInput
	// The retention time of backup data. Valid values: 0 to 1825. Default value: 730 days.
	BackupRetentionPeriod pulumi.IntPtrInput
	// The backup speed limit.
	BackupSpeedLimit pulumi.StringPtrInput
	// The start time of full Backup. The format is `<I> HH:mm</I>` Z(UTC time).
	BackupStartTime pulumi.StringPtrInput
	// Built-in storage type, Valid values: `system`.
	BackupStorageType pulumi.StringPtrInput
	// The backup strategy type. Valid values: `simple`, `manual`.
	BackupStrategyType pulumi.StringPtrInput
	// The UID that is backed up across Alibaba cloud accounts.
	CrossAliyunId pulumi.StringPtrInput
	// The name of the RAM role that is backed up across Alibaba cloud accounts.
	CrossRoleName pulumi.StringPtrInput
	// The database region.
	DatabaseRegion pulumi.StringPtrInput
	// Database type. Valid values: `DRDS`, `FIle`, `MSSQL`, `MariaDB`, `MongoDB`, `MySQL`, `Oracle`, `PPAS`, `PostgreSQL`, `Redis`.
	DatabaseType pulumi.StringPtrInput
	// The storage time for conversion to archive cold standby is 365 days by default.
	DuplicationArchivePeriod pulumi.IntPtrInput
	// The storage time is converted to low-frequency access. The default time is 180 days.
	DuplicationInfrequentAccessPeriod pulumi.IntPtrInput
	// Whether to enable incremental log Backup.
	EnableBackupLog pulumi.BoolPtrInput
	// The instance class. Valid values: `large`, `medium`, `micro`, `small`, `xlarge`.
	InstanceClass pulumi.StringPtrInput
	// The instance type. Valid values: `RDS`, `PolarDB`, `DDS`, `Kvstore`, `Other`.
	InstanceType pulumi.StringPtrInput
	// The OSS Bucket name. The system automatically generates a new name by default.
	OssBucketName pulumi.StringPtrInput
	// The payment type of the resource. Valid values: `PayAsYouGo`, `Subscription`.
	PaymentType pulumi.StringPtrInput
	// Specify that the prepaid instance is of the package year or monthly type. Valid values: `Month`, `Year`.
	Period pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// The name of the database. This parameter is required when the `databaseType` is `PostgreSQL` or `MongoDB`.
	SourceEndpointDatabaseName pulumi.StringPtrInput
	// The ID of the database instance. This parameter is required when the `sourceEndpointInstanceType` is `RDS`, `ECS`, `DDS`, or `Express`.
	SourceEndpointInstanceId pulumi.StringPtrInput
	// The location of the database. Valid values: `RDS`, `ECS`, `Express`, `Agent`, `DDS`, `Other`.
	SourceEndpointInstanceType pulumi.StringPtrInput
	// The source endpoint ip.
	SourceEndpointIp pulumi.StringPtrInput
	// Oracle SID name. This parameter is required when the `databaseType` is `Oracle`.
	SourceEndpointOracleSid pulumi.StringPtrInput
	// The source endpoint password.  This parameter is not required when the `databaseType` is `Redis`, or when the `sourceEndpointInstanceType` is `Agent` and the `databaseType` is `MSSQL`. This parameter is required in other scenarios.
	SourceEndpointPassword pulumi.StringPtrInput
	// The source endpoint port.
	SourceEndpointPort pulumi.IntPtrInput
	// The region of the database. This parameter is required when the `sourceEndpointInstanceType` is `RDS`, `ECS`, `DDS`, `Express`, or `Agent`.
	SourceEndpointRegion pulumi.StringPtrInput
	// Oracle SID name. This parameter is required when the `databaseType` is `Oracle`.
	SourceEndpointSid pulumi.StringPtrInput
	// The source endpoint username. This parameter is not required when the `databaseType` is `Redis`, or when the `sourceEndpointInstanceType` is `Agent` and the `databaseType` is `MSSQL`. This parameter is required in other scenarios.
	SourceEndpointUserName pulumi.StringPtrInput
	// The status of the resource. Valid values: `pause`, `running`.
	Status pulumi.StringPtrInput
	// The storage region.
	StorageRegion pulumi.StringPtrInput
	// Specify purchase duration. When the parameter `period` is `Year`, the `usedTime` value is 1 to 9. When the parameter `period` is `Month`, the `usedTime` value is 1 to 11.
	UsedTime pulumi.IntPtrInput
}

func (BackupPlanState) ElementType

func (BackupPlanState) ElementType() reflect.Type

type GetBackupPlansArgs

type GetBackupPlansArgs struct {
	// The name of the resource.
	BackupPlanName *string `pulumi:"backupPlanName"`
	// Default to `true`. Set it to `false` can hide the `paymentType` to output.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Backup Plan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by 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 status of the resource. Valid values: `checkPass`, `init`, `locked`, `pause`, `running`, `stop`, `wait`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getBackupPlans.

type GetBackupPlansOutputArgs

type GetBackupPlansOutputArgs struct {
	// The name of the resource.
	BackupPlanName pulumi.StringPtrInput `pulumi:"backupPlanName"`
	// Default to `true`. Set it to `false` can hide the `paymentType` to output.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of Backup Plan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by 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 status of the resource. Valid values: `checkPass`, `init`, `locked`, `pause`, `running`, `stop`, `wait`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getBackupPlans.

func (GetBackupPlansOutputArgs) ElementType

func (GetBackupPlansOutputArgs) ElementType() reflect.Type

type GetBackupPlansPlan

type GetBackupPlansPlan struct {
	// The ID of the backup gateway.
	BackupGatewayId string `pulumi:"backupGatewayId"`
	// The Backup method.
	BackupMethod string `pulumi:"backupMethod"`
	// The backup object.
	BackupObjects string `pulumi:"backupObjects"`
	// Full backup cycle.
	BackupPeriod string `pulumi:"backupPeriod"`
	// The first ID of the resource.
	BackupPlanId string `pulumi:"backupPlanId"`
	// The name of the resource.
	BackupPlanName string `pulumi:"backupPlanName"`
	// The retention time of backup data.
	BackupRetentionPeriod int `pulumi:"backupRetentionPeriod"`
	// The start time of full Backup.
	BackupStartTime string `pulumi:"backupStartTime"`
	// Built-in storage type.
	BackupStorageType string `pulumi:"backupStorageType"`
	// The UID that is backed up across Alibaba cloud accounts.
	CrossAliyunId string `pulumi:"crossAliyunId"`
	// The name of the RAM role that is backed up across Alibaba cloud accounts.
	CrossRoleName string `pulumi:"crossRoleName"`
	// The database type.
	DatabaseType string `pulumi:"databaseType"`
	// The storage time for conversion to archive cold standby is 365 days by default.
	DuplicationArchivePeriod int `pulumi:"duplicationArchivePeriod"`
	// The storage time is converted to low-frequency access. The default time is 180 days.
	DuplicationInfrequentAccessPeriod int `pulumi:"duplicationInfrequentAccessPeriod"`
	// Whether to enable incremental log Backup.
	EnableBackupLog bool `pulumi:"enableBackupLog"`
	// The ID of the Backup Plan.
	Id string `pulumi:"id"`
	// The Instance class.
	InstanceClass string `pulumi:"instanceClass"`
	// The OSS Bucket name.
	OssBucketName string `pulumi:"ossBucketName"`
	// The payment type of the resource.
	PaymentType string `pulumi:"paymentType"`
	// The ID of the resource group.
	ResourceGroupId string `pulumi:"resourceGroupId"`
	// The name of the database.
	SourceEndpointDatabaseName string `pulumi:"sourceEndpointDatabaseName"`
	// The ID of the database instance.
	SourceEndpointInstanceId string `pulumi:"sourceEndpointInstanceId"`
	// The location of the database.
	SourceEndpointInstanceType string `pulumi:"sourceEndpointInstanceType"`
	// The region of the database.
	SourceEndpointRegion string `pulumi:"sourceEndpointRegion"`
	// The Oracle SID name.
	SourceEndpointSid string `pulumi:"sourceEndpointSid"`
	// The source endpoint username.
	SourceEndpointUserName string `pulumi:"sourceEndpointUserName"`
	// The status of the resource.
	Status string `pulumi:"status"`
}

type GetBackupPlansPlanArgs

type GetBackupPlansPlanArgs struct {
	// The ID of the backup gateway.
	BackupGatewayId pulumi.StringInput `pulumi:"backupGatewayId"`
	// The Backup method.
	BackupMethod pulumi.StringInput `pulumi:"backupMethod"`
	// The backup object.
	BackupObjects pulumi.StringInput `pulumi:"backupObjects"`
	// Full backup cycle.
	BackupPeriod pulumi.StringInput `pulumi:"backupPeriod"`
	// The first ID of the resource.
	BackupPlanId pulumi.StringInput `pulumi:"backupPlanId"`
	// The name of the resource.
	BackupPlanName pulumi.StringInput `pulumi:"backupPlanName"`
	// The retention time of backup data.
	BackupRetentionPeriod pulumi.IntInput `pulumi:"backupRetentionPeriod"`
	// The start time of full Backup.
	BackupStartTime pulumi.StringInput `pulumi:"backupStartTime"`
	// Built-in storage type.
	BackupStorageType pulumi.StringInput `pulumi:"backupStorageType"`
	// The UID that is backed up across Alibaba cloud accounts.
	CrossAliyunId pulumi.StringInput `pulumi:"crossAliyunId"`
	// The name of the RAM role that is backed up across Alibaba cloud accounts.
	CrossRoleName pulumi.StringInput `pulumi:"crossRoleName"`
	// The database type.
	DatabaseType pulumi.StringInput `pulumi:"databaseType"`
	// The storage time for conversion to archive cold standby is 365 days by default.
	DuplicationArchivePeriod pulumi.IntInput `pulumi:"duplicationArchivePeriod"`
	// The storage time is converted to low-frequency access. The default time is 180 days.
	DuplicationInfrequentAccessPeriod pulumi.IntInput `pulumi:"duplicationInfrequentAccessPeriod"`
	// Whether to enable incremental log Backup.
	EnableBackupLog pulumi.BoolInput `pulumi:"enableBackupLog"`
	// The ID of the Backup Plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The Instance class.
	InstanceClass pulumi.StringInput `pulumi:"instanceClass"`
	// The OSS Bucket name.
	OssBucketName pulumi.StringInput `pulumi:"ossBucketName"`
	// The payment type of the resource.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringInput `pulumi:"resourceGroupId"`
	// The name of the database.
	SourceEndpointDatabaseName pulumi.StringInput `pulumi:"sourceEndpointDatabaseName"`
	// The ID of the database instance.
	SourceEndpointInstanceId pulumi.StringInput `pulumi:"sourceEndpointInstanceId"`
	// The location of the database.
	SourceEndpointInstanceType pulumi.StringInput `pulumi:"sourceEndpointInstanceType"`
	// The region of the database.
	SourceEndpointRegion pulumi.StringInput `pulumi:"sourceEndpointRegion"`
	// The Oracle SID name.
	SourceEndpointSid pulumi.StringInput `pulumi:"sourceEndpointSid"`
	// The source endpoint username.
	SourceEndpointUserName pulumi.StringInput `pulumi:"sourceEndpointUserName"`
	// The status of the resource.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetBackupPlansPlanArgs) ElementType

func (GetBackupPlansPlanArgs) ElementType() reflect.Type

func (GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutput

func (i GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput

func (GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutputWithContext

func (i GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput

type GetBackupPlansPlanArray

type GetBackupPlansPlanArray []GetBackupPlansPlanInput

func (GetBackupPlansPlanArray) ElementType

func (GetBackupPlansPlanArray) ElementType() reflect.Type

func (GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutput

func (i GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput

func (GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutputWithContext

func (i GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput

type GetBackupPlansPlanArrayInput

type GetBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput
	ToGetBackupPlansPlanArrayOutputWithContext(context.Context) GetBackupPlansPlanArrayOutput
}

GetBackupPlansPlanArrayInput is an input type that accepts GetBackupPlansPlanArray and GetBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetBackupPlansPlanArrayInput` via:

GetBackupPlansPlanArray{ GetBackupPlansPlanArgs{...} }

type GetBackupPlansPlanArrayOutput

type GetBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetBackupPlansPlanArrayOutput) ElementType

func (GetBackupPlansPlanArrayOutput) Index

func (GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutput

func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput

func (GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutputWithContext

func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput

type GetBackupPlansPlanInput

type GetBackupPlansPlanInput interface {
	pulumi.Input

	ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput
	ToGetBackupPlansPlanOutputWithContext(context.Context) GetBackupPlansPlanOutput
}

GetBackupPlansPlanInput is an input type that accepts GetBackupPlansPlanArgs and GetBackupPlansPlanOutput values. You can construct a concrete instance of `GetBackupPlansPlanInput` via:

GetBackupPlansPlanArgs{...}

type GetBackupPlansPlanOutput

type GetBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetBackupPlansPlanOutput) BackupGatewayId

func (o GetBackupPlansPlanOutput) BackupGatewayId() pulumi.StringOutput

The ID of the backup gateway.

func (GetBackupPlansPlanOutput) BackupMethod

func (o GetBackupPlansPlanOutput) BackupMethod() pulumi.StringOutput

The Backup method.

func (GetBackupPlansPlanOutput) BackupObjects

func (o GetBackupPlansPlanOutput) BackupObjects() pulumi.StringOutput

The backup object.

func (GetBackupPlansPlanOutput) BackupPeriod

func (o GetBackupPlansPlanOutput) BackupPeriod() pulumi.StringOutput

Full backup cycle.

func (GetBackupPlansPlanOutput) BackupPlanId

func (o GetBackupPlansPlanOutput) BackupPlanId() pulumi.StringOutput

The first ID of the resource.

func (GetBackupPlansPlanOutput) BackupPlanName

func (o GetBackupPlansPlanOutput) BackupPlanName() pulumi.StringOutput

The name of the resource.

func (GetBackupPlansPlanOutput) BackupRetentionPeriod

func (o GetBackupPlansPlanOutput) BackupRetentionPeriod() pulumi.IntOutput

The retention time of backup data.

func (GetBackupPlansPlanOutput) BackupStartTime

func (o GetBackupPlansPlanOutput) BackupStartTime() pulumi.StringOutput

The start time of full Backup.

func (GetBackupPlansPlanOutput) BackupStorageType

func (o GetBackupPlansPlanOutput) BackupStorageType() pulumi.StringOutput

Built-in storage type.

func (GetBackupPlansPlanOutput) CrossAliyunId

func (o GetBackupPlansPlanOutput) CrossAliyunId() pulumi.StringOutput

The UID that is backed up across Alibaba cloud accounts.

func (GetBackupPlansPlanOutput) CrossRoleName

func (o GetBackupPlansPlanOutput) CrossRoleName() pulumi.StringOutput

The name of the RAM role that is backed up across Alibaba cloud accounts.

func (GetBackupPlansPlanOutput) DatabaseType

func (o GetBackupPlansPlanOutput) DatabaseType() pulumi.StringOutput

The database type.

func (GetBackupPlansPlanOutput) DuplicationArchivePeriod

func (o GetBackupPlansPlanOutput) DuplicationArchivePeriod() pulumi.IntOutput

The storage time for conversion to archive cold standby is 365 days by default.

func (GetBackupPlansPlanOutput) DuplicationInfrequentAccessPeriod

func (o GetBackupPlansPlanOutput) DuplicationInfrequentAccessPeriod() pulumi.IntOutput

The storage time is converted to low-frequency access. The default time is 180 days.

func (GetBackupPlansPlanOutput) ElementType

func (GetBackupPlansPlanOutput) ElementType() reflect.Type

func (GetBackupPlansPlanOutput) EnableBackupLog

func (o GetBackupPlansPlanOutput) EnableBackupLog() pulumi.BoolOutput

Whether to enable incremental log Backup.

func (GetBackupPlansPlanOutput) Id

The ID of the Backup Plan.

func (GetBackupPlansPlanOutput) InstanceClass

func (o GetBackupPlansPlanOutput) InstanceClass() pulumi.StringOutput

The Instance class.

func (GetBackupPlansPlanOutput) OssBucketName

func (o GetBackupPlansPlanOutput) OssBucketName() pulumi.StringOutput

The OSS Bucket name.

func (GetBackupPlansPlanOutput) PaymentType

The payment type of the resource.

func (GetBackupPlansPlanOutput) ResourceGroupId

func (o GetBackupPlansPlanOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (GetBackupPlansPlanOutput) SourceEndpointDatabaseName

func (o GetBackupPlansPlanOutput) SourceEndpointDatabaseName() pulumi.StringOutput

The name of the database.

func (GetBackupPlansPlanOutput) SourceEndpointInstanceId

func (o GetBackupPlansPlanOutput) SourceEndpointInstanceId() pulumi.StringOutput

The ID of the database instance.

func (GetBackupPlansPlanOutput) SourceEndpointInstanceType

func (o GetBackupPlansPlanOutput) SourceEndpointInstanceType() pulumi.StringOutput

The location of the database.

func (GetBackupPlansPlanOutput) SourceEndpointRegion

func (o GetBackupPlansPlanOutput) SourceEndpointRegion() pulumi.StringOutput

The region of the database.

func (GetBackupPlansPlanOutput) SourceEndpointSid

func (o GetBackupPlansPlanOutput) SourceEndpointSid() pulumi.StringOutput

The Oracle SID name.

func (GetBackupPlansPlanOutput) SourceEndpointUserName

func (o GetBackupPlansPlanOutput) SourceEndpointUserName() pulumi.StringOutput

The source endpoint username.

func (GetBackupPlansPlanOutput) Status

The status of the resource.

func (GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutput

func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput

func (GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutputWithContext

func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput

type GetBackupPlansResult

type GetBackupPlansResult struct {
	BackupPlanName *string `pulumi:"backupPlanName"`
	EnableDetails  *bool   `pulumi:"enableDetails"`
	// 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      []GetBackupPlansPlan `pulumi:"plans"`
	Status     *string              `pulumi:"status"`
}

A collection of values returned by getBackupPlans.

func GetBackupPlans

func GetBackupPlans(ctx *pulumi.Context, args *GetBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetBackupPlansResult, error)

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

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := dbs.GetBackupPlans(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("dbsBackupPlanId1", ids.Plans[0].Id)
		nameRegex, err := dbs.GetBackupPlans(ctx, &dbs.GetBackupPlansArgs{
			NameRegex: pulumi.StringRef("^my-BackupPlan"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("dbsBackupPlanId2", nameRegex.Plans[0].Id)
		return nil
	})
}

```

type GetBackupPlansResultOutput

type GetBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBackupPlans.

func (GetBackupPlansResultOutput) BackupPlanName

func (GetBackupPlansResultOutput) ElementType

func (GetBackupPlansResultOutput) ElementType() reflect.Type

func (GetBackupPlansResultOutput) EnableDetails

func (GetBackupPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetBackupPlansResultOutput) Ids

func (GetBackupPlansResultOutput) NameRegex

func (GetBackupPlansResultOutput) Names

func (GetBackupPlansResultOutput) OutputFile

func (GetBackupPlansResultOutput) PageNumber

func (GetBackupPlansResultOutput) PageSize

func (GetBackupPlansResultOutput) Plans

func (GetBackupPlansResultOutput) Status

func (GetBackupPlansResultOutput) ToGetBackupPlansResultOutput

func (o GetBackupPlansResultOutput) ToGetBackupPlansResultOutput() GetBackupPlansResultOutput

func (GetBackupPlansResultOutput) ToGetBackupPlansResultOutputWithContext

func (o GetBackupPlansResultOutput) ToGetBackupPlansResultOutputWithContext(ctx context.Context) GetBackupPlansResultOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL