tencentcloud.MariadbRestartInstance
Explore with Pulumi AI
Provides a resource to create a mariadb restart_instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const restartInstance = new tencentcloud.MariadbRestartInstance("restartInstance", {instanceId: "tdsql-9vqvls95"});
import pulumi
import pulumi_tencentcloud as tencentcloud
restart_instance = tencentcloud.MariadbRestartInstance("restartInstance", instance_id="tdsql-9vqvls95")
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.NewMariadbRestartInstance(ctx, "restartInstance", &tencentcloud.MariadbRestartInstanceArgs{
InstanceId: pulumi.String("tdsql-9vqvls95"),
})
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 restartInstance = new Tencentcloud.MariadbRestartInstance("restartInstance", new()
{
InstanceId = "tdsql-9vqvls95",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MariadbRestartInstance;
import com.pulumi.tencentcloud.MariadbRestartInstanceArgs;
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 restartInstance = new MariadbRestartInstance("restartInstance", MariadbRestartInstanceArgs.builder()
.instanceId("tdsql-9vqvls95")
.build());
}
}
resources:
restartInstance:
type: tencentcloud:MariadbRestartInstance
properties:
instanceId: tdsql-9vqvls95
Create MariadbRestartInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MariadbRestartInstance(name: string, args: MariadbRestartInstanceArgs, opts?: CustomResourceOptions);
@overload
def MariadbRestartInstance(resource_name: str,
args: MariadbRestartInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MariadbRestartInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
mariadb_restart_instance_id: Optional[str] = None,
restart_time: Optional[str] = None)
func NewMariadbRestartInstance(ctx *Context, name string, args MariadbRestartInstanceArgs, opts ...ResourceOption) (*MariadbRestartInstance, error)
public MariadbRestartInstance(string name, MariadbRestartInstanceArgs args, CustomResourceOptions? opts = null)
public MariadbRestartInstance(String name, MariadbRestartInstanceArgs args)
public MariadbRestartInstance(String name, MariadbRestartInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:MariadbRestartInstance
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 MariadbRestartInstanceArgs
- 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 MariadbRestartInstanceArgs
- 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 MariadbRestartInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MariadbRestartInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MariadbRestartInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MariadbRestartInstance 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 MariadbRestartInstance resource accepts the following input properties:
- Instance
Id string - instance ID.
- Mariadb
Restart stringInstance Id - ID of the resource.
- Restart
Time string - expected restart time.
- Instance
Id string - instance ID.
- Mariadb
Restart stringInstance Id - ID of the resource.
- Restart
Time string - expected restart time.
- instance
Id String - instance ID.
- mariadb
Restart StringInstance Id - ID of the resource.
- restart
Time String - expected restart time.
- instance
Id string - instance ID.
- mariadb
Restart stringInstance Id - ID of the resource.
- restart
Time string - expected restart time.
- instance_
id str - instance ID.
- mariadb_
restart_ strinstance_ id - ID of the resource.
- restart_
time str - expected restart time.
- instance
Id String - instance ID.
- mariadb
Restart StringInstance Id - ID of the resource.
- restart
Time String - expected restart time.
Outputs
All input properties are implicitly available as output properties. Additionally, the MariadbRestartInstance 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 MariadbRestartInstance Resource
Get an existing MariadbRestartInstance 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?: MariadbRestartInstanceState, opts?: CustomResourceOptions): MariadbRestartInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
mariadb_restart_instance_id: Optional[str] = None,
restart_time: Optional[str] = None) -> MariadbRestartInstance
func GetMariadbRestartInstance(ctx *Context, name string, id IDInput, state *MariadbRestartInstanceState, opts ...ResourceOption) (*MariadbRestartInstance, error)
public static MariadbRestartInstance Get(string name, Input<string> id, MariadbRestartInstanceState? state, CustomResourceOptions? opts = null)
public static MariadbRestartInstance get(String name, Output<String> id, MariadbRestartInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MariadbRestartInstance 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
Restart stringInstance Id - ID of the resource.
- Restart
Time string - expected restart time.
- Instance
Id string - instance ID.
- Mariadb
Restart stringInstance Id - ID of the resource.
- Restart
Time string - expected restart time.
- instance
Id String - instance ID.
- mariadb
Restart StringInstance Id - ID of the resource.
- restart
Time String - expected restart time.
- instance
Id string - instance ID.
- mariadb
Restart stringInstance Id - ID of the resource.
- restart
Time string - expected restart time.
- instance_
id str - instance ID.
- mariadb_
restart_ strinstance_ id - ID of the resource.
- restart_
time str - expected restart time.
- instance
Id String - instance ID.
- mariadb
Restart StringInstance Id - ID of the resource.
- restart
Time String - expected restart time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.