UNPKG

@pulumi/aws

Version:

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

81 lines 3.16 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.DelegationSet = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a [Route53 Delegation Set](https://docs.aws.amazon.com/Route53/latest/APIReference/API-actions-by-function.html#actions-by-function-reusable-delegation-sets) resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const main = new aws.route53.DelegationSet("main", {referenceName: "DynDNS"}); * const primary = new aws.route53.Zone("primary", { * name: "mydomain.com", * delegationSetId: main.id, * }); * const secondary = new aws.route53.Zone("secondary", { * name: "coolcompany.io", * delegationSetId: main.id, * }); * ``` * * ## Import * * Using `pulumi import`, import Route53 Delegation Sets using the delegation set `id`. For example: * * ```sh * $ pulumi import aws:route53/delegationSet:DelegationSet set1 N1PA6795SAMPLE * ``` */ class DelegationSet extends pulumi.CustomResource { /** * Get an existing DelegationSet 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 DelegationSet(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of DelegationSet. 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'] === DelegationSet.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["nameServers"] = state?.nameServers; resourceInputs["referenceName"] = state?.referenceName; } else { const args = argsOrState; resourceInputs["referenceName"] = args?.referenceName; resourceInputs["arn"] = undefined /*out*/; resourceInputs["nameServers"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DelegationSet.__pulumiType, name, resourceInputs, opts); } } exports.DelegationSet = DelegationSet; /** @internal */ DelegationSet.__pulumiType = 'aws:route53/delegationSet:DelegationSet'; //# sourceMappingURL=delegationSet.js.map