tencentcloud.CynosdbExportInstanceErrorLogs
Explore with Pulumi AI
Provides a resource to create a cynosdb export_instance_error_logs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exportInstanceErrorLogs = new tencentcloud.CynosdbExportInstanceErrorLogs("exportInstanceErrorLogs", {
endTime: "2022-01-01 14:00:00",
fileType: "csv",
instanceId: "cynosdbmysql-ins-afqx1hy0",
keyWords: ["content"],
logLevels: ["note"],
orderBy: "Timestamp",
orderByType: "ASC",
startTime: "2022-01-01 12:00:00",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
export_instance_error_logs = tencentcloud.CynosdbExportInstanceErrorLogs("exportInstanceErrorLogs",
end_time="2022-01-01 14:00:00",
file_type="csv",
instance_id="cynosdbmysql-ins-afqx1hy0",
key_words=["content"],
log_levels=["note"],
order_by="Timestamp",
order_by_type="ASC",
start_time="2022-01-01 12:00:00")
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.NewCynosdbExportInstanceErrorLogs(ctx, "exportInstanceErrorLogs", &tencentcloud.CynosdbExportInstanceErrorLogsArgs{
EndTime: pulumi.String("2022-01-01 14:00:00"),
FileType: pulumi.String("csv"),
InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
KeyWords: pulumi.StringArray{
pulumi.String("content"),
},
LogLevels: pulumi.StringArray{
pulumi.String("note"),
},
OrderBy: pulumi.String("Timestamp"),
OrderByType: pulumi.String("ASC"),
StartTime: pulumi.String("2022-01-01 12:00:00"),
})
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 exportInstanceErrorLogs = new Tencentcloud.CynosdbExportInstanceErrorLogs("exportInstanceErrorLogs", new()
{
EndTime = "2022-01-01 14:00:00",
FileType = "csv",
InstanceId = "cynosdbmysql-ins-afqx1hy0",
KeyWords = new[]
{
"content",
},
LogLevels = new[]
{
"note",
},
OrderBy = "Timestamp",
OrderByType = "ASC",
StartTime = "2022-01-01 12:00:00",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbExportInstanceErrorLogs;
import com.pulumi.tencentcloud.CynosdbExportInstanceErrorLogsArgs;
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 exportInstanceErrorLogs = new CynosdbExportInstanceErrorLogs("exportInstanceErrorLogs", CynosdbExportInstanceErrorLogsArgs.builder()
.endTime("2022-01-01 14:00:00")
.fileType("csv")
.instanceId("cynosdbmysql-ins-afqx1hy0")
.keyWords("content")
.logLevels("note")
.orderBy("Timestamp")
.orderByType("ASC")
.startTime("2022-01-01 12:00:00")
.build());
}
}
resources:
exportInstanceErrorLogs:
type: tencentcloud:CynosdbExportInstanceErrorLogs
properties:
endTime: 2022-01-01 14:00:00
fileType: csv
instanceId: cynosdbmysql-ins-afqx1hy0
keyWords:
- content
logLevels:
- note
orderBy: Timestamp
orderByType: ASC
startTime: 2022-01-01 12:00:00
Create CynosdbExportInstanceErrorLogs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbExportInstanceErrorLogs(name: string, args: CynosdbExportInstanceErrorLogsArgs, opts?: CustomResourceOptions);
@overload
def CynosdbExportInstanceErrorLogs(resource_name: str,
args: CynosdbExportInstanceErrorLogsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbExportInstanceErrorLogs(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
cynosdb_export_instance_error_logs_id: Optional[str] = None,
end_time: Optional[str] = None,
file_type: Optional[str] = None,
key_words: Optional[Sequence[str]] = None,
log_levels: Optional[Sequence[str]] = None,
order_by: Optional[str] = None,
order_by_type: Optional[str] = None,
start_time: Optional[str] = None)
func NewCynosdbExportInstanceErrorLogs(ctx *Context, name string, args CynosdbExportInstanceErrorLogsArgs, opts ...ResourceOption) (*CynosdbExportInstanceErrorLogs, error)
public CynosdbExportInstanceErrorLogs(string name, CynosdbExportInstanceErrorLogsArgs args, CustomResourceOptions? opts = null)
public CynosdbExportInstanceErrorLogs(String name, CynosdbExportInstanceErrorLogsArgs args)
public CynosdbExportInstanceErrorLogs(String name, CynosdbExportInstanceErrorLogsArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbExportInstanceErrorLogs
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 CynosdbExportInstanceErrorLogsArgs
- 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 CynosdbExportInstanceErrorLogsArgs
- 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 CynosdbExportInstanceErrorLogsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbExportInstanceErrorLogsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbExportInstanceErrorLogsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbExportInstanceErrorLogs 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 CynosdbExportInstanceErrorLogs resource accepts the following input properties:
- Instance
Id string - Instance ID.
- Cynosdb
Export stringInstance Error Logs Id - ID of the resource.
- End
Time string - Latest log time.
- File
Type string - File type, optional values: csv, original.
- Key
Words List<string> - keyword.
- Log
Levels List<string> - Log level.
- Order
By string - Optional value Timestamp.
- Order
By stringType - ASC or DESC.
- Start
Time string - Log earliest time.
- Instance
Id string - Instance ID.
- Cynosdb
Export stringInstance Error Logs Id - ID of the resource.
- End
Time string - Latest log time.
- File
Type string - File type, optional values: csv, original.
- Key
Words []string - keyword.
- Log
Levels []string - Log level.
- Order
By string - Optional value Timestamp.
- Order
By stringType - ASC or DESC.
- Start
Time string - Log earliest time.
- instance
Id String - Instance ID.
- cynosdb
Export StringInstance Error Logs Id - ID of the resource.
- end
Time String - Latest log time.
- file
Type String - File type, optional values: csv, original.
- key
Words List<String> - keyword.
- log
Levels List<String> - Log level.
- order
By String - Optional value Timestamp.
- order
By StringType - ASC or DESC.
- start
Time String - Log earliest time.
- instance
Id string - Instance ID.
- cynosdb
Export stringInstance Error Logs Id - ID of the resource.
- end
Time string - Latest log time.
- file
Type string - File type, optional values: csv, original.
- key
Words string[] - keyword.
- log
Levels string[] - Log level.
- order
By string - Optional value Timestamp.
- order
By stringType - ASC or DESC.
- start
Time string - Log earliest time.
- instance_
id str - Instance ID.
- cynosdb_
export_ strinstance_ error_ logs_ id - ID of the resource.
- end_
time str - Latest log time.
- file_
type str - File type, optional values: csv, original.
- key_
words Sequence[str] - keyword.
- log_
levels Sequence[str] - Log level.
- order_
by str - Optional value Timestamp.
- order_
by_ strtype - ASC or DESC.
- start_
time str - Log earliest time.
- instance
Id String - Instance ID.
- cynosdb
Export StringInstance Error Logs Id - ID of the resource.
- end
Time String - Latest log time.
- file
Type String - File type, optional values: csv, original.
- key
Words List<String> - keyword.
- log
Levels List<String> - Log level.
- order
By String - Optional value Timestamp.
- order
By StringType - ASC or DESC.
- start
Time String - Log earliest time.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbExportInstanceErrorLogs resource produces the following output properties:
- Error
Log List<CynosdbItem Exports Export Instance Error Logs Error Log Item Export> - List of instances in the read-write instance group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Error
Log []CynosdbItem Exports Export Instance Error Logs Error Log Item Export - List of instances in the read-write instance group.
- Id string
- The provider-assigned unique ID for this managed resource.
- error
Log List<CynosdbItem Exports Export Instance Error Logs Error Log Item Export> - List of instances in the read-write instance group.
- id String
- The provider-assigned unique ID for this managed resource.
- error
Log CynosdbItem Exports Export Instance Error Logs Error Log Item Export[] - List of instances in the read-write instance group.
- id string
- The provider-assigned unique ID for this managed resource.
- error_
log_ Sequence[Cynosdbitem_ exports Export Instance Error Logs Error Log Item Export] - List of instances in the read-write instance group.
- id str
- The provider-assigned unique ID for this managed resource.
- error
Log List<Property Map>Item Exports - List of instances in the read-write instance group.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CynosdbExportInstanceErrorLogs Resource
Get an existing CynosdbExportInstanceErrorLogs 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?: CynosdbExportInstanceErrorLogsState, opts?: CustomResourceOptions): CynosdbExportInstanceErrorLogs
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cynosdb_export_instance_error_logs_id: Optional[str] = None,
end_time: Optional[str] = None,
error_log_item_exports: Optional[Sequence[CynosdbExportInstanceErrorLogsErrorLogItemExportArgs]] = None,
file_type: Optional[str] = None,
instance_id: Optional[str] = None,
key_words: Optional[Sequence[str]] = None,
log_levels: Optional[Sequence[str]] = None,
order_by: Optional[str] = None,
order_by_type: Optional[str] = None,
start_time: Optional[str] = None) -> CynosdbExportInstanceErrorLogs
func GetCynosdbExportInstanceErrorLogs(ctx *Context, name string, id IDInput, state *CynosdbExportInstanceErrorLogsState, opts ...ResourceOption) (*CynosdbExportInstanceErrorLogs, error)
public static CynosdbExportInstanceErrorLogs Get(string name, Input<string> id, CynosdbExportInstanceErrorLogsState? state, CustomResourceOptions? opts = null)
public static CynosdbExportInstanceErrorLogs get(String name, Output<String> id, CynosdbExportInstanceErrorLogsState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CynosdbExportInstanceErrorLogs 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 Error Logs Id - ID of the resource.
- End
Time string - Latest log time.
- Error
Log List<CynosdbItem Exports Export Instance Error Logs Error Log Item Export> - List of instances in the read-write instance group.
- File
Type string - File type, optional values: csv, original.
- Instance
Id string - Instance ID.
- Key
Words List<string> - keyword.
- Log
Levels List<string> - Log level.
- Order
By string - Optional value Timestamp.
- Order
By stringType - ASC or DESC.
- Start
Time string - Log earliest time.
- Cynosdb
Export stringInstance Error Logs Id - ID of the resource.
- End
Time string - Latest log time.
- Error
Log []CynosdbItem Exports Export Instance Error Logs Error Log Item Export Args - List of instances in the read-write instance group.
- File
Type string - File type, optional values: csv, original.
- Instance
Id string - Instance ID.
- Key
Words []string - keyword.
- Log
Levels []string - Log level.
- Order
By string - Optional value Timestamp.
- Order
By stringType - ASC or DESC.
- Start
Time string - Log earliest time.
- cynosdb
Export StringInstance Error Logs Id - ID of the resource.
- end
Time String - Latest log time.
- error
Log List<CynosdbItem Exports Export Instance Error Logs Error Log Item Export> - List of instances in the read-write instance group.
- file
Type String - File type, optional values: csv, original.
- instance
Id String - Instance ID.
- key
Words List<String> - keyword.
- log
Levels List<String> - Log level.
- order
By String - Optional value Timestamp.
- order
By StringType - ASC or DESC.
- start
Time String - Log earliest time.
- cynosdb
Export stringInstance Error Logs Id - ID of the resource.
- end
Time string - Latest log time.
- error
Log CynosdbItem Exports Export Instance Error Logs Error Log Item Export[] - List of instances in the read-write instance group.
- file
Type string - File type, optional values: csv, original.
- instance
Id string - Instance ID.
- key
Words string[] - keyword.
- log
Levels string[] - Log level.
- order
By string - Optional value Timestamp.
- order
By stringType - ASC or DESC.
- start
Time string - Log earliest time.
- cynosdb_
export_ strinstance_ error_ logs_ id - ID of the resource.
- end_
time str - Latest log time.
- error_
log_ Sequence[Cynosdbitem_ exports Export Instance Error Logs Error Log Item Export Args] - List of instances in the read-write instance group.
- file_
type str - File type, optional values: csv, original.
- instance_
id str - Instance ID.
- key_
words Sequence[str] - keyword.
- log_
levels Sequence[str] - Log level.
- order_
by str - Optional value Timestamp.
- order_
by_ strtype - ASC or DESC.
- start_
time str - Log earliest time.
- cynosdb
Export StringInstance Error Logs Id - ID of the resource.
- end
Time String - Latest log time.
- error
Log List<Property Map>Item Exports - List of instances in the read-write instance group.
- file
Type String - File type, optional values: csv, original.
- instance
Id String - Instance ID.
- key
Words List<String> - keyword.
- log
Levels List<String> - Log level.
- order
By String - Optional value Timestamp.
- order
By StringType - ASC or DESC.
- start
Time String - Log earliest time.
Supporting Types
CynosdbExportInstanceErrorLogsErrorLogItemExport, CynosdbExportInstanceErrorLogsErrorLogItemExportArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.