Template
Resource for managing an AWS Service Quotas Template.
Only the management account of an organization can alter Service Quota templates, and this must be done from the
us-east-1
region.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.servicequotas.Template("example", {
region: "us-east-1",
quotaCode: "L-2ACBD22F",
serviceCode: "lambda",
value: 80,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.servicequotas.Template("example",
region="us-east-1",
quota_code="L-2ACBD22F",
service_code="lambda",
value=80)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ServiceQuotas.Template("example", new()
{
Region = "us-east-1",
QuotaCode = "L-2ACBD22F",
ServiceCode = "lambda",
Value = 80,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/servicequotas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicequotas.NewTemplate(ctx, "example", &servicequotas.TemplateArgs{
Region: pulumi.String("us-east-1"),
QuotaCode: pulumi.String("L-2ACBD22F"),
ServiceCode: pulumi.String("lambda"),
Value: pulumi.Float64(80),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicequotas.Template;
import com.pulumi.aws.servicequotas.TemplateArgs;
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) {
var example = new Template("example", TemplateArgs.builder()
.region("us-east-1")
.quotaCode("L-2ACBD22F")
.serviceCode("lambda")
.value("80")
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:servicequotas:Template
properties:
region: us-east-1
quotaCode: L-2ACBD22F
serviceCode: lambda
value: '80'
Content copied to clipboard
Import
Using pulumi import
, import Service Quotas Template using the id
. For example:
$ pulumi import aws:servicequotas/template:Template example us-east-1,L-2ACBD22F,lambda
Content copied to clipboard
Properties
Link copied to clipboard
Indicates whether the quota is global.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Service identifier. To find the service code value for an AWS service, use the aws.servicequotas.getService data source.
Link copied to clipboard
Service name.