1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DbbrainSecurityAuditLogExportTask
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.DbbrainSecurityAuditLogExportTask

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    EndTime string
    end time.
    Product string
    product, optional value is mysql.
    SecAuditGroupId string
    security audit group id.
    StartTime string
    start time.
    DangerLevels List<double>
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    DbbrainSecurityAuditLogExportTaskId string
    ID of the resource.
    EndTime string
    end time.
    Product string
    product, optional value is mysql.
    SecAuditGroupId string
    security audit group id.
    StartTime string
    start time.
    DangerLevels []float64
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    DbbrainSecurityAuditLogExportTaskId string
    ID of the resource.
    endTime String
    end time.
    product String
    product, optional value is mysql.
    secAuditGroupId String
    security audit group id.
    startTime String
    start time.
    dangerLevels List<Double>
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    dbbrainSecurityAuditLogExportTaskId String
    ID of the resource.
    endTime string
    end time.
    product string
    product, optional value is mysql.
    secAuditGroupId string
    security audit group id.
    startTime string
    start time.
    dangerLevels number[]
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    dbbrainSecurityAuditLogExportTaskId string
    ID of the resource.
    end_time str
    end time.
    product str
    product, optional value is mysql.
    sec_audit_group_id str
    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_audit_log_export_task_id str
    ID of the resource.
    endTime String
    end time.
    product String
    product, optional value is mysql.
    secAuditGroupId String
    security audit group id.
    startTime String
    start time.
    dangerLevels List<Number>
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    dbbrainSecurityAuditLogExportTaskId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DbbrainSecurityAuditLogExportTask resource produces the following output properties:

    AsyncRequestId double
    request of async id.
    Id string
    The provider-assigned unique ID for this managed resource.
    AsyncRequestId float64
    request of async id.
    Id string
    The provider-assigned unique ID for this managed resource.
    asyncRequestId Double
    request of async id.
    id String
    The provider-assigned unique ID for this managed resource.
    asyncRequestId number
    request of async id.
    id string
    The provider-assigned unique ID for this managed resource.
    async_request_id float
    request of async id.
    id str
    The provider-assigned unique ID for this managed resource.
    asyncRequestId Number
    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.
    The following state arguments are supported:
    AsyncRequestId double
    request of async id.
    DangerLevels List<double>
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    DbbrainSecurityAuditLogExportTaskId string
    ID of the resource.
    EndTime string
    end time.
    Product string
    product, optional value is mysql.
    SecAuditGroupId string
    security audit group id.
    StartTime string
    start time.
    AsyncRequestId float64
    request of async id.
    DangerLevels []float64
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    DbbrainSecurityAuditLogExportTaskId string
    ID of the resource.
    EndTime string
    end time.
    Product string
    product, optional value is mysql.
    SecAuditGroupId string
    security audit group id.
    StartTime string
    start time.
    asyncRequestId Double
    request of async id.
    dangerLevels List<Double>
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    dbbrainSecurityAuditLogExportTaskId String
    ID of the resource.
    endTime String
    end time.
    product String
    product, optional value is mysql.
    secAuditGroupId String
    security audit group id.
    startTime String
    start time.
    asyncRequestId number
    request of async id.
    dangerLevels number[]
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    dbbrainSecurityAuditLogExportTaskId string
    ID of the resource.
    endTime string
    end time.
    product string
    product, optional value is mysql.
    secAuditGroupId string
    security audit group id.
    startTime string
    start time.
    async_request_id float
    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_audit_log_export_task_id str
    ID of the resource.
    end_time str
    end time.
    product str
    product, optional value is mysql.
    sec_audit_group_id str
    security audit group id.
    start_time str
    start time.
    asyncRequestId Number
    request of async id.
    dangerLevels List<Number>
    List of log risk levels, supported values include: 0 no risk; 1 low risk; 2 medium risk; 3 high risk.
    dbbrainSecurityAuditLogExportTaskId String
    ID of the resource.
    endTime String
    end time.
    product String
    product, optional value is mysql.
    secAuditGroupId String
    security audit group id.
    startTime String
    start time.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack