Service Quota Args
Manages an individual Service Quota.
NOTE: Global quotas apply to all AWS regions, but can only be accessed in
us-east-1
in the Commercial partition orus-gov-west-1
in the GovCloud partition. In other regions, the AWS API will return the errorThe request failed because the specified service does not exist.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.servicequotas.ServiceQuota("example", {
quotaCode: "L-F678F1CE",
serviceCode: "vpc",
value: 75,
});
import pulumi
import pulumi_aws as aws
example = aws.servicequotas.ServiceQuota("example",
quota_code="L-F678F1CE",
service_code="vpc",
value=75)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ServiceQuotas.ServiceQuota("example", new()
{
QuotaCode = "L-F678F1CE",
ServiceCode = "vpc",
Value = 75,
});
});
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.NewServiceQuota(ctx, "example", &servicequotas.ServiceQuotaArgs{
QuotaCode: pulumi.String("L-F678F1CE"),
ServiceCode: pulumi.String("vpc"),
Value: pulumi.Float64(75),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicequotas.ServiceQuota;
import com.pulumi.aws.servicequotas.ServiceQuotaArgs;
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 ServiceQuota("example", ServiceQuotaArgs.builder()
.quotaCode("L-F678F1CE")
.serviceCode("vpc")
.value(75)
.build());
}
}
resources:
example:
type: aws:servicequotas:ServiceQuota
properties:
quotaCode: L-F678F1CE
serviceCode: vpc
value: 75
Import
Using pulumi import
, import aws_servicequotas_service_quota
using the service code and quota code, separated by a front slash (/
). For example: ~>NOTE: This resource does not require explicit import and will assume management of an existing service quota on Pulumi resource creation.
$ pulumi import aws:servicequotas/serviceQuota:ServiceQuota example vpc/L-F678F1CE
Properties
Code of the service quota to track. For example: L-F678F1CE
. Available values can be found with the AWS CLI service-quotas list-service-quotas command.
Code of the service to track. For example: vpc
. Available values can be found with the AWS CLI service-quotas list-services command.