KeyRingArgs

data class KeyRingArgs(val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<KeyRingArgs>

A KeyRing is a toplevel logical grouping of CryptoKeys.

Note: KeyRings cannot be deleted from Google Cloud Platform. Destroying a provider-managed KeyRing will remove it from state but will not delete the resource from the project. To get more information about KeyRing, see:

Example Usage

Kms Key Ring Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.kms.KeyRing;
import com.pulumi.gcp.kms.KeyRingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example_keyring = new KeyRing("example-keyring", KeyRingArgs.builder()
.location("global")
.build());
}
}

Import

KeyRing can be imported using any of these accepted formats

$ pulumi import gcp:kms/keyRing:KeyRing default projects/{{project}}/locations/{{location}}/keyRings/{{name}}
$ pulumi import gcp:kms/keyRing:KeyRing default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:kms/keyRing:KeyRing default {{location}}/{{name}}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val location: Output<String>? = null

The location for the KeyRing. A full list of valid locations can be found by running gcloud kms locations list.

Link copied to clipboard
val name: Output<String>? = null

The resource name for the KeyRing.

Link copied to clipboard
val project: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): KeyRingArgs