AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.servicequotas.getService
Explore with Pulumi AI
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:
- ServiceName string
- Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
- ServiceName string
- Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
- serviceName String
- Service name to lookup within Service Quotas. Available values can be found with the AWS CLI service-quotas list-services command.
- serviceName 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.
- serviceName 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.
- ServiceCode string
- Code of the service.
- ServiceName string
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceCode string
- Code of the service.
- ServiceName string
- id String
- The provider-assigned unique ID for this managed resource.
- serviceCode String
- Code of the service.
- serviceName String
- id string
- The provider-assigned unique ID for this managed resource.
- serviceCode string
- Code of the service.
- serviceName 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.
- serviceCode String
- Code of the service.
- serviceName String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.