UNPKG

@lbrlabs/pulumi-cockroach

Version:

A Pulumi package to create and managed cockroach db resources in Pulumi programs.

84 lines (83 loc) 3.4 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Customer-managed encryption keys (CMEK) resource for a single cluster. */ export declare class Cmek extends pulumi.CustomResource { /** * Get an existing Cmek resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CmekState, opts?: pulumi.CustomResourceOptions): Cmek; /** * Returns true if the given object is an instance of Cmek. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Cmek; /** * Once CMEK is enabled for a cluster, no new regions can be added to the cluster resource, since they need encryption key * info stored in the CMEK resource. New regions can be added and maintained here instead. */ readonly additionalRegions: pulumi.Output<outputs.CmekAdditionalRegion[] | undefined>; /** * Cluster ID. */ readonly clusterId: pulumi.Output<string>; readonly regions: pulumi.Output<outputs.CmekRegion[]>; /** * Aggregated status of the cluster's encryption key(s). */ readonly status: pulumi.Output<string>; /** * Create a Cmek resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CmekArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Cmek resources. */ export interface CmekState { /** * Once CMEK is enabled for a cluster, no new regions can be added to the cluster resource, since they need encryption key * info stored in the CMEK resource. New regions can be added and maintained here instead. */ additionalRegions?: pulumi.Input<pulumi.Input<inputs.CmekAdditionalRegion>[]>; /** * Cluster ID. */ clusterId?: pulumi.Input<string>; regions?: pulumi.Input<pulumi.Input<inputs.CmekRegion>[]>; /** * Aggregated status of the cluster's encryption key(s). */ status?: pulumi.Input<string>; } /** * The set of arguments for constructing a Cmek resource. */ export interface CmekArgs { /** * Once CMEK is enabled for a cluster, no new regions can be added to the cluster resource, since they need encryption key * info stored in the CMEK resource. New regions can be added and maintained here instead. */ additionalRegions?: pulumi.Input<pulumi.Input<inputs.CmekAdditionalRegion>[]>; /** * Cluster ID. */ clusterId: pulumi.Input<string>; regions: pulumi.Input<pulumi.Input<inputs.CmekRegion>[]>; /** * Aggregated status of the cluster's encryption key(s). */ status?: pulumi.Input<string>; }