GetService
Retrieve information about a Service Quotas Service.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.ServiceQuotas.GetService.InvokeAsync(new Aws.ServiceQuotas.GetServiceArgs
{
ServiceName = "Amazon Virtual Private Cloud (Amazon 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 {
_, err := servicequotas.GetService(ctx, &servicequotas.GetServiceArgs{
ServiceName: "Amazon Virtual Private Cloud (Amazon VPC)",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.servicequotas.get_service(service_name="Amazon Virtual Private Cloud (Amazon VPC)")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.servicequotas.getService({
serviceName: "Amazon Virtual Private Cloud (Amazon VPC)",
}, { async: true }));Using GetService
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>function get_service(service_name=None, opts=None)func GetService(ctx *Context, args *GetServiceArgs, opts ...InvokeOption) (*GetServiceResult, error)public static class GetService {
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
}The 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 str 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 str
The provider-assigned unique ID for this managed resource.
- service_
code str Code of the service.
- service_
name str
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.