Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.22.0 published on Monday, Jun 27, 2022 by Pulumi

DataLimit

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 in v1.159.0+.

Create a DataLimit Resource

new DataLimit(name: string, args: DataLimitArgs, opts?: CustomResourceOptions);
@overload
def DataLimit(resource_name: 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)
@overload
def DataLimit(resource_name: str,
              args: DataLimitArgs,
              opts: Optional[ResourceOptions] = 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.

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.

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

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 an 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>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.