getInstance

Get a spanner instance from Google Cloud by its name.

Example Usage

data "google_spanner_instance" "foo" {
name = "bar"
}

Return

A collection of values returned by getInstance.

Parameters

argument

A collection of arguments for invoking getInstance.


suspend fun getInstance(config: String? = null, displayName: String? = null, name: String, project: String? = null): GetInstanceResult

Return

A collection of values returned by getInstance.

Parameters

config
displayName
name

The name of the spanner instance.

project

The project in which the resource belongs. If it is not provided, the provider project is used.

See also


suspend fun getInstance(argument: suspend GetInstancePlainArgsBuilder.() -> Unit): GetInstanceResult

Return

A collection of values returned by getInstance.

Parameters

argument

Builder for com.pulumi.gcp.spanner.kotlin.inputs.GetInstancePlainArgs.

See also