DomainEntry

class DomainEntry : KotlinCustomResource

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

Properties

Link copied to clipboard
val domainName: Output<String>

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

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

If the entry should be an alias Defaults to false

Link copied to clipboard
val name: Output<String>

Name of the entry record

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val target: Output<String>

Target of the domain entry

Link copied to clipboard
val type: Output<String>

Type of record

Link copied to clipboard
val urn: Output<String>