opentelekomcloud.RmsAdvancedQueryV1
Explore with Pulumi AI
Up-to-date reference of API arguments for RDS replica you can get at documentation portal
Manages an RMS advanced query resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const test = new opentelekomcloud.RmsAdvancedQueryV1("test", {expression: "select * from table_test"});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
test = opentelekomcloud.RmsAdvancedQueryV1("test", expression="select * from table_test")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewRmsAdvancedQueryV1(ctx, "test", &opentelekomcloud.RmsAdvancedQueryV1Args{
Expression: pulumi.String("select * from table_test"),
})
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 test = new Opentelekomcloud.RmsAdvancedQueryV1("test", new()
{
Expression = "select * from table_test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.RmsAdvancedQueryV1;
import com.pulumi.opentelekomcloud.RmsAdvancedQueryV1Args;
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 test = new RmsAdvancedQueryV1("test", RmsAdvancedQueryV1Args.builder()
.expression("select * from table_test")
.build());
}
}
resources:
test:
type: opentelekomcloud:RmsAdvancedQueryV1
properties:
expression: select * from table_test
Create RmsAdvancedQueryV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RmsAdvancedQueryV1(name: string, args: RmsAdvancedQueryV1Args, opts?: CustomResourceOptions);
@overload
def RmsAdvancedQueryV1(resource_name: str,
args: RmsAdvancedQueryV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def RmsAdvancedQueryV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
expression: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
rms_advanced_query_v1_id: Optional[str] = None)
func NewRmsAdvancedQueryV1(ctx *Context, name string, args RmsAdvancedQueryV1Args, opts ...ResourceOption) (*RmsAdvancedQueryV1, error)
public RmsAdvancedQueryV1(string name, RmsAdvancedQueryV1Args args, CustomResourceOptions? opts = null)
public RmsAdvancedQueryV1(String name, RmsAdvancedQueryV1Args args)
public RmsAdvancedQueryV1(String name, RmsAdvancedQueryV1Args args, CustomResourceOptions options)
type: opentelekomcloud:RmsAdvancedQueryV1
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 RmsAdvancedQueryV1Args
- 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 RmsAdvancedQueryV1Args
- 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 RmsAdvancedQueryV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RmsAdvancedQueryV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RmsAdvancedQueryV1Args
- 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 rmsAdvancedQueryV1Resource = new Opentelekomcloud.RmsAdvancedQueryV1("rmsAdvancedQueryV1Resource", new()
{
Expression = "string",
Description = "string",
Name = "string",
RmsAdvancedQueryV1Id = "string",
});
example, err := opentelekomcloud.NewRmsAdvancedQueryV1(ctx, "rmsAdvancedQueryV1Resource", &opentelekomcloud.RmsAdvancedQueryV1Args{
Expression: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
RmsAdvancedQueryV1Id: pulumi.String("string"),
})
var rmsAdvancedQueryV1Resource = new RmsAdvancedQueryV1("rmsAdvancedQueryV1Resource", RmsAdvancedQueryV1Args.builder()
.expression("string")
.description("string")
.name("string")
.rmsAdvancedQueryV1Id("string")
.build());
rms_advanced_query_v1_resource = opentelekomcloud.RmsAdvancedQueryV1("rmsAdvancedQueryV1Resource",
expression="string",
description="string",
name="string",
rms_advanced_query_v1_id="string")
const rmsAdvancedQueryV1Resource = new opentelekomcloud.RmsAdvancedQueryV1("rmsAdvancedQueryV1Resource", {
expression: "string",
description: "string",
name: "string",
rmsAdvancedQueryV1Id: "string",
});
type: opentelekomcloud:RmsAdvancedQueryV1
properties:
description: string
expression: string
name: string
rmsAdvancedQueryV1Id: string
RmsAdvancedQueryV1 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 RmsAdvancedQueryV1 resource accepts the following input properties:
- Expression string
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- Description string
- Specifies the advanced query description. It contains 1 to 512 characters.
- Name string
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- Rms
Advanced stringQuery V1Id - The resource ID.
- Expression string
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- Description string
- Specifies the advanced query description. It contains 1 to 512 characters.
- Name string
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- Rms
Advanced stringQuery V1Id - The resource ID.
- expression String
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- description String
- Specifies the advanced query description. It contains 1 to 512 characters.
- name String
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- rms
Advanced StringQuery V1Id - The resource ID.
- expression string
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- description string
- Specifies the advanced query description. It contains 1 to 512 characters.
- name string
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- rms
Advanced stringQuery V1Id - The resource ID.
- expression str
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- description str
- Specifies the advanced query description. It contains 1 to 512 characters.
- name str
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- rms_
advanced_ strquery_ v1_ id - The resource ID.
- expression String
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- description String
- Specifies the advanced query description. It contains 1 to 512 characters.
- name String
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- rms
Advanced StringQuery V1Id - The resource ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the RmsAdvancedQueryV1 resource produces the following output properties:
- created_
at str - The resource creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- type str
- The resource type.
- updated_
at str - The resource update time.
Look up Existing RmsAdvancedQueryV1 Resource
Get an existing RmsAdvancedQueryV1 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?: RmsAdvancedQueryV1State, opts?: CustomResourceOptions): RmsAdvancedQueryV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
expression: Optional[str] = None,
name: Optional[str] = None,
rms_advanced_query_v1_id: Optional[str] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> RmsAdvancedQueryV1
func GetRmsAdvancedQueryV1(ctx *Context, name string, id IDInput, state *RmsAdvancedQueryV1State, opts ...ResourceOption) (*RmsAdvancedQueryV1, error)
public static RmsAdvancedQueryV1 Get(string name, Input<string> id, RmsAdvancedQueryV1State? state, CustomResourceOptions? opts = null)
public static RmsAdvancedQueryV1 get(String name, Output<String> id, RmsAdvancedQueryV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:RmsAdvancedQueryV1 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.
- Created
At string - The resource creation time.
- Description string
- Specifies the advanced query description. It contains 1 to 512 characters.
- Expression string
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- Name string
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- Rms
Advanced stringQuery V1Id - The resource ID.
- Type string
- The resource type.
- Updated
At string - The resource update time.
- Created
At string - The resource creation time.
- Description string
- Specifies the advanced query description. It contains 1 to 512 characters.
- Expression string
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- Name string
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- Rms
Advanced stringQuery V1Id - The resource ID.
- Type string
- The resource type.
- Updated
At string - The resource update time.
- created
At String - The resource creation time.
- description String
- Specifies the advanced query description. It contains 1 to 512 characters.
- expression String
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- name String
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- rms
Advanced StringQuery V1Id - The resource ID.
- type String
- The resource type.
- updated
At String - The resource update time.
- created
At string - The resource creation time.
- description string
- Specifies the advanced query description. It contains 1 to 512 characters.
- expression string
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- name string
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- rms
Advanced stringQuery V1Id - The resource ID.
- type string
- The resource type.
- updated
At string - The resource update time.
- created_
at str - The resource creation time.
- description str
- Specifies the advanced query description. It contains 1 to 512 characters.
- expression str
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- name str
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- rms_
advanced_ strquery_ v1_ id - The resource ID.
- type str
- The resource type.
- updated_
at str - The resource update time.
- created
At String - The resource creation time.
- description String
- Specifies the advanced query description. It contains 1 to 512 characters.
- expression String
- Specifies the advanced query expression. It contains 1 to 4096 characters.
- name String
Specifies the advanced query name. It contains 1 to 64 characters.
Changing this parameter will create a new resource.
- rms
Advanced StringQuery V1Id - The resource ID.
- type String
- The resource type.
- updated
At String - The resource update time.
Import
The RMS advanced query can be imported using the id
, e.g.
bash
$ pulumi import opentelekomcloud:index/rmsAdvancedQueryV1:RmsAdvancedQueryV1 test <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.