ServiceNetworkVpcAssociationArgs

data class ServiceNetworkVpcAssociationArgs(val securityGroupIds: Output<List<String>>? = null, val serviceNetworkIdentifier: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vpcIdentifier: Output<String>? = null) : ConvertibleToJava<ServiceNetworkVpcAssociationArgs>

Resource for managing an AWS VPC Lattice Service Network VPC Association.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ServiceNetworkVpcAssociation("example", {
vpcIdentifier: exampleAwsVpc.id,
serviceNetworkIdentifier: exampleAwsVpclatticeServiceNetwork.id,
securityGroupIds: [exampleAwsSecurityGroup&#46;id],
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ServiceNetworkVpcAssociation("example",
vpc_identifier=example_aws_vpc["id"],
service_network_identifier=example_aws_vpclattice_service_network["id"],
security_group_ids=[example_aws_security_group["id"]])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.ServiceNetworkVpcAssociation("example", new()
{
VpcIdentifier = exampleAwsVpc.Id,
ServiceNetworkIdentifier = exampleAwsVpclatticeServiceNetwork.Id,
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
});
});
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.NewServiceNetworkVpcAssociation(ctx, "example", &vpclattice.ServiceNetworkVpcAssociationArgs{
VpcIdentifier: pulumi.Any(exampleAwsVpc.Id),
ServiceNetworkIdentifier: pulumi.Any(exampleAwsVpclatticeServiceNetwork.Id),
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpclattice.ServiceNetworkVpcAssociation;
import com.pulumi.aws.vpclattice.ServiceNetworkVpcAssociationArgs;
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 ServiceNetworkVpcAssociation("example", ServiceNetworkVpcAssociationArgs.builder()
.vpcIdentifier(exampleAwsVpc.id())
.serviceNetworkIdentifier(exampleAwsVpclatticeServiceNetwork.id())
.securityGroupIds(exampleAwsSecurityGroup.id())
.build());
}
}
resources:
example:
type: aws:vpclattice:ServiceNetworkVpcAssociation
properties:
vpcIdentifier: ${exampleAwsVpc.id}
serviceNetworkIdentifier: ${exampleAwsVpclatticeServiceNetwork.id}
securityGroupIds:
- ${exampleAwsSecurityGroup.id}

Import

Using pulumi import, import VPC Lattice Service Network VPC Association using the id. For example:

$ pulumi import aws:vpclattice/serviceNetworkVpcAssociation:ServiceNetworkVpcAssociation example snsa-05e2474658a88f6ba

Constructors

Link copied to clipboard
constructor(securityGroupIds: Output<List<String>>? = null, serviceNetworkIdentifier: Output<String>? = null, tags: Output<Map<String, String>>? = null, vpcIdentifier: Output<String>? = null)

Properties

Link copied to clipboard
val securityGroupIds: Output<List<String>>? = null

The IDs of the security groups.

Link copied to clipboard
val serviceNetworkIdentifier: Output<String>? = null

The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val vpcIdentifier: Output<String>? = null

The ID of the VPC.

Functions

Link copied to clipboard
open override fun toJava(): ServiceNetworkVpcAssociationArgs