import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Table Replica resource in Oracle Cloud Infrastructure NoSQL Database service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/nosql-database/latest/TableReplica * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/object_storage * * Add a replica for this table. The table's schema must be frozen prior to this operation. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTableReplica = new oci.nosql.TableReplica("test_table_replica", { * region: tableReplicaRegion, * tableNameOrId: testTableNameOr.id, * compartmentId: compartmentId, * maxReadUnits: Number(tableReplicaMaxReadUnits), * maxWriteUnits: Number(tableReplicaMaxWriteUnits), * }); * ``` * * ## Import * * TableReplicas can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Nosql/tableReplica:TableReplica test_table_replica "tables/{tableNameOrId}/replicas/{region}" * ``` */ export declare class TableReplica extends pulumi.CustomResource { /** * Get an existing TableReplica 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, state?: TableReplicaState, opts?: pulumi.CustomResourceOptions): TableReplica; /** * Returns true if the given object is an instance of TableReplica. 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 TableReplica; /** * The OCID of the table's compartment. Required if the tableNameOrId path parameter is a table name. Optional if tableNameOrId is an OCID. If tableNameOrId is an OCID, and compartmentId is supplied, the latter must match the identified table's compartmentId. */ readonly compartmentId: pulumi.Output; /** * Maximum sustained read throughput limit for the new replica table. If not specified, the local table's read limit is used. */ readonly maxReadUnits: pulumi.Output; /** * Maximum sustained write throughput limit for the new replica table. If not specified, the local table's write limit is used. */ readonly maxWriteUnits: pulumi.Output; /** * Name of the remote region in standard Oracle Cloud Infrastructure format, i.e. us-ashburn-1 */ readonly region: pulumi.Output; /** * A table name within the compartment, or a table OCID. * * ** IMPORTANT ** * Any change to a property that is not identified as "Updateable" will force the destruction and recreation of the resource with the new property values. */ readonly tableNameOrId: pulumi.Output; /** * Create a TableReplica 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: TableReplicaArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TableReplica resources. */ export interface TableReplicaState { /** * The OCID of the table's compartment. Required if the tableNameOrId path parameter is a table name. Optional if tableNameOrId is an OCID. If tableNameOrId is an OCID, and compartmentId is supplied, the latter must match the identified table's compartmentId. */ compartmentId?: pulumi.Input; /** * Maximum sustained read throughput limit for the new replica table. If not specified, the local table's read limit is used. */ maxReadUnits?: pulumi.Input; /** * Maximum sustained write throughput limit for the new replica table. If not specified, the local table's write limit is used. */ maxWriteUnits?: pulumi.Input; /** * Name of the remote region in standard Oracle Cloud Infrastructure format, i.e. us-ashburn-1 */ region?: pulumi.Input; /** * A table name within the compartment, or a table OCID. * * ** IMPORTANT ** * Any change to a property that is not identified as "Updateable" will force the destruction and recreation of the resource with the new property values. */ tableNameOrId?: pulumi.Input; } /** * The set of arguments for constructing a TableReplica resource. */ export interface TableReplicaArgs { /** * The OCID of the table's compartment. Required if the tableNameOrId path parameter is a table name. Optional if tableNameOrId is an OCID. If tableNameOrId is an OCID, and compartmentId is supplied, the latter must match the identified table's compartmentId. */ compartmentId?: pulumi.Input; /** * Maximum sustained read throughput limit for the new replica table. If not specified, the local table's read limit is used. */ maxReadUnits?: pulumi.Input; /** * Maximum sustained write throughput limit for the new replica table. If not specified, the local table's write limit is used. */ maxWriteUnits?: pulumi.Input; /** * Name of the remote region in standard Oracle Cloud Infrastructure format, i.e. us-ashburn-1 */ region: pulumi.Input; /** * A table name within the compartment, or a table OCID. * * ** IMPORTANT ** * Any change to a property that is not identified as "Updateable" will force the destruction and recreation of the resource with the new property values. */ tableNameOrId: pulumi.Input; } //# sourceMappingURL=tableReplica.d.ts.map