tencentcloud.CynosdbExportInstanceSlowQueries
Explore with Pulumi AI
Provides a resource to create a cynosdb export_instance_slow_queries
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exportInstanceSlowQueries = new tencentcloud.CynosdbExportInstanceSlowQueries("exportInstanceSlowQueries", {
database: "db1",
endTime: "2022-01-01 14:00:00",
fileType: "csv",
host: "10.10.10.10",
instanceId: "cynosdbmysql-ins-123",
startTime: "2022-01-01 12:00:00",
username: "root",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
export_instance_slow_queries = tencentcloud.CynosdbExportInstanceSlowQueries("exportInstanceSlowQueries",
database="db1",
end_time="2022-01-01 14:00:00",
file_type="csv",
host="10.10.10.10",
instance_id="cynosdbmysql-ins-123",
start_time="2022-01-01 12:00:00",
username="root")
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.NewCynosdbExportInstanceSlowQueries(ctx, "exportInstanceSlowQueries", &tencentcloud.CynosdbExportInstanceSlowQueriesArgs{
Database: pulumi.String("db1"),
EndTime: pulumi.String("2022-01-01 14:00:00"),
FileType: pulumi.String("csv"),
Host: pulumi.String("10.10.10.10"),
InstanceId: pulumi.String("cynosdbmysql-ins-123"),
StartTime: pulumi.String("2022-01-01 12:00:00"),
Username: pulumi.String("root"),
})
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 exportInstanceSlowQueries = new Tencentcloud.CynosdbExportInstanceSlowQueries("exportInstanceSlowQueries", new()
{
Database = "db1",
EndTime = "2022-01-01 14:00:00",
FileType = "csv",
Host = "10.10.10.10",
InstanceId = "cynosdbmysql-ins-123",
StartTime = "2022-01-01 12:00:00",
Username = "root",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbExportInstanceSlowQueries;
import com.pulumi.tencentcloud.CynosdbExportInstanceSlowQueriesArgs;
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 exportInstanceSlowQueries = new CynosdbExportInstanceSlowQueries("exportInstanceSlowQueries", CynosdbExportInstanceSlowQueriesArgs.builder()
.database("db1")
.endTime("2022-01-01 14:00:00")
.fileType("csv")
.host("10.10.10.10")
.instanceId("cynosdbmysql-ins-123")
.startTime("2022-01-01 12:00:00")
.username("root")
.build());
}
}
resources:
exportInstanceSlowQueries:
type: tencentcloud:CynosdbExportInstanceSlowQueries
properties:
database: db1
endTime: 2022-01-01 14:00:00
fileType: csv
host: 10.10.10.10
instanceId: cynosdbmysql-ins-123
startTime: 2022-01-01 12:00:00
username: root
Create CynosdbExportInstanceSlowQueries Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbExportInstanceSlowQueries(name: string, args: CynosdbExportInstanceSlowQueriesArgs, opts?: CustomResourceOptions);
@overload
def CynosdbExportInstanceSlowQueries(resource_name: str,
args: CynosdbExportInstanceSlowQueriesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbExportInstanceSlowQueries(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
cynosdb_export_instance_slow_queries_id: Optional[str] = None,
database: Optional[str] = None,
end_time: Optional[str] = None,
file_type: Optional[str] = None,
host: Optional[str] = None,
start_time: Optional[str] = None,
username: Optional[str] = None)
func NewCynosdbExportInstanceSlowQueries(ctx *Context, name string, args CynosdbExportInstanceSlowQueriesArgs, opts ...ResourceOption) (*CynosdbExportInstanceSlowQueries, error)
public CynosdbExportInstanceSlowQueries(string name, CynosdbExportInstanceSlowQueriesArgs args, CustomResourceOptions? opts = null)
public CynosdbExportInstanceSlowQueries(String name, CynosdbExportInstanceSlowQueriesArgs args)
public CynosdbExportInstanceSlowQueries(String name, CynosdbExportInstanceSlowQueriesArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbExportInstanceSlowQueries
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 CynosdbExportInstanceSlowQueriesArgs
- 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 CynosdbExportInstanceSlowQueriesArgs
- 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 CynosdbExportInstanceSlowQueriesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbExportInstanceSlowQueriesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbExportInstanceSlowQueriesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbExportInstanceSlowQueries 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 CynosdbExportInstanceSlowQueries resource accepts the following input properties:
- Instance
Id string - Instance ID.
- Cynosdb
Export stringInstance Slow Queries Id - ID of the resource.
- Database string
- Database name.
- End
Time string - Latest transaction start time.
- File
Type string - File type, optional values: csv, original.
- Host string
- Client host.
- Start
Time string - Earliest transaction start time.
- Username string
- user name.
- Instance
Id string - Instance ID.
- Cynosdb
Export stringInstance Slow Queries Id - ID of the resource.
- Database string
- Database name.
- End
Time string - Latest transaction start time.
- File
Type string - File type, optional values: csv, original.
- Host string
- Client host.
- Start
Time string - Earliest transaction start time.
- Username string
- user name.
- instance
Id String - Instance ID.
- cynosdb
Export StringInstance Slow Queries Id - ID of the resource.
- database String
- Database name.
- end
Time String - Latest transaction start time.
- file
Type String - File type, optional values: csv, original.
- host String
- Client host.
- start
Time String - Earliest transaction start time.
- username String
- user name.
- instance
Id string - Instance ID.
- cynosdb
Export stringInstance Slow Queries Id - ID of the resource.
- database string
- Database name.
- end
Time string - Latest transaction start time.
- file
Type string - File type, optional values: csv, original.
- host string
- Client host.
- start
Time string - Earliest transaction start time.
- username string
- user name.
- instance_
id str - Instance ID.
- cynosdb_
export_ strinstance_ slow_ queries_ id - ID of the resource.
- database str
- Database name.
- end_
time str - Latest transaction start time.
- file_
type str - File type, optional values: csv, original.
- host str
- Client host.
- start_
time str - Earliest transaction start time.
- username str
- user name.
- instance
Id String - Instance ID.
- cynosdb
Export StringInstance Slow Queries Id - ID of the resource.
- database String
- Database name.
- end
Time String - Latest transaction start time.
- file
Type String - File type, optional values: csv, original.
- host String
- Client host.
- start
Time String - Earliest transaction start time.
- username String
- user name.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbExportInstanceSlowQueries resource produces the following output properties:
- File
Content string - Slow query export content.
- Id string
- The provider-assigned unique ID for this managed resource.
- File
Content string - Slow query export content.
- Id string
- The provider-assigned unique ID for this managed resource.
- file
Content String - Slow query export content.
- id String
- The provider-assigned unique ID for this managed resource.
- file
Content string - Slow query export content.
- id string
- The provider-assigned unique ID for this managed resource.
- file_
content str - Slow query export content.
- id str
- The provider-assigned unique ID for this managed resource.
- file
Content String - Slow query export content.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CynosdbExportInstanceSlowQueries Resource
Get an existing CynosdbExportInstanceSlowQueries 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?: CynosdbExportInstanceSlowQueriesState, opts?: CustomResourceOptions): CynosdbExportInstanceSlowQueries
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cynosdb_export_instance_slow_queries_id: Optional[str] = None,
database: Optional[str] = None,
end_time: Optional[str] = None,
file_content: Optional[str] = None,
file_type: Optional[str] = None,
host: Optional[str] = None,
instance_id: Optional[str] = None,
start_time: Optional[str] = None,
username: Optional[str] = None) -> CynosdbExportInstanceSlowQueries
func GetCynosdbExportInstanceSlowQueries(ctx *Context, name string, id IDInput, state *CynosdbExportInstanceSlowQueriesState, opts ...ResourceOption) (*CynosdbExportInstanceSlowQueries, error)
public static CynosdbExportInstanceSlowQueries Get(string name, Input<string> id, CynosdbExportInstanceSlowQueriesState? state, CustomResourceOptions? opts = null)
public static CynosdbExportInstanceSlowQueries get(String name, Output<String> id, CynosdbExportInstanceSlowQueriesState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CynosdbExportInstanceSlowQueries 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.
- Cynosdb
Export stringInstance Slow Queries Id - ID of the resource.
- Database string
- Database name.
- End
Time string - Latest transaction start time.
- File
Content string - Slow query export content.
- File
Type string - File type, optional values: csv, original.
- Host string
- Client host.
- Instance
Id string - Instance ID.
- Start
Time string - Earliest transaction start time.
- Username string
- user name.
- Cynosdb
Export stringInstance Slow Queries Id - ID of the resource.
- Database string
- Database name.
- End
Time string - Latest transaction start time.
- File
Content string - Slow query export content.
- File
Type string - File type, optional values: csv, original.
- Host string
- Client host.
- Instance
Id string - Instance ID.
- Start
Time string - Earliest transaction start time.
- Username string
- user name.
- cynosdb
Export StringInstance Slow Queries Id - ID of the resource.
- database String
- Database name.
- end
Time String - Latest transaction start time.
- file
Content String - Slow query export content.
- file
Type String - File type, optional values: csv, original.
- host String
- Client host.
- instance
Id String - Instance ID.
- start
Time String - Earliest transaction start time.
- username String
- user name.
- cynosdb
Export stringInstance Slow Queries Id - ID of the resource.
- database string
- Database name.
- end
Time string - Latest transaction start time.
- file
Content string - Slow query export content.
- file
Type string - File type, optional values: csv, original.
- host string
- Client host.
- instance
Id string - Instance ID.
- start
Time string - Earliest transaction start time.
- username string
- user name.
- cynosdb_
export_ strinstance_ slow_ queries_ id - ID of the resource.
- database str
- Database name.
- end_
time str - Latest transaction start time.
- file_
content str - Slow query export content.
- file_
type str - File type, optional values: csv, original.
- host str
- Client host.
- instance_
id str - Instance ID.
- start_
time str - Earliest transaction start time.
- username str
- user name.
- cynosdb
Export StringInstance Slow Queries Id - ID of the resource.
- database String
- Database name.
- end
Time String - Latest transaction start time.
- file
Content String - Slow query export content.
- file
Type String - File type, optional values: csv, original.
- host String
- Client host.
- instance
Id String - Instance ID.
- start
Time String - Earliest transaction start time.
- username String
- user name.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.