1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. RdsMaintenanceV3
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.RdsMaintenanceV3

Explore with Pulumi AI

Up-to-date reference of API arguments for RDS parameter group rule you can get at documentation portal

Manages a RDSv3 maintenance windows resource within OpenTelekomCloud.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const test = new opentelekomcloud.RdsMaintenanceV3("test", {
    instanceId: instanceId,
    startTime: "12:00",
    endTime: "16:00",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
instance_id = config.require_object("instanceId")
test = opentelekomcloud.RdsMaintenanceV3("test",
    instance_id=instance_id,
    start_time="12:00",
    end_time="16:00")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		instanceId := cfg.RequireObject("instanceId")
		_, err := opentelekomcloud.NewRdsMaintenanceV3(ctx, "test", &opentelekomcloud.RdsMaintenanceV3Args{
			InstanceId: pulumi.Any(instanceId),
			StartTime:  pulumi.String("12:00"),
			EndTime:    pulumi.String("16:00"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var instanceId = config.RequireObject<dynamic>("instanceId");
    var test = new Opentelekomcloud.RdsMaintenanceV3("test", new()
    {
        InstanceId = instanceId,
        StartTime = "12:00",
        EndTime = "16:00",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.RdsMaintenanceV3;
import com.pulumi.opentelekomcloud.RdsMaintenanceV3Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var instanceId = config.get("instanceId");
        var test = new RdsMaintenanceV3("test", RdsMaintenanceV3Args.builder()
            .instanceId(instanceId)
            .startTime("12:00")
            .endTime("16:00")
            .build());

    }
}
Copy
configuration:
  instanceId:
    type: dynamic
resources:
  test:
    type: opentelekomcloud:RdsMaintenanceV3
    properties:
      instanceId: ${instanceId}
      startTime: 12:00
      endTime: 16:00
Copy

Create RdsMaintenanceV3 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RdsMaintenanceV3(name: string, args: RdsMaintenanceV3Args, opts?: CustomResourceOptions);
@overload
def RdsMaintenanceV3(resource_name: str,
                     args: RdsMaintenanceV3Args,
                     opts: Optional[ResourceOptions] = None)

@overload
def RdsMaintenanceV3(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     end_time: Optional[str] = None,
                     instance_id: Optional[str] = None,
                     start_time: Optional[str] = None,
                     rds_maintenance_v3_id: Optional[str] = None)
func NewRdsMaintenanceV3(ctx *Context, name string, args RdsMaintenanceV3Args, opts ...ResourceOption) (*RdsMaintenanceV3, error)
public RdsMaintenanceV3(string name, RdsMaintenanceV3Args args, CustomResourceOptions? opts = null)
public RdsMaintenanceV3(String name, RdsMaintenanceV3Args args)
public RdsMaintenanceV3(String name, RdsMaintenanceV3Args args, CustomResourceOptions options)
type: opentelekomcloud:RdsMaintenanceV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RdsMaintenanceV3Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RdsMaintenanceV3Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RdsMaintenanceV3Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RdsMaintenanceV3Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RdsMaintenanceV3Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var rdsMaintenanceV3Resource = new Opentelekomcloud.RdsMaintenanceV3("rdsMaintenanceV3Resource", new()
{
    EndTime = "string",
    InstanceId = "string",
    StartTime = "string",
    RdsMaintenanceV3Id = "string",
});
Copy
example, err := opentelekomcloud.NewRdsMaintenanceV3(ctx, "rdsMaintenanceV3Resource", &opentelekomcloud.RdsMaintenanceV3Args{
	EndTime:            pulumi.String("string"),
	InstanceId:         pulumi.String("string"),
	StartTime:          pulumi.String("string"),
	RdsMaintenanceV3Id: pulumi.String("string"),
})
Copy
var rdsMaintenanceV3Resource = new RdsMaintenanceV3("rdsMaintenanceV3Resource", RdsMaintenanceV3Args.builder()
    .endTime("string")
    .instanceId("string")
    .startTime("string")
    .rdsMaintenanceV3Id("string")
    .build());
Copy
rds_maintenance_v3_resource = opentelekomcloud.RdsMaintenanceV3("rdsMaintenanceV3Resource",
    end_time="string",
    instance_id="string",
    start_time="string",
    rds_maintenance_v3_id="string")
Copy
const rdsMaintenanceV3Resource = new opentelekomcloud.RdsMaintenanceV3("rdsMaintenanceV3Resource", {
    endTime: "string",
    instanceId: "string",
    startTime: "string",
    rdsMaintenanceV3Id: "string",
});
Copy
type: opentelekomcloud:RdsMaintenanceV3
properties:
    endTime: string
    instanceId: string
    rdsMaintenanceV3Id: string
    startTime: string
Copy

RdsMaintenanceV3 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RdsMaintenanceV3 resource accepts the following input properties:

EndTime This property is required. string
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
InstanceId This property is required. string

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

StartTime This property is required. string
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
RdsMaintenanceV3Id string
EndTime This property is required. string
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
InstanceId This property is required. string

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

StartTime This property is required. string
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
RdsMaintenanceV3Id string
endTime This property is required. String
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
instanceId This property is required. String

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

startTime This property is required. String
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
rdsMaintenanceV3Id String
endTime This property is required. string
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
instanceId This property is required. string

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

startTime This property is required. string
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
rdsMaintenanceV3Id string
end_time This property is required. str
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
instance_id This property is required. str

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

start_time This property is required. str
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
rds_maintenance_v3_id str
endTime This property is required. String
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
instanceId This property is required. String

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

startTime This property is required. String
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
rdsMaintenanceV3Id String

Outputs

All input properties are implicitly available as output properties. Additionally, the RdsMaintenanceV3 resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing RdsMaintenanceV3 Resource

Get an existing RdsMaintenanceV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RdsMaintenanceV3State, opts?: CustomResourceOptions): RdsMaintenanceV3
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        end_time: Optional[str] = None,
        instance_id: Optional[str] = None,
        rds_maintenance_v3_id: Optional[str] = None,
        start_time: Optional[str] = None) -> RdsMaintenanceV3
func GetRdsMaintenanceV3(ctx *Context, name string, id IDInput, state *RdsMaintenanceV3State, opts ...ResourceOption) (*RdsMaintenanceV3, error)
public static RdsMaintenanceV3 Get(string name, Input<string> id, RdsMaintenanceV3State? state, CustomResourceOptions? opts = null)
public static RdsMaintenanceV3 get(String name, Output<String> id, RdsMaintenanceV3State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:RdsMaintenanceV3    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
EndTime string
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
InstanceId string

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

RdsMaintenanceV3Id string
StartTime string
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
EndTime string
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
InstanceId string

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

RdsMaintenanceV3Id string
StartTime string
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
endTime String
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
instanceId String

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

rdsMaintenanceV3Id String
startTime String
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
endTime string
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
instanceId string

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

rdsMaintenanceV3Id string
startTime string
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
end_time str
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
instance_id str

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

rds_maintenance_v3_id str
start_time str
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
endTime String
Specifies the end time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.
instanceId String

The ID of the RDS instance to which the maintenance window belongs.

NOTE: The interval between the start_time and end_time must be four hours.

rdsMaintenanceV3Id String
startTime String
Specifies the start time. The value must be a valid value in the "HH:MM" format. The current time is in the UTC format.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.