1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. sddp
  5. DataLimit
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.sddp.DataLimit

Explore with Pulumi AI

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 This property is required. string
The unique name of the resource.
args This property is required. DataLimitArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. DataLimitArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DataLimitArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
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
Copy

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
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
The type of the database. Valid values: MySQL, SQLServer.
Lang string
The lang.
LogStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The ID of the data asset.
Password Changes to this property will trigger replacement. string
The password that is used to connect to the database.
Port Changes to this property will trigger replacement. int
The port that is used to connect to the database.
ServiceRegionId Changes to this property will trigger replacement. string
The region ID of the data asset.
UserName Changes to this property will trigger replacement. string
The name of the service to which the data asset belongs.
ResourceType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
The type of the database. Valid values: MySQL, SQLServer.
Lang string
The lang.
LogStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The ID of the data asset.
Password Changes to this property will trigger replacement. string
The password that is used to connect to the database.
Port Changes to this property will trigger replacement. int
The port that is used to connect to the database.
ServiceRegionId Changes to this property will trigger replacement. string
The region ID of the data asset.
UserName Changes to this property will trigger replacement. string
The name of the service to which the data asset belongs.
resourceType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. String
The type of the database. Valid values: MySQL, SQLServer.
lang String
The lang.
logStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The ID of the data asset.
password Changes to this property will trigger replacement. String
The password that is used to connect to the database.
port Changes to this property will trigger replacement. Integer
The port that is used to connect to the database.
serviceRegionId Changes to this property will trigger replacement. String
The region ID of the data asset.
userName Changes to this property will trigger replacement. String
The name of the service to which the data asset belongs.
resourceType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. string
The type of the database. Valid values: MySQL, SQLServer.
lang string
The lang.
logStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The ID of the data asset.
password Changes to this property will trigger replacement. string
The password that is used to connect to the database.
port Changes to this property will trigger replacement. number
The port that is used to connect to the database.
serviceRegionId Changes to this property will trigger replacement. string
The region ID of the data asset.
userName Changes to this property will trigger replacement. string
The name of the service to which the data asset belongs.
resource_type
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. str
The type of the database. Valid values: MySQL, SQLServer.
lang str
The lang.
log_store_day Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The ID of the data asset.
password Changes to this property will trigger replacement. str
The password that is used to connect to the database.
port Changes to this property will trigger replacement. int
The port that is used to connect to the database.
service_region_id Changes to this property will trigger replacement. str
The region ID of the data asset.
user_name Changes to this property will trigger replacement. str
The name of the service to which the data asset belongs.
resourceType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. String
The type of the database. Valid values: MySQL, SQLServer.
lang String
The lang.
logStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The ID of the data asset.
password Changes to this property will trigger replacement. String
The password that is used to connect to the database.
port Changes to this property will trigger replacement. Number
The port that is used to connect to the database.
serviceRegionId Changes to this property will trigger replacement. String
The region ID of the data asset.
userName Changes to this property will trigger replacement. 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)
resources:  _:    type: alicloud:sddp:DataLimit    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The type of the database. Valid values: MySQL, SQLServer.
Lang string
The lang.
LogStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The ID of the data asset.
Password Changes to this property will trigger replacement. string
The password that is used to connect to the database.
Port Changes to this property will trigger replacement. int
The port that is used to connect to the database.
ResourceType Changes to this property will trigger replacement. string
The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
ServiceRegionId Changes to this property will trigger replacement. string
The region ID of the data asset.
UserName Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of the database. Valid values: MySQL, SQLServer.
Lang string
The lang.
LogStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The ID of the data asset.
Password Changes to this property will trigger replacement. string
The password that is used to connect to the database.
Port Changes to this property will trigger replacement. int
The port that is used to connect to the database.
ResourceType Changes to this property will trigger replacement. string
The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
ServiceRegionId Changes to this property will trigger replacement. string
The region ID of the data asset.
UserName Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The type of the database. Valid values: MySQL, SQLServer.
lang String
The lang.
logStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The ID of the data asset.
password Changes to this property will trigger replacement. String
The password that is used to connect to the database.
port Changes to this property will trigger replacement. Integer
The port that is used to connect to the database.
resourceType Changes to this property will trigger replacement. String
The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
serviceRegionId Changes to this property will trigger replacement. String
The region ID of the data asset.
userName Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The type of the database. Valid values: MySQL, SQLServer.
lang string
The lang.
logStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The ID of the data asset.
password Changes to this property will trigger replacement. string
The password that is used to connect to the database.
port Changes to this property will trigger replacement. number
The port that is used to connect to the database.
resourceType Changes to this property will trigger replacement. string
The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
serviceRegionId Changes to this property will trigger replacement. string
The region ID of the data asset.
userName Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The type of the database. Valid values: MySQL, SQLServer.
lang str
The lang.
log_store_day Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The ID of the data asset.
password Changes to this property will trigger replacement. str
The password that is used to connect to the database.
port Changes to this property will trigger replacement. int
The port that is used to connect to the database.
resource_type Changes to this property will trigger replacement. str
The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
service_region_id Changes to this property will trigger replacement. str
The region ID of the data asset.
user_name Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The type of the database. Valid values: MySQL, SQLServer.
lang String
The lang.
logStoreDay Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The ID of the data asset.
password Changes to this property will trigger replacement. String
The password that is used to connect to the database.
port Changes to this property will trigger replacement. Number
The port that is used to connect to the database.
resourceType Changes to this property will trigger replacement. String
The type of the service to which the data asset belongs. Valid values: MaxCompute, OSS, RDS.
serviceRegionId Changes to this property will trigger replacement. String
The region ID of the data asset.
userName Changes to this property will trigger replacement. 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>
Copy

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.