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
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());
}
}
Content copied to clipboard
Import
VPC Lattice Service Network Service Association can be imported using the id
, e.g.,
$ pulumi import aws:vpclattice/serviceNetworkServiceAssociation:ServiceNetworkServiceAssociation example snsa-05e2474658a88f6ba
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The ID or Amazon Resource Identifier (ARN) of the service.
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: