UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

99 lines 4.77 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.VpcPublicGatewayIp = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Creates and manages Scaleway VPC Public Gateway public (flexible) IP addresses. * For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#path-ips-list-ips). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.network.PublicGatewayIp("main", {reverse: "tf.example.com"}); * const tfA = new scaleway.domain.Record("tf_A", { * dnsZone: "example.com", * name: "tf", * type: "A", * data: main.address, * ttl: 3600, * priority: 1, * }); * ``` * * ## Import * * Public Gateway IPs can be imported using `{zone}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/vpcPublicGatewayIp:VpcPublicGatewayIp main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` * * @deprecated scaleway.index/vpcpublicgatewayip.VpcPublicGatewayIp has been deprecated in favor of scaleway.network/publicgatewayip.PublicGatewayIp */ class VpcPublicGatewayIp extends pulumi.CustomResource { /** * Get an existing VpcPublicGatewayIp 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) { pulumi.log.warn("VpcPublicGatewayIp is deprecated: scaleway.index/vpcpublicgatewayip.VpcPublicGatewayIp has been deprecated in favor of scaleway.network/publicgatewayip.PublicGatewayIp"); return new VpcPublicGatewayIp(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of VpcPublicGatewayIp. 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'] === VpcPublicGatewayIp.__pulumiType; } /** @deprecated scaleway.index/vpcpublicgatewayip.VpcPublicGatewayIp has been deprecated in favor of scaleway.network/publicgatewayip.PublicGatewayIp */ constructor(name, argsOrState, opts) { pulumi.log.warn("VpcPublicGatewayIp is deprecated: scaleway.index/vpcpublicgatewayip.VpcPublicGatewayIp has been deprecated in favor of scaleway.network/publicgatewayip.PublicGatewayIp"); let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["address"] = state ? state.address : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["organizationId"] = state ? state.organizationId : undefined; resourceInputs["projectId"] = state ? state.projectId : undefined; resourceInputs["reverse"] = state ? state.reverse : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["updatedAt"] = state ? state.updatedAt : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { const args = argsOrState; resourceInputs["projectId"] = args ? args.projectId : undefined; resourceInputs["reverse"] = args ? args.reverse : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["zone"] = args ? args.zone : undefined; resourceInputs["address"] = undefined /*out*/; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["organizationId"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(VpcPublicGatewayIp.__pulumiType, name, resourceInputs, opts); } } exports.VpcPublicGatewayIp = VpcPublicGatewayIp; /** @internal */ VpcPublicGatewayIp.__pulumiType = 'scaleway:index/vpcPublicGatewayIp:VpcPublicGatewayIp'; //# sourceMappingURL=vpcPublicGatewayIp.js.map