1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. vpclattice
  6. getServiceNetworkServiceAssociations
Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi

    Data source for listing AWS VPC Lattice Service Network Service Associations.

    Example Usage

    By Service Network Identifier

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const testSn = aws.vpclattice.getServiceNetworkServiceAssociations({
        serviceNetworkIdentifier: testSnAwsVpclatticeServiceNetwork.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test_sn = aws.vpclattice.get_service_network_service_associations(service_network_identifier=test_sn_aws_vpclattice_service_network["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/vpclattice"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vpclattice.GetServiceNetworkServiceAssociations(ctx, &vpclattice.GetServiceNetworkServiceAssociationsArgs{
    			ServiceNetworkIdentifier: pulumi.StringRef(testSnAwsVpclatticeServiceNetwork.Id),
    		}, 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 testSn = Aws.VpcLattice.GetServiceNetworkServiceAssociations.Invoke(new()
        {
            ServiceNetworkIdentifier = testSnAwsVpclatticeServiceNetwork.Id,
        });
    
    });
    
    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.GetServiceNetworkServiceAssociationsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testSn = VpclatticeFunctions.getServiceNetworkServiceAssociations(GetServiceNetworkServiceAssociationsArgs.builder()
                .serviceNetworkIdentifier(testSnAwsVpclatticeServiceNetwork.id())
                .build());
    
        }
    }
    
    variables:
      testSn:
        fn::invoke:
          function: aws:vpclattice:getServiceNetworkServiceAssociations
          arguments:
            serviceNetworkIdentifier: ${testSnAwsVpclatticeServiceNetwork.id}
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_vpclattice_getservicenetworkserviceassociations" "testSn" {
      service_network_identifier = testSnAwsVpclatticeServiceNetwork.id
    }
    

    By Service Identifier

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const testSvc = aws.vpclattice.getServiceNetworkServiceAssociations({
        serviceIdentifier: testSvcAwsVpclatticeService.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test_svc = aws.vpclattice.get_service_network_service_associations(service_identifier=test_svc_aws_vpclattice_service["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/vpclattice"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vpclattice.GetServiceNetworkServiceAssociations(ctx, &vpclattice.GetServiceNetworkServiceAssociationsArgs{
    			ServiceIdentifier: pulumi.StringRef(testSvcAwsVpclatticeService.Id),
    		}, 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 testSvc = Aws.VpcLattice.GetServiceNetworkServiceAssociations.Invoke(new()
        {
            ServiceIdentifier = testSvcAwsVpclatticeService.Id,
        });
    
    });
    
    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.GetServiceNetworkServiceAssociationsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testSvc = VpclatticeFunctions.getServiceNetworkServiceAssociations(GetServiceNetworkServiceAssociationsArgs.builder()
                .serviceIdentifier(testSvcAwsVpclatticeService.id())
                .build());
    
        }
    }
    
    variables:
      testSvc:
        fn::invoke:
          function: aws:vpclattice:getServiceNetworkServiceAssociations
          arguments:
            serviceIdentifier: ${testSvcAwsVpclatticeService.id}
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_vpclattice_getservicenetworkserviceassociations" "testSvc" {
      service_identifier = testSvcAwsVpclatticeService.id
    }
    

    Using getServiceNetworkServiceAssociations

    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 getServiceNetworkServiceAssociations(args: GetServiceNetworkServiceAssociationsArgs, opts?: InvokeOptions): Promise<GetServiceNetworkServiceAssociationsResult>
    function getServiceNetworkServiceAssociationsOutput(args: GetServiceNetworkServiceAssociationsOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceNetworkServiceAssociationsResult>
    def get_service_network_service_associations(region: Optional[str] = None,
                                                 service_identifier: Optional[str] = None,
                                                 service_network_identifier: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetServiceNetworkServiceAssociationsResult
    def get_service_network_service_associations_output(region: pulumi.Input[Optional[str]] = None,
                                                 service_identifier: pulumi.Input[Optional[str]] = None,
                                                 service_network_identifier: pulumi.Input[Optional[str]] = None,
                                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceNetworkServiceAssociationsResult]
    func GetServiceNetworkServiceAssociations(ctx *Context, args *GetServiceNetworkServiceAssociationsArgs, opts ...InvokeOption) (*GetServiceNetworkServiceAssociationsResult, error)
    func GetServiceNetworkServiceAssociationsOutput(ctx *Context, args *GetServiceNetworkServiceAssociationsOutputArgs, opts ...InvokeOption) GetServiceNetworkServiceAssociationsResultOutput

    > Note: This function is named GetServiceNetworkServiceAssociations in the Go SDK.

    public static class GetServiceNetworkServiceAssociations 
    {
        public static Task<GetServiceNetworkServiceAssociationsResult> InvokeAsync(GetServiceNetworkServiceAssociationsArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceNetworkServiceAssociationsResult> Invoke(GetServiceNetworkServiceAssociationsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceNetworkServiceAssociationsResult> Invoke(GetServiceNetworkServiceAssociationsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceNetworkServiceAssociationsResult> getServiceNetworkServiceAssociations(GetServiceNetworkServiceAssociationsArgs args, InvokeOptions options)
    public static Output<GetServiceNetworkServiceAssociationsResult> getServiceNetworkServiceAssociations(GetServiceNetworkServiceAssociationsArgs args, InvokeOptions options)
    public static Output<GetServiceNetworkServiceAssociationsResult> getServiceNetworkServiceAssociations(GetServiceNetworkServiceAssociationsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws:vpclattice/getServiceNetworkServiceAssociations:getServiceNetworkServiceAssociations
      arguments:
        # arguments dictionary
    data "aws_vpclattice_get_service_network_service_associations" "name" {
        # arguments
    }

    The following arguments are supported:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ServiceIdentifier string
    ID or ARN of the VPC Lattice Service for which you want to list the Service Network Service Associations. Use either serviceIdentifier or serviceNetworkIdentifier but not both.
    ServiceNetworkIdentifier string
    ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either serviceNetworkIdentifier or serviceIdentifier but not both.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ServiceIdentifier string
    ID or ARN of the VPC Lattice Service for which you want to list the Service Network Service Associations. Use either serviceIdentifier or serviceNetworkIdentifier but not both.
    ServiceNetworkIdentifier string
    ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either serviceNetworkIdentifier or serviceIdentifier but not both.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    service_identifier string
    ID or ARN of the VPC Lattice Service for which you want to list the Service Network Service Associations. Use either serviceIdentifier or serviceNetworkIdentifier but not both.
    service_network_identifier string
    ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either serviceNetworkIdentifier or serviceIdentifier but not both.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceIdentifier String
    ID or ARN of the VPC Lattice Service for which you want to list the Service Network Service Associations. Use either serviceIdentifier or serviceNetworkIdentifier but not both.
    serviceNetworkIdentifier String
    ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either serviceNetworkIdentifier or serviceIdentifier but not both.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceIdentifier string
    ID or ARN of the VPC Lattice Service for which you want to list the Service Network Service Associations. Use either serviceIdentifier or serviceNetworkIdentifier but not both.
    serviceNetworkIdentifier string
    ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either serviceNetworkIdentifier or serviceIdentifier but not both.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    service_identifier str
    ID or ARN of the VPC Lattice Service for which you want to list the Service Network Service Associations. Use either serviceIdentifier or serviceNetworkIdentifier but not both.
    service_network_identifier str
    ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either serviceNetworkIdentifier or serviceIdentifier but not both.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    serviceIdentifier String
    ID or ARN of the VPC Lattice Service for which you want to list the Service Network Service Associations. Use either serviceIdentifier or serviceNetworkIdentifier but not both.
    serviceNetworkIdentifier String
    ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either serviceNetworkIdentifier or serviceIdentifier but not both.

    getServiceNetworkServiceAssociations Result

    The following output properties are available:

    Items List<GetServiceNetworkServiceAssociationsItem>
    List of objects containing Service Network Service Associations. Each object has the following attributes:
    Region string
    ServiceIdentifier string
    ServiceNetworkIdentifier string
    Items []GetServiceNetworkServiceAssociationsItem
    List of objects containing Service Network Service Associations. Each object has the following attributes:
    Region string
    ServiceIdentifier string
    ServiceNetworkIdentifier string
    items list(object)
    List of objects containing Service Network Service Associations. Each object has the following attributes:
    region string
    service_identifier string
    service_network_identifier string
    items List<GetServiceNetworkServiceAssociationsItem>
    List of objects containing Service Network Service Associations. Each object has the following attributes:
    region String
    serviceIdentifier String
    serviceNetworkIdentifier String
    items GetServiceNetworkServiceAssociationsItem[]
    List of objects containing Service Network Service Associations. Each object has the following attributes:
    region string
    serviceIdentifier string
    serviceNetworkIdentifier string
    items Sequence[GetServiceNetworkServiceAssociationsItem]
    List of objects containing Service Network Service Associations. Each object has the following attributes:
    region str
    service_identifier str
    service_network_identifier str
    items List<Property Map>
    List of objects containing Service Network Service Associations. Each object has the following attributes:
    region String
    serviceIdentifier String
    serviceNetworkIdentifier String

    Supporting Types

    GetServiceNetworkServiceAssociationsItem

    Arn string
    ARN of the association.
    CreatedAt string
    Date and time the association was created, in RFC 3339 format.
    CreatedBy string
    Account that created the association.
    CustomDomainName string
    Custom domain name of the service.
    DnsEntries List<GetServiceNetworkServiceAssociationsItemDnsEntry>
    List of objects with DNS names.
    Id string
    ID of the association.
    ServiceArn string
    ARN of the associated service.
    ServiceId string
    ID of the associated service.
    ServiceName string
    Name of the associated service.
    ServiceNetworkArn string
    ARN of the service network the service is associated with.
    ServiceNetworkId string
    ID of the service network the service is associated with.
    ServiceNetworkName string
    Name of the service network the service is associated with.
    Status string
    Status of the association. One of CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, or DELETE_FAILED.
    Arn string
    ARN of the association.
    CreatedAt string
    Date and time the association was created, in RFC 3339 format.
    CreatedBy string
    Account that created the association.
    CustomDomainName string
    Custom domain name of the service.
    DnsEntries []GetServiceNetworkServiceAssociationsItemDnsEntry
    List of objects with DNS names.
    Id string
    ID of the association.
    ServiceArn string
    ARN of the associated service.
    ServiceId string
    ID of the associated service.
    ServiceName string
    Name of the associated service.
    ServiceNetworkArn string
    ARN of the service network the service is associated with.
    ServiceNetworkId string
    ID of the service network the service is associated with.
    ServiceNetworkName string
    Name of the service network the service is associated with.
    Status string
    Status of the association. One of CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, or DELETE_FAILED.
    arn string
    ARN of the association.
    created_at string
    Date and time the association was created, in RFC 3339 format.
    created_by string
    Account that created the association.
    custom_domain_name string
    Custom domain name of the service.
    dns_entries list(object)
    List of objects with DNS names.
    id string
    ID of the association.
    service_arn string
    ARN of the associated service.
    service_id string
    ID of the associated service.
    service_name string
    Name of the associated service.
    service_network_arn string
    ARN of the service network the service is associated with.
    service_network_id string
    ID of the service network the service is associated with.
    service_network_name string
    Name of the service network the service is associated with.
    status string
    Status of the association. One of CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, or DELETE_FAILED.
    arn String
    ARN of the association.
    createdAt String
    Date and time the association was created, in RFC 3339 format.
    createdBy String
    Account that created the association.
    customDomainName String
    Custom domain name of the service.
    dnsEntries List<GetServiceNetworkServiceAssociationsItemDnsEntry>
    List of objects with DNS names.
    id String
    ID of the association.
    serviceArn String
    ARN of the associated service.
    serviceId String
    ID of the associated service.
    serviceName String
    Name of the associated service.
    serviceNetworkArn String
    ARN of the service network the service is associated with.
    serviceNetworkId String
    ID of the service network the service is associated with.
    serviceNetworkName String
    Name of the service network the service is associated with.
    status String
    Status of the association. One of CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, or DELETE_FAILED.
    arn string
    ARN of the association.
    createdAt string
    Date and time the association was created, in RFC 3339 format.
    createdBy string
    Account that created the association.
    customDomainName string
    Custom domain name of the service.
    dnsEntries GetServiceNetworkServiceAssociationsItemDnsEntry[]
    List of objects with DNS names.
    id string
    ID of the association.
    serviceArn string
    ARN of the associated service.
    serviceId string
    ID of the associated service.
    serviceName string
    Name of the associated service.
    serviceNetworkArn string
    ARN of the service network the service is associated with.
    serviceNetworkId string
    ID of the service network the service is associated with.
    serviceNetworkName string
    Name of the service network the service is associated with.
    status string
    Status of the association. One of CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, or DELETE_FAILED.
    arn str
    ARN of the association.
    created_at str
    Date and time the association was created, in RFC 3339 format.
    created_by str
    Account that created the association.
    custom_domain_name str
    Custom domain name of the service.
    dns_entries Sequence[GetServiceNetworkServiceAssociationsItemDnsEntry]
    List of objects with DNS names.
    id str
    ID of the association.
    service_arn str
    ARN of the associated service.
    service_id str
    ID of the associated service.
    service_name str
    Name of the associated service.
    service_network_arn str
    ARN of the service network the service is associated with.
    service_network_id str
    ID of the service network the service is associated with.
    service_network_name str
    Name of the service network the service is associated with.
    status str
    Status of the association. One of CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, or DELETE_FAILED.
    arn String
    ARN of the association.
    createdAt String
    Date and time the association was created, in RFC 3339 format.
    createdBy String
    Account that created the association.
    customDomainName String
    Custom domain name of the service.
    dnsEntries List<Property Map>
    List of objects with DNS names.
    id String
    ID of the association.
    serviceArn String
    ARN of the associated service.
    serviceId String
    ID of the associated service.
    serviceName String
    Name of the associated service.
    serviceNetworkArn String
    ARN of the service network the service is associated with.
    serviceNetworkId String
    ID of the service network the service is associated with.
    serviceNetworkName String
    Name of the service network the service is associated with.
    status String
    Status of the association. One of CREATE_IN_PROGRESS, ACTIVE, DELETE_IN_PROGRESS, CREATE_FAILED, or DELETE_FAILED.

    GetServiceNetworkServiceAssociationsItemDnsEntry

    DomainName string
    Domain name of the service.
    HostedZoneId string
    ID of the hosted zone.
    DomainName string
    Domain name of the service.
    HostedZoneId string
    ID of the hosted zone.
    domain_name string
    Domain name of the service.
    hosted_zone_id string
    ID of the hosted zone.
    domainName String
    Domain name of the service.
    hostedZoneId String
    ID of the hosted zone.
    domainName string
    Domain name of the service.
    hostedZoneId string
    ID of the hosted zone.
    domain_name str
    Domain name of the service.
    hosted_zone_id str
    ID of the hosted zone.
    domainName String
    Domain name of the service.
    hostedZoneId String
    ID of the hosted zone.

    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 logo
    Viewing docs for AWS v7.43.0
    published on Thursday, Aug 20, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial