tencentcloud.DbbrainTdsqlAuditLog
Explore with Pulumi AI
Provides a resource to create a dbbrain tdsql_audit_log
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const myLog = new tencentcloud.DbbrainTdsqlAuditLog("myLog", {
endTime: "%s",
filter: {
hosts: [
"%%",
"127.0.0.1",
],
users: [
"tf_test",
"mysql",
],
},
instanceId: "%s",
nodeRequestType: "dcdb",
product: "dcdb",
startTime: "%s",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
my_log = tencentcloud.DbbrainTdsqlAuditLog("myLog",
end_time="%s",
filter={
"hosts": [
"%%",
"127.0.0.1",
],
"users": [
"tf_test",
"mysql",
],
},
instance_id="%s",
node_request_type="dcdb",
product="dcdb",
start_time="%s")
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.NewDbbrainTdsqlAuditLog(ctx, "myLog", &tencentcloud.DbbrainTdsqlAuditLogArgs{
EndTime: pulumi.String("%s"),
Filter: &tencentcloud.DbbrainTdsqlAuditLogFilterArgs{
Hosts: pulumi.StringArray{
pulumi.String("%%"),
pulumi.String("127.0.0.1"),
},
Users: pulumi.StringArray{
pulumi.String("tf_test"),
pulumi.String("mysql"),
},
},
InstanceId: pulumi.String("%s"),
NodeRequestType: pulumi.String("dcdb"),
Product: pulumi.String("dcdb"),
StartTime: pulumi.String("%s"),
})
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 myLog = new Tencentcloud.DbbrainTdsqlAuditLog("myLog", new()
{
EndTime = "%s",
Filter = new Tencentcloud.Inputs.DbbrainTdsqlAuditLogFilterArgs
{
Hosts = new[]
{
"%%",
"127.0.0.1",
},
Users = new[]
{
"tf_test",
"mysql",
},
},
InstanceId = "%s",
NodeRequestType = "dcdb",
Product = "dcdb",
StartTime = "%s",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DbbrainTdsqlAuditLog;
import com.pulumi.tencentcloud.DbbrainTdsqlAuditLogArgs;
import com.pulumi.tencentcloud.inputs.DbbrainTdsqlAuditLogFilterArgs;
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 myLog = new DbbrainTdsqlAuditLog("myLog", DbbrainTdsqlAuditLogArgs.builder()
.endTime("%s")
.filter(DbbrainTdsqlAuditLogFilterArgs.builder()
.hosts(
"%%",
"127.0.0.1")
.users(
"tf_test",
"mysql")
.build())
.instanceId("%s")
.nodeRequestType("dcdb")
.product("dcdb")
.startTime("%s")
.build());
}
}
resources:
myLog:
type: tencentcloud:DbbrainTdsqlAuditLog
properties:
endTime: '%s'
filter:
hosts:
- '%%'
- 127.0.0.1
users:
- tf_test
- mysql
instanceId: '%s'
nodeRequestType: dcdb
product: dcdb
startTime: '%s'
Create DbbrainTdsqlAuditLog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbbrainTdsqlAuditLog(name: string, args: DbbrainTdsqlAuditLogArgs, opts?: CustomResourceOptions);
@overload
def DbbrainTdsqlAuditLog(resource_name: str,
args: DbbrainTdsqlAuditLogArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbbrainTdsqlAuditLog(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_time: Optional[str] = None,
instance_id: Optional[str] = None,
node_request_type: Optional[str] = None,
product: Optional[str] = None,
start_time: Optional[str] = None,
dbbrain_tdsql_audit_log_id: Optional[str] = None,
filter: Optional[DbbrainTdsqlAuditLogFilterArgs] = None)
func NewDbbrainTdsqlAuditLog(ctx *Context, name string, args DbbrainTdsqlAuditLogArgs, opts ...ResourceOption) (*DbbrainTdsqlAuditLog, error)
public DbbrainTdsqlAuditLog(string name, DbbrainTdsqlAuditLogArgs args, CustomResourceOptions? opts = null)
public DbbrainTdsqlAuditLog(String name, DbbrainTdsqlAuditLogArgs args)
public DbbrainTdsqlAuditLog(String name, DbbrainTdsqlAuditLogArgs args, CustomResourceOptions options)
type: tencentcloud:DbbrainTdsqlAuditLog
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 DbbrainTdsqlAuditLogArgs
- 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 DbbrainTdsqlAuditLogArgs
- 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 DbbrainTdsqlAuditLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbbrainTdsqlAuditLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbbrainTdsqlAuditLogArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DbbrainTdsqlAuditLog 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 DbbrainTdsqlAuditLog resource accepts the following input properties:
- End
Time string - Deadline time, such as
2019-09-11 10:13:14
. - Instance
Id string - Instance ID.
- Node
Request stringType - Consistent with Product. For example: dcdb, mariadb.
- Product string
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- Start
Time string - Start time, such as
2019-09-10 12:13:14
. - Dbbrain
Tdsql stringAudit Log Id - ID of the resource.
- Filter
Dbbrain
Tdsql Audit Log Filter - Filter conditions. Logs can be filtered according to the filter conditions set.
- End
Time string - Deadline time, such as
2019-09-11 10:13:14
. - Instance
Id string - Instance ID.
- Node
Request stringType - Consistent with Product. For example: dcdb, mariadb.
- Product string
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- Start
Time string - Start time, such as
2019-09-10 12:13:14
. - Dbbrain
Tdsql stringAudit Log Id - ID of the resource.
- Filter
Dbbrain
Tdsql Audit Log Filter Args - Filter conditions. Logs can be filtered according to the filter conditions set.
- end
Time String - Deadline time, such as
2019-09-11 10:13:14
. - instance
Id String - Instance ID.
- node
Request StringType - Consistent with Product. For example: dcdb, mariadb.
- product String
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- start
Time String - Start time, such as
2019-09-10 12:13:14
. - dbbrain
Tdsql StringAudit Log Id - ID of the resource.
- filter
Dbbrain
Tdsql Audit Log Filter - Filter conditions. Logs can be filtered according to the filter conditions set.
- end
Time string - Deadline time, such as
2019-09-11 10:13:14
. - instance
Id string - Instance ID.
- node
Request stringType - Consistent with Product. For example: dcdb, mariadb.
- product string
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- start
Time string - Start time, such as
2019-09-10 12:13:14
. - dbbrain
Tdsql stringAudit Log Id - ID of the resource.
- filter
Dbbrain
Tdsql Audit Log Filter - Filter conditions. Logs can be filtered according to the filter conditions set.
- end_
time str - Deadline time, such as
2019-09-11 10:13:14
. - instance_
id str - Instance ID.
- node_
request_ strtype - Consistent with Product. For example: dcdb, mariadb.
- product str
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- start_
time str - Start time, such as
2019-09-10 12:13:14
. - dbbrain_
tdsql_ straudit_ log_ id - ID of the resource.
- filter
Dbbrain
Tdsql Audit Log Filter Args - Filter conditions. Logs can be filtered according to the filter conditions set.
- end
Time String - Deadline time, such as
2019-09-11 10:13:14
. - instance
Id String - Instance ID.
- node
Request StringType - Consistent with Product. For example: dcdb, mariadb.
- product String
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- start
Time String - Start time, such as
2019-09-10 12:13:14
. - dbbrain
Tdsql StringAudit Log Id - ID of the resource.
- filter Property Map
- Filter conditions. Logs can be filtered according to the filter conditions set.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbbrainTdsqlAuditLog 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 DbbrainTdsqlAuditLog Resource
Get an existing DbbrainTdsqlAuditLog 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?: DbbrainTdsqlAuditLogState, opts?: CustomResourceOptions): DbbrainTdsqlAuditLog
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dbbrain_tdsql_audit_log_id: Optional[str] = None,
end_time: Optional[str] = None,
filter: Optional[DbbrainTdsqlAuditLogFilterArgs] = None,
instance_id: Optional[str] = None,
node_request_type: Optional[str] = None,
product: Optional[str] = None,
start_time: Optional[str] = None) -> DbbrainTdsqlAuditLog
func GetDbbrainTdsqlAuditLog(ctx *Context, name string, id IDInput, state *DbbrainTdsqlAuditLogState, opts ...ResourceOption) (*DbbrainTdsqlAuditLog, error)
public static DbbrainTdsqlAuditLog Get(string name, Input<string> id, DbbrainTdsqlAuditLogState? state, CustomResourceOptions? opts = null)
public static DbbrainTdsqlAuditLog get(String name, Output<String> id, DbbrainTdsqlAuditLogState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DbbrainTdsqlAuditLog 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.
- Dbbrain
Tdsql stringAudit Log Id - ID of the resource.
- End
Time string - Deadline time, such as
2019-09-11 10:13:14
. - Filter
Dbbrain
Tdsql Audit Log Filter - Filter conditions. Logs can be filtered according to the filter conditions set.
- Instance
Id string - Instance ID.
- Node
Request stringType - Consistent with Product. For example: dcdb, mariadb.
- Product string
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- Start
Time string - Start time, such as
2019-09-10 12:13:14
.
- Dbbrain
Tdsql stringAudit Log Id - ID of the resource.
- End
Time string - Deadline time, such as
2019-09-11 10:13:14
. - Filter
Dbbrain
Tdsql Audit Log Filter Args - Filter conditions. Logs can be filtered according to the filter conditions set.
- Instance
Id string - Instance ID.
- Node
Request stringType - Consistent with Product. For example: dcdb, mariadb.
- Product string
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- Start
Time string - Start time, such as
2019-09-10 12:13:14
.
- dbbrain
Tdsql StringAudit Log Id - ID of the resource.
- end
Time String - Deadline time, such as
2019-09-11 10:13:14
. - filter
Dbbrain
Tdsql Audit Log Filter - Filter conditions. Logs can be filtered according to the filter conditions set.
- instance
Id String - Instance ID.
- node
Request StringType - Consistent with Product. For example: dcdb, mariadb.
- product String
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- start
Time String - Start time, such as
2019-09-10 12:13:14
.
- dbbrain
Tdsql stringAudit Log Id - ID of the resource.
- end
Time string - Deadline time, such as
2019-09-11 10:13:14
. - filter
Dbbrain
Tdsql Audit Log Filter - Filter conditions. Logs can be filtered according to the filter conditions set.
- instance
Id string - Instance ID.
- node
Request stringType - Consistent with Product. For example: dcdb, mariadb.
- product string
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- start
Time string - Start time, such as
2019-09-10 12:13:14
.
- dbbrain_
tdsql_ straudit_ log_ id - ID of the resource.
- end_
time str - Deadline time, such as
2019-09-11 10:13:14
. - filter
Dbbrain
Tdsql Audit Log Filter Args - Filter conditions. Logs can be filtered according to the filter conditions set.
- instance_
id str - Instance ID.
- node_
request_ strtype - Consistent with Product. For example: dcdb, mariadb.
- product str
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- start_
time str - Start time, such as
2019-09-10 12:13:14
.
- dbbrain
Tdsql StringAudit Log Id - ID of the resource.
- end
Time String - Deadline time, such as
2019-09-11 10:13:14
. - filter Property Map
- Filter conditions. Logs can be filtered according to the filter conditions set.
- instance
Id String - Instance ID.
- node
Request StringType - Consistent with Product. For example: dcdb, mariadb.
- product String
- Service product type, supported values include: dcdb - cloud database Tdsql, mariadb - cloud database MariaDB for MariaDB..
- start
Time String - Start time, such as
2019-09-10 12:13:14
.
Supporting Types
DbbrainTdsqlAuditLogFilter, DbbrainTdsqlAuditLogFilterArgs
- Affect
Rows double - Number of affected rows. Indicates filtering audit logs whose affected rows are greater than this value.
- Db
Names List<string> - Database name.
- Exec
Time double - Execution time. The unit is: us. It means to filter the audit logs whose execution time is greater than this value.
- Hosts List<string>
- Client Address.
- Sent
Rows double - Return the number of rows. It means to filter the audit log with the number of returned rows greater than this value.
- Users List<string>
- Username.
- Affect
Rows float64 - Number of affected rows. Indicates filtering audit logs whose affected rows are greater than this value.
- Db
Names []string - Database name.
- Exec
Time float64 - Execution time. The unit is: us. It means to filter the audit logs whose execution time is greater than this value.
- Hosts []string
- Client Address.
- Sent
Rows float64 - Return the number of rows. It means to filter the audit log with the number of returned rows greater than this value.
- Users []string
- Username.
- affect
Rows Double - Number of affected rows. Indicates filtering audit logs whose affected rows are greater than this value.
- db
Names List<String> - Database name.
- exec
Time Double - Execution time. The unit is: us. It means to filter the audit logs whose execution time is greater than this value.
- hosts List<String>
- Client Address.
- sent
Rows Double - Return the number of rows. It means to filter the audit log with the number of returned rows greater than this value.
- users List<String>
- Username.
- affect
Rows number - Number of affected rows. Indicates filtering audit logs whose affected rows are greater than this value.
- db
Names string[] - Database name.
- exec
Time number - Execution time. The unit is: us. It means to filter the audit logs whose execution time is greater than this value.
- hosts string[]
- Client Address.
- sent
Rows number - Return the number of rows. It means to filter the audit log with the number of returned rows greater than this value.
- users string[]
- Username.
- affect_
rows float - Number of affected rows. Indicates filtering audit logs whose affected rows are greater than this value.
- db_
names Sequence[str] - Database name.
- exec_
time float - Execution time. The unit is: us. It means to filter the audit logs whose execution time is greater than this value.
- hosts Sequence[str]
- Client Address.
- sent_
rows float - Return the number of rows. It means to filter the audit log with the number of returned rows greater than this value.
- users Sequence[str]
- Username.
- affect
Rows Number - Number of affected rows. Indicates filtering audit logs whose affected rows are greater than this value.
- db
Names List<String> - Database name.
- exec
Time Number - Execution time. The unit is: us. It means to filter the audit logs whose execution time is greater than this value.
- hosts List<String>
- Client Address.
- sent
Rows Number - Return the number of rows. It means to filter the audit log with the number of returned rows greater than this value.
- users List<String>
- Username.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.