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 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:
- 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>
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.