Domain

class Domain : KotlinCustomResource

Provides a DigitalOcean domain resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.Domain;
import com.pulumi.digitalocean.DomainArgs;
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 default_ = new Domain("default", DomainArgs.builder()
.name("example.com")
.ipAddress(digitalocean_droplet.foo().ipv4_address())
.build());
}
}

Import

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

$ pulumi import digitalocean:index/domain:Domain mydomain mytestdomain.com

Properties

Link copied to clipboard
val domainUrn: Output<String>

The uniform resource name of the domain

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipAddress: Output<String>?

The IP address of the domain. If specified, this IP is used to created an initial A record for the domain.

Link copied to clipboard
val name: Output<String>

The name of the domain

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ttl: Output<Int>

The TTL value of the domain

Link copied to clipboard
val urn: Output<String>