UNPKG

@pulumi/aws

Version:

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

96 lines 4.8 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.Proxy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Import * * Using `pulumi import`, import DB proxies using the `name`. For example: * * ```sh * $ pulumi import aws:rds/proxy:Proxy example example * ``` */ class Proxy extends pulumi.CustomResource { /** * Get an existing Proxy 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 Proxy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Proxy. 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'] === Proxy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state ? state.arn : undefined; resourceInputs["auths"] = state ? state.auths : undefined; resourceInputs["debugLogging"] = state ? state.debugLogging : undefined; resourceInputs["endpoint"] = state ? state.endpoint : undefined; resourceInputs["engineFamily"] = state ? state.engineFamily : undefined; resourceInputs["idleClientTimeout"] = state ? state.idleClientTimeout : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["requireTls"] = state ? state.requireTls : undefined; resourceInputs["roleArn"] = state ? state.roleArn : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; resourceInputs["vpcSecurityGroupIds"] = state ? state.vpcSecurityGroupIds : undefined; resourceInputs["vpcSubnetIds"] = state ? state.vpcSubnetIds : undefined; } else { const args = argsOrState; if ((!args || args.auths === undefined) && !opts.urn) { throw new Error("Missing required property 'auths'"); } if ((!args || args.engineFamily === undefined) && !opts.urn) { throw new Error("Missing required property 'engineFamily'"); } if ((!args || args.roleArn === undefined) && !opts.urn) { throw new Error("Missing required property 'roleArn'"); } if ((!args || args.vpcSubnetIds === undefined) && !opts.urn) { throw new Error("Missing required property 'vpcSubnetIds'"); } resourceInputs["auths"] = args ? args.auths : undefined; resourceInputs["debugLogging"] = args ? args.debugLogging : undefined; resourceInputs["engineFamily"] = args ? args.engineFamily : undefined; resourceInputs["idleClientTimeout"] = args ? args.idleClientTimeout : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["requireTls"] = args ? args.requireTls : undefined; resourceInputs["roleArn"] = args ? args.roleArn : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["vpcSecurityGroupIds"] = args ? args.vpcSecurityGroupIds : undefined; resourceInputs["vpcSubnetIds"] = args ? args.vpcSubnetIds : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["endpoint"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Proxy.__pulumiType, name, resourceInputs, opts); } } exports.Proxy = Proxy; /** @internal */ Proxy.__pulumiType = 'aws:rds/proxy:Proxy'; //# sourceMappingURL=proxy.js.map