UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

168 lines • 8.08 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Domain = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.route53domains.Domain("example", { * domainName: "example.com", * autoRenew: false, * adminContact: { * addressLine1: "101 Main Street", * city: "San Francisco", * contactType: "COMPANY", * countryCode: "US", * email: "pulumi-acctest@example.com", * fax: "+1.4155551234", * firstName: "Terraform", * lastName: "Team", * organizationName: "HashiCorp", * phoneNumber: "+1.4155551234", * state: "CA", * zipCode: "94105", * }, * registrantContact: { * addressLine1: "101 Main Street", * city: "San Francisco", * contactType: "COMPANY", * countryCode: "US", * email: "pulumi-acctest@example.com", * fax: "+1.4155551234", * firstName: "Terraform", * lastName: "Team", * organizationName: "HashiCorp", * phoneNumber: "+1.4155551234", * state: "CA", * zipCode: "94105", * }, * techContact: { * addressLine1: "101 Main Street", * city: "San Francisco", * contactType: "COMPANY", * countryCode: "US", * email: "pulumi-acctest@example.com", * fax: "+1.4155551234", * firstName: "Terraform", * lastName: "Team", * organizationName: "HashiCorp", * phoneNumber: "+1.4155551234", * state: "CA", * zipCode: "94105", * }, * tags: { * Environment: "test", * }, * }); * ``` * * ## Import * * Using `pulumi import`, import domains using the `domain_name`. For example: * * ```sh * $ pulumi import aws:route53domains/domain:Domain example example.com * ``` */ class Domain extends pulumi.CustomResource { /** * Get an existing Domain resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Domain(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Domain. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Domain.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["abuseContactEmail"] = state ? state.abuseContactEmail : undefined; resourceInputs["abuseContactPhone"] = state ? state.abuseContactPhone : undefined; resourceInputs["adminContact"] = state ? state.adminContact : undefined; resourceInputs["adminPrivacy"] = state ? state.adminPrivacy : undefined; resourceInputs["autoRenew"] = state ? state.autoRenew : undefined; resourceInputs["billingContacts"] = state ? state.billingContacts : undefined; resourceInputs["billingPrivacy"] = state ? state.billingPrivacy : undefined; resourceInputs["creationDate"] = state ? state.creationDate : undefined; resourceInputs["domainName"] = state ? state.domainName : undefined; resourceInputs["durationInYears"] = state ? state.durationInYears : undefined; resourceInputs["expirationDate"] = state ? state.expirationDate : undefined; resourceInputs["hostedZoneId"] = state ? state.hostedZoneId : undefined; resourceInputs["nameServers"] = state ? state.nameServers : undefined; resourceInputs["registrantContact"] = state ? state.registrantContact : undefined; resourceInputs["registrantPrivacy"] = state ? state.registrantPrivacy : undefined; resourceInputs["registrarName"] = state ? state.registrarName : undefined; resourceInputs["registrarUrl"] = state ? state.registrarUrl : undefined; resourceInputs["statusLists"] = state ? state.statusLists : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; resourceInputs["techContact"] = state ? state.techContact : undefined; resourceInputs["techPrivacy"] = state ? state.techPrivacy : undefined; resourceInputs["timeouts"] = state ? state.timeouts : undefined; resourceInputs["transferLock"] = state ? state.transferLock : undefined; resourceInputs["updatedDate"] = state ? state.updatedDate : undefined; resourceInputs["whoisServer"] = state ? state.whoisServer : undefined; } else { const args = argsOrState; if ((!args || args.domainName === undefined) && !opts.urn) { throw new Error("Missing required property 'domainName'"); } resourceInputs["adminContact"] = args ? args.adminContact : undefined; resourceInputs["adminPrivacy"] = args ? args.adminPrivacy : undefined; resourceInputs["autoRenew"] = args ? args.autoRenew : undefined; resourceInputs["billingContacts"] = args ? args.billingContacts : undefined; resourceInputs["billingPrivacy"] = args ? args.billingPrivacy : undefined; resourceInputs["domainName"] = args ? args.domainName : undefined; resourceInputs["durationInYears"] = args ? args.durationInYears : undefined; resourceInputs["nameServers"] = args ? args.nameServers : undefined; resourceInputs["registrantContact"] = args ? args.registrantContact : undefined; resourceInputs["registrantPrivacy"] = args ? args.registrantPrivacy : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["techContact"] = args ? args.techContact : undefined; resourceInputs["techPrivacy"] = args ? args.techPrivacy : undefined; resourceInputs["timeouts"] = args ? args.timeouts : undefined; resourceInputs["transferLock"] = args ? args.transferLock : undefined; resourceInputs["abuseContactEmail"] = undefined /*out*/; resourceInputs["abuseContactPhone"] = undefined /*out*/; resourceInputs["creationDate"] = undefined /*out*/; resourceInputs["expirationDate"] = undefined /*out*/; resourceInputs["hostedZoneId"] = undefined /*out*/; resourceInputs["registrarName"] = undefined /*out*/; resourceInputs["registrarUrl"] = undefined /*out*/; resourceInputs["statusLists"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; resourceInputs["updatedDate"] = undefined /*out*/; resourceInputs["whoisServer"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Domain.__pulumiType, name, resourceInputs, opts); } } exports.Domain = Domain; /** @internal */ Domain.__pulumiType = 'aws:route53domains/domain:Domain'; //# sourceMappingURL=domain.js.map