@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
70 lines • 2.74 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServiceQuotaOutput = exports.getServiceQuota = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Retrieve information about a Service Quota.
*
* > **NOTE:** Global quotas apply to all AWS regions, but can only be accessed in `us-east-1` in the Commercial partition or `us-gov-west-1` in the GovCloud partition. In other regions, the AWS API will return the error `The request failed because the specified service does not exist.`
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const byQuotaCode = aws.servicequotas.getServiceQuota({
* quotaCode: "L-F678F1CE",
* serviceCode: "vpc",
* });
* const byQuotaName = aws.servicequotas.getServiceQuota({
* quotaName: "VPCs per Region",
* serviceCode: "vpc",
* });
* ```
*/
function getServiceQuota(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:servicequotas/getServiceQuota:getServiceQuota", {
"quotaCode": args.quotaCode,
"quotaName": args.quotaName,
"region": args.region,
"serviceCode": args.serviceCode,
}, opts);
}
exports.getServiceQuota = getServiceQuota;
/**
* Retrieve information about a Service Quota.
*
* > **NOTE:** Global quotas apply to all AWS regions, but can only be accessed in `us-east-1` in the Commercial partition or `us-gov-west-1` in the GovCloud partition. In other regions, the AWS API will return the error `The request failed because the specified service does not exist.`
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const byQuotaCode = aws.servicequotas.getServiceQuota({
* quotaCode: "L-F678F1CE",
* serviceCode: "vpc",
* });
* const byQuotaName = aws.servicequotas.getServiceQuota({
* quotaName: "VPCs per Region",
* serviceCode: "vpc",
* });
* ```
*/
function getServiceQuotaOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:servicequotas/getServiceQuota:getServiceQuota", {
"quotaCode": args.quotaCode,
"quotaName": args.quotaName,
"region": args.region,
"serviceCode": args.serviceCode,
}, opts);
}
exports.getServiceQuotaOutput = getServiceQuotaOutput;
//# sourceMappingURL=getServiceQuota.js.map