Package com.pulumi.aws.msk
Class VpcConnection
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.msk.VpcConnection
-
public class VpcConnection extends com.pulumi.resources.CustomResource
Resource for managing an AWS Managed Streaming for Kafka VPC Connection. ## Example Usage <!--Start PulumiCodeChooser -->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(testAwsVpc.id()) .clientSubnets(testAwsSubnet.stream().map(element -> element.id()).collect(toList())) .securityGroups(testAwsSecurityGroup.id()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description VpcConnection(java.lang.String name)
VpcConnection(java.lang.String name, VpcConnectionArgs args)
VpcConnection(java.lang.String name, VpcConnectionArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
arn()
com.pulumi.core.Output<java.lang.String>
authentication()
com.pulumi.core.Output<java.util.List<java.lang.String>>
clientSubnets()
static VpcConnection
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VpcConnectionState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.List<java.lang.String>>
securityGroups()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>
tagsAll()
com.pulumi.core.Output<java.lang.String>
targetClusterArn()
com.pulumi.core.Output<java.lang.String>
vpcId()
-
-
-
Constructor Detail
-
VpcConnection
public VpcConnection(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
VpcConnection
public VpcConnection(java.lang.String name, VpcConnectionArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
VpcConnection
public VpcConnection(java.lang.String name, VpcConnectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- Amazon Resource Name (ARN) of the VPC connection.
-
authentication
public com.pulumi.core.Output<java.lang.String> authentication()
- Returns:
- The authentication type for the client VPC connection. Specify one of these auth type strings: SASL_IAM, SASL_SCRAM, or TLS.
-
clientSubnets
public com.pulumi.core.Output<java.util.List<java.lang.String>> clientSubnets()
- Returns:
- The list of subnets in the client VPC to connect to.
-
securityGroups
public com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroups()
- Returns:
- The security groups to attach to the ENIs for the broker nodes.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- 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.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
-
targetClusterArn
public com.pulumi.core.Output<java.lang.String> targetClusterArn()
- Returns:
- The Amazon Resource Name (ARN) of the cluster.
-
vpcId
public com.pulumi.core.Output<java.lang.String> vpcId()
- Returns:
- The VPC ID of the remote client.
-
get
public static VpcConnection get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable VpcConnectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-