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
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:
- Resource
Type string 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 string The type of the database. Valid values:
MySQL
,SQLServer
.- Lang string
The lang.
- Log
Store intDay 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 theaudit_status
is1
.- Parent
Id 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.
- Service
Region stringId The region ID of the data asset.
- User
Name string The name of the service to which the data asset belongs.
- Resource
Type string 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 string The type of the database. Valid values:
MySQL
,SQLServer
.- Lang string
The lang.
- Log
Store intDay 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 theaudit_status
is1
.- Parent
Id 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.
- Service
Region stringId The region ID of the data asset.
- User
Name string The name of the service to which the data asset belongs.
- resource
Type String The type of the service to which the data asset belongs. Valid values:
MaxCompute
,OSS
,RDS
.- audit
Status Integer Whether to enable the log auditing feature. Valid values:
0
,1
.- engine
Type String The type of the database. Valid values:
MySQL
,SQLServer
.- lang String
The lang.
- log
Store IntegerDay 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 theaudit_status
is1
.- parent
Id 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.
- service
Region StringId The region ID of the data asset.
- user
Name String The name of the service to which the data asset belongs.
- resource
Type string The type of the service to which the data asset belongs. Valid values:
MaxCompute
,OSS
,RDS
.- audit
Status number Whether to enable the log auditing feature. Valid values:
0
,1
.- engine
Type string The type of the database. Valid values:
MySQL
,SQLServer
.- lang string
The lang.
- log
Store numberDay 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 theaudit_status
is1
.- parent
Id 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.
- service
Region stringId The region ID of the data asset.
- user
Name 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_ intday 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 theaudit_status
is1
.- 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_ strid The region ID of the data asset.
- user_
name str The name of the service to which the data asset belongs.
- resource
Type String The type of the service to which the data asset belongs. Valid values:
MaxCompute
,OSS
,RDS
.- audit
Status Number Whether to enable the log auditing feature. Valid values:
0
,1
.- engine
Type String The type of the database. Valid values:
MySQL
,SQLServer
.- lang String
The lang.
- log
Store NumberDay 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 theaudit_status
is1
.- parent
Id 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.
- service
Region StringId The region ID of the data asset.
- user
Name 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.
- Audit
Status int Whether to enable the log auditing feature. Valid values:
0
,1
.- Engine
Type string The type of the database. Valid values:
MySQL
,SQLServer
.- Lang string
The lang.
- Log
Store intDay 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 theaudit_status
is1
.- Parent
Id 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.
- Resource
Type string The type of the service to which the data asset belongs. Valid values:
MaxCompute
,OSS
,RDS
.- Service
Region stringId The region ID of the data asset.
- User
Name 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 string The type of the database. Valid values:
MySQL
,SQLServer
.- Lang string
The lang.
- Log
Store intDay 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 theaudit_status
is1
.- Parent
Id 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.
- Resource
Type string The type of the service to which the data asset belongs. Valid values:
MaxCompute
,OSS
,RDS
.- Service
Region stringId The region ID of the data asset.
- User
Name string The name of the service to which the data asset belongs.
- audit
Status Integer Whether to enable the log auditing feature. Valid values:
0
,1
.- engine
Type String The type of the database. Valid values:
MySQL
,SQLServer
.- lang String
The lang.
- log
Store IntegerDay 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 theaudit_status
is1
.- parent
Id 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.
- resource
Type String The type of the service to which the data asset belongs. Valid values:
MaxCompute
,OSS
,RDS
.- service
Region StringId The region ID of the data asset.
- user
Name String The name of the service to which the data asset belongs.
- audit
Status number Whether to enable the log auditing feature. Valid values:
0
,1
.- engine
Type string The type of the database. Valid values:
MySQL
,SQLServer
.- lang string
The lang.
- log
Store numberDay 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 theaudit_status
is1
.- parent
Id 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.
- resource
Type string The type of the service to which the data asset belongs. Valid values:
MaxCompute
,OSS
,RDS
.- service
Region stringId The region ID of the data asset.
- user
Name 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_ intday 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 theaudit_status
is1
.- 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_ strid The region ID of the data asset.
- user_
name str The name of the service to which the data asset belongs.
- audit
Status Number Whether to enable the log auditing feature. Valid values:
0
,1
.- engine
Type String The type of the database. Valid values:
MySQL
,SQLServer
.- lang String
The lang.
- log
Store NumberDay 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 theaudit_status
is1
.- parent
Id 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.
- resource
Type String The type of the service to which the data asset belongs. Valid values:
MaxCompute
,OSS
,RDS
.- service
Region StringId The region ID of the data asset.
- user
Name 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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.