Package com.pulumi.aws.vpc
Class EndpointPrivateDns
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.vpc.EndpointPrivateDns
-
public class EndpointPrivateDns extends com.pulumi.resources.CustomResourceResource for enabling private DNS on an AWS VPC Endpoint. > When using this resource, the `privateDnsEnabled` argument should be omitted on the parent `aws.ec2.VpcEndpoint` resource. Setting the value both places can lead to unintended behavior and persistent differences. ## Example Usage ### Basic Usage
## Import Using `pulumi import`, import a VPC Endpoint Private DNS using the `vpcEndpointId`. For example: ```sh $ pulumi import aws:vpc/endpointPrivateDns:EndpointPrivateDns example vpce-abcd-1234 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.vpc.EndpointPrivateDns; import com.pulumi.aws.vpc.EndpointPrivateDnsArgs; 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 example = new EndpointPrivateDns("example", EndpointPrivateDnsArgs.builder() .vpcEndpointId(exampleAwsVpcEndpoint.id()) .privateDnsEnabled(true) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description EndpointPrivateDns(java.lang.String name)EndpointPrivateDns(java.lang.String name, EndpointPrivateDnsArgs args)EndpointPrivateDns(java.lang.String name, EndpointPrivateDnsArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointPrivateDnsget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, EndpointPrivateDnsState 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.Boolean>privateDnsEnabled()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>vpcEndpointId()
-
-
-
Constructor Detail
-
EndpointPrivateDns
public EndpointPrivateDns(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
EndpointPrivateDns
public EndpointPrivateDns(java.lang.String name, EndpointPrivateDnsArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
EndpointPrivateDns
public EndpointPrivateDns(java.lang.String name, EndpointPrivateDnsArgs 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
-
privateDnsEnabled
public com.pulumi.core.Output<java.lang.Boolean> privateDnsEnabled()
- Returns:
- Whether to associate a private hosted zone with the VPC. Only applicable for `Interface` endpoints.
-
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.
-
vpcEndpointId
public com.pulumi.core.Output<java.lang.String> vpcEndpointId()
- Returns:
- VPC endpoint identifier.
-
get
public static EndpointPrivateDns get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable EndpointPrivateDnsState 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.
-
-