Class RecordSet


  • public class RecordSet
    extends com.pulumi.resources.CustomResource
    Manages a DNS record set in the OpenStack DNS Service. ## Example Usage ### Automatically detect the correct network ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.dns.Zone; import com.pulumi.openstack.dns.ZoneArgs; import com.pulumi.openstack.dns.RecordSet; import com.pulumi.openstack.dns.RecordSetArgs; 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 exampleZone = new Zone("exampleZone", ZoneArgs.builder() .email("email2@example.com") .description("a zone") .ttl(6000) .type("PRIMARY") .build()); var rsExampleCom = new RecordSet("rsExampleCom", RecordSetArgs.builder() .zoneId(exampleZone.id()) .description("An example record set") .ttl(3000) .type("A") .records("10.0.0.1") .build()); } } ``` ## Import This resource can be imported by specifying the zone ID and recordset ID, separated by a forward slash. ```sh $ pulumi import openstack:dns/recordSet:RecordSet recordset_1 zone_id/recordset_id ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordSet​(java.lang.String name)  
      RecordSet​(java.lang.String name, RecordSetArgs args)  
      RecordSet​(java.lang.String name, RecordSetArgs 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.util.Optional<java.lang.String>> description()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> disableStatusCheck()  
      static RecordSet get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, RecordSetState 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> name()  
      com.pulumi.core.Output<java.lang.String> projectId()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> records()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.Integer> ttl()  
      com.pulumi.core.Output<java.lang.String> type()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> valueSpecs()  
      com.pulumi.core.Output<java.lang.String> zoneId()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecordSet

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

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

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

      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        A description of the record set.
      • disableStatusCheck

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> disableStatusCheck()
        Returns:
        Disable wait for recordset to reach ACTIVE status. This argumen is disabled by default. If it is set to true, the recordset will be considered as created/updated/deleted if OpenStack request returned success.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the record set. Note the `.` at the end of the name. Changing this creates a new DNS record set.
      • projectId

        public com.pulumi.core.Output<java.lang.String> projectId()
        Returns:
        The ID of the project DNS zone is created for, sets `X-Auth-Sudo-Tenant-ID` header (requires an assigned user role in target project)
      • records

        public com.pulumi.core.Output<java.util.List<java.lang.String>> records()
        Returns:
        An array of DNS records.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to obtain the V2 DNS client. If omitted, the `region` argument of the provider is used. Changing this creates a new DNS record set.
      • ttl

        public com.pulumi.core.Output<java.lang.Integer> ttl()
        Returns:
        The time to live (TTL) of the record set.
      • type

        public com.pulumi.core.Output<java.lang.String> type()
        Returns:
        The type of record set. Examples: "A", "MX". Changing this creates a new DNS record set.
      • valueSpecs

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> valueSpecs()
        Returns:
        Map of additional options. Changing this creates a new record set.
      • zoneId

        public com.pulumi.core.Output<java.lang.String> zoneId()
        Returns:
        The ID of the zone in which to create the record set. Changing this creates a new DNS record set.
      • get

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