UNPKG

@pulumi/aws

Version:

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

105 lines 4.73 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.QuickConnect = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides an Amazon Connect Quick Connect resource. For more information see * [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = new aws.connect.QuickConnect("test", { * instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111", * name: "Example Name", * description: "quick connect phone number", * quickConnectConfig: { * quickConnectType: "PHONE_NUMBER", * phoneConfigs: [{ * phoneNumber: "+12345678912", * }], * }, * tags: { * Name: "Example Quick Connect", * }, * }); * ``` * * ## Import * * Using `pulumi import`, import Amazon Connect Quick Connects using the `instance_id` and `quick_connect_id` separated by a colon (`:`). For example: * * ```sh * $ pulumi import aws:connect/quickConnect:QuickConnect example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5 * ``` */ class QuickConnect extends pulumi.CustomResource { /** * Get an existing QuickConnect 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 QuickConnect(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of QuickConnect. 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'] === QuickConnect.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state ? state.arn : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["instanceId"] = state ? state.instanceId : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["quickConnectConfig"] = state ? state.quickConnectConfig : undefined; resourceInputs["quickConnectId"] = state ? state.quickConnectId : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; } else { const args = argsOrState; if ((!args || args.instanceId === undefined) && !opts.urn) { throw new Error("Missing required property 'instanceId'"); } if ((!args || args.quickConnectConfig === undefined) && !opts.urn) { throw new Error("Missing required property 'quickConnectConfig'"); } resourceInputs["description"] = args ? args.description : undefined; resourceInputs["instanceId"] = args ? args.instanceId : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["quickConnectConfig"] = args ? args.quickConnectConfig : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["quickConnectId"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(QuickConnect.__pulumiType, name, resourceInputs, opts); } } exports.QuickConnect = QuickConnect; /** @internal */ QuickConnect.__pulumiType = 'aws:connect/quickConnect:QuickConnect'; //# sourceMappingURL=quickConnect.js.map