UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

72 lines 3.66 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.getAvailabilityZonesOutput = exports.getAvailabilityZones = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `scaleway.account.getAvailabilityZones` data source is used to retrieve information about the available zones based on its Region. * * For technical and legal reasons, some products are split by Region or by Availability Zones. When using such product, * you can choose the location that better fits your need (country, latency, etc.). * * Refer to the Account [documentation](https://www.scaleway.com/en/docs/console/account/reference-content/products-availability/) for more information. * * ## Retrieve the Availability Zones of a Region * * The following command allow you to retrieve a the AZs of a Region. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by Region key * const main = scaleway.account.getAvailabilityZones({ * region: "nl-ams", * }); * ``` */ /** @deprecated scaleway.index/getavailabilityzones.getAvailabilityZones has been deprecated in favor of scaleway.account/getavailabilityzones.getAvailabilityZones */ function getAvailabilityZones(args, opts) { pulumi.log.warn("getAvailabilityZones is deprecated: scaleway.index/getavailabilityzones.getAvailabilityZones has been deprecated in favor of scaleway.account/getavailabilityzones.getAvailabilityZones"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getAvailabilityZones:getAvailabilityZones", { "region": args.region, }, opts); } exports.getAvailabilityZones = getAvailabilityZones; /** * The `scaleway.account.getAvailabilityZones` data source is used to retrieve information about the available zones based on its Region. * * For technical and legal reasons, some products are split by Region or by Availability Zones. When using such product, * you can choose the location that better fits your need (country, latency, etc.). * * Refer to the Account [documentation](https://www.scaleway.com/en/docs/console/account/reference-content/products-availability/) for more information. * * ## Retrieve the Availability Zones of a Region * * The following command allow you to retrieve a the AZs of a Region. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get info by Region key * const main = scaleway.account.getAvailabilityZones({ * region: "nl-ams", * }); * ``` */ /** @deprecated scaleway.index/getavailabilityzones.getAvailabilityZones has been deprecated in favor of scaleway.account/getavailabilityzones.getAvailabilityZones */ function getAvailabilityZonesOutput(args, opts) { pulumi.log.warn("getAvailabilityZones is deprecated: scaleway.index/getavailabilityzones.getAvailabilityZones has been deprecated in favor of scaleway.account/getavailabilityzones.getAvailabilityZones"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getAvailabilityZones:getAvailabilityZones", { "region": args.region, }, opts); } exports.getAvailabilityZonesOutput = getAvailabilityZonesOutput; //# sourceMappingURL=getAvailabilityZones.js.map