Package com.pulumi.aws.elasticsearch
Class VpcEndpoint
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.elasticsearch.VpcEndpoint
-
public class VpcEndpoint extends com.pulumi.resources.CustomResourceManages an [AWS Elasticsearch VPC Endpoint](https://docs.aws.amazon.com/elasticsearch-service/latest/APIReference/API_CreateVpcEndpoint.html). Creates an Amazon Elasticsearch Service-managed VPC endpoint. ## Example Usage ### Basic Usage
## Import Using `pulumi import`, import Elasticsearch VPC endpoints using the `id`. For example: ```sh $ pulumi import aws:elasticsearch/vpcEndpoint:VpcEndpoint example endpoint-id ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.elasticsearch.VpcEndpoint; import com.pulumi.aws.elasticsearch.VpcEndpointArgs; import com.pulumi.aws.elasticsearch.inputs.VpcEndpointVpcOptionsArgs; import java.util.ArrayList; import java.util.Arrays; 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 foo = new VpcEndpoint("foo", VpcEndpointArgs.builder() .vpcOptions(VpcEndpointVpcOptionsArgs.builder() .securityGroupIds( test.id(), test2.id()) .subnetIds( testAwsSubnet.id(), test2AwsSubnet.id()) .build()) .domainArn(domain1.arn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description VpcEndpoint(java.lang.String name)VpcEndpoint(java.lang.String name, VpcEndpointArgs args)VpcEndpoint(java.lang.String name, VpcEndpointArgs 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>domainArn()com.pulumi.core.Output<java.lang.String>endpoint()static VpcEndpointget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VpcEndpointState 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.lang.String>region()com.pulumi.core.Output<VpcEndpointVpcOptions>vpcOptions()
-
-
-
Constructor Detail
-
VpcEndpoint
public VpcEndpoint(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
VpcEndpoint
public VpcEndpoint(java.lang.String name, VpcEndpointArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
VpcEndpoint
public VpcEndpoint(java.lang.String name, VpcEndpointArgs 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
-
domainArn
public com.pulumi.core.Output<java.lang.String> domainArn()
- Returns:
- ARN of the domain to create the endpoint for
-
endpoint
public com.pulumi.core.Output<java.lang.String> endpoint()
- Returns:
- The connection endpoint ID for connecting to the domain.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
vpcOptions
public com.pulumi.core.Output<VpcEndpointVpcOptions> vpcOptions()
- Returns:
- Options to specify the subnets and security groups for the endpoint.
-
get
public static VpcEndpoint get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable VpcEndpointState 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.
-
-