DnsDomainName

Provides a Civo dns domain name resource.

Example Usage

using Pulumi;
using Civo = Pulumi.Civo;

class MyStack : Stack
{
    public MyStack()
    {
        // Create a new domain name
        var main = new Civo.DnsDomainName("main", new Civo.DnsDomainNameArgs
        {
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-civo/sdk/go/civo"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := civo.NewDnsDomainName(ctx, "main", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_civo as civo

# Create a new domain name
main = civo.DnsDomainName("main")
import * as pulumi from "@pulumi/pulumi";
import * as civo from "@pulumi/civo";

// Create a new domain name
const main = new civo.DnsDomainName("main", {});

Create a 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)
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.

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 str
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 id account of the domain
Id string
The provider-assigned unique ID for this managed resource.
AccountId string
The id account of the domain
Id string
The provider-assigned unique ID for this managed resource.
accountId string
The id account of the domain
id string
The provider-assigned unique ID for this managed resource.
account_id str
The id account of the domain
id str
The provider-assigned unique ID for this managed resource.

Look up an 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)
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.

The following state arguments are supported:

AccountId string
The id account of the domain
Name string
The name of the domain
AccountId string
The id account of the domain
Name string
The name of the domain
accountId string
The id account of the domain
name string
The name of the domain
account_id str
The id account of the domain
name str
The name of the domain

Import

Domains can be imported using the domain name, e.g.

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

Package Details

Repository
https://github.com/pulumi/pulumi-civo
License
Apache-2.0
Notes
This Pulumi package is based on the civo Terraform Provider.