UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

114 lines 4.96 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.SecurityGateway = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Deployment of Security Gateway. * * ## Example Usage * * ### Beyondcorp Security Gateway Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = new gcp.beyondcorp.SecurityGateway("example", { * securityGatewayId: "default", * displayName: "My Security Gateway resource", * hubs: [{ * region: "us-central1", * }], * }); * ``` * * ## Import * * SecurityGateway can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/securityGateways/{{security_gateway_id}}` * * * `{{project}}/{{location}}/{{security_gateway_id}}` * * * `{{location}}/{{security_gateway_id}}` * * When using the `pulumi import` command, SecurityGateway can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:beyondcorp/securityGateway:SecurityGateway default projects/{{project}}/locations/{{location}}/securityGateways/{{security_gateway_id}} * ``` * * ```sh * $ pulumi import gcp:beyondcorp/securityGateway:SecurityGateway default {{project}}/{{location}}/{{security_gateway_id}} * ``` * * ```sh * $ pulumi import gcp:beyondcorp/securityGateway:SecurityGateway default {{location}}/{{security_gateway_id}} * ``` */ class SecurityGateway extends pulumi.CustomResource { /** * Get an existing SecurityGateway 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 SecurityGateway(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SecurityGateway. 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'] === SecurityGateway.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["createTime"] = state ? state.createTime : undefined; resourceInputs["displayName"] = state ? state.displayName : undefined; resourceInputs["externalIps"] = state ? state.externalIps : undefined; resourceInputs["hubs"] = state ? state.hubs : undefined; resourceInputs["location"] = state ? state.location : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["project"] = state ? state.project : undefined; resourceInputs["securityGatewayId"] = state ? state.securityGatewayId : undefined; resourceInputs["state"] = state ? state.state : undefined; resourceInputs["updateTime"] = state ? state.updateTime : undefined; } else { const args = argsOrState; if ((!args || args.securityGatewayId === undefined) && !opts.urn) { throw new Error("Missing required property 'securityGatewayId'"); } resourceInputs["displayName"] = args ? args.displayName : undefined; resourceInputs["hubs"] = args ? args.hubs : undefined; resourceInputs["location"] = args ? args.location : undefined; resourceInputs["project"] = args ? args.project : undefined; resourceInputs["securityGatewayId"] = args ? args.securityGatewayId : undefined; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["externalIps"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["state"] = undefined /*out*/; resourceInputs["updateTime"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SecurityGateway.__pulumiType, name, resourceInputs, opts); } } exports.SecurityGateway = SecurityGateway; /** @internal */ SecurityGateway.__pulumiType = 'gcp:beyondcorp/securityGateway:SecurityGateway'; //# sourceMappingURL=securityGateway.js.map