drs

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.2

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Job

type Job struct {
	pulumi.CustomResourceState

	// Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// Specifies the description of the job, which contain a
	// maximum of 256 characters, and certain special characters (including !<>&'"\\) are not allowed.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies the destination database configuration.
	// The `dbInfo` object structure of the `destinationDb` is documented below.
	// Changing this parameter will create a new resource.
	DestinationDb JobDestinationDbOutput `pulumi:"destinationDb"`
	// Specifies the destination DB instance as read-only helps
	// ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
	// Read/Write. The default value is `true`. Changing this parameter will create a new resource.
	DestinationDbReadnoly pulumi.BoolPtrOutput `pulumi:"destinationDbReadnoly"`
	// Specifies the direction of data flow.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **up**: To the cloud. The destination database must be a database in the current cloud.
	// + **down**: Out of the cloud. The source database must be a database in the current cloud.
	// + **non-dbs**: self-built database.
	Direction pulumi.StringOutput `pulumi:"direction"`
	// Specifies the engine type of database. Changing this parameter will
	// create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.
	EngineType pulumi.StringOutput `pulumi:"engineType"`
	// Specifies the enterprise project id.
	// Changing this parameter will create a new resource.
	EnterpriseProjectId pulumi.StringPtrOutput `pulumi:"enterpriseProjectId"`
	// Specifies how many days after the task is abnormal, it will automatically
	// end. The value ranges from 14 to 100. the default value is `14`. Changing this parameter will create a new resource.
	ExpiredDays pulumi.IntPtrOutput `pulumi:"expiredDays"`
	// Specifies whether to forcibly destroy the job even if it is running.
	// The default value is `false`.
	ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"`
	// Specifies the migration speed by setting a time period.
	// The default is no speed limit. The maximum length is 3. Structure is documented below.
	// Changing this parameter will create a new resource.
	LimitSpeeds JobLimitSpeedArrayOutput `pulumi:"limitSpeeds"`
	// Specifies whether to migrate the definers of all source database
	// objects to the `user` of `destinationDb`. The default value is `true`.
	// Changing this parameter will create a new resource.
	MigrateDefiner pulumi.BoolPtrOutput `pulumi:"migrateDefiner"`
	// Specifies migration type.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **FULL_TRANS**: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database
	//   objects and data, in a non-system database, to a destination database at a time.
	// + **INCR_TRANS**: Incremental migration. Suitable for migration from an on-premises self-built database to a
	//   destination cloud database, or from one cloud database to another in a different region.
	// + **FULL_INCR_TRANS**:  Full+Incremental migration. This allows to migrate data with minimal downtime. After a full
	//   migration initializes the destination database, an incremental migration parses logs to ensure data consistency
	//   between the source and destination databases.
	MigrationType pulumi.StringPtrOutput `pulumi:"migrationType"`
	// Specifies whether to enable multi write. It is mandatory when `type`
	// is `cloudDataGuard`. When the disaster recovery type is dual-active disaster recovery, set `multiWrite` to `true`,
	// otherwise to `false`. The default value is `false`. Changing this parameter will create a new resource.
	MultiWrite pulumi.BoolPtrOutput `pulumi:"multiWrite"`
	// Specifies the name of database.
	// Changing this parameter will create a new resource.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the network type.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **eip**: suitable for migration from an on-premises or other cloud database to a destination cloud database.
	//   An EIP will be automatically bound to the replication instance and released after the replication task is complete.
	// + **vpc**: suitable for migration from one cloud database to another.
	// + **vpn**: suitable for migration from an on-premises self-built database to a destination cloud database,
	//   or from one cloud database to another in a different region.
	NetType pulumi.StringPtrOutput `pulumi:"netType"`
	// Private IP.
	PrivateIp pulumi.StringOutput `pulumi:"privateIp"`
	// Public IP.
	PublicIp pulumi.StringOutput `pulumi:"publicIp"`
	// Specifies the region which the database belongs when it is a RDS database.
	// Changing this parameter will create a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the source database configuration.
	// The `dbInfo` object structure of the `sourceDb` is documented below.
	// Changing this parameter will create a new resource.
	SourceDb JobSourceDbOutput `pulumi:"sourceDb"`
	// Specifies the time to start speed limit, this time is UTC time. The start
	// time is the whole hour, if there is a minute, it will be ignored, the format is `hh:mm`, and the hour number
	// is two digits, for example: 01:00. Changing this parameter will create a new resource.
	StartTime pulumi.StringPtrOutput `pulumi:"startTime"`
	// Status.
	Status pulumi.StringOutput `pulumi:"status"`
	// Specifies the key/value pairs to associate with the DRS job.
	// Changing this parameter will create a new resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies the job type. Changing this parameter will create a new
	// resource. The options are as follows:
	// + **migration**: Online Migration.
	// + **sync**: Data Synchronization.
	// + **cloudDataGuard**: Disaster Recovery.
	Type pulumi.StringOutput `pulumi:"type"`
}

Manages DRS job resource within HuaweiCloud.

## Example Usage

## Import

The DRS job can be imported by `id`. For example,

