import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as rediscloud from "@pulumi/rediscloud"; * import * as rediscloud from "@rediscloud/pulumi-rediscloud"; * * const card = rediscloud.getPaymentMethod({ * cardType: "Visa", * }); * const subscription_resource = new rediscloud.ActiveActiveSubscription("subscription-resource", { * paymentMethodId: card.then(card => card.id), * cloudProvider: "AWS", * creationPlan: { * memoryLimitInGb: 1, * quantity: 1, * regions: [ * { * region: "us-east-1", * networkingDeploymentCidr: "192.168.0.0/24", * writeOperationsPerSecond: 1000, * readOperationsPerSecond: 1000, * }, * { * region: "us-east-2", * networkingDeploymentCidr: "10.0.1.0/24", * writeOperationsPerSecond: 1000, * readOperationsPerSecond: 1000, * }, * ], * }, * }); * ``` * * ## Import * * `rediscloud_active_active_subscription` can be imported using the ID of the subscription, e.g. * * ```sh * $ pulumi import rediscloud:index/activeActiveSubscription:ActiveActiveSubscription subscription-resource 12345678 * ``` * ~> __Note:__ the creation_plan block will be ignored during imports. */ export declare class ActiveActiveSubscription extends pulumi.CustomResource { /** * Get an existing ActiveActiveSubscription 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?: ActiveActiveSubscriptionState, opts?: pulumi.CustomResourceOptions): ActiveActiveSubscription; /** * Returns true if the given object is an instance of ActiveActiveSubscription. 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 ActiveActiveSubscription; /** * The cloud provider to use with the subscription, (either `AWS` or `GCP`). Default: ‘AWS’. **Modifying this attribute will force creation of a new resource.** */ readonly cloudProvider: pulumi.Output; /** * A creation plan object, documented below */ readonly creationPlan: pulumi.Output; /** * A meaningful name to identify the subscription */ readonly name: pulumi.Output; /** * The payment method for the requested subscription, (either `credit-card` or `marketplace`). If `credit-card` is specified, `paymentMethodId` must be defined. Default: 'credit-card'. **Modifying this attribute will force creation of a new resource.** */ readonly paymentMethod: pulumi.Output; /** * A valid payment method pre-defined in the current account. This value is __Optional__ for AWS/GCP Marketplace accounts, but __Required__ for all other account types */ readonly paymentMethodId: pulumi.Output; /** * Create a ActiveActiveSubscription 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?: ActiveActiveSubscriptionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActiveActiveSubscription resources. */ export interface ActiveActiveSubscriptionState { /** * The cloud provider to use with the subscription, (either `AWS` or `GCP`). Default: ‘AWS’. **Modifying this attribute will force creation of a new resource.** */ cloudProvider?: pulumi.Input; /** * A creation plan object, documented below */ creationPlan?: pulumi.Input; /** * A meaningful name to identify the subscription */ name?: pulumi.Input; /** * The payment method for the requested subscription, (either `credit-card` or `marketplace`). If `credit-card` is specified, `paymentMethodId` must be defined. Default: 'credit-card'. **Modifying this attribute will force creation of a new resource.** */ paymentMethod?: pulumi.Input; /** * A valid payment method pre-defined in the current account. This value is __Optional__ for AWS/GCP Marketplace accounts, but __Required__ for all other account types */ paymentMethodId?: pulumi.Input; } /** * The set of arguments for constructing a ActiveActiveSubscription resource. */ export interface ActiveActiveSubscriptionArgs { /** * The cloud provider to use with the subscription, (either `AWS` or `GCP`). Default: ‘AWS’. **Modifying this attribute will force creation of a new resource.** */ cloudProvider?: pulumi.Input; /** * A creation plan object, documented below */ creationPlan?: pulumi.Input; /** * A meaningful name to identify the subscription */ name?: pulumi.Input; /** * The payment method for the requested subscription, (either `credit-card` or `marketplace`). If `credit-card` is specified, `paymentMethodId` must be defined. Default: 'credit-card'. **Modifying this attribute will force creation of a new resource.** */ paymentMethod?: pulumi.Input; /** * A valid payment method pre-defined in the current account. This value is __Optional__ for AWS/GCP Marketplace accounts, but __Required__ for all other account types */ paymentMethodId?: pulumi.Input; }