1. Packages
  2. Civo
  3. API Docs
  4. DnsDomainName
Civo v2.3.14 published on Thursday, Mar 21, 2024 by Pulumi

civo.DnsDomainName

Explore with Pulumi AI

civo logo
Civo v2.3.14 published on Thursday, Mar 21, 2024 by Pulumi

    Provides a Civo DNS domain name resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as civo from "@pulumi/civo";
    
    // Create a new domain name
    const main = new civo.DnsDomainName("main", {});
    
    import pulumi
    import pulumi_civo as civo
    
    # Create a new domain name
    main = civo.DnsDomainName("main")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-civo/sdk/v2/go/civo"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create a new domain name
    		_, err := civo.NewDnsDomainName(ctx, "main", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Civo = Pulumi.Civo;
    
    return await Deployment.RunAsync(() => 
    {
        // Create a new domain name
        var main = new Civo.DnsDomainName("main");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.civo.DnsDomainName;
    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 main = new DnsDomainName("main");
    
        }
    }
    
    resources:
      # Create a new domain name
      main:
        type: civo:DnsDomainName
    

    Create DnsDomainName Resource

    new DnsDomainName(name: string, args?: DnsDomainNameArgs, opts?: CustomResourceOptions);
    @overload
    def DnsDomainName(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      name: Optional[str] = None)
    @overload
    def DnsDomainName(resource_name: str,
                      args: Optional[DnsDomainNameArgs] = None,
                      opts: Optional[ResourceOptions] = None)
    func NewDnsDomainName(ctx *Context, name string, args *DnsDomainNameArgs, opts ...ResourceOption) (*DnsDomainName, error)
    public DnsDomainName(string name, DnsDomainNameArgs? args = null, CustomResourceOptions? opts = null)
    public DnsDomainName(String name, DnsDomainNameArgs args)
    public DnsDomainName(String name, DnsDomainNameArgs args, CustomResourceOptions options)
    
    type: civo:DnsDomainName
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DnsDomainNameArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DnsDomainNameArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DnsDomainNameArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnsDomainNameArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnsDomainNameArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DnsDomainName Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DnsDomainName resource accepts the following input properties:

    Name string
    The name of the domain
    Name string
    The name of the domain
    name String
    The name of the domain
    name string
    The name of the domain
    name str
    The name of the domain
    name String
    The name of the domain

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DnsDomainName resource produces the following output properties:

    AccountId string
    The account ID of the domain
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountId string
    The account ID of the domain
    Id string
    The provider-assigned unique ID for this managed resource.
    accountId String
    The account ID of the domain
    id String
    The provider-assigned unique ID for this managed resource.
    accountId string
    The account ID of the domain
    id string
    The provider-assigned unique ID for this managed resource.
    account_id str
    The account ID of the domain
    id str
    The provider-assigned unique ID for this managed resource.
    accountId String
    The account ID of the domain
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DnsDomainName Resource

    Get an existing DnsDomainName resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DnsDomainNameState, opts?: CustomResourceOptions): DnsDomainName
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            name: Optional[str] = None) -> DnsDomainName
    func GetDnsDomainName(ctx *Context, name string, id IDInput, state *DnsDomainNameState, opts ...ResourceOption) (*DnsDomainName, error)
    public static DnsDomainName Get(string name, Input<string> id, DnsDomainNameState? state, CustomResourceOptions? opts = null)
    public static DnsDomainName get(String name, Output<String> id, DnsDomainNameState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    The account ID of the domain
    Name string
    The name of the domain
    AccountId string
    The account ID of the domain
    Name string
    The name of the domain
    accountId String
    The account ID of the domain
    name String
    The name of the domain
    accountId string
    The account ID of the domain
    name string
    The name of the domain
    account_id str
    The account ID of the domain
    name str
    The name of the domain
    accountId String
    The account ID of the domain
    name String
    The name of the domain

    Import

    using domain name

    $ pulumi import civo:index/dnsDomainName:DnsDomainName main mydomain.com
    

    Package Details

    Repository
    Civo pulumi/pulumi-civo
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the civo Terraform Provider.
    civo logo
    Civo v2.3.14 published on Thursday, Mar 21, 2024 by Pulumi