VpcConnection

class VpcConnection : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the VPC connection.

Link copied to clipboard
val authentication: Output<String>

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

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

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
val securityGroups: Output<List<String>>

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

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

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

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

Link copied to clipboard

The Amazon Resource Name (ARN) of the cluster.

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

The VPC ID of the remote client.