UNPKG

@mapped/pulumi-astra

Version:

A Pulumi package for creating and managing astra cloud resources.

159 lines (158 loc) 4.59 kB
import * as pulumi from "@pulumi/pulumi"; /** * `astra.Cdc` enables cdc for an Astra Serverless table. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi_astra from "@mapped/pulumi-astra"; * * const streamingTenant_1 = new astra.StreamingTenant("streamingTenant-1", { * tenantName: "terraformtest", * topic: "terraformtest", * region: "useast-4", * cloudProvider: "gcp", * userEmail: "seb@datastax.com", * }); * const cdc_1 = new astra.Cdc("cdc-1", { * databaseId: "5b70892f-e01a-4595-98e6-19ecc9985d50", * databaseName: "sai_test", * table: "test", * keyspace: "sai_test", * topicPartitions: 3, * tenantName: streamingTenant_1.tenantName, * }, { * dependsOn: [streamingTenant_1], * }); * ``` * * ## Import * * ```sh * $ pulumi import astra:index/cdc:Cdc example databaseId/keyspace/table/tenantName * ``` */ export declare class Cdc extends pulumi.CustomResource { /** * Get an existing Cdc 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?: CdcState, opts?: pulumi.CustomResourceOptions): Cdc; /** * Returns true if the given object is an instance of Cdc. 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 Cdc; /** * Streaming tenant name */ readonly connectorStatus: pulumi.Output<string>; /** * Streaming tenant name */ readonly dataTopic: pulumi.Output<string>; /** * Astra database to create the keyspace. */ readonly databaseId: pulumi.Output<string>; /** * Astra database name. */ readonly databaseName: pulumi.Output<string>; /** * Initial keyspace name. For additional keyspaces, use the astra_keyspace resource. */ readonly keyspace: pulumi.Output<string>; /** * Astra database table. */ readonly table: pulumi.Output<string>; /** * Streaming tenant name */ readonly tenantName: pulumi.Output<string>; /** * Number of partitions in cdc topic. */ readonly topicPartitions: pulumi.Output<number>; /** * Create a Cdc 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: CdcArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Cdc resources. */ export interface CdcState { /** * Streaming tenant name */ connectorStatus?: pulumi.Input<string>; /** * Streaming tenant name */ dataTopic?: pulumi.Input<string>; /** * Astra database to create the keyspace. */ databaseId?: pulumi.Input<string>; /** * Astra database name. */ databaseName?: pulumi.Input<string>; /** * Initial keyspace name. For additional keyspaces, use the astra_keyspace resource. */ keyspace?: pulumi.Input<string>; /** * Astra database table. */ table?: pulumi.Input<string>; /** * Streaming tenant name */ tenantName?: pulumi.Input<string>; /** * Number of partitions in cdc topic. */ topicPartitions?: pulumi.Input<number>; } /** * The set of arguments for constructing a Cdc resource. */ export interface CdcArgs { /** * Astra database to create the keyspace. */ databaseId: pulumi.Input<string>; /** * Astra database name. */ databaseName: pulumi.Input<string>; /** * Initial keyspace name. For additional keyspaces, use the astra_keyspace resource. */ keyspace: pulumi.Input<string>; /** * Astra database table. */ table: pulumi.Input<string>; /** * Streaming tenant name */ tenantName: pulumi.Input<string>; /** * Number of partitions in cdc topic. */ topicPartitions: pulumi.Input<number>; }