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
LookupServiceQuotain the Go SDK.
public static class GetServiceQuota {
public static Task<GetServiceQuotaResult> InvokeAsync(GetServiceQuotaArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Service
Code string Service code for the quota. Available values can be found with the
aws.servicequotas.getServicedata source or AWS CLI service-quotas list-services command.- Quota
Code 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.
- Quota
Name 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 string Service code for the quota. Available values can be found with the
aws.servicequotas.getServicedata source or AWS CLI service-quotas list-services command.- Quota
Code 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.
- Quota
Name 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 string Service code for the quota. Available values can be found with the
aws.servicequotas.getServicedata source or AWS CLI service-quotas list-services command.- quota
Code 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.
- quota
Name 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.getServicedata 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.
- Default
Value double Default value of the service quota.
- Global
Quota bool Whether the service quota is global for the AWS account.
- Id string
The provider-assigned unique ID for this managed resource.
- Quota
Code string - Quota
Name string - Service
Code string - Service
Name 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.
- Default
Value float64 Default value of the service quota.
- Global
Quota bool Whether the service quota is global for the AWS account.
- Id string
The provider-assigned unique ID for this managed resource.
- Quota
Code string - Quota
Name string - Service
Code string - Service
Name 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.
- default
Value number Default value of the service quota.
- global
Quota boolean Whether the service quota is global for the AWS account.
- id string
The provider-assigned unique ID for this managed resource.
- quota
Code string - quota
Name string - service
Code string - service
Name 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
awsTerraform Provider.