Service Network Service Association Args
    data class ServiceNetworkServiceAssociationArgs(val serviceIdentifier: Output<String>? = null, val serviceNetworkIdentifier: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceNetworkServiceAssociationArgs> 
Resource for managing an AWS VPC Lattice Service Network Service Association.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ServiceNetworkServiceAssociation("example", {
    serviceIdentifier: exampleAwsVpclatticeService.id,
    serviceNetworkIdentifier: exampleAwsVpclatticeServiceNetwork.id,
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ServiceNetworkServiceAssociation("example",
    service_identifier=example_aws_vpclattice_service["id"],
    service_network_identifier=example_aws_vpclattice_service_network["id"])Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
    var example = new Aws.VpcLattice.ServiceNetworkServiceAssociation("example", new()
    {
        ServiceIdentifier = exampleAwsVpclatticeService.Id,
        ServiceNetworkIdentifier = exampleAwsVpclatticeServiceNetwork.Id,
    });
});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.NewServiceNetworkServiceAssociation(ctx, "example", &vpclattice.ServiceNetworkServiceAssociationArgs{
			ServiceIdentifier:        pulumi.Any(exampleAwsVpclatticeService.Id),
			ServiceNetworkIdentifier: pulumi.Any(exampleAwsVpclatticeServiceNetwork.Id),
		})
		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.ServiceNetworkServiceAssociation;
import com.pulumi.aws.vpclattice.ServiceNetworkServiceAssociationArgs;
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) {
        var example = new ServiceNetworkServiceAssociation("example", ServiceNetworkServiceAssociationArgs.builder()
            .serviceIdentifier(exampleAwsVpclatticeService.id())
            .serviceNetworkIdentifier(exampleAwsVpclatticeServiceNetwork.id())
            .build());
    }
}Content copied to clipboard
resources:
  example:
    type: aws:vpclattice:ServiceNetworkServiceAssociation
    properties:
      serviceIdentifier: ${exampleAwsVpclatticeService.id}
      serviceNetworkIdentifier: ${exampleAwsVpclatticeServiceNetwork.id}Content copied to clipboard
Import
Using pulumi import, import VPC Lattice Service Network Service Association using the id. For example:
$ pulumi import aws:vpclattice/serviceNetworkServiceAssociation:ServiceNetworkServiceAssociation example snsa-05e2474658a88f6baContent copied to clipboard