ServiceNetworkResourceAssociation

class ServiceNetworkResourceAssociation : KotlinCustomResource

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

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ServiceNetworkResourceAssociation("example", {
resourceConfigurationIdentifier: exampleAwsVpclatticeResourceConfiguration.id,
serviceNetworkIdentifier: exampleAwsVpclatticeServiceNetwork.id,
tags: {
Name: "Example",
},
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ServiceNetworkResourceAssociation("example",
resource_configuration_identifier=example_aws_vpclattice_resource_configuration["id"],
service_network_identifier=example_aws_vpclattice_service_network["id"],
tags={
"Name": "Example",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.ServiceNetworkResourceAssociation("example", new()
{
ResourceConfigurationIdentifier = exampleAwsVpclatticeResourceConfiguration.Id,
ServiceNetworkIdentifier = exampleAwsVpclatticeServiceNetwork.Id,
Tags =
{
{ "Name", "Example" },
},
});
});
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.NewServiceNetworkResourceAssociation(ctx, "example", &vpclattice.ServiceNetworkResourceAssociationArgs{
ResourceConfigurationIdentifier: pulumi.Any(exampleAwsVpclatticeResourceConfiguration.Id),
ServiceNetworkIdentifier: pulumi.Any(exampleAwsVpclatticeServiceNetwork.Id),
Tags: pulumi.StringMap{
"Name": pulumi.String("Example"),
},
})
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.ServiceNetworkResourceAssociation;
import com.pulumi.aws.vpclattice.ServiceNetworkResourceAssociationArgs;
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 ServiceNetworkResourceAssociation("example", ServiceNetworkResourceAssociationArgs.builder()
.resourceConfigurationIdentifier(exampleAwsVpclatticeResourceConfiguration.id())
.serviceNetworkIdentifier(exampleAwsVpclatticeServiceNetwork.id())
.tags(Map.of("Name", "Example"))
.build());
}
}
resources:
example:
type: aws:vpclattice:ServiceNetworkResourceAssociation
properties:
resourceConfigurationIdentifier: ${exampleAwsVpclatticeResourceConfiguration.id}
serviceNetworkIdentifier: ${exampleAwsVpclatticeServiceNetwork.id}
tags:
Name: Example

Import

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

$ pulumi import aws:vpclattice/serviceNetworkResourceAssociation:ServiceNetworkResourceAssociation example snra-1234567890abcef12

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the Service Network Resource Association.

Link copied to clipboard

DNS entry of the association in the service network.

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

Identifier of Resource Configuration to associate to the Service Network.

Link copied to clipboard

Identifier of the Service Network to associate the Resource to. The following arguments are optional:

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

Map of tags assigned to the resource. 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
Link copied to clipboard
val urn: Output<String>