alicloud_maxcompute_projects
更新时间:
This data source provides Max Compute Project available to the user.What is Project
-> NOTE: Available since v1.196.0.
Example Usage
variable "name" {
default = "tf_example_acc"
}
resource "alicloud_maxcompute_project" "default" {
default_quota = "默认后付费Quota"
project_name = var.name
comment = var.name
product_type = "PayAsYouGo"
}
data "alicloud_maxcompute_projects" "default" {
name_regex = alicloud_maxcompute_project.default.project_name
}
output "alicloud_maxcompute_project_example_id" {
value = data.alicloud_maxcompute_projects.default.projects.0.project_name
}
Argument Reference
The following arguments are supported:
ids
- (Optional, ForceNew, Computed) A list of Project IDs.name_regex
- (Optional, ForceNew) A regex string to filter results by Group Metric Rule name.output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids
- A list of Project IDs.names
- A list of name of Projects.projects
- A list of Project Entries. Each element contains the following attributes:cost_storage
- View the current storage size of the Project. The storage size is the same as the measurement size, that is, the compressed logical storage size collected by the Project.comment
- Project description information. The length is 1 to 256 English or Chinese characters. The default value is blank.create_time
- Represents the creation time of the projectdefault_quota
- Used to implement computing resource allocation.If the calculation Quota is not specified, the default Quota resource will be consumed by jobs initiated by the project. For more information about computing resource usage, see Computing Resource Usage.ip_white_list
- IP whitelistip_list
- Set the IP address whitelist in the classic network. Only devices in the whitelist are allowed to access the project.-> NOTE: If you only configure a classic network IP address whitelist, access to the classic network is restricted and all access to the VPC is prohibited.vpc_ip_list
- Set the IP address whitelist in the VPC network to allow only devices in the whitelist to access the project space.-> NOTE: If you only configure a VPC network IP address whitelist, access to the VPC network is restricted and access to the classic network is prohibited.
owner
- Project ownerproject_name
- The name begins with a letter, containing letters, digits, and underscores (_). It can be 3 to 28 characters in length and is globally unique.properties
- Project base attributesallow_full_scan
- Whether to allow full table scan. Default: false.enable_decimal2
- Whether to turn on Decimal2.0.encryption
- Storage encryption. For details, see Storage Encryption-> NOTE ::To enable storage encryption, you need to modify the parameters of the basic attributes of the MaxCompute project. This operation permission is authenticated by RAM, and you need to have the Super_Administrator role permission of the corresponding project.To configure the permissions and IP whitelist parameters of the MaxCompute project, you must have the management permissions (Admin) of the corresponding project, including Super_Administrator, Admin, or custom management permissions. For more information, see the project management permissions list.You can turn on storage encryption only for projects that have not turned on storage encryption. For projects that have turned on storage encryption, you cannot turn off storage encryption or change the encryption algorithm.algorithm
- The encryption algorithm supported by the key, including AES256, AESCTR, and RC4.enable
- Only enable function is supported. Value: (true).key
- The encryption algorithm Key, the Key type used by the project, including the Default Key (MaxCompute Default Key) and the self-contained Key (BYOK). The MaxCompute Default Key is the Default Key created inside MaxCompute.
retention_days
- Set the number of days to retain backup data. During this time, you can restore the current version to any backup version. The value range of days is [0,30], and the default value is 1. 0 means backup is turned off.The effective policy after adjusting the backup cycle is:Extend the backup cycle: The new backup cycle takes effect on the same day.Shorten the backup cycle: The system will automatically delete backup data that has exceeded the retention cycle.sql_metering_max
- Set the maximum threshold of single SQL consumption, that is, set the ODPS. SQL. metering.value.max attribute. For details, see Consumption Monitoring Alarm.Unit: scan volume (GB)* complexity.table_lifecycle
- Set whether the lifecycle of the table in the project needs to be configured, that is, set the ODPS. table.lifecycle property,.type
- Optional: When creating a table, the Lifecycle clause is optional. If the Lifecycle of the table is not set, the table is permanently valid.mandatory: the Lifecycle clause is required. You must set the Lifecycle of the table.inherit: If you do not set the lifecycle of the table when creating a table, the lifecycle of the table is the value of ODPS. table.lifecycle.value, and the ODPS. table.lifecycle.value attribute sets the lifecycle of the table.value
- The value of the life cycle, in days. The value range is 1~37231, and the default value is 37231.
timezone
- Project time zone, example value: Asia/Shanghai.type_system
- Data type version. Value:(1/2/hive)1: The original MaxCompute type system.2: New type system introduced by MaxCompute 2.0.hive: the type system of the Hive compatibility mode introduced by MaxCompute 2.0.
security_properties
- Security-related attributesenable_download_privilege
- Set whether to enable the Download permission control function, that is, set the ODPS. security.enabledownloadprivilege property.label_security
- Set whether to use the Label permission control function, that is, set the LabelSecurity attribute, which is not used by default.object_creator_has_access_permission
- Sets whether to allow the creator of the object to have access to the object, I .e. sets the attribute. The default is the allowed state.object_creator_has_grant_permission
- The ObjectCreatorHasGrantPermission attribute is set to allow the object creator to have the authorization permission on the object. The default is the allowed state.project_protection
- Project protection.exception_policy
- Set Exceptions or Trusted Items.protected
- Whether enabled, value:(true/false).
using_acl
- Set whether to use the ACL permission control function, that is, set the CheckPermissionUsingACL attribute, which is in use by default.using_policy
- Set whether to use the Policy permission control function (https://www.alibabacloud.com/help/en/maxcompute/user-guide/policy-based-access-control-1), that is, set the CheckPermissionUsingACL attribute, which is in use by default.
status
- The project status. Default value: AVAILABLE. Value: (AVAILABLE/READONLY/FROZEN/DELETING)type
- Project type
文档内容是否对您有帮助?