1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. sddp
  5. DataLimit
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.sddp.DataLimit

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Data Security Center Data Limit resource.

    For information about Data Security Center Data Limit and how to use it, see What is Data Limit.

    NOTE: Available since v1.159.0.

    Create DataLimit Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DataLimit(name: string, args: DataLimitArgs, opts?: CustomResourceOptions);
    @overload
    def DataLimit(resource_name: str,
                  args: DataLimitArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataLimit(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  resource_type: Optional[str] = None,
                  audit_status: Optional[int] = None,
                  engine_type: Optional[str] = None,
                  lang: Optional[str] = None,
                  log_store_day: Optional[int] = None,
                  parent_id: Optional[str] = None,
                  password: Optional[str] = None,
                  port: Optional[int] = None,
                  service_region_id: Optional[str] = None,
                  user_name: Optional[str] = None)
    func NewDataLimit(ctx *Context, name string, args DataLimitArgs, opts ...ResourceOption) (*DataLimit, error)
    public DataLimit(string name, DataLimitArgs args, CustomResourceOptions? opts = null)
    public DataLimit(String name, DataLimitArgs args)
    public DataLimit(String name, DataLimitArgs args, CustomResourceOptions options)
    
    type: alicloud:sddp:DataLimit
    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 DataLimitArgs
    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 DataLimitArgs
    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 DataLimitArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataLimitArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataLimitArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dataLimitResource = new AliCloud.Sddp.DataLimit("dataLimitResource", new()
    {
        ResourceType = "string",
        AuditStatus = 0,
        EngineType = "string",
        Lang = "string",
        LogStoreDay = 0,
        ParentId = "string",
        Password = "string",
        Port = 0,
        ServiceRegionId = "string",
        UserName = "string",
    });
    
    example, err := sddp.NewDataLimit(ctx, "dataLimitResource", &sddp.DataLimitArgs{
    	ResourceType:    pulumi.String("string"),
    	AuditStatus:     pulumi.Int(0),
    	EngineType:      pulumi.String("string"),
    	Lang:            pulumi.String("string"),
    	LogStoreDay:     pulumi.Int(0),
    	ParentId:        pulumi.String("string"),
    	Password:        pulumi.String("string"),
    	Port:            pulumi.Int(0),
    	ServiceRegionId: pulumi.String("string"),
    	UserName:        pulumi.String("string"),
    })
    
    var dataLimitResource = new DataLimit("dataLimitResource", DataLimitArgs.builder()
        .resourceType("string")
        .auditStatus(0)
        .engineType("string")
        .lang("string")
        .logStoreDay(0)
        .parentId("string")
        .password("string")
        .port(0)
        .serviceRegionId("string")
        .userName("string")
        .build());
    
    data_limit_resource = alicloud.sddp.DataLimit("dataLimitResource",
        resource_type="string",
        audit_status=0,
        engine_type="string",
        lang="string",
        log_store_day=0,
        parent_id="string",
        password="string",
        port=0,
        service_region_id="string",
        user_name="string")
    
    const dataLimitResource = new alicloud.sddp.DataLimit("dataLimitResource", {
        resourceType: "string",
        auditStatus: 0,
        engineType: "string",
        lang: "string",
        logStoreDay: 0,
        parentId: "string",
        password: "string",
        port: 0,
        serviceRegionId: "string",
        userName: "string",
    });
    
    type: alicloud:sddp:DataLimit
    properties:
        auditStatus: 0
        engineType: string
        lang: string
        logStoreDay: 0
        parentId: string
        password: string
        port: 0
        resourceType: string
        serviceRegionId: string
        userName: string
    

    DataLimit 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 DataLimit resource accepts the following input properties:

    ResourceType string
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    AuditStatus int
    Whether to enable the log auditing feature. Valid values: 0, 1.
    EngineType string
    The type of the database. Valid values: MySQL, SQLServer.
    Lang string
    The lang.
    LogStoreDay int
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    ParentId string
    The ID of the data asset.
    Password string
    The password that is used to connect to the database.
    Port int
    The port that is used to connect to the database.
    ServiceRegionId string
    The region ID of the data asset.
    UserName string
    The name of the service to which the data asset belongs.
    ResourceType string
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    AuditStatus int
    Whether to enable the log auditing feature. Valid values: 0, 1.
    EngineType string
    The type of the database. Valid values: MySQL, SQLServer.
    Lang string
    The lang.
    LogStoreDay int
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    ParentId string
    The ID of the data asset.
    Password string
    The password that is used to connect to the database.
    Port int
    The port that is used to connect to the database.
    ServiceRegionId string
    The region ID of the data asset.
    UserName string
    The name of the service to which the data asset belongs.
    resourceType String
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    auditStatus Integer
    Whether to enable the log auditing feature. Valid values: 0, 1.
    engineType String
    The type of the database. Valid values: MySQL, SQLServer.
    lang String
    The lang.
    logStoreDay Integer
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    parentId String
    The ID of the data asset.
    password String
    The password that is used to connect to the database.
    port Integer
    The port that is used to connect to the database.
    serviceRegionId String
    The region ID of the data asset.
    userName String
    The name of the service to which the data asset belongs.
    resourceType string
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    auditStatus number
    Whether to enable the log auditing feature. Valid values: 0, 1.
    engineType string
    The type of the database. Valid values: MySQL, SQLServer.
    lang string
    The lang.
    logStoreDay number
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    parentId string
    The ID of the data asset.
    password string
    The password that is used to connect to the database.
    port number
    The port that is used to connect to the database.
    serviceRegionId string
    The region ID of the data asset.
    userName string
    The name of the service to which the data asset belongs.
    resource_type str
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    audit_status int
    Whether to enable the log auditing feature. Valid values: 0, 1.
    engine_type str
    The type of the database. Valid values: MySQL, SQLServer.
    lang str
    The lang.
    log_store_day int
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    parent_id str
    The ID of the data asset.
    password str
    The password that is used to connect to the database.
    port int
    The port that is used to connect to the database.
    service_region_id str
    The region ID of the data asset.
    user_name str
    The name of the service to which the data asset belongs.
    resourceType String
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    auditStatus Number
    Whether to enable the log auditing feature. Valid values: 0, 1.
    engineType String
    The type of the database. Valid values: MySQL, SQLServer.
    lang String
    The lang.
    logStoreDay Number
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    parentId String
    The ID of the data asset.
    password String
    The password that is used to connect to the database.
    port Number
    The port that is used to connect to the database.
    serviceRegionId String
    The region ID of the data asset.
    userName String
    The name of the service to which the data asset belongs.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DataLimit 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 DataLimit Resource

    Get an existing DataLimit 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?: DataLimitState, opts?: CustomResourceOptions): DataLimit
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            audit_status: Optional[int] = None,
            engine_type: Optional[str] = None,
            lang: Optional[str] = None,
            log_store_day: Optional[int] = None,
            parent_id: Optional[str] = None,
            password: Optional[str] = None,
            port: Optional[int] = None,
            resource_type: Optional[str] = None,
            service_region_id: Optional[str] = None,
            user_name: Optional[str] = None) -> DataLimit
    func GetDataLimit(ctx *Context, name string, id IDInput, state *DataLimitState, opts ...ResourceOption) (*DataLimit, error)
    public static DataLimit Get(string name, Input<string> id, DataLimitState? state, CustomResourceOptions? opts = null)
    public static DataLimit get(String name, Output<String> id, DataLimitState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AuditStatus int
    Whether to enable the log auditing feature. Valid values: 0, 1.
    EngineType string
    The type of the database. Valid values: MySQL, SQLServer.
    Lang string
    The lang.
    LogStoreDay int
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    ParentId string
    The ID of the data asset.
    Password string
    The password that is used to connect to the database.
    Port int
    The port that is used to connect to the database.
    ResourceType string
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    ServiceRegionId string
    The region ID of the data asset.
    UserName string
    The name of the service to which the data asset belongs.
    AuditStatus int
    Whether to enable the log auditing feature. Valid values: 0, 1.
    EngineType string
    The type of the database. Valid values: MySQL, SQLServer.
    Lang string
    The lang.
    LogStoreDay int
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    ParentId string
    The ID of the data asset.
    Password string
    The password that is used to connect to the database.
    Port int
    The port that is used to connect to the database.
    ResourceType string
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    ServiceRegionId string
    The region ID of the data asset.
    UserName string
    The name of the service to which the data asset belongs.
    auditStatus Integer
    Whether to enable the log auditing feature. Valid values: 0, 1.
    engineType String
    The type of the database. Valid values: MySQL, SQLServer.
    lang String
    The lang.
    logStoreDay Integer
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    parentId String
    The ID of the data asset.
    password String
    The password that is used to connect to the database.
    port Integer
    The port that is used to connect to the database.
    resourceType String
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    serviceRegionId String
    The region ID of the data asset.
    userName String
    The name of the service to which the data asset belongs.
    auditStatus number
    Whether to enable the log auditing feature. Valid values: 0, 1.
    engineType string
    The type of the database. Valid values: MySQL, SQLServer.
    lang string
    The lang.
    logStoreDay number
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    parentId string
    The ID of the data asset.
    password string
    The password that is used to connect to the database.
    port number
    The port that is used to connect to the database.
    resourceType string
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    serviceRegionId string
    The region ID of the data asset.
    userName string
    The name of the service to which the data asset belongs.
    audit_status int
    Whether to enable the log auditing feature. Valid values: 0, 1.
    engine_type str
    The type of the database. Valid values: MySQL, SQLServer.
    lang str
    The lang.
    log_store_day int
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    parent_id str
    The ID of the data asset.
    password str
    The password that is used to connect to the database.
    port int
    The port that is used to connect to the database.
    resource_type str
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    service_region_id str
    The region ID of the data asset.
    user_name str
    The name of the service to which the data asset belongs.
    auditStatus Number
    Whether to enable the log auditing feature. Valid values: 0, 1.
    engineType String
    The type of the database. Valid values: MySQL, SQLServer.
    lang String
    The lang.
    logStoreDay Number
    The retention period of raw logs after you enable the log auditing feature. Unit: day. Valid values: 180, 30, 365, 90. NOTE: Thelog_store_day is valid when the audit_status is 1.
    parentId String
    The ID of the data asset.
    password String
    The password that is used to connect to the database.
    port Number
    The port that is used to connect to the database.
    resourceType String
    The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
    serviceRegionId String
    The region ID of the data asset.
    userName String
    The name of the service to which the data asset belongs.

    Import

    Data Security Center Data Limit can be imported using the id, e.g.

    $ pulumi import alicloud:sddp/dataLimit:DataLimit example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi