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",
});
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")
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
})
}
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",
});
});
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());
}
}
configuration:
instanceId:
type: dynamic
resources:
test:
type: opentelekomcloud:RdsMaintenanceV3
properties:
instanceId: ${instanceId}
startTime: 12:00
endTime: 16:00
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 string
- The unique name of the resource.
- args RdsMaintenanceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args RdsMaintenanceV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RdsMaintenanceV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := opentelekomcloud.NewRdsMaintenanceV3(ctx, "rdsMaintenanceV3Resource", &opentelekomcloud.RdsMaintenanceV3Args{
EndTime: pulumi.String("string"),
InstanceId: pulumi.String("string"),
StartTime: pulumi.String("string"),
RdsMaintenanceV3Id: pulumi.String("string"),
})
var rdsMaintenanceV3Resource = new RdsMaintenanceV3("rdsMaintenanceV3Resource", RdsMaintenanceV3Args.builder()
.endTime("string")
.instanceId("string")
.startTime("string")
.rdsMaintenanceV3Id("string")
.build());
rds_maintenance_v3_resource = opentelekomcloud.RdsMaintenanceV3("rdsMaintenanceV3Resource",
end_time="string",
instance_id="string",
start_time="string",
rds_maintenance_v3_id="string")
const rdsMaintenanceV3Resource = new opentelekomcloud.RdsMaintenanceV3("rdsMaintenanceV3Resource", {
endTime: "string",
instanceId: "string",
startTime: "string",
rdsMaintenanceV3Id: "string",
});
type: opentelekomcloud:RdsMaintenanceV3
properties:
endTime: string
instanceId: string
rdsMaintenanceV3Id: string
startTime: string
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:
- End
Time 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.
- Instance
Id string The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- Start
Time 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.
- Rds
Maintenance stringV3Id
- End
Time 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.
- Instance
Id string The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- Start
Time 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.
- Rds
Maintenance stringV3Id
- end
Time 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.
- instance
Id String The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- start
Time 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.
- rds
Maintenance StringV3Id
- end
Time 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.
- instance
Id string The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- start
Time 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.
- rds
Maintenance stringV3Id
- 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
andend_time
must be four hours.- 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.
- rds_
maintenance_ strv3_ id
- end
Time 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.
- instance
Id String The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- start
Time 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.
- rds
Maintenance StringV3Id
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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- End
Time 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.
- Instance
Id string The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- Rds
Maintenance stringV3Id - Start
Time 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 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.
- Instance
Id string The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- Rds
Maintenance stringV3Id - Start
Time 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 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.
- instance
Id String The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- rds
Maintenance StringV3Id - start
Time 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 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.
- instance
Id string The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- rds
Maintenance stringV3Id - start
Time 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
andend_time
must be four hours.- rds_
maintenance_ strv3_ id - 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.
- end
Time 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.
- instance
Id String The ID of the RDS instance to which the maintenance window belongs.
NOTE: The interval between the
start_time
andend_time
must be four hours.- rds
Maintenance StringV3Id - start
Time 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.