ServiceNetworkVpcAssociation

class ServiceNetworkVpcAssociation : KotlinCustomResource

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.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

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the Association.

Link copied to clipboard
val createdBy: Output<String>

The account that created the association.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The IDs of the security groups.

Link copied to clipboard

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 status: Output<String>

The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED

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

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 tagsAll: Output<Map<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcIdentifier: Output<String>

The ID of the VPC.