VpcConnectionArgs

data class VpcConnectionArgs(val authentication: Output<String>? = null, val clientSubnets: Output<List<String>>? = null, val securityGroups: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null, val targetClusterArn: Output<String>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<VpcConnectionArgs>

Resource for managing an AWS Managed Streaming for Kafka VPC Connection.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.msk.VpcConnection;
import com.pulumi.aws.msk.VpcConnectionArgs;
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 test = new VpcConnection("test", VpcConnectionArgs.builder()
.authentication("SASL_IAM")
.targetClusterArn("aws_msk_cluster.arn")
.vpcId(aws_vpc.test().id())
.clientSubnets(aws_subnet.test().stream().map(element -> element.id()).collect(toList()))
.securityGroups(aws_security_group.test().id())
.build());
}
}

Import

Using pulumi import, import MSK configurations using the configuration ARN. For example:

$ pulumi import aws:msk/vpcConnection:VpcConnection example arn:aws:kafka:eu-west-2:123456789012:vpc-connection/123456789012/example/38173259-79cd-4ee8-87f3-682ea6023f48-2

Constructors

Link copied to clipboard
fun VpcConnectionArgs(authentication: Output<String>? = null, clientSubnets: Output<List<String>>? = null, securityGroups: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null, targetClusterArn: Output<String>? = null, vpcId: Output<String>? = null)

Functions

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

Properties

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

The authentication type for the client VPC connection. Specify one of these auth type strings: SASL_IAM, SASL_SCRAM, or TLS.

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

The list of subnets in the client VPC to connect to.

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

The security groups to attach to the ENIs for the broker nodes.

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

A map of tags to assign 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 targetClusterArn: Output<String>? = null

The Amazon Resource Name (ARN) of the cluster.

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

The VPC ID of the remote client.