import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages regions within your Redis Enterprise Cloud Active-Active subscription. * This resource is responsible for creating and managing regions within that subscription. * This allows Redis Enterprise Cloud to efficiently provision your cluster within each defined region in a separate block. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@rediscloud/pulumi-rediscloud"; * * const regions_resource = new rediscloud.ActiveActiveSubscriptionRegions("regions-resource", { * subscriptionId: rediscloud_active_active_subscription["subscription-resource"].id, * deleteRegions: false, * regions: [ * { * region: "us-east-1", * networkingDeploymentCidr: "192.168.0.0/24", * databases: [{ * databaseId: rediscloud_active_active_subscription_database["database-resource"].db_id, * databaseName: rediscloud_active_active_subscription_database["database-resource"].name, * localWriteOperationsPerSecond: 1000, * localReadOperationsPerSecond: 1000, * }], * }, * { * region: "us-east-2", * networkingDeploymentCidr: "10.0.1.0/24", * databases: [{ * databaseId: rediscloud_active_active_subscription_database["database-resource"].db_id, * databaseName: rediscloud_active_active_subscription_database["database-resource"].name, * localWriteOperationsPerSecond: 2000, * localReadOperationsPerSecond: 4000, * }], * }, * ], * }); * ``` * * ## Import * * `rediscloud_active_active_regions` can be imported using the ID of the subscription, e.g. * * ```sh * $ pulumi import rediscloud:index/activeActiveSubscriptionRegions:ActiveActiveSubscriptionRegions regions-resource 12345678 * ``` */ export declare class ActiveActiveSubscriptionRegions extends pulumi.CustomResource { /** * Get an existing ActiveActiveSubscriptionRegions 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?: ActiveActiveSubscriptionRegionsState, opts?: pulumi.CustomResourceOptions): ActiveActiveSubscriptionRegions; /** * Returns true if the given object is an instance of ActiveActiveSubscriptionRegions. 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 ActiveActiveSubscriptionRegions; /** * Flag required to be set when one or more regions is to be deleted, if the flag is not set an error will be thrown */ readonly deleteRegions: pulumi.Output; /** * Cloud networking details, per region, documented below */ readonly regions: pulumi.Output; /** * ID of the subscription that the regions belong to. **Modifying this attribute will force creation of a new resource.** */ readonly subscriptionId: pulumi.Output; /** * Create a ActiveActiveSubscriptionRegions 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: ActiveActiveSubscriptionRegionsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActiveActiveSubscriptionRegions resources. */ export interface ActiveActiveSubscriptionRegionsState { /** * Flag required to be set when one or more regions is to be deleted, if the flag is not set an error will be thrown */ deleteRegions?: pulumi.Input; /** * Cloud networking details, per region, documented below */ regions?: pulumi.Input[]>; /** * ID of the subscription that the regions belong to. **Modifying this attribute will force creation of a new resource.** */ subscriptionId?: pulumi.Input; } /** * The set of arguments for constructing a ActiveActiveSubscriptionRegions resource. */ export interface ActiveActiveSubscriptionRegionsArgs { /** * Flag required to be set when one or more regions is to be deleted, if the flag is not set an error will be thrown */ deleteRegions?: pulumi.Input; /** * Cloud networking details, per region, documented below */ regions: pulumi.Input[]>; /** * ID of the subscription that the regions belong to. **Modifying this attribute will force creation of a new resource.** */ subscriptionId: pulumi.Input; }