AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.vpclattice.getServiceNetwork
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.get_service_network(service_network_identifier="snsa-01112223334445556")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:vpclattice:getServiceNetwork
      arguments:
        serviceNetworkIdentifier: snsa-01112223334445556
Using getServiceNetwork
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 getServiceNetwork(args: GetServiceNetworkArgs, opts?: InvokeOptions): Promise<GetServiceNetworkResult>
function getServiceNetworkOutput(args: GetServiceNetworkOutputArgs, opts?: InvokeOptions): Output<GetServiceNetworkResult>def get_service_network(service_network_identifier: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetServiceNetworkResult
def get_service_network_output(service_network_identifier: Optional[pulumi.Input[str]] = None,
                        tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetServiceNetworkResult]func LookupServiceNetwork(ctx *Context, args *LookupServiceNetworkArgs, opts ...InvokeOption) (*LookupServiceNetworkResult, error)
func LookupServiceNetworkOutput(ctx *Context, args *LookupServiceNetworkOutputArgs, opts ...InvokeOption) LookupServiceNetworkResultOutput> Note: This function is named LookupServiceNetwork in the Go SDK.
public static class GetServiceNetwork 
{
    public static Task<GetServiceNetworkResult> InvokeAsync(GetServiceNetworkArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceNetworkResult> Invoke(GetServiceNetworkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceNetworkResult> getServiceNetwork(GetServiceNetworkArgs args, InvokeOptions options)
public static Output<GetServiceNetworkResult> getServiceNetwork(GetServiceNetworkArgs args, InvokeOptions options)
fn::invoke:
  function: aws:vpclattice/getServiceNetwork:getServiceNetwork
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ServiceNetwork stringIdentifier 
- Identifier of the service network.
- Dictionary<string, string>
- ServiceNetwork stringIdentifier 
- Identifier of the service network.
- map[string]string
- serviceNetwork StringIdentifier 
- Identifier of the service network.
- Map<String,String>
- serviceNetwork stringIdentifier 
- Identifier of the service network.
- {[key: string]: string}
- service_network_ stridentifier 
- Identifier of the service network.
- Mapping[str, str]
- serviceNetwork StringIdentifier 
- Identifier of the service network.
- Map<String>
getServiceNetwork Result
The following output properties are available:
- Arn string
- ARN of the Service Network.
- AuthType string
- Authentication type for the service network. Either NONEorAWS_IAM.
- CreatedAt string
- Date and time the service network was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdated stringAt 
- Date and time the service network was last updated.
- Name string
- Name of the service network.
- NumberOf intAssociated Services 
- Number of services associated with this service network.
- NumberOf intAssociated Vpcs 
- Number of VPCs associated with this service network.
- ServiceNetwork stringIdentifier 
- Dictionary<string, string>
- Arn string
- ARN of the Service Network.
- AuthType string
- Authentication type for the service network. Either NONEorAWS_IAM.
- CreatedAt string
- Date and time the service network was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdated stringAt 
- Date and time the service network was last updated.
- Name string
- Name of the service network.
- NumberOf intAssociated Services 
- Number of services associated with this service network.
- NumberOf intAssociated Vpcs 
- Number of VPCs associated with this service network.
- ServiceNetwork stringIdentifier 
- map[string]string
- arn String
- ARN of the Service Network.
- authType String
- Authentication type for the service network. Either NONEorAWS_IAM.
- createdAt String
- Date and time the service network was created.
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdated StringAt 
- Date and time the service network was last updated.
- name String
- Name of the service network.
- numberOf IntegerAssociated Services 
- Number of services associated with this service network.
- numberOf IntegerAssociated Vpcs 
- Number of VPCs associated with this service network.
- serviceNetwork StringIdentifier 
- Map<String,String>
- arn string
- ARN of the Service Network.
- authType string
- Authentication type for the service network. Either NONEorAWS_IAM.
- createdAt string
- Date and time the service network was created.
- id string
- The provider-assigned unique ID for this managed resource.
- lastUpdated stringAt 
- Date and time the service network was last updated.
- name string
- Name of the service network.
- numberOf numberAssociated Services 
- Number of services associated with this service network.
- numberOf numberAssociated Vpcs 
- Number of VPCs associated with this service network.
- serviceNetwork stringIdentifier 
- {[key: string]: string}
- arn str
- ARN of the Service Network.
- auth_type str
- Authentication type for the service network. Either NONEorAWS_IAM.
- created_at str
- Date and time the service network was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_updated_ strat 
- Date and time the service network was last updated.
- name str
- Name of the service network.
- number_of_ intassociated_ services 
- Number of services associated with this service network.
- number_of_ intassociated_ vpcs 
- Number of VPCs associated with this service network.
- service_network_ stridentifier 
- Mapping[str, str]
- arn String
- ARN of the Service Network.
- authType String
- Authentication type for the service network. Either NONEorAWS_IAM.
- createdAt String
- Date and time the service network was created.
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdated StringAt 
- Date and time the service network was last updated.
- name String
- Name of the service network.
- numberOf NumberAssociated Services 
- Number of services associated with this service network.
- numberOf NumberAssociated Vpcs 
- Number of VPCs associated with this service network.
- serviceNetwork StringIdentifier 
- Map<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.