tencentcloud.DbbrainSecurityAuditLogExportTask
Explore with Pulumi AI
Provides a resource to create a dbbrain security_audit_log_export_task
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const task = new tencentcloud.DbbrainSecurityAuditLogExportTask("task", {
dangerLevels: [
0,
1,
2,
],
endTime: "2020-12-28 01:00:00",
product: "mysql",
secAuditGroupId: "sec_audit_group_id",
startTime: "2020-12-28 00:00:00",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
task = tencentcloud.DbbrainSecurityAuditLogExportTask("task",
danger_levels=[
0,
1,
2,
],
end_time="2020-12-28 01:00:00",
product="mysql",
sec_audit_group_id="sec_audit_group_id",
start_time="2020-12-28 00: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.NewDbbrainSecurityAuditLogExportTask(ctx, "task", &tencentcloud.DbbrainSecurityAuditLogExportTaskArgs{
DangerLevels: pulumi.Float64Array{
pulumi.Float64(0),
pulumi.Float64(1),
pulumi.Float64(2),
},
EndTime: pulumi.String("2020-12-28 01:00:00"),
Product: pulumi.String("mysql"),
SecAuditGroupId: pulumi.String("sec_audit_group_id"),
StartTime: pulumi.String("2020-12-28 00: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 task = new Tencentcloud.DbbrainSecurityAuditLogExportTask("task", new()
{
DangerLevels = new[]
{
0,
1,
2,
},
EndTime = "2020-12-28 01:00:00",
Product = "mysql",
SecAuditGroupId = "sec_audit_group_id",
StartTime = "2020-12-28 00:00:00",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DbbrainSecurityAuditLogExportTask;
import com.pulumi.tencentcloud.DbbrainSecurityAuditLogExportTaskArgs;
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 task = new DbbrainSecurityAuditLogExportTask("task", DbbrainSecurityAuditLogExportTaskArgs.builder()
.dangerLevels(
0,
1,
2)
.endTime("2020-12-28 01:00:00")
.product("mysql")
.secAuditGroupId("sec_audit_group_id")
.startTime("2020-12-28 00:00:00")
.build());
}
}
resources:
task:
type: tencentcloud:DbbrainSecurityAuditLogExportTask
properties:
dangerLevels:
- 0
- 1
- 2
endTime: 2020-12-28 01:00:00
product: mysql
secAuditGroupId: sec_audit_group_id
startTime: 2020-12-28 00:00:00
Create DbbrainSecurityAuditLogExportTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbbrainSecurityAuditLogExportTask(name: string, args: DbbrainSecurityAuditLogExportTaskArgs, opts?: CustomResourceOptions);
@overload
def DbbrainSecurityAuditLogExportTask(resource_name: str,
args: DbbrainSecurityAuditLogExportTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbbrainSecurityAuditLogExportTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_time: Optional[str] = None,
product: Optional[str] = None,
sec_audit_group_id: Optional[str] = None,
start_time: Optional[str] = None,
danger_levels: Optional[Sequence[float]] = None,
dbbrain_security_audit_log_export_task_id: Optional[str] = None)
func NewDbbrainSecurityAuditLogExportTask(ctx *Context, name string, args DbbrainSecurityAuditLogExportTaskArgs, opts ...ResourceOption) (*DbbrainSecurityAuditLogExportTask, error)
public DbbrainSecurityAuditLogExportTask(string name, DbbrainSecurityAuditLogExportTaskArgs args, CustomResourceOptions? opts = null)
public DbbrainSecurityAuditLogExportTask(String name, DbbrainSecurityAuditLogExportTaskArgs args)
public DbbrainSecurityAuditLogExportTask(String name, DbbrainSecurityAuditLogExportTaskArgs args, CustomResourceOptions options)
type: tencentcloud:DbbrainSecurityAuditLogExportTask
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 DbbrainSecurityAuditLogExportTaskArgs
- 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 DbbrainSecurityAuditLogExportTaskArgs
- 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 DbbrainSecurityAuditLogExportTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbbrainSecurityAuditLogExportTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbbrainSecurityAuditLogExportTaskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DbbrainSecurityAuditLogExportTask 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 DbbrainSecurityAuditLogExportTask resource accepts the following input properties:
- End
Time string - end time.
- Product string
- product, optional value is mysql.
- Sec
Audit stringGroup Id - security audit group id.
- Start
Time string - start time.
- Danger
Levels List<double> - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- Dbbrain
Security stringAudit Log Export Task Id - ID of the resource.
- End
Time string - end time.
- Product string
- product, optional value is mysql.
- Sec
Audit stringGroup Id - security audit group id.
- Start
Time string - start time.
- Danger
Levels []float64 - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- Dbbrain
Security stringAudit Log Export Task Id - ID of the resource.
- end
Time String - end time.
- product String
- product, optional value is mysql.
- sec
Audit StringGroup Id - security audit group id.
- start
Time String - start time.
- danger
Levels List<Double> - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- dbbrain
Security StringAudit Log Export Task Id - ID of the resource.
- end
Time string - end time.
- product string
- product, optional value is mysql.
- sec
Audit stringGroup Id - security audit group id.
- start
Time string - start time.
- danger
Levels number[] - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- dbbrain
Security stringAudit Log Export Task Id - ID of the resource.
- end_
time str - end time.
- product str
- product, optional value is mysql.
- sec_
audit_ strgroup_ id - security audit group id.
- start_
time str - start time.
- danger_
levels Sequence[float] - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- dbbrain_
security_ straudit_ log_ export_ task_ id - ID of the resource.
- end
Time String - end time.
- product String
- product, optional value is mysql.
- sec
Audit StringGroup Id - security audit group id.
- start
Time String - start time.
- danger
Levels List<Number> - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- dbbrain
Security StringAudit Log Export Task Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbbrainSecurityAuditLogExportTask resource produces the following output properties:
- Async
Request doubleId - request of async id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Async
Request float64Id - request of async id.
- Id string
- The provider-assigned unique ID for this managed resource.
- async
Request DoubleId - request of async id.
- id String
- The provider-assigned unique ID for this managed resource.
- async
Request numberId - request of async id.
- id string
- The provider-assigned unique ID for this managed resource.
- async_
request_ floatid - request of async id.
- id str
- The provider-assigned unique ID for this managed resource.
- async
Request NumberId - request of async id.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DbbrainSecurityAuditLogExportTask Resource
Get an existing DbbrainSecurityAuditLogExportTask 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?: DbbrainSecurityAuditLogExportTaskState, opts?: CustomResourceOptions): DbbrainSecurityAuditLogExportTask
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
async_request_id: Optional[float] = None,
danger_levels: Optional[Sequence[float]] = None,
dbbrain_security_audit_log_export_task_id: Optional[str] = None,
end_time: Optional[str] = None,
product: Optional[str] = None,
sec_audit_group_id: Optional[str] = None,
start_time: Optional[str] = None) -> DbbrainSecurityAuditLogExportTask
func GetDbbrainSecurityAuditLogExportTask(ctx *Context, name string, id IDInput, state *DbbrainSecurityAuditLogExportTaskState, opts ...ResourceOption) (*DbbrainSecurityAuditLogExportTask, error)
public static DbbrainSecurityAuditLogExportTask Get(string name, Input<string> id, DbbrainSecurityAuditLogExportTaskState? state, CustomResourceOptions? opts = null)
public static DbbrainSecurityAuditLogExportTask get(String name, Output<String> id, DbbrainSecurityAuditLogExportTaskState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DbbrainSecurityAuditLogExportTask 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.
- Async
Request doubleId - request of async id.
- Danger
Levels List<double> - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- Dbbrain
Security stringAudit Log Export Task Id - ID of the resource.
- End
Time string - end time.
- Product string
- product, optional value is mysql.
- Sec
Audit stringGroup Id - security audit group id.
- Start
Time string - start time.
- Async
Request float64Id - request of async id.
- Danger
Levels []float64 - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- Dbbrain
Security stringAudit Log Export Task Id - ID of the resource.
- End
Time string - end time.
- Product string
- product, optional value is mysql.
- Sec
Audit stringGroup Id - security audit group id.
- Start
Time string - start time.
- async
Request DoubleId - request of async id.
- danger
Levels List<Double> - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- dbbrain
Security StringAudit Log Export Task Id - ID of the resource.
- end
Time String - end time.
- product String
- product, optional value is mysql.
- sec
Audit StringGroup Id - security audit group id.
- start
Time String - start time.
- async
Request numberId - request of async id.
- danger
Levels number[] - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- dbbrain
Security stringAudit Log Export Task Id - ID of the resource.
- end
Time string - end time.
- product string
- product, optional value is mysql.
- sec
Audit stringGroup Id - security audit group id.
- start
Time string - start time.
- async_
request_ floatid - request of async id.
- danger_
levels Sequence[float] - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- dbbrain_
security_ straudit_ log_ export_ task_ id - ID of the resource.
- end_
time str - end time.
- product str
- product, optional value is mysql.
- sec_
audit_ strgroup_ id - security audit group id.
- start_
time str - start time.
- async
Request NumberId - request of async id.
- danger
Levels List<Number> - List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
- dbbrain
Security StringAudit Log Export Task Id - ID of the resource.
- end
Time String - end time.
- product String
- product, optional value is mysql.
- sec
Audit StringGroup Id - security audit group id.
- start
Time String - start time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.