Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Retrieve information about a Service Quotas Service.
NOTE: Global quotas apply to all AWS regions, but can only be accessed in
us-east-1in the Commercial partition orus-gov-west-1in 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 = aws.servicequotas.getService({
serviceName: "Amazon Virtual Private Cloud (Amazon VPC)",
});
import pulumi
import pulumi_aws as aws
example = aws.servicequotas.get_service(service_name="Amazon Virtual Private Cloud (Amazon VPC)")
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.GetService(ctx, &servicequotas.GetServiceArgs{
ServiceName: "Amazon Virtual Private Cloud (Amazon VPC)",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.ServiceQuotas.GetService.Invoke(new()
{
ServiceName = "Amazon Virtual Private Cloud (Amazon VPC)",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicequotas.ServicequotasFunctions;
import com.pulumi.aws.servicequotas.inputs.GetServiceArgs;
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) {
final var example = ServicequotasFunctions.getService(GetServiceArgs.builder()
.serviceName("Amazon Virtual Private Cloud (Amazon VPC)")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:servicequotas:getService
arguments:
serviceName: Amazon Virtual Private Cloud (Amazon VPC)
Using getService
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>def get_service(service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]func GetService(ctx *Context, args *GetServiceArgs, opts ...InvokeOption) (*GetServiceResult, error)
func GetServiceOutput(ctx *Context, args *GetServiceOutputArgs, opts ...InvokeOption) GetServiceResultOutput> Note: This function is named GetService in the Go SDK.
public static class GetService
{
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
fn::invoke:
function: aws:servicequotas/getService:getService
arguments:
# arguments dictionaryThe following arguments are supported:
- Service
Name string - Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
- Service
Name string - Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
- service
Name String - Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
- service
Name string - Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
- service_
name str - Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
- service
Name String - Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
getService Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Code string - Code of the service.
- Service
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Code string - Code of the service.
- Service
Name string
- id String
- The provider-assigned unique ID for this managed resource.
- service
Code String - Code of the service.
- service
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- service
Code string - Code of the service.
- service
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- service_
code str - Code of the service.
- service_
name str
- id String
- The provider-assigned unique ID for this managed resource.
- service
Code String - Code of the service.
- service
Name String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
