getService

Data source for managing an AWS VPC Lattice Service.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.vpclattice.getService({
name: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.get_service(name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.VpcLattice.GetService.Invoke(new()
{
Name = "example",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpclattice.LookupService(ctx, &vpclattice.LookupServiceArgs{
Name: pulumi.StringRef("example"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpclattice.VpclatticeFunctions;
import com.pulumi.aws.vpclattice.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 = VpclatticeFunctions.getService(GetServiceArgs.builder()
.name("example")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:vpclattice:getService
arguments:
name: example

Return

A collection of values returned by getService.

Parameters

argument

A collection of arguments for invoking getService.


suspend fun getService(name: String? = null, serviceIdentifier: String? = null, tags: Map<String, String>? = null): GetServiceResult

Return

A collection of values returned by getService.

Parameters

name

Service name.

serviceIdentifier

ID or Amazon Resource Name (ARN) of the service.

tags

List of tags associated with the service.

See also


suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult

Return

A collection of values returned by getService.

Parameters

argument

Builder for com.pulumi.aws.vpclattice.kotlin.inputs.GetServicePlainArgs.

See also