UNPKG

@pulumi/aws

Version:

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

106 lines 4.38 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.ProfilesAssociation = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS Route 53 Profiles Association. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.route53.ProfilesProfile("example", {name: "example"}); * const exampleVpc = new aws.ec2.Vpc("example", {cidr: "10.0.0.0/16"}); * const exampleProfilesAssociation = new aws.route53.ProfilesAssociation("example", { * name: "example", * profileId: example.id, * resourceId: exampleVpc.id, * tags: { * Environment: "dev", * }, * }); * ``` * * ## Import * * Using `pulumi import`, import Route 53 Profiles Association using the `id`. For example: * * ```sh * $ pulumi import aws:route53/profilesAssociation:ProfilesAssociation example rpa-id-12345678 * ``` */ class ProfilesAssociation extends pulumi.CustomResource { /** * Get an existing ProfilesAssociation 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 ProfilesAssociation(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ProfilesAssociation. 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'] === ProfilesAssociation.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["name"] = state?.name; resourceInputs["ownerId"] = state?.ownerId; resourceInputs["profileId"] = state?.profileId; resourceInputs["region"] = state?.region; resourceInputs["resourceId"] = state?.resourceId; resourceInputs["status"] = state?.status; resourceInputs["statusMessage"] = state?.statusMessage; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; resourceInputs["timeouts"] = state?.timeouts; } else { const args = argsOrState; if (args?.profileId === undefined && !opts.urn) { throw new Error("Missing required property 'profileId'"); } if (args?.resourceId === undefined && !opts.urn) { throw new Error("Missing required property 'resourceId'"); } resourceInputs["name"] = args?.name; resourceInputs["profileId"] = args?.profileId; resourceInputs["region"] = args?.region; resourceInputs["resourceId"] = args?.resourceId; resourceInputs["tags"] = args?.tags; resourceInputs["timeouts"] = args?.timeouts; resourceInputs["arn"] = undefined /*out*/; resourceInputs["ownerId"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["statusMessage"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProfilesAssociation.__pulumiType, name, resourceInputs, opts); } } exports.ProfilesAssociation = ProfilesAssociation; /** @internal */ ProfilesAssociation.__pulumiType = 'aws:route53/profilesAssociation:ProfilesAssociation'; //# sourceMappingURL=profilesAssociation.js.map