1. Packages
  2. AWS
  3. API Docs
  4. servicequotas
  5. getTemplates
AWS v7.5.0 published on Wednesday, Aug 20, 2025 by Pulumi

aws.servicequotas.getTemplates

Explore with Pulumi AI

aws logo
AWS v7.5.0 published on Wednesday, Aug 20, 2025 by Pulumi

    Data source for managing AWS Service Quotas Templates.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.servicequotas.getTemplates({
        awsRegion: "us-east-1",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.servicequotas.get_templates(aws_region="us-east-1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/servicequotas"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := servicequotas.GetTemplates(ctx, &servicequotas.GetTemplatesArgs{
    			AwsRegion: pulumi.StringRef("us-east-1"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.ServiceQuotas.GetTemplates.Invoke(new()
        {
            AwsRegion = "us-east-1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.servicequotas.ServicequotasFunctions;
    import com.pulumi.aws.servicequotas.inputs.GetTemplatesArgs;
    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 example = ServicequotasFunctions.getTemplates(GetTemplatesArgs.builder()
                .awsRegion("us-east-1")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:servicequotas:getTemplates
          arguments:
            awsRegion: us-east-1
    

    Using getTemplates

    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 getTemplates(args: GetTemplatesArgs, opts?: InvokeOptions): Promise<GetTemplatesResult>
    function getTemplatesOutput(args: GetTemplatesOutputArgs, opts?: InvokeOptions): Output<GetTemplatesResult>
    def get_templates(aws_region: Optional[str] = None,
                      region: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetTemplatesResult
    def get_templates_output(aws_region: Optional[pulumi.Input[str]] = None,
                      region: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetTemplatesResult]
    func GetTemplates(ctx *Context, args *GetTemplatesArgs, opts ...InvokeOption) (*GetTemplatesResult, error)
    func GetTemplatesOutput(ctx *Context, args *GetTemplatesOutputArgs, opts ...InvokeOption) GetTemplatesResultOutput

    > Note: This function is named GetTemplates in the Go SDK.

    public static class GetTemplates 
    {
        public static Task<GetTemplatesResult> InvokeAsync(GetTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetTemplatesResult> Invoke(GetTemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTemplatesResult> getTemplates(GetTemplatesArgs args, InvokeOptions options)
    public static Output<GetTemplatesResult> getTemplates(GetTemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:servicequotas/getTemplates:getTemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AwsRegion string
    AWS Region to which the quota increases apply.
    Region string
    AWS Region to which the quota increases apply. Use aws.getRegion instead.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    AwsRegion string
    AWS Region to which the quota increases apply.
    Region string
    AWS Region to which the quota increases apply. Use aws.getRegion instead.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    awsRegion String
    AWS Region to which the quota increases apply.
    region String
    AWS Region to which the quota increases apply. Use aws.getRegion instead.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    awsRegion string
    AWS Region to which the quota increases apply.
    region string
    AWS Region to which the quota increases apply. Use aws.getRegion instead.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    aws_region str
    AWS Region to which the quota increases apply.
    region str
    AWS Region to which the quota increases apply. Use aws.getRegion instead.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    awsRegion String
    AWS Region to which the quota increases apply.
    region String
    AWS Region to which the quota increases apply. Use aws.getRegion instead.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    getTemplates Result

    The following output properties are available:

    Id string
    Templates List<GetTemplatesTemplate>
    A list of quota increase templates for specified region. See templates.
    AwsRegion string
    Region string
    AWS Region to which the template applies.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    Id string
    Templates []GetTemplatesTemplate
    A list of quota increase templates for specified region. See templates.
    AwsRegion string
    Region string
    AWS Region to which the template applies.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    id String
    templates List<GetTemplatesTemplate>
    A list of quota increase templates for specified region. See templates.
    awsRegion String
    region String
    AWS Region to which the template applies.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    id string
    templates GetTemplatesTemplate[]
    A list of quota increase templates for specified region. See templates.
    awsRegion string
    region string
    AWS Region to which the template applies.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    id str
    templates Sequence[GetTemplatesTemplate]
    A list of quota increase templates for specified region. See templates.
    aws_region str
    region str
    AWS Region to which the template applies.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    id String
    templates List<Property Map>
    A list of quota increase templates for specified region. See templates.
    awsRegion String
    region String
    AWS Region to which the template applies.

    Deprecated: region is deprecated. Use aws.getRegion instead.

    Supporting Types

    GetTemplatesTemplate

    GlobalQuota bool
    Indicates whether the quota is global.
    QuotaCode string
    Quota identifier.
    QuotaName string
    Quota name.
    Region string
    AWS Region to which the quota increases apply. Use aws.getRegion instead.
    ServiceCode string
    Service identifier.
    ServiceName string
    Service name.
    Unit string
    Unit of measurement.
    Value double
    The new, increased value for the quota.
    GlobalQuota bool
    Indicates whether the quota is global.
    QuotaCode string
    Quota identifier.
    QuotaName string
    Quota name.
    Region string
    AWS Region to which the quota increases apply. Use aws.getRegion instead.
    ServiceCode string
    Service identifier.
    ServiceName string
    Service name.
    Unit string
    Unit of measurement.
    Value float64
    The new, increased value for the quota.
    globalQuota Boolean
    Indicates whether the quota is global.
    quotaCode String
    Quota identifier.
    quotaName String
    Quota name.
    region String
    AWS Region to which the quota increases apply. Use aws.getRegion instead.
    serviceCode String
    Service identifier.
    serviceName String
    Service name.
    unit String
    Unit of measurement.
    value Double
    The new, increased value for the quota.
    globalQuota boolean
    Indicates whether the quota is global.
    quotaCode string
    Quota identifier.
    quotaName string
    Quota name.
    region string
    AWS Region to which the quota increases apply. Use aws.getRegion instead.
    serviceCode string
    Service identifier.
    serviceName string
    Service name.
    unit string
    Unit of measurement.
    value number
    The new, increased value for the quota.
    global_quota bool
    Indicates whether the quota is global.
    quota_code str
    Quota identifier.
    quota_name str
    Quota name.
    region str
    AWS Region to which the quota increases apply. Use aws.getRegion instead.
    service_code str
    Service identifier.
    service_name str
    Service name.
    unit str
    Unit of measurement.
    value float
    The new, increased value for the quota.
    globalQuota Boolean
    Indicates whether the quota is global.
    quotaCode String
    Quota identifier.
    quotaName String
    Quota name.
    region String
    AWS Region to which the quota increases apply. Use aws.getRegion instead.
    serviceCode String
    Service identifier.
    serviceName String
    Service name.
    unit String
    Unit of measurement.
    value Number
    The new, increased value for the quota.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.5.0 published on Wednesday, Aug 20, 2025 by Pulumi