tencentcloud.CynosdbAuditLogFile
Explore with Pulumi AI
Provides a resource to create a cynosdb audit_log_file
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const auditLogFile = new tencentcloud.CynosdbAuditLogFile("auditLogFile", {
endTime: "2022-08-12 10:29:20",
instanceId: "cynosdbmysql-ins-afqx1hy0",
startTime: "2022-07-12 10:29:20",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
audit_log_file = tencentcloud.CynosdbAuditLogFile("auditLogFile",
end_time="2022-08-12 10:29:20",
instance_id="cynosdbmysql-ins-afqx1hy0",
start_time="2022-07-12 10:29:20")
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.NewCynosdbAuditLogFile(ctx, "auditLogFile", &tencentcloud.CynosdbAuditLogFileArgs{
EndTime: pulumi.String("2022-08-12 10:29:20"),
InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
StartTime: pulumi.String("2022-07-12 10:29:20"),
})
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 auditLogFile = new Tencentcloud.CynosdbAuditLogFile("auditLogFile", new()
{
EndTime = "2022-08-12 10:29:20",
InstanceId = "cynosdbmysql-ins-afqx1hy0",
StartTime = "2022-07-12 10:29:20",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbAuditLogFile;
import com.pulumi.tencentcloud.CynosdbAuditLogFileArgs;
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 auditLogFile = new CynosdbAuditLogFile("auditLogFile", CynosdbAuditLogFileArgs.builder()
.endTime("2022-08-12 10:29:20")
.instanceId("cynosdbmysql-ins-afqx1hy0")
.startTime("2022-07-12 10:29:20")
.build());
}
}
resources:
auditLogFile:
type: tencentcloud:CynosdbAuditLogFile
properties:
endTime: 2022-08-12 10:29:20
instanceId: cynosdbmysql-ins-afqx1hy0
startTime: 2022-07-12 10:29:20
Create CynosdbAuditLogFile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbAuditLogFile(name: string, args: CynosdbAuditLogFileArgs, opts?: CustomResourceOptions);
@overload
def CynosdbAuditLogFile(resource_name: str,
args: CynosdbAuditLogFileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbAuditLogFile(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_time: Optional[str] = None,
instance_id: Optional[str] = None,
start_time: Optional[str] = None,
cynosdb_audit_log_file_id: Optional[str] = None,
filter: Optional[CynosdbAuditLogFileFilterArgs] = None,
order: Optional[str] = None,
order_by: Optional[str] = None)
func NewCynosdbAuditLogFile(ctx *Context, name string, args CynosdbAuditLogFileArgs, opts ...ResourceOption) (*CynosdbAuditLogFile, error)
public CynosdbAuditLogFile(string name, CynosdbAuditLogFileArgs args, CustomResourceOptions? opts = null)
public CynosdbAuditLogFile(String name, CynosdbAuditLogFileArgs args)
public CynosdbAuditLogFile(String name, CynosdbAuditLogFileArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbAuditLogFile
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 CynosdbAuditLogFileArgs
- 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 CynosdbAuditLogFileArgs
- 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 CynosdbAuditLogFileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbAuditLogFileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbAuditLogFileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbAuditLogFile 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 CynosdbAuditLogFile resource accepts the following input properties:
- End
Time string - End time.
- Instance
Id string - The ID of instance.
- Start
Time string - Start time.
- Cynosdb
Audit stringLog File Id - ID of the resource.
- Filter
Cynosdb
Audit Log File Filter - Filter condition. Logs can be filtered according to the filter conditions set.
- Order string
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - Order
By string - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time.
- End
Time string - End time.
- Instance
Id string - The ID of instance.
- Start
Time string - Start time.
- Cynosdb
Audit stringLog File Id - ID of the resource.
- Filter
Cynosdb
Audit Log File Filter Args - Filter condition. Logs can be filtered according to the filter conditions set.
- Order string
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - Order
By string - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time.
- end
Time String - End time.
- instance
Id String - The ID of instance.
- start
Time String - Start time.
- cynosdb
Audit StringLog File Id - ID of the resource.
- filter
Cynosdb
Audit Log File Filter - Filter condition. Logs can be filtered according to the filter conditions set.
- order String
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - order
By String - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time.
- end
Time string - End time.
- instance
Id string - The ID of instance.
- start
Time string - Start time.
- cynosdb
Audit stringLog File Id - ID of the resource.
- filter
Cynosdb
Audit Log File Filter - Filter condition. Logs can be filtered according to the filter conditions set.
- order string
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - order
By string - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time.
- end_
time str - End time.
- instance_
id str - The ID of instance.
- start_
time str - Start time.
- cynosdb_
audit_ strlog_ file_ id - ID of the resource.
- filter
Cynosdb
Audit Log File Filter Args - Filter condition. Logs can be filtered according to the filter conditions set.
- order str
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - order_
by str - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time.
- end
Time String - End time.
- instance
Id String - The ID of instance.
- start
Time String - Start time.
- cynosdb
Audit StringLog File Id - ID of the resource.
- filter Property Map
- Filter condition. Logs can be filtered according to the filter conditions set.
- order String
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - order
By String - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbAuditLogFile resource produces the following output properties:
- Create
Time string - Audit log file creation time. The format is 2019-03-20 17:09:13.
- Download
Url string - The download address of the audit logs.
- Err
Msg string - Error message.
- File
Name string - Audit log file name.
- File
Size double - File size, The unit is KB.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - Audit log file creation time. The format is 2019-03-20 17:09:13.
- Download
Url string - The download address of the audit logs.
- Err
Msg string - Error message.
- File
Name string - Audit log file name.
- File
Size float64 - File size, The unit is KB.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - Audit log file creation time. The format is 2019-03-20 17:09:13.
- download
Url String - The download address of the audit logs.
- err
Msg String - Error message.
- file
Name String - Audit log file name.
- file
Size Double - File size, The unit is KB.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - Audit log file creation time. The format is 2019-03-20 17:09:13.
- download
Url string - The download address of the audit logs.
- err
Msg string - Error message.
- file
Name string - Audit log file name.
- file
Size number - File size, The unit is KB.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - Audit log file creation time. The format is 2019-03-20 17:09:13.
- download_
url str - The download address of the audit logs.
- err_
msg str - Error message.
- file_
name str - Audit log file name.
- file_
size float - File size, The unit is KB.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - Audit log file creation time. The format is 2019-03-20 17:09:13.
- download
Url String - The download address of the audit logs.
- err
Msg String - Error message.
- file
Name String - Audit log file name.
- file
Size Number - File size, The unit is KB.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CynosdbAuditLogFile Resource
Get an existing CynosdbAuditLogFile 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?: CynosdbAuditLogFileState, opts?: CustomResourceOptions): CynosdbAuditLogFile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
cynosdb_audit_log_file_id: Optional[str] = None,
download_url: Optional[str] = None,
end_time: Optional[str] = None,
err_msg: Optional[str] = None,
file_name: Optional[str] = None,
file_size: Optional[float] = None,
filter: Optional[CynosdbAuditLogFileFilterArgs] = None,
instance_id: Optional[str] = None,
order: Optional[str] = None,
order_by: Optional[str] = None,
start_time: Optional[str] = None) -> CynosdbAuditLogFile
func GetCynosdbAuditLogFile(ctx *Context, name string, id IDInput, state *CynosdbAuditLogFileState, opts ...ResourceOption) (*CynosdbAuditLogFile, error)
public static CynosdbAuditLogFile Get(string name, Input<string> id, CynosdbAuditLogFileState? state, CustomResourceOptions? opts = null)
public static CynosdbAuditLogFile get(String name, Output<String> id, CynosdbAuditLogFileState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CynosdbAuditLogFile 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.
- Create
Time string - Audit log file creation time. The format is 2019-03-20 17:09:13.
- Cynosdb
Audit stringLog File Id - ID of the resource.
- Download
Url string - The download address of the audit logs.
- End
Time string - End time.
- Err
Msg string - Error message.
- File
Name string - Audit log file name.
- File
Size double - File size, The unit is KB.
- Filter
Cynosdb
Audit Log File Filter - Filter condition. Logs can be filtered according to the filter conditions set.
- Instance
Id string - The ID of instance.
- Order string
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - Order
By string - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time. - Start
Time string - Start time.
- Create
Time string - Audit log file creation time. The format is 2019-03-20 17:09:13.
- Cynosdb
Audit stringLog File Id - ID of the resource.
- Download
Url string - The download address of the audit logs.
- End
Time string - End time.
- Err
Msg string - Error message.
- File
Name string - Audit log file name.
- File
Size float64 - File size, The unit is KB.
- Filter
Cynosdb
Audit Log File Filter Args - Filter condition. Logs can be filtered according to the filter conditions set.
- Instance
Id string - The ID of instance.
- Order string
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - Order
By string - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time. - Start
Time string - Start time.
- create
Time String - Audit log file creation time. The format is 2019-03-20 17:09:13.
- cynosdb
Audit StringLog File Id - ID of the resource.
- download
Url String - The download address of the audit logs.
- end
Time String - End time.
- err
Msg String - Error message.
- file
Name String - Audit log file name.
- file
Size Double - File size, The unit is KB.
- filter
Cynosdb
Audit Log File Filter - Filter condition. Logs can be filtered according to the filter conditions set.
- instance
Id String - The ID of instance.
- order String
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - order
By String - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time. - start
Time String - Start time.
- create
Time string - Audit log file creation time. The format is 2019-03-20 17:09:13.
- cynosdb
Audit stringLog File Id - ID of the resource.
- download
Url string - The download address of the audit logs.
- end
Time string - End time.
- err
Msg string - Error message.
- file
Name string - Audit log file name.
- file
Size number - File size, The unit is KB.
- filter
Cynosdb
Audit Log File Filter - Filter condition. Logs can be filtered according to the filter conditions set.
- instance
Id string - The ID of instance.
- order string
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - order
By string - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time. - start
Time string - Start time.
- create_
time str - Audit log file creation time. The format is 2019-03-20 17:09:13.
- cynosdb_
audit_ strlog_ file_ id - ID of the resource.
- download_
url str - The download address of the audit logs.
- end_
time str - End time.
- err_
msg str - Error message.
- file_
name str - Audit log file name.
- file_
size float - File size, The unit is KB.
- filter
Cynosdb
Audit Log File Filter Args - Filter condition. Logs can be filtered according to the filter conditions set.
- instance_
id str - The ID of instance.
- order str
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - order_
by str - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time. - start_
time str - Start time.
- create
Time String - Audit log file creation time. The format is 2019-03-20 17:09:13.
- cynosdb
Audit StringLog File Id - ID of the resource.
- download
Url String - The download address of the audit logs.
- end
Time String - End time.
- err
Msg String - Error message.
- file
Name String - Audit log file name.
- file
Size Number - File size, The unit is KB.
- filter Property Map
- Filter condition. Logs can be filtered according to the filter conditions set.
- instance
Id String - The ID of instance.
- order String
- Sort by. Supported values are:
ASC
- ascending,DESC
- descending. - order
By String - Sort field. supported values are:
timestamp
- timestampaffectRows
- affected rowsexecTime
- execution time. - start
Time String - Start time.
Supporting Types
CynosdbAuditLogFileFilter, CynosdbAuditLogFileFilterArgs
- Affect
Rows double - Affects the number of rows. Indicates that the audit log whose number of affected rows is greater than this value is filtered.
- Db
Names List<string> - The name of database.
- Exec
Time double - Execution time. The unit is: ms. Indicates to filter audit logs whose execution time is greater than this value.
- Hosts List<string>
- Client host.
- Policy
Names List<string> - The name of audit policy.
- Sent
Rows double - Return the number of rows.
- Sql string
- SQL statement. Support fuzzy matching.
- Sql
Type string - SQL type. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- Sql
Types List<string> - SQL type. Supports simultaneous query of multiple types. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- Sqls List<string>
- SQL statement. Support passing multiple sql statements.
- Table
Names List<string> - The name of table.
- Thread
Ids List<string> - The ID of thread.
- Users List<string>
- User name.
- Affect
Rows float64 - Affects the number of rows. Indicates that the audit log whose number of affected rows is greater than this value is filtered.
- Db
Names []string - The name of database.
- Exec
Time float64 - Execution time. The unit is: ms. Indicates to filter audit logs whose execution time is greater than this value.
- Hosts []string
- Client host.
- Policy
Names []string - The name of audit policy.
- Sent
Rows float64 - Return the number of rows.
- Sql string
- SQL statement. Support fuzzy matching.
- Sql
Type string - SQL type. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- Sql
Types []string - SQL type. Supports simultaneous query of multiple types. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- Sqls []string
- SQL statement. Support passing multiple sql statements.
- Table
Names []string - The name of table.
- Thread
Ids []string - The ID of thread.
- Users []string
- User name.
- affect
Rows Double - Affects the number of rows. Indicates that the audit log whose number of affected rows is greater than this value is filtered.
- db
Names List<String> - The name of database.
- exec
Time Double - Execution time. The unit is: ms. Indicates to filter audit logs whose execution time is greater than this value.
- hosts List<String>
- Client host.
- policy
Names List<String> - The name of audit policy.
- sent
Rows Double - Return the number of rows.
- sql String
- SQL statement. Support fuzzy matching.
- sql
Type String - SQL type. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- sql
Types List<String> - SQL type. Supports simultaneous query of multiple types. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- sqls List<String>
- SQL statement. Support passing multiple sql statements.
- table
Names List<String> - The name of table.
- thread
Ids List<String> - The ID of thread.
- users List<String>
- User name.
- affect
Rows number - Affects the number of rows. Indicates that the audit log whose number of affected rows is greater than this value is filtered.
- db
Names string[] - The name of database.
- exec
Time number - Execution time. The unit is: ms. Indicates to filter audit logs whose execution time is greater than this value.
- hosts string[]
- Client host.
- policy
Names string[] - The name of audit policy.
- sent
Rows number - Return the number of rows.
- sql string
- SQL statement. Support fuzzy matching.
- sql
Type string - SQL type. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- sql
Types string[] - SQL type. Supports simultaneous query of multiple types. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- sqls string[]
- SQL statement. Support passing multiple sql statements.
- table
Names string[] - The name of table.
- thread
Ids string[] - The ID of thread.
- users string[]
- User name.
- affect_
rows float - Affects the number of rows. Indicates that the audit log whose number of affected rows is greater than this value is filtered.
- db_
names Sequence[str] - The name of database.
- exec_
time float - Execution time. The unit is: ms. Indicates to filter audit logs whose execution time is greater than this value.
- hosts Sequence[str]
- Client host.
- policy_
names Sequence[str] - The name of audit policy.
- sent_
rows float - Return the number of rows.
- sql str
- SQL statement. Support fuzzy matching.
- sql_
type str - SQL type. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- sql_
types Sequence[str] - SQL type. Supports simultaneous query of multiple types. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- sqls Sequence[str]
- SQL statement. Support passing multiple sql statements.
- table_
names Sequence[str] - The name of table.
- thread_
ids Sequence[str] - The ID of thread.
- users Sequence[str]
- User name.
- affect
Rows Number - Affects the number of rows. Indicates that the audit log whose number of affected rows is greater than this value is filtered.
- db
Names List<String> - The name of database.
- exec
Time Number - Execution time. The unit is: ms. Indicates to filter audit logs whose execution time is greater than this value.
- hosts List<String>
- Client host.
- policy
Names List<String> - The name of audit policy.
- sent
Rows Number - Return the number of rows.
- sql String
- SQL statement. Support fuzzy matching.
- sql
Type String - SQL type. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- sql
Types List<String> - SQL type. Supports simultaneous query of multiple types. currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE.
- sqls List<String>
- SQL statement. Support passing multiple sql statements.
- table
Names List<String> - The name of table.
- thread
Ids List<String> - The ID of thread.
- users List<String>
- User name.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.