Alibaba Cloud v3.69.0 published on Monday, Dec 9, 2024 by Pulumi
alicloud.maxcompute.getProjects
Explore with Pulumi AI
This data source provides Max Compute Project available to the user.What is Project
NOTE: Available since v1.196.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example_acc";
const defaultProject = new alicloud.maxcompute.Project("default", {
defaultQuota: "默认后付费Quota",
projectName: name,
comment: name,
productType: "PayAsYouGo",
});
const default = alicloud.maxcompute.getProjectsOutput({
nameRegex: defaultProject.projectName,
});
export const alicloudMaxcomputeProjectExampleId = _default.apply(_default => _default.projects?.[0]?.projectName);
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example_acc"
default_project = alicloud.maxcompute.Project("default",
default_quota="默认后付费Quota",
project_name=name,
comment=name,
product_type="PayAsYouGo")
default = alicloud.maxcompute.get_projects_output(name_regex=default_project.project_name)
pulumi.export("alicloudMaxcomputeProjectExampleId", default.projects[0].project_name)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/maxcompute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf_example_acc";
if param := cfg.Get("name"); param != ""{
name = param
}
defaultProject, err := maxcompute.NewProject(ctx, "default", &maxcompute.ProjectArgs{
DefaultQuota: pulumi.String("默认后付费Quota"),
ProjectName: pulumi.String(name),
Comment: pulumi.String(name),
ProductType: pulumi.String("PayAsYouGo"),
})
if err != nil {
return err
}
_default := maxcompute.GetProjectsOutput(ctx, maxcompute.GetProjectsOutputArgs{
NameRegex: defaultProject.ProjectName,
}, nil);
ctx.Export("alicloudMaxcomputeProjectExampleId", _default.ApplyT(func(_default maxcompute.GetProjectsResult) (*string, error) {
return &default.Projects[0].ProjectName, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf_example_acc";
var defaultProject = new AliCloud.MaxCompute.Project("default", new()
{
DefaultQuota = "默认后付费Quota",
ProjectName = name,
Comment = name,
ProductType = "PayAsYouGo",
});
var @default = AliCloud.MaxCompute.GetProjects.Invoke(new()
{
NameRegex = defaultProject.ProjectName,
});
return new Dictionary<string, object?>
{
["alicloudMaxcomputeProjectExampleId"] = @default.Apply(@default => @default.Apply(getProjectsResult => getProjectsResult.Projects[0]?.ProjectName)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.maxcompute.Project;
import com.pulumi.alicloud.maxcompute.ProjectArgs;
import com.pulumi.alicloud.maxcompute.MaxcomputeFunctions;
import com.pulumi.alicloud.maxcompute.inputs.GetProjectsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example_acc");
var defaultProject = new Project("defaultProject", ProjectArgs.builder()
.defaultQuota("默认后付费Quota")
.projectName(name)
.comment(name)
.productType("PayAsYouGo")
.build());
final var default = MaxcomputeFunctions.getProjects(GetProjectsArgs.builder()
.nameRegex(defaultProject.projectName())
.build());
ctx.export("alicloudMaxcomputeProjectExampleId", default_.applyValue(default_ -> default_.projects()[0].projectName()));
}
}
configuration:
name:
type: string
default: tf_example_acc
resources:
defaultProject:
type: alicloud:maxcompute:Project
name: default
properties:
defaultQuota: 默认后付费Quota
projectName: ${name}
comment: ${name}
productType: PayAsYouGo
variables:
default:
fn::invoke:
Function: alicloud:maxcompute:getProjects
Arguments:
nameRegex: ${defaultProject.projectName}
outputs:
alicloudMaxcomputeProjectExampleId: ${default.projects[0].projectName}
Using getProjects
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProjects(args: GetProjectsArgs, opts?: InvokeOptions): Promise<GetProjectsResult>
function getProjectsOutput(args: GetProjectsOutputArgs, opts?: InvokeOptions): Output<GetProjectsResult>
def get_projects(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectsResult
def get_projects_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]
func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput
> Note: This function is named GetProjects
in the Go SDK.
public static class GetProjects
{
public static Task<GetProjectsResult> InvokeAsync(GetProjectsArgs args, InvokeOptions? opts = null)
public static Output<GetProjectsResult> Invoke(GetProjectsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:maxcompute/getProjects:getProjects
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Project IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Ids []string
- A list of Project IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- ids List<String>
- A list of Project IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- ids string[]
- A list of Project IDs.
- name
Regex string - A regex string to filter results by Group Metric Rule name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- ids Sequence[str]
- A list of Project IDs.
- name_
regex str - A regex string to filter results by Group Metric Rule name.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- ids List<String>
- A list of Project IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getProjects Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Project IDs.
- Names List<string>
- A list of name of Projects.
- Projects
List<Pulumi.
Ali Cloud. Max Compute. Outputs. Get Projects Project> - A list of Project Entries. Each element contains the following attributes:
- Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Project IDs.
- Names []string
- A list of name of Projects.
- Projects
[]Get
Projects Project - A list of Project Entries. Each element contains the following attributes:
- Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Project IDs.
- names List<String>
- A list of name of Projects.
- projects
List<Get
Projects Project> - A list of Project Entries. Each element contains the following attributes:
- name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Project IDs.
- names string[]
- A list of name of Projects.
- projects
Get
Projects Project[] - A list of Project Entries. Each element contains the following attributes:
- name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Project IDs.
- names Sequence[str]
- A list of name of Projects.
- projects
Sequence[Get
Projects Project] - A list of Project Entries. Each element contains the following attributes:
- name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Project IDs.
- names List<String>
- A list of name of Projects.
- projects List<Property Map>
- A list of Project Entries. Each element contains the following attributes:
- name
Regex String - output
File String
Supporting Types
GetProjectsProject
- Comment string
- Project description information. The length is 1 to 256 English or Chinese characters. The default value is blank.
- Cost
Storage string - 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.
- Create
Time string - Represents the creation time of the project
- Default
Quota string - 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 Pulumi.List Ali Cloud. Max Compute. Inputs. Get Projects Project Ip White List - IP whitelist
- Owner string
- Project owner
- Project
Name string - 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
Pulumi.
Ali Cloud. Max Compute. Inputs. Get Projects Project Properties - Project base attributes
- Security
Properties Pulumi.Ali Cloud. Max Compute. Inputs. Get Projects Project Security Properties - Security-related attributes
- Status string
- The project status. Default value: AVAILABLE. Value: (AVAILABLE/READONLY/FROZEN/DELETING)
- Type string
- Project type
- Comment string
- Project description information. The length is 1 to 256 English or Chinese characters. The default value is blank.
- Cost
Storage string - 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.
- Create
Time string - Represents the creation time of the project
- Default
Quota string - 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 GetList Projects Project Ip White List - IP whitelist
- Owner string
- Project owner
- Project
Name string - 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
Get
Projects Project Properties - Project base attributes
- Security
Properties GetProjects Project Security Properties - Security-related attributes
- Status string
- The project status. Default value: AVAILABLE. Value: (AVAILABLE/READONLY/FROZEN/DELETING)
- Type string
- Project type
- comment String
- Project description information. The length is 1 to 256 English or Chinese characters. The default value is blank.
- cost
Storage String - 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.
- create
Time String - Represents the creation time of the project
- default
Quota String - 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 GetList Projects Project Ip White List - IP whitelist
- owner String
- Project owner
- project
Name String - 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
Get
Projects Project Properties - Project base attributes
- security
Properties GetProjects Project Security Properties - Security-related attributes
- status String
- The project status. Default value: AVAILABLE. Value: (AVAILABLE/READONLY/FROZEN/DELETING)
- type String
- Project type
- comment string
- Project description information. The length is 1 to 256 English or Chinese characters. The default value is blank.
- cost
Storage string - 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.
- create
Time string - Represents the creation time of the project
- default
Quota string - 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 GetList Projects Project Ip White List - IP whitelist
- owner string
- Project owner
- project
Name string - 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
Get
Projects Project Properties - Project base attributes
- security
Properties GetProjects Project Security Properties - Security-related attributes
- status string
- The project status. Default value: AVAILABLE. Value: (AVAILABLE/READONLY/FROZEN/DELETING)
- type string
- Project type
- comment str
- Project description information. The length is 1 to 256 English or Chinese characters. The default value is blank.
- cost_
storage str - 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.
- create_
time str - Represents the creation time of the project
- default_
quota str - 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_ Getlist Projects Project Ip White List - IP whitelist
- owner str
- Project owner
- project_
name str - 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
Get
Projects Project Properties - Project base attributes
- security_
properties GetProjects Project Security Properties - Security-related attributes
- status str
- The project status. Default value: AVAILABLE. Value: (AVAILABLE/READONLY/FROZEN/DELETING)
- type str
- Project type
- comment String
- Project description information. The length is 1 to 256 English or Chinese characters. The default value is blank.
- cost
Storage String - 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.
- create
Time String - Represents the creation time of the project
- default
Quota String - 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 Property MapList - IP whitelist
- owner String
- Project owner
- project
Name String - 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 Property Map
- Project base attributes
- security
Properties Property Map - Security-related attributes
- status String
- The project status. Default value: AVAILABLE. Value: (AVAILABLE/READONLY/FROZEN/DELETING)
- type String
- Project type
GetProjectsProjectIpWhiteList
- Ip
List string - 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 stringList - 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.
- Ip
List string - 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 stringList - 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.
- ip
List String - 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 StringList - 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.
- ip
List string - 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 stringList - 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.
- ip_
list str - 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_ strlist - 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.
- ip
List String - 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 StringList - 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.
GetProjectsProjectProperties
- Allow
Full boolScan - Whether to allow full table scan. Default: false.
- Enable
Decimal2 bool - Whether to turn on Decimal2.0.
- Encryption
Pulumi.
Ali Cloud. Max Compute. Inputs. Get Projects Project Properties 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.
- Retention
Days int - 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 stringMax - 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 Pulumi.Ali Cloud. Max Compute. Inputs. Get Projects Project Properties Table Lifecycle - Set whether the lifecycle of the table in the project needs to be configured, that is, set the ODPS. table.lifecycle property,.
- Timezone string
- Project time zone, example value: Asia/Shanghai.
- Type
System string - 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.
- Allow
Full boolScan - Whether to allow full table scan. Default: false.
- Enable
Decimal2 bool - Whether to turn on Decimal2.0.
- Encryption
Get
Projects Project Properties 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.
- Retention
Days int - 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 stringMax - 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 GetProjects Project Properties Table Lifecycle - Set whether the lifecycle of the table in the project needs to be configured, that is, set the ODPS. table.lifecycle property,.
- Timezone string
- Project time zone, example value: Asia/Shanghai.
- Type
System string - 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.
- allow
Full BooleanScan - Whether to allow full table scan. Default: false.
- enable
Decimal2 Boolean - Whether to turn on Decimal2.0.
- encryption
Get
Projects Project Properties 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.
- retention
Days Integer - 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 StringMax - 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 GetProjects Project Properties Table Lifecycle - Set whether the lifecycle of the table in the project needs to be configured, that is, set the ODPS. table.lifecycle property,.
- timezone String
- Project time zone, example value: Asia/Shanghai.
- type
System String - 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.
- allow
Full booleanScan - Whether to allow full table scan. Default: false.
- enable
Decimal2 boolean - Whether to turn on Decimal2.0.
- encryption
Get
Projects Project Properties 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.
- retention
Days number - 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 stringMax - 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 GetProjects Project Properties Table Lifecycle - Set whether the lifecycle of the table in the project needs to be configured, that is, set the ODPS. table.lifecycle property,.
- timezone string
- Project time zone, example value: Asia/Shanghai.
- type
System string - 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.
- allow_
full_ boolscan - Whether to allow full table scan. Default: false.
- enable_
decimal2 bool - Whether to turn on Decimal2.0.
- encryption
Get
Projects Project Properties 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.
- retention_
days int - 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_ strmax - 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 GetProjects Project Properties Table Lifecycle - Set whether the lifecycle of the table in the project needs to be configured, that is, set the ODPS. table.lifecycle property,.
- timezone str
- Project time zone, example value: Asia/Shanghai.
- type_
system str - 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.
- allow
Full BooleanScan - Whether to allow full table scan. Default: false.
- enable
Decimal2 Boolean - Whether to turn on Decimal2.0.
- encryption Property Map
- 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.
- retention
Days Number - 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 StringMax - 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 Property Map - Set whether the lifecycle of the table in the project needs to be configured, that is, set the ODPS. table.lifecycle property,.
- timezone String
- Project time zone, example value: Asia/Shanghai.
- type
System String - 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.
GetProjectsProjectPropertiesEncryption
- Algorithm string
- The encryption algorithm supported by the key, including AES256, AESCTR, and RC4.
- Enable bool
- Only enable function is supported. Value: (true).
- Key string
- 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.
- Algorithm string
- The encryption algorithm supported by the key, including AES256, AESCTR, and RC4.
- Enable bool
- Only enable function is supported. Value: (true).
- Key string
- 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.
- algorithm String
- The encryption algorithm supported by the key, including AES256, AESCTR, and RC4.
- enable Boolean
- Only enable function is supported. Value: (true).
- key String
- 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.
- algorithm string
- The encryption algorithm supported by the key, including AES256, AESCTR, and RC4.
- enable boolean
- Only enable function is supported. Value: (true).
- key string
- 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.
- algorithm str
- The encryption algorithm supported by the key, including AES256, AESCTR, and RC4.
- enable bool
- Only enable function is supported. Value: (true).
- key str
- 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.
- algorithm String
- The encryption algorithm supported by the key, including AES256, AESCTR, and RC4.
- enable Boolean
- Only enable function is supported. Value: (true).
- key String
- 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.
GetProjectsProjectPropertiesTableLifecycle
GetProjectsProjectSecurityProperties
- Enable
Download boolPrivilege - Set whether to enable the Download permission control function, that is, set the ODPS. security.enabledownloadprivilege property.
- Label
Security bool - Set whether to use the Label permission control function, that is, set the LabelSecurity attribute, which is not used by default.
- Object
Creator boolHas 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 boolHas 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 Pulumi.Ali Cloud. Max Compute. Inputs. Get Projects Project Security Properties Project Protection - Project protection.
- Using
Acl bool - Set whether to use the ACL permission control function, that is, set the CheckPermissionUsingACL attribute, which is in use by default.
- Using
Policy bool - 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.
- Enable
Download boolPrivilege - Set whether to enable the Download permission control function, that is, set the ODPS. security.enabledownloadprivilege property.
- Label
Security bool - Set whether to use the Label permission control function, that is, set the LabelSecurity attribute, which is not used by default.
- Object
Creator boolHas 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 boolHas 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 GetProjects Project Security Properties Project Protection - Project protection.
- Using
Acl bool - Set whether to use the ACL permission control function, that is, set the CheckPermissionUsingACL attribute, which is in use by default.
- Using
Policy bool - 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.
- enable
Download BooleanPrivilege - Set whether to enable the Download permission control function, that is, set the ODPS. security.enabledownloadprivilege property.
- label
Security Boolean - Set whether to use the Label permission control function, that is, set the LabelSecurity attribute, which is not used by default.
- object
Creator BooleanHas 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 BooleanHas 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 GetProjects Project Security Properties Project Protection - Project protection.
- using
Acl Boolean - Set whether to use the ACL permission control function, that is, set the CheckPermissionUsingACL attribute, which is in use by default.
- using
Policy Boolean - 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.
- enable
Download booleanPrivilege - Set whether to enable the Download permission control function, that is, set the ODPS. security.enabledownloadprivilege property.
- label
Security boolean - Set whether to use the Label permission control function, that is, set the LabelSecurity attribute, which is not used by default.
- object
Creator booleanHas 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 booleanHas 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 GetProjects Project Security Properties Project Protection - Project protection.
- using
Acl boolean - Set whether to use the ACL permission control function, that is, set the CheckPermissionUsingACL attribute, which is in use by default.
- using
Policy boolean - 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.
- enable_
download_ boolprivilege - Set whether to enable the Download permission control function, that is, set the ODPS. security.enabledownloadprivilege property.
- label_
security bool - Set whether to use the Label permission control function, that is, set the LabelSecurity attribute, which is not used by default.
- object_
creator_ boolhas_ 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_ boolhas_ 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 GetProjects Project Security Properties Project Protection - Project protection.
- using_
acl bool - Set whether to use the ACL permission control function, that is, set the CheckPermissionUsingACL attribute, which is in use by default.
- using_
policy bool - 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.
- enable
Download BooleanPrivilege - Set whether to enable the Download permission control function, that is, set the ODPS. security.enabledownloadprivilege property.
- label
Security Boolean - Set whether to use the Label permission control function, that is, set the LabelSecurity attribute, which is not used by default.
- object
Creator BooleanHas 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 BooleanHas 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 Property Map - Project protection.
- using
Acl Boolean - Set whether to use the ACL permission control function, that is, set the CheckPermissionUsingACL attribute, which is in use by default.
- using
Policy Boolean - 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.
GetProjectsProjectSecurityPropertiesProjectProtection
- Exception
Policy string - Set Exceptions or Trusted Items.
- Protected bool
- Whether enabled, value:(true/false).
- Exception
Policy string - Set Exceptions or Trusted Items.
- Protected bool
- Whether enabled, value:(true/false).
- exception
Policy String - Set Exceptions or Trusted Items.
- protected_ Boolean
- Whether enabled, value:(true/false).
- exception
Policy string - Set Exceptions or Trusted Items.
- protected boolean
- Whether enabled, value:(true/false).
- exception_
policy str - Set Exceptions or Trusted Items.
- protected bool
- Whether enabled, value:(true/false).
- exception
Policy String - Set Exceptions or Trusted Items.
- protected Boolean
- Whether enabled, value:(true/false).
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.