UNPKG

@pulumi/consul

Version:

A Pulumi package for creating and managing consul resources.

62 lines (61 loc) 1.6 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as consul from "@pulumi/consul"; * * const basic = consul.getPeering({ * peerName: "peered-cluster", * }); * ``` */ export declare function getPeering(args: GetPeeringArgs, opts?: pulumi.InvokeOptions): Promise<GetPeeringResult>; /** * A collection of arguments for invoking getPeering. */ export interface GetPeeringArgs { partition?: string; peerName: string; } /** * A collection of values returned by getPeering. */ export interface GetPeeringResult { readonly deletedAt: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly meta: { [key: string]: string; }; readonly partition?: string; readonly peerCaPems: string[]; readonly peerId: string; readonly peerName: string; readonly peerServerAddresses: string[]; readonly peerServerName: string; readonly state: string; } /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as consul from "@pulumi/consul"; * * const basic = consul.getPeering({ * peerName: "peered-cluster", * }); * ``` */ export declare function getPeeringOutput(args: GetPeeringOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPeeringResult>; /** * A collection of arguments for invoking getPeering. */ export interface GetPeeringOutputArgs { partition?: pulumi.Input<string>; peerName: pulumi.Input<string>; }