Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi
published on Thursday, Aug 20, 2026 by Pulumi
Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi
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 dictionarydata "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.
- Service
Identifier string - ID or ARN of the VPC Lattice Service for which you want to list the Service Network Service Associations. Use either
serviceIdentifierorserviceNetworkIdentifierbut not both. - Service
Network stringIdentifier - ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either
serviceNetworkIdentifierorserviceIdentifierbut 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
serviceIdentifierorserviceNetworkIdentifierbut not both. - Service
Network stringIdentifier - ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either
serviceNetworkIdentifierorserviceIdentifierbut 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
serviceIdentifierorserviceNetworkIdentifierbut not both. - service_
network_ stringidentifier - ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either
serviceNetworkIdentifierorserviceIdentifierbut 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
serviceIdentifierorserviceNetworkIdentifierbut not both. - service
Network StringIdentifier - ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either
serviceNetworkIdentifierorserviceIdentifierbut 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
serviceIdentifierorserviceNetworkIdentifierbut not both. - service
Network stringIdentifier - ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either
serviceNetworkIdentifierorserviceIdentifierbut 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
serviceIdentifierorserviceNetworkIdentifierbut not both. - service_
network_ stridentifier - ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either
serviceNetworkIdentifierorserviceIdentifierbut 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
serviceIdentifierorserviceNetworkIdentifierbut not both. - service
Network StringIdentifier - ID or ARN of the VPC Lattice Service Network for which you want to list the Service Network Service Associations. Use either
serviceNetworkIdentifierorserviceIdentifierbut not both.
getServiceNetworkServiceAssociations Result
The following output properties are available:
- Items
List<Get
Service Network Service Associations Item> - List of objects containing Service Network Service Associations. Each object has the following attributes:
- Region string
- Service
Identifier string - Service
Network stringIdentifier
- Items
[]Get
Service Network Service Associations Item - List of objects containing Service Network Service Associations. Each object has the following attributes:
- Region string
- Service
Identifier string - Service
Network stringIdentifier
- items list(object)
- List of objects containing Service Network Service Associations. Each object has the following attributes:
- region string
- service_
identifier string - service_
network_ stringidentifier
- items
List<Get
Service Network Service Associations Item> - List of objects containing Service Network Service Associations. Each object has the following attributes:
- region String
- service
Identifier String - service
Network StringIdentifier
- items
Get
Service Network Service Associations Item[] - List of objects containing Service Network Service Associations. Each object has the following attributes:
- region string
- service
Identifier string - service
Network stringIdentifier
- items
Sequence[Get
Service Network Service Associations Item] - List of objects containing Service Network Service Associations. Each object has the following attributes:
- region str
- service_
identifier str - service_
network_ stridentifier
- items List<Property Map>
- List of objects containing Service Network Service Associations. Each object has the following attributes:
- region String
- service
Identifier String - service
Network StringIdentifier
Supporting Types
GetServiceNetworkServiceAssociationsItem
- 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 stringName - Custom domain name of the service.
- Dns
Entries List<GetService Network Service Associations Item Dns Entry> - 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 stringArn - ARN of the service network the service is associated with.
- Service
Network stringId - ID of the service network the service is associated with.
- Service
Network stringName - 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, orDELETE_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 stringName - Custom domain name of the service.
- Dns
Entries []GetService Network Service Associations Item Dns Entry - 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 stringArn - ARN of the service network the service is associated with.
- Service
Network stringId - ID of the service network the service is associated with.
- Service
Network stringName - 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, orDELETE_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_ stringname - 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_ stringarn - ARN of the service network the service is associated with.
- service_
network_ stringid - ID of the service network the service is associated with.
- service_
network_ stringname - 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, orDELETE_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 StringName - Custom domain name of the service.
- dns
Entries List<GetService Network Service Associations Item Dns Entry> - 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 StringArn - ARN of the service network the service is associated with.
- service
Network StringId - ID of the service network the service is associated with.
- service
Network StringName - 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, orDELETE_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 stringName - Custom domain name of the service.
- dns
Entries GetService Network Service Associations Item Dns Entry[] - 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 stringArn - ARN of the service network the service is associated with.
- service
Network stringId - ID of the service network the service is associated with.
- service
Network stringName - 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, orDELETE_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_ strname - Custom domain name of the service.
- dns_
entries Sequence[GetService Network Service Associations Item Dns Entry] - 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_ strarn - ARN of the service network the service is associated with.
- service_
network_ strid - ID of the service network the service is associated with.
- service_
network_ strname - 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, orDELETE_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 StringName - Custom domain name of the service.
- dns
Entries List<Property Map> - 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 StringArn - ARN of the service network the service is associated with.
- service
Network StringId - ID of the service network the service is associated with.
- service
Network StringName - 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, orDELETE_FAILED.
GetServiceNetworkServiceAssociationsItemDnsEntry
- Domain
Name string - Domain name of the service.
- Hosted
Zone stringId - ID of the hosted zone.
- Domain
Name string - Domain name of the service.
- Hosted
Zone stringId - ID of the hosted zone.
- domain_
name string - Domain name of the service.
- hosted_
zone_ stringid - ID of the hosted zone.
- domain
Name String - Domain name of the service.
- hosted
Zone StringId - ID of the hosted zone.
- domain
Name string - Domain name of the service.
- hosted
Zone stringId - ID of the hosted zone.
- domain_
name str - Domain name of the service.
- hosted_
zone_ strid - ID of the hosted zone.
- domain
Name String - Domain name of the service.
- hosted
Zone StringId - 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
awsTerraform Provider.
Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi
published on Thursday, Aug 20, 2026 by Pulumi