Class EndpointServicePrivateDnsVerification


  • public class EndpointServicePrivateDnsVerification
    extends com.pulumi.resources.CustomResource
    Resource for managing an AWS VPC Endpoint Service Private DNS Verification. This resource begins the verification process by calling the [`StartVpcEndpointServicePrivateDnsVerification`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StartVpcEndpointServicePrivateDnsVerification.html) API. The service provider should add a record to the DNS server _before_ creating this resource. For additional details, refer to the AWS documentation on [managing VPC endpoint service DNS names](https://docs.aws.amazon.com/vpc/latest/privatelink/manage-dns-names.html). > Destruction of this resource will not stop the verification process, only remove the resource from state. ## Example Usage ### Basic Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.vpc.EndpointServicePrivateDnsVerification;
     import com.pulumi.aws.vpc.EndpointServicePrivateDnsVerificationArgs;
     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 EndpointServicePrivateDnsVerification("example", EndpointServicePrivateDnsVerificationArgs.builder()
                 .serviceId(exampleAwsVpcEndpointService.id())
                 .build());
     
         }
     }
     
     
    ## Import You cannot import this resource.
    • Constructor Detail

      • EndpointServicePrivateDnsVerification

        public EndpointServicePrivateDnsVerification​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • EndpointServicePrivateDnsVerification

        public EndpointServicePrivateDnsVerification​(java.lang.String name,
                                                     EndpointServicePrivateDnsVerificationArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • EndpointServicePrivateDnsVerification

        public EndpointServicePrivateDnsVerification​(java.lang.String name,
                                                     EndpointServicePrivateDnsVerificationArgs 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

      • 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.
      • serviceId

        public com.pulumi.core.Output<java.lang.String> serviceId()
        Returns:
        ID of the endpoint service. The following arguments are optional:
      • waitForVerification

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> waitForVerification()
        Returns:
        Whether to wait until the endpoint service returns a `Verified` status for the configured private DNS name.
      • get

        public static EndpointServicePrivateDnsVerification get​(java.lang.String name,
                                                                com.pulumi.core.Output<java.lang.String> id,
                                                                @Nullable
                                                                EndpointServicePrivateDnsVerificationState 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.