get Service Network
Data source for managing an AWS VPC Lattice Service Network.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.vpclattice.getServiceNetwork({
serviceNetworkIdentifier: "snsa-01112223334445556",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.get_service_network(service_network_identifier="snsa-01112223334445556")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.VpcLattice.GetServiceNetwork.Invoke(new()
{
ServiceNetworkIdentifier = "snsa-01112223334445556",
});
});
Content copied to clipboard
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.LookupServiceNetwork(ctx, &vpclattice.LookupServiceNetworkArgs{
ServiceNetworkIdentifier: "snsa-01112223334445556",
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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.GetServiceNetworkArgs;
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.getServiceNetwork(GetServiceNetworkArgs.builder()
.serviceNetworkIdentifier("snsa-01112223334445556")
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: aws:vpclattice:getServiceNetwork
arguments:
serviceNetworkIdentifier: snsa-01112223334445556
Content copied to clipboard
Return
A collection of values returned by getServiceNetwork.
Parameters
argument
A collection of arguments for invoking getServiceNetwork.
suspend fun getServiceNetwork(serviceNetworkIdentifier: String, tags: Map<String, String>? = null): GetServiceNetworkResult
Return
A collection of values returned by getServiceNetwork.
Parameters
service Network Identifier
Identifier of the service network.
tags
See also
suspend fun getServiceNetwork(argument: suspend GetServiceNetworkPlainArgsBuilder.() -> Unit): GetServiceNetworkResult
Return
A collection of values returned by getServiceNetwork.
Parameters
argument
Builder for com.pulumi.aws.vpclattice.kotlin.inputs.GetServiceNetworkPlainArgs.