tencentcloud.MariadbOperateHourDbInstance
Explore with Pulumi AI
Provides a resource to create a mariadb activate_hour_db_instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const activateHourDbInstance = new tencentcloud.MariadbOperateHourDbInstance("activateHourDbInstance", {
instanceId: "tdsql-9vqvls95",
operate: "activate",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
activate_hour_db_instance = tencentcloud.MariadbOperateHourDbInstance("activateHourDbInstance",
instance_id="tdsql-9vqvls95",
operate="activate")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMariadbOperateHourDbInstance(ctx, "activateHourDbInstance", &tencentcloud.MariadbOperateHourDbInstanceArgs{
InstanceId: pulumi.String("tdsql-9vqvls95"),
Operate: pulumi.String("activate"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var activateHourDbInstance = new Tencentcloud.MariadbOperateHourDbInstance("activateHourDbInstance", new()
{
InstanceId = "tdsql-9vqvls95",
Operate = "activate",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MariadbOperateHourDbInstance;
import com.pulumi.tencentcloud.MariadbOperateHourDbInstanceArgs;
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) {
var activateHourDbInstance = new MariadbOperateHourDbInstance("activateHourDbInstance", MariadbOperateHourDbInstanceArgs.builder()
.instanceId("tdsql-9vqvls95")
.operate("activate")
.build());
}
}
resources:
activateHourDbInstance:
type: tencentcloud:MariadbOperateHourDbInstance
properties:
instanceId: tdsql-9vqvls95
operate: activate
Create MariadbOperateHourDbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MariadbOperateHourDbInstance(name: string, args: MariadbOperateHourDbInstanceArgs, opts?: CustomResourceOptions);
@overload
def MariadbOperateHourDbInstance(resource_name: str,
args: MariadbOperateHourDbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MariadbOperateHourDbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
operate: Optional[str] = None,
mariadb_operate_hour_db_instance_id: Optional[str] = None)
func NewMariadbOperateHourDbInstance(ctx *Context, name string, args MariadbOperateHourDbInstanceArgs, opts ...ResourceOption) (*MariadbOperateHourDbInstance, error)
public MariadbOperateHourDbInstance(string name, MariadbOperateHourDbInstanceArgs args, CustomResourceOptions? opts = null)
public MariadbOperateHourDbInstance(String name, MariadbOperateHourDbInstanceArgs args)
public MariadbOperateHourDbInstance(String name, MariadbOperateHourDbInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:MariadbOperateHourDbInstance
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 MariadbOperateHourDbInstanceArgs
- 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 MariadbOperateHourDbInstanceArgs
- 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 MariadbOperateHourDbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MariadbOperateHourDbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MariadbOperateHourDbInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MariadbOperateHourDbInstance 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 MariadbOperateHourDbInstance resource accepts the following input properties:
- Instance
Id string - Instance ID.
- Operate string
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance. - Mariadb
Operate stringHour Db Instance Id - ID of the resource.
- Instance
Id string - Instance ID.
- Operate string
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance. - Mariadb
Operate stringHour Db Instance Id - ID of the resource.
- instance
Id String - Instance ID.
- operate String
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance. - mariadb
Operate StringHour Db Instance Id - ID of the resource.
- instance
Id string - Instance ID.
- operate string
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance. - mariadb
Operate stringHour Db Instance Id - ID of the resource.
- instance_
id str - Instance ID.
- operate str
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance. - mariadb_
operate_ strhour_ db_ instance_ id - ID of the resource.
- instance
Id String - Instance ID.
- operate String
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance. - mariadb
Operate StringHour Db Instance Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the MariadbOperateHourDbInstance 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 MariadbOperateHourDbInstance Resource
Get an existing MariadbOperateHourDbInstance 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?: MariadbOperateHourDbInstanceState, opts?: CustomResourceOptions): MariadbOperateHourDbInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
mariadb_operate_hour_db_instance_id: Optional[str] = None,
operate: Optional[str] = None) -> MariadbOperateHourDbInstance
func GetMariadbOperateHourDbInstance(ctx *Context, name string, id IDInput, state *MariadbOperateHourDbInstanceState, opts ...ResourceOption) (*MariadbOperateHourDbInstance, error)
public static MariadbOperateHourDbInstance Get(string name, Input<string> id, MariadbOperateHourDbInstanceState? state, CustomResourceOptions? opts = null)
public static MariadbOperateHourDbInstance get(String name, Output<String> id, MariadbOperateHourDbInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MariadbOperateHourDbInstance 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.
- Instance
Id string - Instance ID.
- Mariadb
Operate stringHour Db Instance Id - ID of the resource.
- Operate string
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance.
- Instance
Id string - Instance ID.
- Mariadb
Operate stringHour Db Instance Id - ID of the resource.
- Operate string
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance.
- instance
Id String - Instance ID.
- mariadb
Operate StringHour Db Instance Id - ID of the resource.
- operate String
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance.
- instance
Id string - Instance ID.
- mariadb
Operate stringHour Db Instance Id - ID of the resource.
- operate string
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance.
- instance_
id str - Instance ID.
- mariadb_
operate_ strhour_ db_ instance_ id - ID of the resource.
- operate str
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance.
- instance
Id String - Instance ID.
- mariadb
Operate StringHour Db Instance Id - ID of the resource.
- operate String
- Operation,
activate
- activate the hour db instance,isolate
- isolate the hour db instance.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.