UNPKG

@pulumi/aws

Version:

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

86 lines 4.32 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.ProfilesResourceAssociation = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS Route 53 Profiles Resource Association. * * ## Example Usage * * ## Import * * Using `pulumi import`, import Route 53 Profiles Resource Association using the `id`. For example: * * ```sh * $ pulumi import aws:route53/profilesResourceAssociation:ProfilesResourceAssociation example rpa-id-12345678 * ``` */ class ProfilesResourceAssociation extends pulumi.CustomResource { /** * Get an existing ProfilesResourceAssociation 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 ProfilesResourceAssociation(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ProfilesResourceAssociation. 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'] === ProfilesResourceAssociation.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["ownerId"] = state ? state.ownerId : undefined; resourceInputs["profileId"] = state ? state.profileId : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["resourceArn"] = state ? state.resourceArn : undefined; resourceInputs["resourceProperties"] = state ? state.resourceProperties : undefined; resourceInputs["resourceType"] = state ? state.resourceType : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["statusMessage"] = state ? state.statusMessage : undefined; resourceInputs["timeouts"] = state ? state.timeouts : undefined; } else { const args = argsOrState; if ((!args || args.profileId === undefined) && !opts.urn) { throw new Error("Missing required property 'profileId'"); } if ((!args || args.resourceArn === undefined) && !opts.urn) { throw new Error("Missing required property 'resourceArn'"); } resourceInputs["name"] = args ? args.name : undefined; resourceInputs["profileId"] = args ? args.profileId : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["resourceArn"] = args ? args.resourceArn : undefined; resourceInputs["resourceProperties"] = args ? args.resourceProperties : undefined; resourceInputs["timeouts"] = args ? args.timeouts : undefined; resourceInputs["ownerId"] = undefined /*out*/; resourceInputs["resourceType"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["statusMessage"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProfilesResourceAssociation.__pulumiType, name, resourceInputs, opts); } } exports.ProfilesResourceAssociation = ProfilesResourceAssociation; /** @internal */ ProfilesResourceAssociation.__pulumiType = 'aws:route53/profilesResourceAssociation:ProfilesResourceAssociation'; //# sourceMappingURL=profilesResourceAssociation.js.map