DomainEntryArgs

data class DomainEntryArgs(val domainName: Output<String>? = null, val isAlias: Output<Boolean>? = null, val name: Output<String>? = null, val target: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<DomainEntryArgs>

Creates a domain entry resource

NOTE on id: In an effort to simplify imports, this resource id field has been updated to the standard resource id separator, a comma (,). For backward compatibility, the previous separator (underscore _) can still be used to read and import existing resources. When state is refreshed, the id will be updated to use the new standard separator. The previous separator will be deprecated in a future major release.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lightsail.Domain;
import com.pulumi.aws.lightsail.DomainArgs;
import com.pulumi.aws.lightsail.DomainEntry;
import com.pulumi.aws.lightsail.DomainEntryArgs;
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 testDomain = new Domain("testDomain", DomainArgs.builder()
.domainName("mydomain.com")
.build());
var testDomainEntry = new DomainEntry("testDomainEntry", DomainEntryArgs.builder()
.domainName(aws_lightsail_domain.domain_test().domain_name())
.type("A")
.target("127.0.0.1")
.build());
}
}

Import

aws_lightsail_domain_entry can be imported by using the id attribute, e.g.,

$ pulumi import aws:lightsail/domainEntry:DomainEntry example www,mydomain.com,A,127.0.0.1

Constructors

Link copied to clipboard
constructor(domainName: Output<String>? = null, isAlias: Output<Boolean>? = null, name: Output<String>? = null, target: Output<String>? = null, type: Output<String>? = null)

Properties

Link copied to clipboard
val domainName: Output<String>? = null

The name of the Lightsail domain in which to create the entry

Link copied to clipboard
val isAlias: Output<Boolean>? = null

If the entry should be an alias Defaults to false

Link copied to clipboard
val name: Output<String>? = null

Name of the entry record

Link copied to clipboard
val target: Output<String>? = null

Target of the domain entry

Link copied to clipboard
val type: Output<String>? = null

Type of record

Functions

Link copied to clipboard
open override fun toJava(): DomainEntryArgs