GetServiceQuota

Retrieve information about a Service Quota.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var byQuotaCode = Output.Create(Aws.ServiceQuotas.GetServiceQuota.InvokeAsync(new Aws.ServiceQuotas.GetServiceQuotaArgs
        {
            QuotaCode = "L-F678F1CE",
            ServiceCode = "vpc",
        }));
        var byQuotaName = Output.Create(Aws.ServiceQuotas.GetServiceQuota.InvokeAsync(new Aws.ServiceQuotas.GetServiceQuotaArgs
        {
            QuotaName = "VPCs per Region",
            ServiceCode = "vpc",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/servicequotas"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "L-F678F1CE"
        _, err := servicequotas.LookupServiceQuota(ctx, &servicequotas.LookupServiceQuotaArgs{
            QuotaCode:   &opt0,
            ServiceCode: "vpc",
        }, nil)
        if err != nil {
            return err
        }
        opt1 := "VPCs per Region"
        _, err = servicequotas.LookupServiceQuota(ctx, &servicequotas.LookupServiceQuotaArgs{
            QuotaName:   &opt1,
            ServiceCode: "vpc",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

by_quota_code = aws.servicequotas.get_service_quota(quota_code="L-F678F1CE",
    service_code="vpc")
by_quota_name = aws.servicequotas.get_service_quota(quota_name="VPCs per Region",
    service_code="vpc")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const byQuotaCode = pulumi.output(aws.servicequotas.getServiceQuota({
    quotaCode: "L-F678F1CE",
    serviceCode: "vpc",
}, { async: true }));
const byQuotaName = pulumi.output(aws.servicequotas.getServiceQuota({
    quotaName: "VPCs per Region",
    serviceCode: "vpc",
}, { async: true }));

Using GetServiceQuota

function getServiceQuota(args: GetServiceQuotaArgs, opts?: InvokeOptions): Promise<GetServiceQuotaResult>
function  get_service_quota(quota_code=None, quota_name=None, service_code=None, opts=None)
func LookupServiceQuota(ctx *Context, args *LookupServiceQuotaArgs, opts ...InvokeOption) (*LookupServiceQuotaResult, error)

Note: This function is named LookupServiceQuota in the Go SDK.

public static class GetServiceQuota {
    public static Task<GetServiceQuotaResult> InvokeAsync(GetServiceQuotaArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ServiceCode string

Service code for the quota. Available values can be found with the aws.servicequotas.getService data source or AWS CLI service-quotas list-services command.

QuotaCode string

Quota code within the service. When configured, the data source directly looks up the service quota. Available values can be found with the AWS CLI service-quotas list-service-quotas command.

QuotaName string

Quota name within the service. When configured, the data source searches through all service quotas to find the matching quota name. Available values can be found with the AWS CLI service-quotas list-service-quotas command.

ServiceCode string

Service code for the quota. Available values can be found with the aws.servicequotas.getService data source or AWS CLI service-quotas list-services command.

QuotaCode string

Quota code within the service. When configured, the data source directly looks up the service quota. Available values can be found with the AWS CLI service-quotas list-service-quotas command.

QuotaName string

Quota name within the service. When configured, the data source searches through all service quotas to find the matching quota name. Available values can be found with the AWS CLI service-quotas list-service-quotas command.

serviceCode string

Service code for the quota. Available values can be found with the aws.servicequotas.getService data source or AWS CLI service-quotas list-services command.

quotaCode string

Quota code within the service. When configured, the data source directly looks up the service quota. Available values can be found with the AWS CLI service-quotas list-service-quotas command.

quotaName string

Quota name within the service. When configured, the data source searches through all service quotas to find the matching quota name. Available values can be found with the AWS CLI service-quotas list-service-quotas command.

service_code str

Service code for the quota. Available values can be found with the aws.servicequotas.getService data source or AWS CLI service-quotas list-services command.

quota_code str

Quota code within the service. When configured, the data source directly looks up the service quota. Available values can be found with the AWS CLI service-quotas list-service-quotas command.

quota_name str

Quota name within the service. When configured, the data source searches through all service quotas to find the matching quota name. Available values can be found with the AWS CLI service-quotas list-service-quotas command.

GetServiceQuota Result

The following output properties are available:

Adjustable bool

Whether the service quota is adjustable.

Arn string

Amazon Resource Name (ARN) of the service quota.

DefaultValue double

Default value of the service quota.

GlobalQuota bool

Whether the service quota is global for the AWS account.

Id string

The provider-assigned unique ID for this managed resource.

QuotaCode string
QuotaName string
ServiceCode string
ServiceName string

Name of the service.

Value double

Current value of the service quota.

Adjustable bool

Whether the service quota is adjustable.

Arn string

Amazon Resource Name (ARN) of the service quota.

DefaultValue float64

Default value of the service quota.

GlobalQuota bool

Whether the service quota is global for the AWS account.

Id string

The provider-assigned unique ID for this managed resource.

QuotaCode string
QuotaName string
ServiceCode string
ServiceName string

Name of the service.

Value float64

Current value of the service quota.

adjustable boolean

Whether the service quota is adjustable.

arn string

Amazon Resource Name (ARN) of the service quota.

defaultValue number

Default value of the service quota.

globalQuota boolean

Whether the service quota is global for the AWS account.

id string

The provider-assigned unique ID for this managed resource.

quotaCode string
quotaName string
serviceCode string
serviceName string

Name of the service.

value number

Current value of the service quota.

adjustable bool

Whether the service quota is adjustable.

arn str

Amazon Resource Name (ARN) of the service quota.

default_value float

Default value of the service quota.

global_quota bool

Whether the service quota is global for the AWS account.

id str

The provider-assigned unique ID for this managed resource.

quota_code str
quota_name str
service_code str
service_name str

Name of the service.

value float

Current value of the service quota.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.