Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Job
- type JobArgs
- type JobArray
- type JobArrayInput
- type JobArrayOutput
- type JobDestinationDb
- type JobDestinationDbArgs
- func (JobDestinationDbArgs) ElementType() reflect.Type
- func (i JobDestinationDbArgs) ToJobDestinationDbOutput() JobDestinationDbOutput
- func (i JobDestinationDbArgs) ToJobDestinationDbOutputWithContext(ctx context.Context) JobDestinationDbOutput
- func (i JobDestinationDbArgs) ToJobDestinationDbPtrOutput() JobDestinationDbPtrOutput
- func (i JobDestinationDbArgs) ToJobDestinationDbPtrOutputWithContext(ctx context.Context) JobDestinationDbPtrOutput
- type JobDestinationDbInput
- type JobDestinationDbOutput
- func (JobDestinationDbOutput) ElementType() reflect.Type
- func (o JobDestinationDbOutput) EngineType() pulumi.StringOutput
- func (o JobDestinationDbOutput) InstanceId() pulumi.StringPtrOutput
- func (o JobDestinationDbOutput) Ip() pulumi.StringOutput
- func (o JobDestinationDbOutput) Name() pulumi.StringPtrOutput
- func (o JobDestinationDbOutput) Password() pulumi.StringOutput
- func (o JobDestinationDbOutput) Port() pulumi.IntOutput
- func (o JobDestinationDbOutput) Region() pulumi.StringPtrOutput
- func (o JobDestinationDbOutput) SslCertCheckSum() pulumi.StringPtrOutput
- func (o JobDestinationDbOutput) SslCertKey() pulumi.StringPtrOutput
- func (o JobDestinationDbOutput) SslCertName() pulumi.StringPtrOutput
- func (o JobDestinationDbOutput) SslCertPassword() pulumi.StringPtrOutput
- func (o JobDestinationDbOutput) SslEnabled() pulumi.BoolPtrOutput
- func (o JobDestinationDbOutput) SubnetId() pulumi.StringPtrOutput
- func (o JobDestinationDbOutput) ToJobDestinationDbOutput() JobDestinationDbOutput
- func (o JobDestinationDbOutput) ToJobDestinationDbOutputWithContext(ctx context.Context) JobDestinationDbOutput
- func (o JobDestinationDbOutput) ToJobDestinationDbPtrOutput() JobDestinationDbPtrOutput
- func (o JobDestinationDbOutput) ToJobDestinationDbPtrOutputWithContext(ctx context.Context) JobDestinationDbPtrOutput
- func (o JobDestinationDbOutput) User() pulumi.StringOutput
- type JobDestinationDbPtrInput
- type JobDestinationDbPtrOutput
- func (o JobDestinationDbPtrOutput) Elem() JobDestinationDbOutput
- func (JobDestinationDbPtrOutput) ElementType() reflect.Type
- func (o JobDestinationDbPtrOutput) EngineType() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) InstanceId() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) Ip() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) Name() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) Password() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) Port() pulumi.IntPtrOutput
- func (o JobDestinationDbPtrOutput) Region() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) SslCertCheckSum() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) SslCertKey() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) SslCertName() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) SslCertPassword() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) SslEnabled() pulumi.BoolPtrOutput
- func (o JobDestinationDbPtrOutput) SubnetId() pulumi.StringPtrOutput
- func (o JobDestinationDbPtrOutput) ToJobDestinationDbPtrOutput() JobDestinationDbPtrOutput
- func (o JobDestinationDbPtrOutput) ToJobDestinationDbPtrOutputWithContext(ctx context.Context) JobDestinationDbPtrOutput
- func (o JobDestinationDbPtrOutput) User() pulumi.StringPtrOutput
- type JobInput
- type JobLimitSpeed
- type JobLimitSpeedArgs
- type JobLimitSpeedArray
- type JobLimitSpeedArrayInput
- type JobLimitSpeedArrayOutput
- func (JobLimitSpeedArrayOutput) ElementType() reflect.Type
- func (o JobLimitSpeedArrayOutput) Index(i pulumi.IntInput) JobLimitSpeedOutput
- func (o JobLimitSpeedArrayOutput) ToJobLimitSpeedArrayOutput() JobLimitSpeedArrayOutput
- func (o JobLimitSpeedArrayOutput) ToJobLimitSpeedArrayOutputWithContext(ctx context.Context) JobLimitSpeedArrayOutput
- type JobLimitSpeedInput
- type JobLimitSpeedOutput
- func (JobLimitSpeedOutput) ElementType() reflect.Type
- func (o JobLimitSpeedOutput) EndTime() pulumi.StringOutput
- func (o JobLimitSpeedOutput) Speed() pulumi.StringOutput
- func (o JobLimitSpeedOutput) StartTime() pulumi.StringOutput
- func (o JobLimitSpeedOutput) ToJobLimitSpeedOutput() JobLimitSpeedOutput
- func (o JobLimitSpeedOutput) ToJobLimitSpeedOutputWithContext(ctx context.Context) JobLimitSpeedOutput
- type JobMap
- type JobMapInput
- type JobMapOutput
- type JobOutput
- func (o JobOutput) CreatedAt() pulumi.StringOutput
- func (o JobOutput) Description() pulumi.StringPtrOutput
- func (o JobOutput) DestinationDb() JobDestinationDbOutput
- func (o JobOutput) DestinationDbReadnoly() pulumi.BoolPtrOutput
- func (o JobOutput) Direction() pulumi.StringOutput
- func (JobOutput) ElementType() reflect.Type
- func (o JobOutput) EngineType() pulumi.StringOutput
- func (o JobOutput) EnterpriseProjectId() pulumi.StringPtrOutput
- func (o JobOutput) ExpiredDays() pulumi.IntPtrOutput
- func (o JobOutput) ForceDestroy() pulumi.BoolPtrOutput
- func (o JobOutput) LimitSpeeds() JobLimitSpeedArrayOutput
- func (o JobOutput) MigrateDefiner() pulumi.BoolPtrOutput
- func (o JobOutput) MigrationType() pulumi.StringPtrOutput
- func (o JobOutput) MultiWrite() pulumi.BoolPtrOutput
- func (o JobOutput) Name() pulumi.StringOutput
- func (o JobOutput) NetType() pulumi.StringPtrOutput
- func (o JobOutput) PrivateIp() pulumi.StringOutput
- func (o JobOutput) PublicIp() pulumi.StringOutput
- func (o JobOutput) Region() pulumi.StringOutput
- func (o JobOutput) SourceDb() JobSourceDbOutput
- func (o JobOutput) StartTime() pulumi.StringPtrOutput
- func (o JobOutput) Status() pulumi.StringOutput
- func (o JobOutput) Tags() pulumi.StringMapOutput
- func (o JobOutput) ToJobOutput() JobOutput
- func (o JobOutput) ToJobOutputWithContext(ctx context.Context) JobOutput
- func (o JobOutput) Type() pulumi.StringOutput
- type JobSourceDb
- type JobSourceDbArgs
- func (JobSourceDbArgs) ElementType() reflect.Type
- func (i JobSourceDbArgs) ToJobSourceDbOutput() JobSourceDbOutput
- func (i JobSourceDbArgs) ToJobSourceDbOutputWithContext(ctx context.Context) JobSourceDbOutput
- func (i JobSourceDbArgs) ToJobSourceDbPtrOutput() JobSourceDbPtrOutput
- func (i JobSourceDbArgs) ToJobSourceDbPtrOutputWithContext(ctx context.Context) JobSourceDbPtrOutput
- type JobSourceDbInput
- type JobSourceDbOutput
- func (JobSourceDbOutput) ElementType() reflect.Type
- func (o JobSourceDbOutput) EngineType() pulumi.StringOutput
- func (o JobSourceDbOutput) InstanceId() pulumi.StringPtrOutput
- func (o JobSourceDbOutput) Ip() pulumi.StringOutput
- func (o JobSourceDbOutput) Name() pulumi.StringPtrOutput
- func (o JobSourceDbOutput) Password() pulumi.StringOutput
- func (o JobSourceDbOutput) Port() pulumi.IntOutput
- func (o JobSourceDbOutput) Region() pulumi.StringPtrOutput
- func (o JobSourceDbOutput) SslCertCheckSum() pulumi.StringPtrOutput
- func (o JobSourceDbOutput) SslCertKey() pulumi.StringPtrOutput
- func (o JobSourceDbOutput) SslCertName() pulumi.StringPtrOutput
- func (o JobSourceDbOutput) SslCertPassword() pulumi.StringPtrOutput
- func (o JobSourceDbOutput) SslEnabled() pulumi.BoolPtrOutput
- func (o JobSourceDbOutput) SubnetId() pulumi.StringPtrOutput
- func (o JobSourceDbOutput) ToJobSourceDbOutput() JobSourceDbOutput
- func (o JobSourceDbOutput) ToJobSourceDbOutputWithContext(ctx context.Context) JobSourceDbOutput
- func (o JobSourceDbOutput) ToJobSourceDbPtrOutput() JobSourceDbPtrOutput
- func (o JobSourceDbOutput) ToJobSourceDbPtrOutputWithContext(ctx context.Context) JobSourceDbPtrOutput
- func (o JobSourceDbOutput) User() pulumi.StringOutput
- type JobSourceDbPtrInput
- type JobSourceDbPtrOutput
- func (o JobSourceDbPtrOutput) Elem() JobSourceDbOutput
- func (JobSourceDbPtrOutput) ElementType() reflect.Type
- func (o JobSourceDbPtrOutput) EngineType() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) InstanceId() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) Ip() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) Name() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) Password() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) Port() pulumi.IntPtrOutput
- func (o JobSourceDbPtrOutput) Region() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) SslCertCheckSum() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) SslCertKey() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) SslCertName() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) SslCertPassword() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) SslEnabled() pulumi.BoolPtrOutput
- func (o JobSourceDbPtrOutput) SubnetId() pulumi.StringPtrOutput
- func (o JobSourceDbPtrOutput) ToJobSourceDbPtrOutput() JobSourceDbPtrOutput
- func (o JobSourceDbPtrOutput) ToJobSourceDbPtrOutputWithContext(ctx context.Context) JobSourceDbPtrOutput
- func (o JobSourceDbPtrOutput) User() pulumi.StringPtrOutput
- type JobState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
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) ToJobOutput ¶
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 ¶
type JobArray ¶
type JobArray []JobInput
func (JobArray) ElementType ¶
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) 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 ¶
func (o JobDestinationDbOutput) 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 (JobDestinationDbOutput) InstanceId ¶
func (o JobDestinationDbOutput) InstanceId() pulumi.StringPtrOutput
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
func (JobDestinationDbOutput) Ip ¶
func (o JobDestinationDbOutput) Ip() pulumi.StringOutput
Specifies the IP of database. Changing this parameter will create a new resource.
func (JobDestinationDbOutput) Name ¶
func (o JobDestinationDbOutput) Name() pulumi.StringPtrOutput
Specifies the name of database. Changing this parameter will create a new resource.
func (JobDestinationDbOutput) Password ¶
func (o JobDestinationDbOutput) Password() pulumi.StringOutput
Specifies the password of database. Changing this parameter will create a new resource.
func (JobDestinationDbOutput) Port ¶
func (o JobDestinationDbOutput) Port() pulumi.IntOutput
Specifies the port of database. Changing this parameter will create a new resource.
func (JobDestinationDbOutput) Region ¶
func (o JobDestinationDbOutput) Region() pulumi.StringPtrOutput
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 ¶
func (o JobDestinationDbOutput) 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 (JobDestinationDbOutput) SslCertName ¶
func (o JobDestinationDbOutput) SslCertName() pulumi.StringPtrOutput
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 ¶
func (o JobDestinationDbOutput) SslEnabled() pulumi.BoolPtrOutput
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
func (JobDestinationDbOutput) SubnetId ¶
func (o JobDestinationDbOutput) SubnetId() pulumi.StringPtrOutput
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 ¶
func (o JobDestinationDbOutput) User() pulumi.StringOutput
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
func JobDestinationDbPtr ¶
func JobDestinationDbPtr(v *JobDestinationDbArgs) JobDestinationDbPtrInput
type JobDestinationDbPtrOutput ¶
type JobDestinationDbPtrOutput struct{ *pulumi.OutputState }
func (JobDestinationDbPtrOutput) Elem ¶
func (o JobDestinationDbPtrOutput) Elem() JobDestinationDbOutput
func (JobDestinationDbPtrOutput) ElementType ¶
func (JobDestinationDbPtrOutput) ElementType() reflect.Type
func (JobDestinationDbPtrOutput) EngineType ¶
func (o JobDestinationDbPtrOutput) EngineType() pulumi.StringPtrOutput
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 ¶
func (o JobDestinationDbPtrOutput) InstanceId() pulumi.StringPtrOutput
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
func (JobDestinationDbPtrOutput) Ip ¶
func (o JobDestinationDbPtrOutput) Ip() pulumi.StringPtrOutput
Specifies the IP of database. Changing this parameter will create a new resource.
func (JobDestinationDbPtrOutput) Name ¶
func (o JobDestinationDbPtrOutput) Name() pulumi.StringPtrOutput
Specifies the name of database. Changing this parameter will create a new resource.
func (JobDestinationDbPtrOutput) Password ¶
func (o JobDestinationDbPtrOutput) Password() pulumi.StringPtrOutput
Specifies the password of database. Changing this parameter will create a new resource.
func (JobDestinationDbPtrOutput) Port ¶
func (o JobDestinationDbPtrOutput) Port() pulumi.IntPtrOutput
Specifies the port of database. Changing this parameter will create a new resource.
func (JobDestinationDbPtrOutput) Region ¶
func (o JobDestinationDbPtrOutput) Region() pulumi.StringPtrOutput
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 ¶
func (o JobDestinationDbPtrOutput) 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 (JobDestinationDbPtrOutput) SslCertName ¶
func (o JobDestinationDbPtrOutput) SslCertName() pulumi.StringPtrOutput
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 ¶
func (o JobDestinationDbPtrOutput) SslEnabled() pulumi.BoolPtrOutput
Specifies whether to enable SSL connection. Changing this parameter will create a new resource.
func (JobDestinationDbPtrOutput) SubnetId ¶
func (o JobDestinationDbPtrOutput) SubnetId() pulumi.StringPtrOutput
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 ¶
func (o JobDestinationDbPtrOutput) User() pulumi.StringPtrOutput
Specifies the user name of database. Changing this parameter will create a new resource.
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 (o JobLimitSpeedArrayOutput) Index(i pulumi.IntInput) JobLimitSpeedOutput
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 ¶
func (o JobLimitSpeedOutput) EndTime() pulumi.StringOutput
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 ¶
func (o JobLimitSpeedOutput) Speed() pulumi.StringOutput
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 ¶
func (JobMap) ElementType ¶
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) 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) 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) 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 (JobOutput) ToJobOutputWithContext ¶
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 ¶
func (o JobSourceDbOutput) Ip() pulumi.StringOutput
Specifies the IP of database. Changing this parameter will create a new resource.
func (JobSourceDbOutput) Name ¶
func (o JobSourceDbOutput) Name() pulumi.StringPtrOutput
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 ¶
func (o JobSourceDbOutput) Port() pulumi.IntOutput
Specifies the port of database. Changing this parameter will create a new resource.
func (JobSourceDbOutput) Region ¶
func (o JobSourceDbOutput) Region() pulumi.StringPtrOutput
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 ¶
func (o JobSourceDbOutput) SubnetId() pulumi.StringPtrOutput
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 ¶
func (o JobSourceDbOutput) User() pulumi.StringOutput
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 (o JobSourceDbPtrOutput) Elem() JobSourceDbOutput
func (JobSourceDbPtrOutput) ElementType ¶
func (JobSourceDbPtrOutput) ElementType() reflect.Type
func (JobSourceDbPtrOutput) EngineType ¶
func (o JobSourceDbPtrOutput) EngineType() pulumi.StringPtrOutput
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 ¶
func (o JobSourceDbPtrOutput) InstanceId() pulumi.StringPtrOutput
Specifies the instance id of database when it is a RDS database. Changing this parameter will create a new resource.
func (JobSourceDbPtrOutput) Ip ¶
func (o JobSourceDbPtrOutput) Ip() pulumi.StringPtrOutput
Specifies the IP of database. Changing this parameter will create a new resource.
func (JobSourceDbPtrOutput) Name ¶
func (o JobSourceDbPtrOutput) Name() pulumi.StringPtrOutput
Specifies the name of database. Changing this parameter will create a new resource.
func (JobSourceDbPtrOutput) Password ¶
func (o JobSourceDbPtrOutput) Password() pulumi.StringPtrOutput
Specifies the password of database. Changing this parameter will create a new resource.
func (JobSourceDbPtrOutput) Port ¶
func (o JobSourceDbPtrOutput) Port() pulumi.IntPtrOutput
Specifies the port of database. Changing this parameter will create a new resource.
func (JobSourceDbPtrOutput) Region ¶
func (o JobSourceDbPtrOutput) Region() pulumi.StringPtrOutput
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 ¶
func (o JobSourceDbPtrOutput) 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 (JobSourceDbPtrOutput) SslCertName ¶
func (o JobSourceDbPtrOutput) SslCertName() pulumi.StringPtrOutput
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 ¶
func (o JobSourceDbPtrOutput) SubnetId() pulumi.StringPtrOutput
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 ¶
func (o JobSourceDbPtrOutput) User() pulumi.StringPtrOutput
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 }