1. Packages
  2. RedisCloud
  3. API Docs
  4. ActiveActiveSubscription
Redis Cloud v1.2.6 published on Monday, May 15, 2023 by RedisLabs

rediscloud.ActiveActiveSubscription

Explore with Pulumi AI

rediscloud logo
Redis Cloud v1.2.6 published on Monday, May 15, 2023 by RedisLabs

    Import

    rediscloud_active_active_subscription can be imported using the ID of the subscription, e.g.

     $ pulumi import rediscloud:index/activeActiveSubscription:ActiveActiveSubscription subscription-resource 12345678
    

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rediscloud = Pulumi.Rediscloud;
    using Rediscloud = RedisLabs.Rediscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var card = Rediscloud.GetPaymentMethod.Invoke(new()
        {
            CardType = "Visa",
        });
    
        var subscription_resource = new Rediscloud.ActiveActiveSubscription("subscription-resource", new()
        {
            PaymentMethodId = card.Apply(getPaymentMethodResult => getPaymentMethodResult.Id),
            CloudProvider = "AWS",
            CreationPlan = new Rediscloud.Inputs.ActiveActiveSubscriptionCreationPlanArgs
            {
                MemoryLimitInGb = 1,
                Quantity = 1,
                Regions = new[]
                {
                    new Rediscloud.Inputs.ActiveActiveSubscriptionCreationPlanRegionArgs
                    {
                        Region = "us-east-1",
                        NetworkingDeploymentCidr = "192.168.0.0/24",
                        WriteOperationsPerSecond = 1000,
                        ReadOperationsPerSecond = 1000,
                    },
                    new Rediscloud.Inputs.ActiveActiveSubscriptionCreationPlanRegionArgs
                    {
                        Region = "us-east-2",
                        NetworkingDeploymentCidr = "10.0.1.0/24",
                        WriteOperationsPerSecond = 1000,
                        ReadOperationsPerSecond = 1000,
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		card, err := rediscloud.GetPaymentMethod(ctx, &rediscloud.GetPaymentMethodArgs{
    			CardType: pulumi.StringRef("Visa"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = rediscloud.NewActiveActiveSubscription(ctx, "subscription-resource", &rediscloud.ActiveActiveSubscriptionArgs{
    			PaymentMethodId: *pulumi.String(card.Id),
    			CloudProvider:   pulumi.String("AWS"),
    			CreationPlan: &rediscloud.ActiveActiveSubscriptionCreationPlanArgs{
    				MemoryLimitInGb: pulumi.Float64(1),
    				Quantity:        pulumi.Int(1),
    				Regions: rediscloud.ActiveActiveSubscriptionCreationPlanRegionArray{
    					&rediscloud.ActiveActiveSubscriptionCreationPlanRegionArgs{
    						Region:                   pulumi.String("us-east-1"),
    						NetworkingDeploymentCidr: pulumi.String("192.168.0.0/24"),
    						WriteOperationsPerSecond: pulumi.Int(1000),
    						ReadOperationsPerSecond:  pulumi.Int(1000),
    					},
    					&rediscloud.ActiveActiveSubscriptionCreationPlanRegionArgs{
    						Region:                   pulumi.String("us-east-2"),
    						NetworkingDeploymentCidr: pulumi.String("10.0.1.0/24"),
    						WriteOperationsPerSecond: pulumi.Int(1000),
    						ReadOperationsPerSecond:  pulumi.Int(1000),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rediscloud.RediscloudFunctions;
    import com.pulumi.rediscloud.inputs.GetPaymentMethodArgs;
    import com.pulumi.rediscloud.ActiveActiveSubscription;
    import com.pulumi.rediscloud.ActiveActiveSubscriptionArgs;
    import com.pulumi.rediscloud.inputs.ActiveActiveSubscriptionCreationPlanArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var card = RediscloudFunctions.getPaymentMethod(GetPaymentMethodArgs.builder()
                .cardType("Visa")
                .build());
    
            var subscription_resource = new ActiveActiveSubscription("subscription-resource", ActiveActiveSubscriptionArgs.builder()        
                .paymentMethodId(card.applyValue(getPaymentMethodResult -> getPaymentMethodResult.id()))
                .cloudProvider("AWS")
                .creationPlan(ActiveActiveSubscriptionCreationPlanArgs.builder()
                    .memoryLimitInGb(1)
                    .quantity(1)
                    .regions(                
                        ActiveActiveSubscriptionCreationPlanRegionArgs.builder()
                            .region("us-east-1")
                            .networkingDeploymentCidr("192.168.0.0/24")
                            .writeOperationsPerSecond(1000)
                            .readOperationsPerSecond(1000)
                            .build(),
                        ActiveActiveSubscriptionCreationPlanRegionArgs.builder()
                            .region("us-east-2")
                            .networkingDeploymentCidr("10.0.1.0/24")
                            .writeOperationsPerSecond(1000)
                            .readOperationsPerSecond(1000)
                            .build())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_rediscloud as rediscloud
    
    card = rediscloud.get_payment_method(card_type="Visa")
    subscription_resource = rediscloud.ActiveActiveSubscription("subscription-resource",
        payment_method_id=card.id,
        cloud_provider="AWS",
        creation_plan=rediscloud.ActiveActiveSubscriptionCreationPlanArgs(
            memory_limit_in_gb=1,
            quantity=1,
            regions=[
                rediscloud.ActiveActiveSubscriptionCreationPlanRegionArgs(
                    region="us-east-1",
                    networking_deployment_cidr="192.168.0.0/24",
                    write_operations_per_second=1000,
                    read_operations_per_second=1000,
                ),
                rediscloud.ActiveActiveSubscriptionCreationPlanRegionArgs(
                    region="us-east-2",
                    networking_deployment_cidr="10.0.1.0/24",
                    write_operations_per_second=1000,
                    read_operations_per_second=1000,
                ),
            ],
        ))
    
    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,
                },
            ],
        },
    });
    
    resources:
      subscription-resource:
        type: rediscloud:ActiveActiveSubscription
        properties:
          paymentMethodId: ${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
    variables:
      card:
        fn::invoke:
          Function: rediscloud:getPaymentMethod
          Arguments:
            cardType: Visa
    

    Create ActiveActiveSubscription Resource

    new ActiveActiveSubscription(name: string, args?: ActiveActiveSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def ActiveActiveSubscription(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 cloud_provider: Optional[str] = None,
                                 creation_plan: Optional[ActiveActiveSubscriptionCreationPlanArgs] = None,
                                 name: Optional[str] = None,
                                 payment_method: Optional[str] = None,
                                 payment_method_id: Optional[str] = None)
    @overload
    def ActiveActiveSubscription(resource_name: str,
                                 args: Optional[ActiveActiveSubscriptionArgs] = None,
                                 opts: Optional[ResourceOptions] = None)
    func NewActiveActiveSubscription(ctx *Context, name string, args *ActiveActiveSubscriptionArgs, opts ...ResourceOption) (*ActiveActiveSubscription, error)
    public ActiveActiveSubscription(string name, ActiveActiveSubscriptionArgs? args = null, CustomResourceOptions? opts = null)
    public ActiveActiveSubscription(String name, ActiveActiveSubscriptionArgs args)
    public ActiveActiveSubscription(String name, ActiveActiveSubscriptionArgs args, CustomResourceOptions options)
    
    type: rediscloud:ActiveActiveSubscription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ActiveActiveSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ActiveActiveSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ActiveActiveSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActiveActiveSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActiveActiveSubscriptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ActiveActiveSubscription Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ActiveActiveSubscription resource accepts the following input properties:

    CloudProvider string

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    CreationPlan RedisLabs.Rediscloud.Inputs.ActiveActiveSubscriptionCreationPlan

    A creation plan object, documented below

    Name string

    A meaningful name to identify the subscription

    PaymentMethod string

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    PaymentMethodId string

    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

    CloudProvider string

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    CreationPlan ActiveActiveSubscriptionCreationPlanArgs

    A creation plan object, documented below

    Name string

    A meaningful name to identify the subscription

    PaymentMethod string

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    PaymentMethodId string

    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

    cloudProvider String

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    creationPlan ActiveActiveSubscriptionCreationPlan

    A creation plan object, documented below

    name String

    A meaningful name to identify the subscription

    paymentMethod String

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    paymentMethodId String

    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

    cloudProvider string

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    creationPlan ActiveActiveSubscriptionCreationPlan

    A creation plan object, documented below

    name string

    A meaningful name to identify the subscription

    paymentMethod string

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    paymentMethodId string

    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

    cloud_provider str

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    creation_plan ActiveActiveSubscriptionCreationPlanArgs

    A creation plan object, documented below

    name str

    A meaningful name to identify the subscription

    payment_method str

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    payment_method_id str

    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

    cloudProvider String

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    creationPlan Property Map

    A creation plan object, documented below

    name String

    A meaningful name to identify the subscription

    paymentMethod String

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    paymentMethodId String

    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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ActiveActiveSubscription resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing ActiveActiveSubscription Resource

    Get an existing ActiveActiveSubscription resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ActiveActiveSubscriptionState, opts?: CustomResourceOptions): ActiveActiveSubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cloud_provider: Optional[str] = None,
            creation_plan: Optional[ActiveActiveSubscriptionCreationPlanArgs] = None,
            name: Optional[str] = None,
            payment_method: Optional[str] = None,
            payment_method_id: Optional[str] = None) -> ActiveActiveSubscription
    func GetActiveActiveSubscription(ctx *Context, name string, id IDInput, state *ActiveActiveSubscriptionState, opts ...ResourceOption) (*ActiveActiveSubscription, error)
    public static ActiveActiveSubscription Get(string name, Input<string> id, ActiveActiveSubscriptionState? state, CustomResourceOptions? opts = null)
    public static ActiveActiveSubscription get(String name, Output<String> id, ActiveActiveSubscriptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CloudProvider string

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    CreationPlan RedisLabs.Rediscloud.Inputs.ActiveActiveSubscriptionCreationPlan

    A creation plan object, documented below

    Name string

    A meaningful name to identify the subscription

    PaymentMethod string

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    PaymentMethodId string

    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

    CloudProvider string

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    CreationPlan ActiveActiveSubscriptionCreationPlanArgs

    A creation plan object, documented below

    Name string

    A meaningful name to identify the subscription

    PaymentMethod string

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    PaymentMethodId string

    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

    cloudProvider String

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    creationPlan ActiveActiveSubscriptionCreationPlan

    A creation plan object, documented below

    name String

    A meaningful name to identify the subscription

    paymentMethod String

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    paymentMethodId String

    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

    cloudProvider string

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    creationPlan ActiveActiveSubscriptionCreationPlan

    A creation plan object, documented below

    name string

    A meaningful name to identify the subscription

    paymentMethod string

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    paymentMethodId string

    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

    cloud_provider str

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    creation_plan ActiveActiveSubscriptionCreationPlanArgs

    A creation plan object, documented below

    name str

    A meaningful name to identify the subscription

    payment_method str

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    payment_method_id str

    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

    cloudProvider String

    The cloud provider to use with the subscription, (either AWS or GCP). Default: ‘AWS’

    creationPlan Property Map

    A creation plan object, documented below

    name String

    A meaningful name to identify the subscription

    paymentMethod String

    The payment method for the requested subscription, (either credit-card or marketplace). If credit-card is specified, payment_method_id must be defined. Default: 'credit-card'

    paymentMethodId String

    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

    Supporting Types

    ActiveActiveSubscriptionCreationPlan, ActiveActiveSubscriptionCreationPlanArgs

    MemoryLimitInGb double

    Maximum memory usage that will be used for your largest planned database, including replication and other overhead

    Quantity int

    The planned number of databases in the subscription.

    Regions List<RedisLabs.Rediscloud.Inputs.ActiveActiveSubscriptionCreationPlanRegion>
    MemoryLimitInGb float64

    Maximum memory usage that will be used for your largest planned database, including replication and other overhead

    Quantity int

    The planned number of databases in the subscription.

    Regions []ActiveActiveSubscriptionCreationPlanRegion
    memoryLimitInGb Double

    Maximum memory usage that will be used for your largest planned database, including replication and other overhead

    quantity Integer

    The planned number of databases in the subscription.

    regions List<ActiveActiveSubscriptionCreationPlanRegion>
    memoryLimitInGb number

    Maximum memory usage that will be used for your largest planned database, including replication and other overhead

    quantity number

    The planned number of databases in the subscription.

    regions ActiveActiveSubscriptionCreationPlanRegion[]
    memory_limit_in_gb float

    Maximum memory usage that will be used for your largest planned database, including replication and other overhead

    quantity int

    The planned number of databases in the subscription.

    regions Sequence[ActiveActiveSubscriptionCreationPlanRegion]
    memoryLimitInGb Number

    Maximum memory usage that will be used for your largest planned database, including replication and other overhead

    quantity Number

    The planned number of databases in the subscription.

    regions List<Property Map>

    ActiveActiveSubscriptionCreationPlanRegion, ActiveActiveSubscriptionCreationPlanRegionArgs

    NetworkingDeploymentCidr string

    Deployment CIDR mask. The total number of bits must be 24 (x.x.x.x/24)

    ReadOperationsPerSecond int

    Throughput measurement for an active-active subscription

    Region string

    Deployment region as defined by cloud provider

    WriteOperationsPerSecond int

    Throughput measurement for an active-active subscription

    NetworkingDeploymentCidr string

    Deployment CIDR mask. The total number of bits must be 24 (x.x.x.x/24)

    ReadOperationsPerSecond int

    Throughput measurement for an active-active subscription

    Region string

    Deployment region as defined by cloud provider

    WriteOperationsPerSecond int

    Throughput measurement for an active-active subscription

    networkingDeploymentCidr String

    Deployment CIDR mask. The total number of bits must be 24 (x.x.x.x/24)

    readOperationsPerSecond Integer

    Throughput measurement for an active-active subscription

    region String

    Deployment region as defined by cloud provider

    writeOperationsPerSecond Integer

    Throughput measurement for an active-active subscription

    networkingDeploymentCidr string

    Deployment CIDR mask. The total number of bits must be 24 (x.x.x.x/24)

    readOperationsPerSecond number

    Throughput measurement for an active-active subscription

    region string

    Deployment region as defined by cloud provider

    writeOperationsPerSecond number

    Throughput measurement for an active-active subscription

    networking_deployment_cidr str

    Deployment CIDR mask. The total number of bits must be 24 (x.x.x.x/24)

    read_operations_per_second int

    Throughput measurement for an active-active subscription

    region str

    Deployment region as defined by cloud provider

    write_operations_per_second int

    Throughput measurement for an active-active subscription

    networkingDeploymentCidr String

    Deployment CIDR mask. The total number of bits must be 24 (x.x.x.x/24)

    readOperationsPerSecond Number

    Throughput measurement for an active-active subscription

    region String

    Deployment region as defined by cloud provider

    writeOperationsPerSecond Number

    Throughput measurement for an active-active subscription

    Package Details

    Repository
    rediscloud RedisLabs/pulumi-rediscloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the rediscloud Terraform Provider.

    rediscloud logo
    Redis Cloud v1.2.6 published on Monday, May 15, 2023 by RedisLabs