ServiceNetworkServiceAssociationArgs

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

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(aws_vpclattice_service.example().id())
.serviceNetworkIdentifier(aws_vpclattice_service_network.example().id())
.build());
}
}

Import

VPC Lattice Service Network Service Association can be imported using the id, e.g.,

$ pulumi import aws:vpclattice/serviceNetworkServiceAssociation:ServiceNetworkServiceAssociation example snsa-05e2474658a88f6ba

Constructors

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

Properties

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

The ID or Amazon Resource Identifier (ARN) of the service.

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.

Functions

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