```sh

$ pulumi import huaweicloud:Drs/job:Job test b11b407c-e604-4e8d-8bc4-92398320b847

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`enterprise_project_id`, `tags`, `force_destroy`, `source_db.0.password` and `destination_db.0.password`.It is generally recommended running `terraform plan` after importing a job. You can then decide if changes should be applied to the job, or the resource definition should be updated to align with the job. Also you can ignore changes as below. resource "huaweicloud_drs_job" "test" {

...

lifecycle {

ignore_changes = [

source_db.0.password,destination_db.0.password

]

} }

func GetJob

func GetJob(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *JobState, opts ...pulumi.ResourceOption) (*Job, error)

GetJob gets an existing Job 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 NewJob

func NewJob(ctx *pulumi.Context,
	name string, args *JobArgs, opts ...pulumi.ResourceOption) (*Job, error)

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

func (*Job) ElementType

func (*Job) ElementType() reflect.Type

func (*Job) ToJobOutput

func (i *Job) ToJobOutput() JobOutput

func (*Job) ToJobOutputWithContext

func (i *Job) ToJobOutputWithContext(ctx context.Context) JobOutput

type JobArgs

type JobArgs struct {
	// Specifies the description of the job, which contain a
	// maximum of 256 characters, and certain special characters (including !<>&'"\\) are not allowed.
	Description pulumi.StringPtrInput
	// Specifies the destination database configuration.
	// The `dbInfo` object structure of the `destinationDb` is documented below.
	// Changing this parameter will create a new resource.
	DestinationDb JobDestinationDbInput
	// Specifies the destination DB instance as read-only helps
	// ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
	// Read/Write. The default value is `true`. Changing this parameter will create a new resource.
	DestinationDbReadnoly pulumi.BoolPtrInput
	// Specifies the direction of data flow.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **up**: To the cloud. The destination database must be a database in the current cloud.
	// + **down**: Out of the cloud. The source database must be a database in the current cloud.
	// + **non-dbs**: self-built database.
	Direction pulumi.StringInput
	// Specifies the engine type of database. Changing this parameter will
	// create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.
	EngineType pulumi.StringInput
	// Specifies the enterprise project id.
	// Changing this parameter will create a new resource.
	EnterpriseProjectId pulumi.StringPtrInput
	// Specifies how many days after the task is abnormal, it will automatically
	// end. The value ranges from 14 to 100. the default value is `14`. Changing this parameter will create a new resource.
	ExpiredDays pulumi.IntPtrInput
	// Specifies whether to forcibly destroy the job even if it is running.
	// The default value is `false`.
	ForceDestroy pulumi.BoolPtrInput
	// Specifies the migration speed by setting a time period.
	// The default is no speed limit. The maximum length is 3. Structure is documented below.
	// Changing this parameter will create a new resource.
	LimitSpeeds JobLimitSpeedArrayInput
	// Specifies whether to migrate the definers of all source database
	// objects to the `user` of `destinationDb`. The default value is `true`.
	// Changing this parameter will create a new resource.
	MigrateDefiner pulumi.BoolPtrInput
	// Specifies migration type.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **FULL_TRANS**: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database
	//   objects and data, in a non-system database, to a destination database at a time.
	// + **INCR_TRANS**: Incremental migration. Suitable for migration from an on-premises self-built database to a
	//   destination cloud database, or from one cloud database to another in a different region.
	// + **FULL_INCR_TRANS**:  Full+Incremental migration. This allows to migrate data with minimal downtime. After a full
	//   migration initializes the destination database, an incremental migration parses logs to ensure data consistency
	//   between the source and destination databases.
	MigrationType pulumi.StringPtrInput
	// Specifies whether to enable multi write. It is mandatory when `type`
	// is `cloudDataGuard`. When the disaster recovery type is dual-active disaster recovery, set `multiWrite` to `true`,
	// otherwise to `false`. The default value is `false`. Changing this parameter will create a new resource.
	MultiWrite pulumi.BoolPtrInput
	// Specifies the name of database.
	// Changing this parameter will create a new resource.
	Name pulumi.StringPtrInput
	// Specifies the network type.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **eip**: suitable for migration from an on-premises or other cloud database to a destination cloud database.
	//   An EIP will be automatically bound to the replication instance and released after the replication task is complete.
	// + **vpc**: suitable for migration from one cloud database to another.
	// + **vpn**: suitable for migration from an on-premises self-built database to a destination cloud database,
	//   or from one cloud database to another in a different region.
	NetType pulumi.StringPtrInput
	// Specifies the region which the database belongs when it is a RDS database.
	// Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the source database configuration.
	// The `dbInfo` object structure of the `sourceDb` is documented below.
	// Changing this parameter will create a new resource.
	SourceDb JobSourceDbInput
	// Specifies the time to start speed limit, this time is UTC time. The start
	// time is the whole hour, if there is a minute, it will be ignored, the format is `hh:mm`, and the hour number
	// is two digits, for example: 01:00. Changing this parameter will create a new resource.
	StartTime pulumi.StringPtrInput
	// Specifies the key/value pairs to associate with the DRS job.
	// Changing this parameter will create a new resource.
	Tags pulumi.StringMapInput
	// Specifies the job type. Changing this parameter will create a new
	// resource. The options are as follows:
	// + **migration**: Online Migration.
	// + **sync**: Data Synchronization.
	// + **cloudDataGuard**: Disaster Recovery.
	Type pulumi.StringInput
}

The set of arguments for constructing a Job resource.

func (JobArgs) ElementType

func (JobArgs) ElementType() reflect.Type

type JobArray

type JobArray []JobInput

func (JobArray) ElementType

func (JobArray) ElementType() reflect.Type

func (JobArray) ToJobArrayOutput

func (i JobArray) ToJobArrayOutput() JobArrayOutput

func (JobArray) ToJobArrayOutputWithContext

func (i JobArray) ToJobArrayOutputWithContext(ctx context.Context) JobArrayOutput

type JobArrayInput

type JobArrayInput interface {
	pulumi.Input

	ToJobArrayOutput() JobArrayOutput
	ToJobArrayOutputWithContext(context.Context) JobArrayOutput
}

JobArrayInput is an input type that accepts JobArray and JobArrayOutput values. You can construct a concrete instance of `JobArrayInput` via:

JobArray{ JobArgs{...} }

type JobArrayOutput

type JobArrayOutput struct{ *pulumi.OutputState }

func (JobArrayOutput) ElementType

func (JobArrayOutput) ElementType() reflect.Type

func (JobArrayOutput) Index

func (JobArrayOutput) ToJobArrayOutput

func (o JobArrayOutput) ToJobArrayOutput() JobArrayOutput

func (JobArrayOutput) ToJobArrayOutputWithContext

func (o JobArrayOutput) ToJobArrayOutputWithContext(ctx context.Context) JobArrayOutput

type JobDestinationDb

type JobDestinationDb struct {
	// Specifies the engine type of database. Changing this parameter will
	// create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.
	EngineType string `pulumi:"engineType"`
	// Specifies the instance id of database when it is a RDS database.
	// Changing this parameter will create a new resource.
	InstanceId *string `pulumi:"instanceId"`
	// Specifies the IP of database. Changing this parameter will create a new resource.
	Ip string `pulumi:"ip"`
	// Specifies the name of database.
	// Changing this parameter will create a new resource.
	Name *string `pulumi:"name"`
	// Specifies the password of database.
	// Changing this parameter will create a new resource.
	Password string `pulumi:"password"`
	// Specifies the port of database. Changing this parameter will create a new resource.
	Port int `pulumi:"port"`
	// Specifies the region which the database belongs when it is a RDS database.
	// Changing this parameter will create a new resource.
	Region *string `pulumi:"region"`
	// Specifies the checksum of SSL certificate content.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertCheckSum *string `pulumi:"sslCertCheckSum"`
	// Specifies the SSL certificate content, encrypted with base64.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertKey *string `pulumi:"sslCertKey"`
	// Specifies SSL certificate name.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertName *string `pulumi:"sslCertName"`
	// Specifies SSL certificate password. It is mandatory when
	// `sslEnabled` is `true` and the certificate file suffix is `.p12`. Changing this parameter will create a new resource.
	SslCertPassword *string `pulumi:"sslCertPassword"`
	// Specifies whether to enable SSL connection.
	// Changing this parameter will create a new resource.
	SslEnabled *bool `pulumi:"sslEnabled"`
	// Specifies subnet ID of database when it is a RDS database.
	// It is mandatory when `direction` is `down`. Changing this parameter will create a new resource.
	SubnetId *string `pulumi:"subnetId"`
	// Specifies the user name of database.
	// Changing this parameter will create a new resource.
	User string `pulumi:"user"`
}

type JobDestinationDbArgs

type JobDestinationDbArgs struct {
	// Specifies the engine type of database. Changing this parameter will
	// create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.
	EngineType pulumi.StringInput `pulumi:"engineType"`
	// Specifies the instance id of database when it is a RDS database.
	// Changing this parameter will create a new resource.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// Specifies the IP of database. Changing this parameter will create a new resource.
	Ip pulumi.StringInput `pulumi:"ip"`
	// Specifies the name of database.
	// Changing this parameter will create a new resource.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the password of database.
	// Changing this parameter will create a new resource.
	Password pulumi.StringInput `pulumi:"password"`
	// Specifies the port of database. Changing this parameter will create a new resource.
	Port pulumi.IntInput `pulumi:"port"`
	// Specifies the region which the database belongs when it is a RDS database.
	// Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Specifies the checksum of SSL certificate content.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertCheckSum pulumi.StringPtrInput `pulumi:"sslCertCheckSum"`
	// Specifies the SSL certificate content, encrypted with base64.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertKey pulumi.StringPtrInput `pulumi:"sslCertKey"`
	// Specifies SSL certificate name.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertName pulumi.StringPtrInput `pulumi:"sslCertName"`
	// Specifies SSL certificate password. It is mandatory when
	// `sslEnabled` is `true` and the certificate file suffix is `.p12`. Changing this parameter will create a new resource.
	SslCertPassword pulumi.StringPtrInput `pulumi:"sslCertPassword"`
	// Specifies whether to enable SSL connection.
	// Changing this parameter will create a new resource.
	SslEnabled pulumi.BoolPtrInput `pulumi:"sslEnabled"`
	// Specifies subnet ID of database when it is a RDS database.
	// It is mandatory when `direction` is `down`. Changing this parameter will create a new resource.
	SubnetId pulumi.StringPtrInput `pulumi:"subnetId"`
	// Specifies the user name of database.
	// Changing this parameter will create a new resource.
	User pulumi.StringInput `pulumi:"user"`
}

func (JobDestinationDbArgs) ElementType

func (JobDestinationDbArgs) ElementType() reflect.Type

func (JobDestinationDbArgs) ToJobDestinationDbOutput

func (i JobDestinationDbArgs) ToJobDestinationDbOutput() JobDestinationDbOutput

func (JobDestinationDbArgs) ToJobDestinationDbOutputWithContext

func (i JobDestinationDbArgs) ToJobDestinationDbOutputWithContext(ctx context.Context) JobDestinationDbOutput

func (JobDestinationDbArgs) ToJobDestinationDbPtrOutput

func (i JobDestinationDbArgs) ToJobDestinationDbPtrOutput() JobDestinationDbPtrOutput

func (JobDestinationDbArgs) ToJobDestinationDbPtrOutputWithContext

func (i JobDestinationDbArgs) ToJobDestinationDbPtrOutputWithContext(ctx context.Context) JobDestinationDbPtrOutput

type JobDestinationDbInput

type JobDestinationDbInput interface {
	pulumi.Input

	ToJobDestinationDbOutput() JobDestinationDbOutput
	ToJobDestinationDbOutputWithContext(context.Context) JobDestinationDbOutput
}

JobDestinationDbInput is an input type that accepts JobDestinationDbArgs and JobDestinationDbOutput values. You can construct a concrete instance of `JobDestinationDbInput` via:

JobDestinationDbArgs{...}

type JobDestinationDbOutput

type JobDestinationDbOutput struct{ *pulumi.OutputState }

func (JobDestinationDbOutput) ElementType

func (JobDestinationDbOutput) ElementType() reflect.Type

func (JobDestinationDbOutput) EngineType

Specifies the engine type of database. Changing this parameter will create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.

func (JobDestinationDbOutput) InstanceId

Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) Ip

Specifies the IP of database. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) Name

Specifies the name of database. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) Password

Specifies the password of database. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) Port

Specifies the port of database. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) Region

Specifies the region which the database belongs when it is a RDS database. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) SslCertCheckSum

func (o JobDestinationDbOutput) SslCertCheckSum() pulumi.StringPtrOutput

Specifies the checksum of SSL certificate content. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) SslCertKey

Specifies the SSL certificate content, encrypted with base64. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) SslCertName

Specifies SSL certificate name. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) SslCertPassword

func (o JobDestinationDbOutput) SslCertPassword() pulumi.StringPtrOutput

Specifies SSL certificate password. It is mandatory when `sslEnabled` is `true` and the certificate file suffix is `.p12`. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) SslEnabled

Specifies whether to enable SSL connection. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) SubnetId

Specifies subnet ID of database when it is a RDS database. It is mandatory when `direction` is `down`. Changing this parameter will create a new resource.

func (JobDestinationDbOutput) ToJobDestinationDbOutput

func (o JobDestinationDbOutput) ToJobDestinationDbOutput() JobDestinationDbOutput

func (JobDestinationDbOutput) ToJobDestinationDbOutputWithContext

func (o JobDestinationDbOutput) ToJobDestinationDbOutputWithContext(ctx context.Context) JobDestinationDbOutput

func (JobDestinationDbOutput) ToJobDestinationDbPtrOutput

func (o JobDestinationDbOutput) ToJobDestinationDbPtrOutput() JobDestinationDbPtrOutput

func (JobDestinationDbOutput) ToJobDestinationDbPtrOutputWithContext

func (o JobDestinationDbOutput) ToJobDestinationDbPtrOutputWithContext(ctx context.Context) JobDestinationDbPtrOutput

func (JobDestinationDbOutput) User

Specifies the user name of database. Changing this parameter will create a new resource.

type JobDestinationDbPtrInput

type JobDestinationDbPtrInput interface {
	pulumi.Input

	ToJobDestinationDbPtrOutput() JobDestinationDbPtrOutput
	ToJobDestinationDbPtrOutputWithContext(context.Context) JobDestinationDbPtrOutput
}

JobDestinationDbPtrInput is an input type that accepts JobDestinationDbArgs, JobDestinationDbPtr and JobDestinationDbPtrOutput values. You can construct a concrete instance of `JobDestinationDbPtrInput` via:

        JobDestinationDbArgs{...}

or:

        nil

type JobDestinationDbPtrOutput

type JobDestinationDbPtrOutput struct{ *pulumi.OutputState }

func (JobDestinationDbPtrOutput) Elem

func (JobDestinationDbPtrOutput) ElementType

func (JobDestinationDbPtrOutput) ElementType() reflect.Type

func (JobDestinationDbPtrOutput) EngineType

Specifies the engine type of database. Changing this parameter will create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.

func (JobDestinationDbPtrOutput) InstanceId

Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) Ip

Specifies the IP of database. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) Name

Specifies the name of database. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) Password

Specifies the password of database. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) Port

Specifies the port of database. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) Region

Specifies the region which the database belongs when it is a RDS database. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) SslCertCheckSum

func (o JobDestinationDbPtrOutput) SslCertCheckSum() pulumi.StringPtrOutput

Specifies the checksum of SSL certificate content. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) SslCertKey

Specifies the SSL certificate content, encrypted with base64. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) SslCertName

Specifies SSL certificate name. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) SslCertPassword

func (o JobDestinationDbPtrOutput) SslCertPassword() pulumi.StringPtrOutput

Specifies SSL certificate password. It is mandatory when `sslEnabled` is `true` and the certificate file suffix is `.p12`. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) SslEnabled

Specifies whether to enable SSL connection. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) SubnetId

Specifies subnet ID of database when it is a RDS database. It is mandatory when `direction` is `down`. Changing this parameter will create a new resource.

func (JobDestinationDbPtrOutput) ToJobDestinationDbPtrOutput

func (o JobDestinationDbPtrOutput) ToJobDestinationDbPtrOutput() JobDestinationDbPtrOutput

func (JobDestinationDbPtrOutput) ToJobDestinationDbPtrOutputWithContext

func (o JobDestinationDbPtrOutput) ToJobDestinationDbPtrOutputWithContext(ctx context.Context) JobDestinationDbPtrOutput

func (JobDestinationDbPtrOutput) User

Specifies the user name of database. Changing this parameter will create a new resource.

type JobInput

type JobInput interface {
	pulumi.Input

	ToJobOutput() JobOutput
	ToJobOutputWithContext(ctx context.Context) JobOutput
}

type JobLimitSpeed

type JobLimitSpeed struct {
	// Specifies the time to end speed limit, this time is UTC time. The input must
	// end at 59 minutes, the format is `hh:mm`, for example: 15:59. Changing this parameter will create a new resource.
	EndTime string `pulumi:"endTime"`
	// Specifies the transmission speed, the value range is 1 to 9999, unit: `MB/s`.
	// Changing this parameter will create a new resource.
	Speed string `pulumi:"speed"`
	// Specifies the time to start speed limit, this time is UTC time. The start
	// time is the whole hour, if there is a minute, it will be ignored, the format is `hh:mm`, and the hour number
	// is two digits, for example: 01:00. Changing this parameter will create a new resource.
	StartTime string `pulumi:"startTime"`
}

type JobLimitSpeedArgs

type JobLimitSpeedArgs struct {
	// Specifies the time to end speed limit, this time is UTC time. The input must
	// end at 59 minutes, the format is `hh:mm`, for example: 15:59. Changing this parameter will create a new resource.
	EndTime pulumi.StringInput `pulumi:"endTime"`
	// Specifies the transmission speed, the value range is 1 to 9999, unit: `MB/s`.
	// Changing this parameter will create a new resource.
	Speed pulumi.StringInput `pulumi:"speed"`
	// Specifies the time to start speed limit, this time is UTC time. The start
	// time is the whole hour, if there is a minute, it will be ignored, the format is `hh:mm`, and the hour number
	// is two digits, for example: 01:00. Changing this parameter will create a new resource.
	StartTime pulumi.StringInput `pulumi:"startTime"`
}

func (JobLimitSpeedArgs) ElementType

func (JobLimitSpeedArgs) ElementType() reflect.Type

func (JobLimitSpeedArgs) ToJobLimitSpeedOutput

func (i JobLimitSpeedArgs) ToJobLimitSpeedOutput() JobLimitSpeedOutput

func (JobLimitSpeedArgs) ToJobLimitSpeedOutputWithContext

func (i JobLimitSpeedArgs) ToJobLimitSpeedOutputWithContext(ctx context.Context) JobLimitSpeedOutput

type JobLimitSpeedArray

type JobLimitSpeedArray []JobLimitSpeedInput

func (JobLimitSpeedArray) ElementType

func (JobLimitSpeedArray) ElementType() reflect.Type

func (JobLimitSpeedArray) ToJobLimitSpeedArrayOutput

func (i JobLimitSpeedArray) ToJobLimitSpeedArrayOutput() JobLimitSpeedArrayOutput

func (JobLimitSpeedArray) ToJobLimitSpeedArrayOutputWithContext

func (i JobLimitSpeedArray) ToJobLimitSpeedArrayOutputWithContext(ctx context.Context) JobLimitSpeedArrayOutput

type JobLimitSpeedArrayInput

type JobLimitSpeedArrayInput interface {
	pulumi.Input

	ToJobLimitSpeedArrayOutput() JobLimitSpeedArrayOutput
	ToJobLimitSpeedArrayOutputWithContext(context.Context) JobLimitSpeedArrayOutput
}

JobLimitSpeedArrayInput is an input type that accepts JobLimitSpeedArray and JobLimitSpeedArrayOutput values. You can construct a concrete instance of `JobLimitSpeedArrayInput` via:

JobLimitSpeedArray{ JobLimitSpeedArgs{...} }

type JobLimitSpeedArrayOutput

type JobLimitSpeedArrayOutput struct{ *pulumi.OutputState }

func (JobLimitSpeedArrayOutput) ElementType

func (JobLimitSpeedArrayOutput) ElementType() reflect.Type

func (JobLimitSpeedArrayOutput) Index

func (JobLimitSpeedArrayOutput) ToJobLimitSpeedArrayOutput

func (o JobLimitSpeedArrayOutput) ToJobLimitSpeedArrayOutput() JobLimitSpeedArrayOutput

func (JobLimitSpeedArrayOutput) ToJobLimitSpeedArrayOutputWithContext

func (o JobLimitSpeedArrayOutput) ToJobLimitSpeedArrayOutputWithContext(ctx context.Context) JobLimitSpeedArrayOutput

type JobLimitSpeedInput

type JobLimitSpeedInput interface {
	pulumi.Input

	ToJobLimitSpeedOutput() JobLimitSpeedOutput
	ToJobLimitSpeedOutputWithContext(context.Context) JobLimitSpeedOutput
}

JobLimitSpeedInput is an input type that accepts JobLimitSpeedArgs and JobLimitSpeedOutput values. You can construct a concrete instance of `JobLimitSpeedInput` via:

JobLimitSpeedArgs{...}

type JobLimitSpeedOutput

type JobLimitSpeedOutput struct{ *pulumi.OutputState }

func (JobLimitSpeedOutput) ElementType

func (JobLimitSpeedOutput) ElementType() reflect.Type

func (JobLimitSpeedOutput) EndTime

Specifies the time to end speed limit, this time is UTC time. The input must end at 59 minutes, the format is `hh:mm`, for example: 15:59. Changing this parameter will create a new resource.

func (JobLimitSpeedOutput) Speed

Specifies the transmission speed, the value range is 1 to 9999, unit: `MB/s`. Changing this parameter will create a new resource.

func (JobLimitSpeedOutput) StartTime

func (o JobLimitSpeedOutput) StartTime() pulumi.StringOutput

Specifies the time to start speed limit, this time is UTC time. The start time is the whole hour, if there is a minute, it will be ignored, the format is `hh:mm`, and the hour number is two digits, for example: 01:00. Changing this parameter will create a new resource.

func (JobLimitSpeedOutput) ToJobLimitSpeedOutput

func (o JobLimitSpeedOutput) ToJobLimitSpeedOutput() JobLimitSpeedOutput

func (JobLimitSpeedOutput) ToJobLimitSpeedOutputWithContext

func (o JobLimitSpeedOutput) ToJobLimitSpeedOutputWithContext(ctx context.Context) JobLimitSpeedOutput

type JobMap

type JobMap map[string]JobInput

func (JobMap) ElementType

func (JobMap) ElementType() reflect.Type

func (JobMap) ToJobMapOutput

func (i JobMap) ToJobMapOutput() JobMapOutput

func (JobMap) ToJobMapOutputWithContext

func (i JobMap) ToJobMapOutputWithContext(ctx context.Context) JobMapOutput

type JobMapInput

type JobMapInput interface {
	pulumi.Input

	ToJobMapOutput() JobMapOutput
	ToJobMapOutputWithContext(context.Context) JobMapOutput
}

JobMapInput is an input type that accepts JobMap and JobMapOutput values. You can construct a concrete instance of `JobMapInput` via:

JobMap{ "key": JobArgs{...} }

type JobMapOutput

type JobMapOutput struct{ *pulumi.OutputState }

func (JobMapOutput) ElementType

func (JobMapOutput) ElementType() reflect.Type

func (JobMapOutput) MapIndex

func (o JobMapOutput) MapIndex(k pulumi.StringInput) JobOutput

func (JobMapOutput) ToJobMapOutput

func (o JobMapOutput) ToJobMapOutput() JobMapOutput

func (JobMapOutput) ToJobMapOutputWithContext

func (o JobMapOutput) ToJobMapOutputWithContext(ctx context.Context) JobMapOutput

type JobOutput

type JobOutput struct{ *pulumi.OutputState }

func (JobOutput) CreatedAt

func (o JobOutput) CreatedAt() pulumi.StringOutput

Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ

func (JobOutput) Description

func (o JobOutput) Description() pulumi.StringPtrOutput

Specifies the description of the job, which contain a maximum of 256 characters, and certain special characters (including !<>&'"\\) are not allowed.

func (JobOutput) DestinationDb

func (o JobOutput) DestinationDb() JobDestinationDbOutput

Specifies the destination database configuration. The `dbInfo` object structure of the `destinationDb` is documented below. Changing this parameter will create a new resource.

func (JobOutput) DestinationDbReadnoly

func (o JobOutput) DestinationDbReadnoly() pulumi.BoolPtrOutput

Specifies the destination DB instance as read-only helps ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to Read/Write. The default value is `true`. Changing this parameter will create a new resource.

func (JobOutput) Direction

func (o JobOutput) Direction() pulumi.StringOutput

Specifies the direction of data flow. Changing this parameter will create a new resource. The options are as follows: + **up**: To the cloud. The destination database must be a database in the current cloud. + **down**: Out of the cloud. The source database must be a database in the current cloud. + **non-dbs**: self-built database.

func (JobOutput) ElementType

func (JobOutput) ElementType() reflect.Type

func (JobOutput) EngineType

func (o JobOutput) EngineType() pulumi.StringOutput

Specifies the engine type of database. Changing this parameter will create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.

func (JobOutput) EnterpriseProjectId

func (o JobOutput) EnterpriseProjectId() pulumi.StringPtrOutput

Specifies the enterprise project id. Changing this parameter will create a new resource.

func (JobOutput) ExpiredDays

func (o JobOutput) ExpiredDays() pulumi.IntPtrOutput

Specifies how many days after the task is abnormal, it will automatically end. The value ranges from 14 to 100. the default value is `14`. Changing this parameter will create a new resource.

func (JobOutput) ForceDestroy

func (o JobOutput) ForceDestroy() pulumi.BoolPtrOutput

Specifies whether to forcibly destroy the job even if it is running. The default value is `false`.

func (JobOutput) LimitSpeeds

func (o JobOutput) LimitSpeeds() JobLimitSpeedArrayOutput

Specifies the migration speed by setting a time period. The default is no speed limit. The maximum length is 3. Structure is documented below. Changing this parameter will create a new resource.

func (JobOutput) MigrateDefiner

func (o JobOutput) MigrateDefiner() pulumi.BoolPtrOutput

Specifies whether to migrate the definers of all source database objects to the `user` of `destinationDb`. The default value is `true`. Changing this parameter will create a new resource.

func (JobOutput) MigrationType

func (o JobOutput) MigrationType() pulumi.StringPtrOutput

Specifies migration type. Changing this parameter will create a new resource. The options are as follows:

  • **FULL_TRANS**: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database objects and data, in a non-system database, to a destination database at a time.
  • **INCR_TRANS**: Incremental migration. Suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.
  • **FULL_INCR_TRANS**: Full+Incremental migration. This allows to migrate data with minimal downtime. After a full migration initializes the destination database, an incremental migration parses logs to ensure data consistency between the source and destination databases.

func (JobOutput) MultiWrite

func (o JobOutput) MultiWrite() pulumi.BoolPtrOutput

Specifies whether to enable multi write. It is mandatory when `type` is `cloudDataGuard`. When the disaster recovery type is dual-active disaster recovery, set `multiWrite` to `true`, otherwise to `false`. The default value is `false`. Changing this parameter will create a new resource.

func (JobOutput) Name

func (o JobOutput) Name() pulumi.StringOutput

Specifies the name of database. Changing this parameter will create a new resource.

func (JobOutput) NetType

func (o JobOutput) NetType() pulumi.StringPtrOutput

Specifies the network type. Changing this parameter will create a new resource. The options are as follows:

  • **eip**: suitable for migration from an on-premises or other cloud database to a destination cloud database. An EIP will be automatically bound to the replication instance and released after the replication task is complete.
  • **vpc**: suitable for migration from one cloud database to another.
  • **vpn**: suitable for migration from an on-premises self-built database to a destination cloud database, or from one cloud database to another in a different region.

func (JobOutput) PrivateIp

func (o JobOutput) PrivateIp() pulumi.StringOutput

Private IP.

func (JobOutput) PublicIp

func (o JobOutput) PublicIp() pulumi.StringOutput

Public IP.

func (JobOutput) Region

func (o JobOutput) Region() pulumi.StringOutput

Specifies the region which the database belongs when it is a RDS database. Changing this parameter will create a new resource.

func (JobOutput) SourceDb

func (o JobOutput) SourceDb() JobSourceDbOutput

Specifies the source database configuration. The `dbInfo` object structure of the `sourceDb` is documented below. Changing this parameter will create a new resource.

func (JobOutput) StartTime

func (o JobOutput) StartTime() pulumi.StringPtrOutput

Specifies the time to start speed limit, this time is UTC time. The start time is the whole hour, if there is a minute, it will be ignored, the format is `hh:mm`, and the hour number is two digits, for example: 01:00. Changing this parameter will create a new resource.

func (JobOutput) Status

func (o JobOutput) Status() pulumi.StringOutput

Status.

func (JobOutput) Tags

func (o JobOutput) Tags() pulumi.StringMapOutput

Specifies the key/value pairs to associate with the DRS job. Changing this parameter will create a new resource.

func (JobOutput) ToJobOutput

func (o JobOutput) ToJobOutput() JobOutput

func (JobOutput) ToJobOutputWithContext

func (o JobOutput) ToJobOutputWithContext(ctx context.Context) JobOutput

func (JobOutput) Type

func (o JobOutput) Type() pulumi.StringOutput

Specifies the job type. Changing this parameter will create a new resource. The options are as follows: + **migration**: Online Migration. + **sync**: Data Synchronization. + **cloudDataGuard**: Disaster Recovery.

type JobSourceDb

type JobSourceDb struct {
	// Specifies the engine type of database. Changing this parameter will
	// create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.
	EngineType string `pulumi:"engineType"`
	// Specifies the instance id of database when it is a RDS database.
	// Changing this parameter will create a new resource.
	InstanceId *string `pulumi:"instanceId"`
	// Specifies the IP of database. Changing this parameter will create a new resource.
	Ip string `pulumi:"ip"`
	// Specifies the name of database.
	// Changing this parameter will create a new resource.
	Name *string `pulumi:"name"`
	// Specifies the password of database.
	// Changing this parameter will create a new resource.
	Password string `pulumi:"password"`
	// Specifies the port of database. Changing this parameter will create a new resource.
	Port int `pulumi:"port"`
	// Specifies the region which the database belongs when it is a RDS database.
	// Changing this parameter will create a new resource.
	Region *string `pulumi:"region"`
	// Specifies the checksum of SSL certificate content.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertCheckSum *string `pulumi:"sslCertCheckSum"`
	// Specifies the SSL certificate content, encrypted with base64.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertKey *string `pulumi:"sslCertKey"`
	// Specifies SSL certificate name.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertName *string `pulumi:"sslCertName"`
	// Specifies SSL certificate password. It is mandatory when
	// `sslEnabled` is `true` and the certificate file suffix is `.p12`. Changing this parameter will create a new resource.
	SslCertPassword *string `pulumi:"sslCertPassword"`
	// Specifies whether to enable SSL connection.
	// Changing this parameter will create a new resource.
	SslEnabled *bool `pulumi:"sslEnabled"`
	// Specifies subnet ID of database when it is a RDS database.
	// It is mandatory when `direction` is `down`. Changing this parameter will create a new resource.
	SubnetId *string `pulumi:"subnetId"`
	// Specifies the user name of database.
	// Changing this parameter will create a new resource.
	User string `pulumi:"user"`
}

type JobSourceDbArgs

type JobSourceDbArgs struct {
	// Specifies the engine type of database. Changing this parameter will
	// create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.
	EngineType pulumi.StringInput `pulumi:"engineType"`
	// Specifies the instance id of database when it is a RDS database.
	// Changing this parameter will create a new resource.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// Specifies the IP of database. Changing this parameter will create a new resource.
	Ip pulumi.StringInput `pulumi:"ip"`
	// Specifies the name of database.
	// Changing this parameter will create a new resource.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the password of database.
	// Changing this parameter will create a new resource.
	Password pulumi.StringInput `pulumi:"password"`
	// Specifies the port of database. Changing this parameter will create a new resource.
	Port pulumi.IntInput `pulumi:"port"`
	// Specifies the region which the database belongs when it is a RDS database.
	// Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Specifies the checksum of SSL certificate content.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertCheckSum pulumi.StringPtrInput `pulumi:"sslCertCheckSum"`
	// Specifies the SSL certificate content, encrypted with base64.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertKey pulumi.StringPtrInput `pulumi:"sslCertKey"`
	// Specifies SSL certificate name.
	// It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.
	SslCertName pulumi.StringPtrInput `pulumi:"sslCertName"`
	// Specifies SSL certificate password. It is mandatory when
	// `sslEnabled` is `true` and the certificate file suffix is `.p12`. Changing this parameter will create a new resource.
	SslCertPassword pulumi.StringPtrInput `pulumi:"sslCertPassword"`
	// Specifies whether to enable SSL connection.
	// Changing this parameter will create a new resource.
	SslEnabled pulumi.BoolPtrInput `pulumi:"sslEnabled"`
	// Specifies subnet ID of database when it is a RDS database.
	// It is mandatory when `direction` is `down`. Changing this parameter will create a new resource.
	SubnetId pulumi.StringPtrInput `pulumi:"subnetId"`
	// Specifies the user name of database.
	// Changing this parameter will create a new resource.
	User pulumi.StringInput `pulumi:"user"`
}

func (JobSourceDbArgs) ElementType

func (JobSourceDbArgs) ElementType() reflect.Type

func (JobSourceDbArgs) ToJobSourceDbOutput

func (i JobSourceDbArgs) ToJobSourceDbOutput() JobSourceDbOutput

func (JobSourceDbArgs) ToJobSourceDbOutputWithContext

func (i JobSourceDbArgs) ToJobSourceDbOutputWithContext(ctx context.Context) JobSourceDbOutput

func (JobSourceDbArgs) ToJobSourceDbPtrOutput

func (i JobSourceDbArgs) ToJobSourceDbPtrOutput() JobSourceDbPtrOutput

func (JobSourceDbArgs) ToJobSourceDbPtrOutputWithContext

func (i JobSourceDbArgs) ToJobSourceDbPtrOutputWithContext(ctx context.Context) JobSourceDbPtrOutput

type JobSourceDbInput

type JobSourceDbInput interface {
	pulumi.Input

	ToJobSourceDbOutput() JobSourceDbOutput
	ToJobSourceDbOutputWithContext(context.Context) JobSourceDbOutput
}

JobSourceDbInput is an input type that accepts JobSourceDbArgs and JobSourceDbOutput values. You can construct a concrete instance of `JobSourceDbInput` via:

JobSourceDbArgs{...}

type JobSourceDbOutput

type JobSourceDbOutput struct{ *pulumi.OutputState }

func (JobSourceDbOutput) ElementType

func (JobSourceDbOutput) ElementType() reflect.Type

func (JobSourceDbOutput) EngineType

func (o JobSourceDbOutput) EngineType() pulumi.StringOutput

Specifies the engine type of database. Changing this parameter will create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.

func (JobSourceDbOutput) InstanceId

func (o JobSourceDbOutput) InstanceId() pulumi.StringPtrOutput

Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.

func (JobSourceDbOutput) Ip

Specifies the IP of database. Changing this parameter will create a new resource.

func (JobSourceDbOutput) Name

Specifies the name of database. Changing this parameter will create a new resource.

func (JobSourceDbOutput) Password

func (o JobSourceDbOutput) Password() pulumi.StringOutput

Specifies the password of database. Changing this parameter will create a new resource.

func (JobSourceDbOutput) Port

Specifies the port of database. Changing this parameter will create a new resource.

func (JobSourceDbOutput) Region

Specifies the region which the database belongs when it is a RDS database. Changing this parameter will create a new resource.

func (JobSourceDbOutput) SslCertCheckSum

func (o JobSourceDbOutput) SslCertCheckSum() pulumi.StringPtrOutput

Specifies the checksum of SSL certificate content. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobSourceDbOutput) SslCertKey

func (o JobSourceDbOutput) SslCertKey() pulumi.StringPtrOutput

Specifies the SSL certificate content, encrypted with base64. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobSourceDbOutput) SslCertName

func (o JobSourceDbOutput) SslCertName() pulumi.StringPtrOutput

Specifies SSL certificate name. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobSourceDbOutput) SslCertPassword

func (o JobSourceDbOutput) SslCertPassword() pulumi.StringPtrOutput

Specifies SSL certificate password. It is mandatory when `sslEnabled` is `true` and the certificate file suffix is `.p12`. Changing this parameter will create a new resource.

func (JobSourceDbOutput) SslEnabled

func (o JobSourceDbOutput) SslEnabled() pulumi.BoolPtrOutput

Specifies whether to enable SSL connection. Changing this parameter will create a new resource.

func (JobSourceDbOutput) SubnetId

Specifies subnet ID of database when it is a RDS database. It is mandatory when `direction` is `down`. Changing this parameter will create a new resource.

func (JobSourceDbOutput) ToJobSourceDbOutput

func (o JobSourceDbOutput) ToJobSourceDbOutput() JobSourceDbOutput

func (JobSourceDbOutput) ToJobSourceDbOutputWithContext

func (o JobSourceDbOutput) ToJobSourceDbOutputWithContext(ctx context.Context) JobSourceDbOutput

func (JobSourceDbOutput) ToJobSourceDbPtrOutput

func (o JobSourceDbOutput) ToJobSourceDbPtrOutput() JobSourceDbPtrOutput

func (JobSourceDbOutput) ToJobSourceDbPtrOutputWithContext

func (o JobSourceDbOutput) ToJobSourceDbPtrOutputWithContext(ctx context.Context) JobSourceDbPtrOutput

func (JobSourceDbOutput) User

Specifies the user name of database. Changing this parameter will create a new resource.

type JobSourceDbPtrInput

type JobSourceDbPtrInput interface {
	pulumi.Input

	ToJobSourceDbPtrOutput() JobSourceDbPtrOutput
	ToJobSourceDbPtrOutputWithContext(context.Context) JobSourceDbPtrOutput
}

JobSourceDbPtrInput is an input type that accepts JobSourceDbArgs, JobSourceDbPtr and JobSourceDbPtrOutput values. You can construct a concrete instance of `JobSourceDbPtrInput` via:

        JobSourceDbArgs{...}

or:

        nil

func JobSourceDbPtr

func JobSourceDbPtr(v *JobSourceDbArgs) JobSourceDbPtrInput

type JobSourceDbPtrOutput

type JobSourceDbPtrOutput struct{ *pulumi.OutputState }

func (JobSourceDbPtrOutput) Elem

func (JobSourceDbPtrOutput) ElementType

func (JobSourceDbPtrOutput) ElementType() reflect.Type

func (JobSourceDbPtrOutput) EngineType

Specifies the engine type of database. Changing this parameter will create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.

func (JobSourceDbPtrOutput) InstanceId

Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) Ip

Specifies the IP of database. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) Name

Specifies the name of database. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) Password

Specifies the password of database. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) Port

Specifies the port of database. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) Region

Specifies the region which the database belongs when it is a RDS database. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) SslCertCheckSum

func (o JobSourceDbPtrOutput) SslCertCheckSum() pulumi.StringPtrOutput

Specifies the checksum of SSL certificate content. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) SslCertKey

Specifies the SSL certificate content, encrypted with base64. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) SslCertName

Specifies SSL certificate name. It is mandatory when `sslEnabled` is `true`. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) SslCertPassword

func (o JobSourceDbPtrOutput) SslCertPassword() pulumi.StringPtrOutput

Specifies SSL certificate password. It is mandatory when `sslEnabled` is `true` and the certificate file suffix is `.p12`. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) SslEnabled

func (o JobSourceDbPtrOutput) SslEnabled() pulumi.BoolPtrOutput

Specifies whether to enable SSL connection. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) SubnetId

Specifies subnet ID of database when it is a RDS database. It is mandatory when `direction` is `down`. Changing this parameter will create a new resource.

func (JobSourceDbPtrOutput) ToJobSourceDbPtrOutput

func (o JobSourceDbPtrOutput) ToJobSourceDbPtrOutput() JobSourceDbPtrOutput

func (JobSourceDbPtrOutput) ToJobSourceDbPtrOutputWithContext

func (o JobSourceDbPtrOutput) ToJobSourceDbPtrOutputWithContext(ctx context.Context) JobSourceDbPtrOutput

func (JobSourceDbPtrOutput) User

Specifies the user name of database. Changing this parameter will create a new resource.

type JobState

type JobState struct {
	// Create time. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ
	CreatedAt pulumi.StringPtrInput
	// Specifies the description of the job, which contain a
	// maximum of 256 characters, and certain special characters (including !<>&'"\\) are not allowed.
	Description pulumi.StringPtrInput
	// Specifies the destination database configuration.
	// The `dbInfo` object structure of the `destinationDb` is documented below.
	// Changing this parameter will create a new resource.
	DestinationDb JobDestinationDbPtrInput
	// Specifies the destination DB instance as read-only helps
	// ensure the migration is successful. Once the migration is complete, the DB instance automatically changes to
	// Read/Write. The default value is `true`. Changing this parameter will create a new resource.
	DestinationDbReadnoly pulumi.BoolPtrInput
	// Specifies the direction of data flow.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **up**: To the cloud. The destination database must be a database in the current cloud.
	// + **down**: Out of the cloud. The source database must be a database in the current cloud.
	// + **non-dbs**: self-built database.
	Direction pulumi.StringPtrInput
	// Specifies the engine type of database. Changing this parameter will
	// create a new resource. The options are as follows: `mysql`, `mongodb`, `gaussdbv5`.
	EngineType pulumi.StringPtrInput
	// Specifies the enterprise project id.
	// Changing this parameter will create a new resource.
	EnterpriseProjectId pulumi.StringPtrInput
	// Specifies how many days after the task is abnormal, it will automatically
	// end. The value ranges from 14 to 100. the default value is `14`. Changing this parameter will create a new resource.
	ExpiredDays pulumi.IntPtrInput
	// Specifies whether to forcibly destroy the job even if it is running.
	// The default value is `false`.
	ForceDestroy pulumi.BoolPtrInput
	// Specifies the migration speed by setting a time period.
	// The default is no speed limit. The maximum length is 3. Structure is documented below.
	// Changing this parameter will create a new resource.
	LimitSpeeds JobLimitSpeedArrayInput
	// Specifies whether to migrate the definers of all source database
	// objects to the `user` of `destinationDb`. The default value is `true`.
	// Changing this parameter will create a new resource.
	MigrateDefiner pulumi.BoolPtrInput
	// Specifies migration type.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **FULL_TRANS**: Full migration. Suitable for scenarios where services can be interrupted. It migrates all database
	//   objects and data, in a non-system database, to a destination database at a time.
	// + **INCR_TRANS**: Incremental migration. Suitable for migration from an on-premises self-built database to a
	//   destination cloud database, or from one cloud database to another in a different region.
	// + **FULL_INCR_TRANS**:  Full+Incremental migration. This allows to migrate data with minimal downtime. After a full
	//   migration initializes the destination database, an incremental migration parses logs to ensure data consistency
	//   between the source and destination databases.
	MigrationType pulumi.StringPtrInput
	// Specifies whether to enable multi write. It is mandatory when `type`
	// is `cloudDataGuard`. When the disaster recovery type is dual-active disaster recovery, set `multiWrite` to `true`,
	// otherwise to `false`. The default value is `false`. Changing this parameter will create a new resource.
	MultiWrite pulumi.BoolPtrInput
	// Specifies the name of database.
	// Changing this parameter will create a new resource.
	Name pulumi.StringPtrInput
	// Specifies the network type.
	// Changing this parameter will create a new resource. The options are as follows:
	// + **eip**: suitable for migration from an on-premises or other cloud database to a destination cloud database.
	//   An EIP will be automatically bound to the replication instance and released after the replication task is complete.
	// + **vpc**: suitable for migration from one cloud database to another.
	// + **vpn**: suitable for migration from an on-premises self-built database to a destination cloud database,
	//   or from one cloud database to another in a different region.
	NetType pulumi.StringPtrInput
	// Private IP.
	PrivateIp pulumi.StringPtrInput
	// Public IP.
	PublicIp pulumi.StringPtrInput
	// Specifies the region which the database belongs when it is a RDS database.
	// Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the source database configuration.
	// The `dbInfo` object structure of the `sourceDb` is documented below.
	// Changing this parameter will create a new resource.
	SourceDb JobSourceDbPtrInput
	// Specifies the time to start speed limit, this time is UTC time. The start
	// time is the whole hour, if there is a minute, it will be ignored, the format is `hh:mm`, and the hour number
	// is two digits, for example: 01:00. Changing this parameter will create a new resource.
	StartTime pulumi.StringPtrInput
	// Status.
	Status pulumi.StringPtrInput
	// Specifies the key/value pairs to associate with the DRS job.
	// Changing this parameter will create a new resource.
	Tags pulumi.StringMapInput
	// Specifies the job type. Changing this parameter will create a new
	// resource. The options are as follows:
	// + **migration**: Online Migration.
	// + **sync**: Data Synchronization.
	// + **cloudDataGuard**: Disaster Recovery.
	Type pulumi.StringPtrInput
}

func (JobState) ElementType

func (JobState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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