1. Packages
  2. AWS
  3. API Docs
  4. vpclattice
  5. getServiceNetwork
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.vpclattice.getServiceNetwork

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:vpclattice/getServiceNetwork:getServiceNetwork
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceNetworkIdentifier string
    Identifier of the service network.
    Tags Dictionary<string, string>
    ServiceNetworkIdentifier string
    Identifier of the service network.
    Tags map[string]string
    serviceNetworkIdentifier String
    Identifier of the service network.
    tags Map<String,String>
    serviceNetworkIdentifier string
    Identifier of the service network.
    tags {[key: string]: string}
    service_network_identifier str
    Identifier of the service network.
    tags Mapping[str, str]
    serviceNetworkIdentifier String
    Identifier of the service network.
    tags 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 NONE or AWS_IAM.
    CreatedAt string
    Date and time the service network was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedAt string
    Date and time the service network was last updated.
    Name string
    Name of the service network.
    NumberOfAssociatedServices int
    Number of services associated with this service network.
    NumberOfAssociatedVpcs int
    Number of VPCs associated with this service network.
    ServiceNetworkIdentifier string
    Tags Dictionary<string, string>
    Arn string
    ARN of the Service Network.
    AuthType string
    Authentication type for the service network. Either NONE or AWS_IAM.
    CreatedAt string
    Date and time the service network was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedAt string
    Date and time the service network was last updated.
    Name string
    Name of the service network.
    NumberOfAssociatedServices int
    Number of services associated with this service network.
    NumberOfAssociatedVpcs int
    Number of VPCs associated with this service network.
    ServiceNetworkIdentifier string
    Tags map[string]string
    arn String
    ARN of the Service Network.
    authType String
    Authentication type for the service network. Either NONE or AWS_IAM.
    createdAt String
    Date and time the service network was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt String
    Date and time the service network was last updated.
    name String
    Name of the service network.
    numberOfAssociatedServices Integer
    Number of services associated with this service network.
    numberOfAssociatedVpcs Integer
    Number of VPCs associated with this service network.
    serviceNetworkIdentifier String
    tags Map<String,String>
    arn string
    ARN of the Service Network.
    authType string
    Authentication type for the service network. Either NONE or AWS_IAM.
    createdAt string
    Date and time the service network was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt string
    Date and time the service network was last updated.
    name string
    Name of the service network.
    numberOfAssociatedServices number
    Number of services associated with this service network.
    numberOfAssociatedVpcs number
    Number of VPCs associated with this service network.
    serviceNetworkIdentifier string
    tags {[key: string]: string}
    arn str
    ARN of the Service Network.
    auth_type str
    Authentication type for the service network. Either NONE or AWS_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_at str
    Date and time the service network was last updated.
    name str
    Name of the service network.
    number_of_associated_services int
    Number of services associated with this service network.
    number_of_associated_vpcs int
    Number of VPCs associated with this service network.
    service_network_identifier str
    tags Mapping[str, str]
    arn String
    ARN of the Service Network.
    authType String
    Authentication type for the service network. Either NONE or AWS_IAM.
    createdAt String
    Date and time the service network was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt String
    Date and time the service network was last updated.
    name String
    Name of the service network.
    numberOfAssociatedServices Number
    Number of services associated with this service network.
    numberOfAssociatedVpcs Number
    Number of VPCs associated with this service network.
    serviceNetworkIdentifier String
    tags Map<String>

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi