1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. maxcompute
  5. QuotaSchedule
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi

    Provides a Max Compute Quota Schedule resource.

    For information about Max Compute Quota Schedule and how to use it, see What is Quota Schedule.

    NOTE: Available since v1.242.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const elasticReservedCu = config.get("elasticReservedCu") || "0";
    const quotaNickName = config.get("quotaNickName") || "os_terrform_p";
    const _default = new alicloud.maxcompute.QuotaPlan("default", {
        quota: {
            parameter: {
                elasticReservedCu: 50,
            },
            subQuotaInfoLists: [
                {
                    nickName: "sub_quota",
                    parameter: {
                        minCu: 0,
                        maxCu: 20,
                        elasticReservedCu: 30,
                    },
                },
                {
                    nickName: "os_terrform",
                    parameter: {
                        minCu: 50,
                        maxCu: 50,
                        elasticReservedCu: 20,
                    },
                },
            ],
        },
        planName: "quota_plan1",
        nickname: "os_terrform_p",
    });
    const default2 = new alicloud.maxcompute.QuotaPlan("default2", {
        quota: {
            parameter: {
                elasticReservedCu: 50,
            },
            subQuotaInfoLists: [
                {
                    nickName: "sub_quota",
                    parameter: {
                        minCu: 0,
                        maxCu: 20,
                        elasticReservedCu: 20,
                    },
                },
                {
                    nickName: "os_terrform",
                    parameter: {
                        minCu: 50,
                        maxCu: 50,
                        elasticReservedCu: 30,
                    },
                },
            ],
        },
        planName: "quota_plan2",
        nickname: "os_terrform_p",
    });
    const default3 = new alicloud.maxcompute.QuotaPlan("default3", {
        quota: {
            parameter: {
                elasticReservedCu: 50,
            },
            subQuotaInfoLists: [
                {
                    nickName: "sub_quota",
                    parameter: {
                        minCu: 40,
                        maxCu: 40,
                        elasticReservedCu: 40,
                    },
                },
                {
                    nickName: "os_terrform",
                    parameter: {
                        minCu: 10,
                        maxCu: 10,
                        elasticReservedCu: 10,
                    },
                },
            ],
        },
        planName: "quota_plan3",
        nickname: "os_terrform_p",
    });
    const defaultQuotaSchedule = new alicloud.maxcompute.QuotaSchedule("default", {
        timezone: "UTC+8",
        nickname: quotaNickName,
        scheduleLists: [{
            plan: "Default",
            condition: {
                at: "00:00",
            },
            type: "daily",
        }],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    elastic_reserved_cu = config.get("elasticReservedCu")
    if elastic_reserved_cu is None:
        elastic_reserved_cu = "0"
    quota_nick_name = config.get("quotaNickName")
    if quota_nick_name is None:
        quota_nick_name = "os_terrform_p"
    default = alicloud.maxcompute.QuotaPlan("default",
        quota={
            "parameter": {
                "elastic_reserved_cu": 50,
            },
            "sub_quota_info_lists": [
                {
                    "nick_name": "sub_quota",
                    "parameter": {
                        "min_cu": 0,
                        "max_cu": 20,
                        "elastic_reserved_cu": 30,
                    },
                },
                {
                    "nick_name": "os_terrform",
                    "parameter": {
                        "min_cu": 50,
                        "max_cu": 50,
                        "elastic_reserved_cu": 20,
                    },
                },
            ],
        },
        plan_name="quota_plan1",
        nickname="os_terrform_p")
    default2 = alicloud.maxcompute.QuotaPlan("default2",
        quota={
            "parameter": {
                "elastic_reserved_cu": 50,
            },
            "sub_quota_info_lists": [
                {
                    "nick_name": "sub_quota",
                    "parameter": {
                        "min_cu": 0,
                        "max_cu": 20,
                        "elastic_reserved_cu": 20,
                    },
                },
                {
                    "nick_name": "os_terrform",
                    "parameter": {
                        "min_cu": 50,
                        "max_cu": 50,
                        "elastic_reserved_cu": 30,
                    },
                },
            ],
        },
        plan_name="quota_plan2",
        nickname="os_terrform_p")
    default3 = alicloud.maxcompute.QuotaPlan("default3",
        quota={
            "parameter": {
                "elastic_reserved_cu": 50,
            },
            "sub_quota_info_lists": [
                {
                    "nick_name": "sub_quota",
                    "parameter": {
                        "min_cu": 40,
                        "max_cu": 40,
                        "elastic_reserved_cu": 40,
                    },
                },
                {
                    "nick_name": "os_terrform",
                    "parameter": {
                        "min_cu": 10,
                        "max_cu": 10,
                        "elastic_reserved_cu": 10,
                    },
                },
            ],
        },
        plan_name="quota_plan3",
        nickname="os_terrform_p")
    default_quota_schedule = alicloud.maxcompute.QuotaSchedule("default",
        timezone="UTC+8",
        nickname=quota_nick_name,
        schedule_lists=[{
            "plan": "Default",
            "condition": {
                "at": "00:00",
            },
            "type": "daily",
        }])
    
    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 := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		elasticReservedCu := "0"
    		if param := cfg.Get("elasticReservedCu"); param != "" {
    			elasticReservedCu = param
    		}
    		quotaNickName := "os_terrform_p"
    		if param := cfg.Get("quotaNickName"); param != "" {
    			quotaNickName = param
    		}
    		_, err := maxcompute.NewQuotaPlan(ctx, "default", &maxcompute.QuotaPlanArgs{
    			Quota: &maxcompute.QuotaPlanQuotaArgs{
    				Parameter: &maxcompute.QuotaPlanQuotaParameterArgs{
    					ElasticReservedCu: pulumi.Int(50),
    				},
    				SubQuotaInfoLists: maxcompute.QuotaPlanQuotaSubQuotaInfoListArray{
    					&maxcompute.QuotaPlanQuotaSubQuotaInfoListArgs{
    						NickName: pulumi.String("sub_quota"),
    						Parameter: &maxcompute.QuotaPlanQuotaSubQuotaInfoListParameterArgs{
    							MinCu:             pulumi.Int(0),
    							MaxCu:             pulumi.Int(20),
    							ElasticReservedCu: pulumi.Int(30),
    						},
    					},
    					&maxcompute.QuotaPlanQuotaSubQuotaInfoListArgs{
    						NickName: pulumi.String("os_terrform"),
    						Parameter: &maxcompute.QuotaPlanQuotaSubQuotaInfoListParameterArgs{
    							MinCu:             pulumi.Int(50),
    							MaxCu:             pulumi.Int(50),
    							ElasticReservedCu: pulumi.Int(20),
    						},
    					},
    				},
    			},
    			PlanName: pulumi.String("quota_plan1"),
    			Nickname: pulumi.String("os_terrform_p"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = maxcompute.NewQuotaPlan(ctx, "default2", &maxcompute.QuotaPlanArgs{
    			Quota: &maxcompute.QuotaPlanQuotaArgs{
    				Parameter: &maxcompute.QuotaPlanQuotaParameterArgs{
    					ElasticReservedCu: pulumi.Int(50),
    				},
    				SubQuotaInfoLists: maxcompute.QuotaPlanQuotaSubQuotaInfoListArray{
    					&maxcompute.QuotaPlanQuotaSubQuotaInfoListArgs{
    						NickName: pulumi.String("sub_quota"),
    						Parameter: &maxcompute.QuotaPlanQuotaSubQuotaInfoListParameterArgs{
    							MinCu:             pulumi.Int(0),
    							MaxCu:             pulumi.Int(20),
    							ElasticReservedCu: pulumi.Int(20),
    						},
    					},
    					&maxcompute.QuotaPlanQuotaSubQuotaInfoListArgs{
    						NickName: pulumi.String("os_terrform"),
    						Parameter: &maxcompute.QuotaPlanQuotaSubQuotaInfoListParameterArgs{
    							MinCu:             pulumi.Int(50),
    							MaxCu:             pulumi.Int(50),
    							ElasticReservedCu: pulumi.Int(30),
    						},
    					},
    				},
    			},
    			PlanName: pulumi.String("quota_plan2"),
    			Nickname: pulumi.String("os_terrform_p"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = maxcompute.NewQuotaPlan(ctx, "default3", &maxcompute.QuotaPlanArgs{
    			Quota: &maxcompute.QuotaPlanQuotaArgs{
    				Parameter: &maxcompute.QuotaPlanQuotaParameterArgs{
    					ElasticReservedCu: pulumi.Int(50),
    				},
    				SubQuotaInfoLists: maxcompute.QuotaPlanQuotaSubQuotaInfoListArray{
    					&maxcompute.QuotaPlanQuotaSubQuotaInfoListArgs{
    						NickName: pulumi.String("sub_quota"),
    						Parameter: &maxcompute.QuotaPlanQuotaSubQuotaInfoListParameterArgs{
    							MinCu:             pulumi.Int(40),
    							MaxCu:             pulumi.Int(40),
    							ElasticReservedCu: pulumi.Int(40),
    						},
    					},
    					&maxcompute.QuotaPlanQuotaSubQuotaInfoListArgs{
    						NickName: pulumi.String("os_terrform"),
    						Parameter: &maxcompute.QuotaPlanQuotaSubQuotaInfoListParameterArgs{
    							MinCu:             pulumi.Int(10),
    							MaxCu:             pulumi.Int(10),
    							ElasticReservedCu: pulumi.Int(10),
    						},
    					},
    				},
    			},
    			PlanName: pulumi.String("quota_plan3"),
    			Nickname: pulumi.String("os_terrform_p"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = maxcompute.NewQuotaSchedule(ctx, "default", &maxcompute.QuotaScheduleArgs{
    			Timezone: pulumi.String("UTC+8"),
    			Nickname: pulumi.String(quotaNickName),
    			ScheduleLists: maxcompute.QuotaScheduleScheduleListArray{
    				&maxcompute.QuotaScheduleScheduleListArgs{
    					Plan: pulumi.String("Default"),
    					Condition: &maxcompute.QuotaScheduleScheduleListConditionArgs{
    						At: pulumi.String("00:00"),
    					},
    					Type: pulumi.String("daily"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		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") ?? "terraform-example";
        var elasticReservedCu = config.Get("elasticReservedCu") ?? "0";
        var quotaNickName = config.Get("quotaNickName") ?? "os_terrform_p";
        var @default = new AliCloud.MaxCompute.QuotaPlan("default", new()
        {
            Quota = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaArgs
            {
                Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaParameterArgs
                {
                    ElasticReservedCu = 50,
                },
                SubQuotaInfoLists = new[]
                {
                    new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListArgs
                    {
                        NickName = "sub_quota",
                        Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListParameterArgs
                        {
                            MinCu = 0,
                            MaxCu = 20,
                            ElasticReservedCu = 30,
                        },
                    },
                    new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListArgs
                    {
                        NickName = "os_terrform",
                        Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListParameterArgs
                        {
                            MinCu = 50,
                            MaxCu = 50,
                            ElasticReservedCu = 20,
                        },
                    },
                },
            },
            PlanName = "quota_plan1",
            Nickname = "os_terrform_p",
        });
    
        var default2 = new AliCloud.MaxCompute.QuotaPlan("default2", new()
        {
            Quota = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaArgs
            {
                Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaParameterArgs
                {
                    ElasticReservedCu = 50,
                },
                SubQuotaInfoLists = new[]
                {
                    new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListArgs
                    {
                        NickName = "sub_quota",
                        Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListParameterArgs
                        {
                            MinCu = 0,
                            MaxCu = 20,
                            ElasticReservedCu = 20,
                        },
                    },
                    new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListArgs
                    {
                        NickName = "os_terrform",
                        Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListParameterArgs
                        {
                            MinCu = 50,
                            MaxCu = 50,
                            ElasticReservedCu = 30,
                        },
                    },
                },
            },
            PlanName = "quota_plan2",
            Nickname = "os_terrform_p",
        });
    
        var default3 = new AliCloud.MaxCompute.QuotaPlan("default3", new()
        {
            Quota = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaArgs
            {
                Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaParameterArgs
                {
                    ElasticReservedCu = 50,
                },
                SubQuotaInfoLists = new[]
                {
                    new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListArgs
                    {
                        NickName = "sub_quota",
                        Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListParameterArgs
                        {
                            MinCu = 40,
                            MaxCu = 40,
                            ElasticReservedCu = 40,
                        },
                    },
                    new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListArgs
                    {
                        NickName = "os_terrform",
                        Parameter = new AliCloud.MaxCompute.Inputs.QuotaPlanQuotaSubQuotaInfoListParameterArgs
                        {
                            MinCu = 10,
                            MaxCu = 10,
                            ElasticReservedCu = 10,
                        },
                    },
                },
            },
            PlanName = "quota_plan3",
            Nickname = "os_terrform_p",
        });
    
        var defaultQuotaSchedule = new AliCloud.MaxCompute.QuotaSchedule("default", new()
        {
            Timezone = "UTC+8",
            Nickname = quotaNickName,
            ScheduleLists = new[]
            {
                new AliCloud.MaxCompute.Inputs.QuotaScheduleScheduleListArgs
                {
                    Plan = "Default",
                    Condition = new AliCloud.MaxCompute.Inputs.QuotaScheduleScheduleListConditionArgs
                    {
                        At = "00:00",
                    },
                    Type = "daily",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.maxcompute.QuotaPlan;
    import com.pulumi.alicloud.maxcompute.QuotaPlanArgs;
    import com.pulumi.alicloud.maxcompute.inputs.QuotaPlanQuotaArgs;
    import com.pulumi.alicloud.maxcompute.inputs.QuotaPlanQuotaParameterArgs;
    import com.pulumi.alicloud.maxcompute.QuotaSchedule;
    import com.pulumi.alicloud.maxcompute.QuotaScheduleArgs;
    import com.pulumi.alicloud.maxcompute.inputs.QuotaScheduleScheduleListArgs;
    import com.pulumi.alicloud.maxcompute.inputs.QuotaScheduleScheduleListConditionArgs;
    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("terraform-example");
            final var elasticReservedCu = config.get("elasticReservedCu").orElse("0");
            final var quotaNickName = config.get("quotaNickName").orElse("os_terrform_p");
            var default_ = new QuotaPlan("default", QuotaPlanArgs.builder()
                .quota(QuotaPlanQuotaArgs.builder()
                    .parameter(QuotaPlanQuotaParameterArgs.builder()
                        .elasticReservedCu(50)
                        .build())
                    .subQuotaInfoLists(                
                        QuotaPlanQuotaSubQuotaInfoListArgs.builder()
                            .nickName("sub_quota")
                            .parameter(QuotaPlanQuotaSubQuotaInfoListParameterArgs.builder()
                                .minCu(0)
                                .maxCu(20)
                                .elasticReservedCu(30)
                                .build())
                            .build(),
                        QuotaPlanQuotaSubQuotaInfoListArgs.builder()
                            .nickName("os_terrform")
                            .parameter(QuotaPlanQuotaSubQuotaInfoListParameterArgs.builder()
                                .minCu(50)
                                .maxCu(50)
                                .elasticReservedCu(20)
                                .build())
                            .build())
                    .build())
                .planName("quota_plan1")
                .nickname("os_terrform_p")
                .build());
    
            var default2 = new QuotaPlan("default2", QuotaPlanArgs.builder()
                .quota(QuotaPlanQuotaArgs.builder()
                    .parameter(QuotaPlanQuotaParameterArgs.builder()
                        .elasticReservedCu(50)
                        .build())
                    .subQuotaInfoLists(                
                        QuotaPlanQuotaSubQuotaInfoListArgs.builder()
                            .nickName("sub_quota")
                            .parameter(QuotaPlanQuotaSubQuotaInfoListParameterArgs.builder()
                                .minCu(0)
                                .maxCu(20)
                                .elasticReservedCu(20)
                                .build())
                            .build(),
                        QuotaPlanQuotaSubQuotaInfoListArgs.builder()
                            .nickName("os_terrform")
                            .parameter(QuotaPlanQuotaSubQuotaInfoListParameterArgs.builder()
                                .minCu(50)
                                .maxCu(50)
                                .elasticReservedCu(30)
                                .build())
                            .build())
                    .build())
                .planName("quota_plan2")
                .nickname("os_terrform_p")
                .build());
    
            var default3 = new QuotaPlan("default3", QuotaPlanArgs.builder()
                .quota(QuotaPlanQuotaArgs.builder()
                    .parameter(QuotaPlanQuotaParameterArgs.builder()
                        .elasticReservedCu(50)
                        .build())
                    .subQuotaInfoLists(                
                        QuotaPlanQuotaSubQuotaInfoListArgs.builder()
                            .nickName("sub_quota")
                            .parameter(QuotaPlanQuotaSubQuotaInfoListParameterArgs.builder()
                                .minCu(40)
                                .maxCu(40)
                                .elasticReservedCu(40)
                                .build())
                            .build(),
                        QuotaPlanQuotaSubQuotaInfoListArgs.builder()
                            .nickName("os_terrform")
                            .parameter(QuotaPlanQuotaSubQuotaInfoListParameterArgs.builder()
                                .minCu(10)
                                .maxCu(10)
                                .elasticReservedCu(10)
                                .build())
                            .build())
                    .build())
                .planName("quota_plan3")
                .nickname("os_terrform_p")
                .build());
    
            var defaultQuotaSchedule = new QuotaSchedule("defaultQuotaSchedule", QuotaScheduleArgs.builder()
                .timezone("UTC+8")
                .nickname(quotaNickName)
                .scheduleLists(QuotaScheduleScheduleListArgs.builder()
                    .plan("Default")
                    .condition(QuotaScheduleScheduleListConditionArgs.builder()
                        .at("00:00")
                        .build())
                    .type("daily")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      elasticReservedCu:
        type: string
        default: '0'
      quotaNickName:
        type: string
        default: os_terrform_p
    resources:
      default:
        type: alicloud:maxcompute:QuotaPlan
        properties:
          quota:
            parameter:
              elasticReservedCu: 50
            subQuotaInfoLists:
              - nickName: sub_quota
                parameter:
                  minCu: '0'
                  maxCu: '20'
                  elasticReservedCu: '30'
              - nickName: os_terrform
                parameter:
                  minCu: '50'
                  maxCu: '50'
                  elasticReservedCu: '20'
          planName: quota_plan1
          nickname: os_terrform_p
      default2:
        type: alicloud:maxcompute:QuotaPlan
        properties:
          quota:
            parameter:
              elasticReservedCu: 50
            subQuotaInfoLists:
              - nickName: sub_quota
                parameter:
                  minCu: '0'
                  maxCu: '20'
                  elasticReservedCu: '20'
              - nickName: os_terrform
                parameter:
                  minCu: '50'
                  maxCu: '50'
                  elasticReservedCu: '30'
          planName: quota_plan2
          nickname: os_terrform_p
      default3:
        type: alicloud:maxcompute:QuotaPlan
        properties:
          quota:
            parameter:
              elasticReservedCu: 50
            subQuotaInfoLists:
              - nickName: sub_quota
                parameter:
                  minCu: '40'
                  maxCu: '40'
                  elasticReservedCu: '40'
              - nickName: os_terrform
                parameter:
                  minCu: '10'
                  maxCu: '10'
                  elasticReservedCu: '10'
          planName: quota_plan3
          nickname: os_terrform_p
      defaultQuotaSchedule:
        type: alicloud:maxcompute:QuotaSchedule
        name: default
        properties:
          timezone: UTC+8
          nickname: ${quotaNickName}
          scheduleLists:
            - plan: Default
              condition:
                at: 00:00
              type: daily
    

    Deleting alicloud.maxcompute.QuotaSchedule or removing it from your configuration

    Terraform cannot destroy resource alicloud.maxcompute.QuotaSchedule. Terraform will remove this resource from the state file, however resources may remain.

    📚 Need more examples? VIEW MORE EXAMPLES

    Create QuotaSchedule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new QuotaSchedule(name: string, args: QuotaScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def QuotaSchedule(resource_name: str,
                      args: QuotaScheduleArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def QuotaSchedule(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      nickname: Optional[str] = None,
                      timezone: Optional[str] = None,
                      schedule_lists: Optional[Sequence[QuotaScheduleScheduleListArgs]] = None)
    func NewQuotaSchedule(ctx *Context, name string, args QuotaScheduleArgs, opts ...ResourceOption) (*QuotaSchedule, error)
    public QuotaSchedule(string name, QuotaScheduleArgs args, CustomResourceOptions? opts = null)
    public QuotaSchedule(String name, QuotaScheduleArgs args)
    public QuotaSchedule(String name, QuotaScheduleArgs args, CustomResourceOptions options)
    
    type: alicloud:maxcompute:QuotaSchedule
    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 QuotaScheduleArgs
    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 QuotaScheduleArgs
    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 QuotaScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QuotaScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QuotaScheduleArgs
    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 quotaScheduleResource = new AliCloud.MaxCompute.QuotaSchedule("quotaScheduleResource", new()
    {
        Nickname = "string",
        Timezone = "string",
        ScheduleLists = new[]
        {
            new AliCloud.MaxCompute.Inputs.QuotaScheduleScheduleListArgs
            {
                Plan = "string",
                Type = "string",
                Condition = new AliCloud.MaxCompute.Inputs.QuotaScheduleScheduleListConditionArgs
                {
                    At = "string",
                },
            },
        },
    });
    
    example, err := maxcompute.NewQuotaSchedule(ctx, "quotaScheduleResource", &maxcompute.QuotaScheduleArgs{
    	Nickname: pulumi.String("string"),
    	Timezone: pulumi.String("string"),
    	ScheduleLists: maxcompute.QuotaScheduleScheduleListArray{
    		&maxcompute.QuotaScheduleScheduleListArgs{
    			Plan: pulumi.String("string"),
    			Type: pulumi.String("string"),
    			Condition: &maxcompute.QuotaScheduleScheduleListConditionArgs{
    				At: pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var quotaScheduleResource = new QuotaSchedule("quotaScheduleResource", QuotaScheduleArgs.builder()
        .nickname("string")
        .timezone("string")
        .scheduleLists(QuotaScheduleScheduleListArgs.builder()
            .plan("string")
            .type("string")
            .condition(QuotaScheduleScheduleListConditionArgs.builder()
                .at("string")
                .build())
            .build())
        .build());
    
    quota_schedule_resource = alicloud.maxcompute.QuotaSchedule("quotaScheduleResource",
        nickname="string",
        timezone="string",
        schedule_lists=[{
            "plan": "string",
            "type": "string",
            "condition": {
                "at": "string",
            },
        }])
    
    const quotaScheduleResource = new alicloud.maxcompute.QuotaSchedule("quotaScheduleResource", {
        nickname: "string",
        timezone: "string",
        scheduleLists: [{
            plan: "string",
            type: "string",
            condition: {
                at: "string",
            },
        }],
    });
    
    type: alicloud:maxcompute:QuotaSchedule
    properties:
        nickname: string
        scheduleLists:
            - condition:
                at: string
              plan: string
              type: string
        timezone: string
    

    QuotaSchedule 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 QuotaSchedule resource accepts the following input properties:

    Nickname string
    The nickname of level-1 compute quota.
    Timezone string
    Time zone, reference value: UTC +8
    ScheduleLists List<Pulumi.AliCloud.MaxCompute.Inputs.QuotaScheduleScheduleList>
    schedule list See schedule_list below.
    Nickname string
    The nickname of level-1 compute quota.
    Timezone string
    Time zone, reference value: UTC +8
    ScheduleLists []QuotaScheduleScheduleListArgs
    schedule list See schedule_list below.
    nickname String
    The nickname of level-1 compute quota.
    timezone String
    Time zone, reference value: UTC +8
    scheduleLists List<QuotaScheduleScheduleList>
    schedule list See schedule_list below.
    nickname string
    The nickname of level-1 compute quota.
    timezone string
    Time zone, reference value: UTC +8
    scheduleLists QuotaScheduleScheduleList[]
    schedule list See schedule_list below.
    nickname str
    The nickname of level-1 compute quota.
    timezone str
    Time zone, reference value: UTC +8
    schedule_lists Sequence[QuotaScheduleScheduleListArgs]
    schedule list See schedule_list below.
    nickname String
    The nickname of level-1 compute quota.
    timezone String
    Time zone, reference value: UTC +8
    scheduleLists List<Property Map>
    schedule list See schedule_list below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the QuotaSchedule 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 QuotaSchedule Resource

    Get an existing QuotaSchedule 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?: QuotaScheduleState, opts?: CustomResourceOptions): QuotaSchedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            nickname: Optional[str] = None,
            schedule_lists: Optional[Sequence[QuotaScheduleScheduleListArgs]] = None,
            timezone: Optional[str] = None) -> QuotaSchedule
    func GetQuotaSchedule(ctx *Context, name string, id IDInput, state *QuotaScheduleState, opts ...ResourceOption) (*QuotaSchedule, error)
    public static QuotaSchedule Get(string name, Input<string> id, QuotaScheduleState? state, CustomResourceOptions? opts = null)
    public static QuotaSchedule get(String name, Output<String> id, QuotaScheduleState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:maxcompute:QuotaSchedule    get:      id: ${id}
    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:
    Nickname string
    The nickname of level-1 compute quota.
    ScheduleLists List<Pulumi.AliCloud.MaxCompute.Inputs.QuotaScheduleScheduleList>
    schedule list See schedule_list below.
    Timezone string
    Time zone, reference value: UTC +8
    Nickname string
    The nickname of level-1 compute quota.
    ScheduleLists []QuotaScheduleScheduleListArgs
    schedule list See schedule_list below.
    Timezone string
    Time zone, reference value: UTC +8
    nickname String
    The nickname of level-1 compute quota.
    scheduleLists List<QuotaScheduleScheduleList>
    schedule list See schedule_list below.
    timezone String
    Time zone, reference value: UTC +8
    nickname string
    The nickname of level-1 compute quota.
    scheduleLists QuotaScheduleScheduleList[]
    schedule list See schedule_list below.
    timezone string
    Time zone, reference value: UTC +8
    nickname str
    The nickname of level-1 compute quota.
    schedule_lists Sequence[QuotaScheduleScheduleListArgs]
    schedule list See schedule_list below.
    timezone str
    Time zone, reference value: UTC +8
    nickname String
    The nickname of level-1 compute quota.
    scheduleLists List<Property Map>
    schedule list See schedule_list below.
    timezone String
    Time zone, reference value: UTC +8

    Supporting Types

    QuotaScheduleScheduleList, QuotaScheduleScheduleListArgs

    Plan string
    The name of the quota plan.
    Type string

    The type of the quota plan. Valid values: daily

    NOTE: Currently, only daily is supported.

    Condition Pulumi.AliCloud.MaxCompute.Inputs.QuotaScheduleScheduleListCondition
    The value of effective condition. See condition below.
    Plan string
    The name of the quota plan.
    Type string

    The type of the quota plan. Valid values: daily

    NOTE: Currently, only daily is supported.

    Condition QuotaScheduleScheduleListCondition
    The value of effective condition. See condition below.
    plan String
    The name of the quota plan.
    type String

    The type of the quota plan. Valid values: daily

    NOTE: Currently, only daily is supported.

    condition QuotaScheduleScheduleListCondition
    The value of effective condition. See condition below.
    plan string
    The name of the quota plan.
    type string

    The type of the quota plan. Valid values: daily

    NOTE: Currently, only daily is supported.

    condition QuotaScheduleScheduleListCondition
    The value of effective condition. See condition below.
    plan str
    The name of the quota plan.
    type str

    The type of the quota plan. Valid values: daily

    NOTE: Currently, only daily is supported.

    condition QuotaScheduleScheduleListCondition
    The value of effective condition. See condition below.
    plan String
    The name of the quota plan.
    type String

    The type of the quota plan. Valid values: daily

    NOTE: Currently, only daily is supported.

    condition Property Map
    The value of effective condition. See condition below.

    QuotaScheduleScheduleListCondition, QuotaScheduleScheduleListConditionArgs

    At string

    Effective time. The format is HH:mm, sample value: 00:00

    NOTE: The configuration must start from the effective time of 00:00. The input time must be either a whole hour or a half hour, and the minimum interval between each schedule is 30 minutes.

    At string

    Effective time. The format is HH:mm, sample value: 00:00

    NOTE: The configuration must start from the effective time of 00:00. The input time must be either a whole hour or a half hour, and the minimum interval between each schedule is 30 minutes.

    at String

    Effective time. The format is HH:mm, sample value: 00:00

    NOTE: The configuration must start from the effective time of 00:00. The input time must be either a whole hour or a half hour, and the minimum interval between each schedule is 30 minutes.

    at string

    Effective time. The format is HH:mm, sample value: 00:00

    NOTE: The configuration must start from the effective time of 00:00. The input time must be either a whole hour or a half hour, and the minimum interval between each schedule is 30 minutes.

    at str

    Effective time. The format is HH:mm, sample value: 00:00

    NOTE: The configuration must start from the effective time of 00:00. The input time must be either a whole hour or a half hour, and the minimum interval between each schedule is 30 minutes.

    at String

    Effective time. The format is HH:mm, sample value: 00:00

    NOTE: The configuration must start from the effective time of 00:00. The input time must be either a whole hour or a half hour, and the minimum interval between each schedule is 30 minutes.

    Import

    Max Compute Quota Schedule can be imported using the id, e.g.

    $ pulumi import alicloud:maxcompute/quotaSchedule:QuotaSchedule example <nickname>:<timezone>
    

    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.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.97.0
    published on Saturday, Mar 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.