@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
100 lines (99 loc) • 3.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Gets information about a Redis cluster. For further information check our [api documentation](https://developers.scaleway.com/en/products/redis/api/v1alpha1/#clusters-a85816)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myCluster = scaleway.getRedisCluster({
* clusterId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getRedisCluster(args?: GetRedisClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetRedisClusterResult>;
/**
* A collection of arguments for invoking getRedisCluster.
*/
export interface GetRedisClusterArgs {
/**
* The Redis cluster ID.
* Only one of the `name` and `clusterId` should be specified.
*/
clusterId?: string;
/**
* The name of the Redis cluster.
* Only one of the `name` and `clusterId` should be specified.
*/
name?: string;
/**
* `region`) The zone in which the server exists.
*/
zone?: string;
}
/**
* A collection of values returned by getRedisCluster.
*/
export interface GetRedisClusterResult {
readonly acls: outputs.GetRedisClusterAcl[];
readonly certificate: string;
readonly clusterId?: string;
readonly clusterSize: number;
readonly createdAt: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name?: string;
readonly nodeType: string;
readonly password: string;
readonly privateNetworks: outputs.GetRedisClusterPrivateNetwork[];
readonly projectId: string;
readonly publicNetworks: outputs.GetRedisClusterPublicNetwork[];
readonly settings: {
[key: string]: string;
};
readonly tags: string[];
readonly tlsEnabled: boolean;
readonly updatedAt: string;
readonly userName: string;
readonly version: string;
readonly zone?: string;
}
/**
* Gets information about a Redis cluster. For further information check our [api documentation](https://developers.scaleway.com/en/products/redis/api/v1alpha1/#clusters-a85816)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myCluster = scaleway.getRedisCluster({
* clusterId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getRedisClusterOutput(args?: GetRedisClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRedisClusterResult>;
/**
* A collection of arguments for invoking getRedisCluster.
*/
export interface GetRedisClusterOutputArgs {
/**
* The Redis cluster ID.
* Only one of the `name` and `clusterId` should be specified.
*/
clusterId?: pulumi.Input<string>;
/**
* The name of the Redis cluster.
* Only one of the `name` and `clusterId` should be specified.
*/
name?: pulumi.Input<string>;
/**
* `region`) The zone in which the server exists.
*/
zone?: pulumi.Input<string>;
}