@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
82 lines (81 loc) • 3.31 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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 */
export declare function getAvailabilityZones(args?: GetAvailabilityZonesArgs, opts?: pulumi.InvokeOptions): Promise<GetAvailabilityZonesResult>;
/**
* A collection of arguments for invoking getAvailabilityZones.
*/
export interface GetAvailabilityZonesArgs {
/**
* Region is represented as a Geographical area, such as France. Defaults to `fr-par`.
*/
region?: string;
}
/**
* A collection of values returned by getAvailabilityZones.
*/
export interface GetAvailabilityZonesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region?: string;
/**
* The list of availability zones in each Region
*/
readonly zones: string[];
}
/**
* 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 */
export declare function getAvailabilityZonesOutput(args?: GetAvailabilityZonesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAvailabilityZonesResult>;
/**
* A collection of arguments for invoking getAvailabilityZones.
*/
export interface GetAvailabilityZonesOutputArgs {
/**
* Region is represented as a Geographical area, such as France. Defaults to `fr-par`.
*/
region?: pulumi.Input<string>;
}