1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. RedisSwitchMaster
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.RedisSwitchMaster

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a redis switch master

    Create RedisSwitchMaster Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RedisSwitchMaster(name: string, args: RedisSwitchMasterArgs, opts?: CustomResourceOptions);
    @overload
    def RedisSwitchMaster(resource_name: str,
                          args: RedisSwitchMasterArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def RedisSwitchMaster(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          instance_id: Optional[str] = None,
                          group_id: Optional[float] = None,
                          redis_switch_master_id: Optional[str] = None)
    func NewRedisSwitchMaster(ctx *Context, name string, args RedisSwitchMasterArgs, opts ...ResourceOption) (*RedisSwitchMaster, error)
    public RedisSwitchMaster(string name, RedisSwitchMasterArgs args, CustomResourceOptions? opts = null)
    public RedisSwitchMaster(String name, RedisSwitchMasterArgs args)
    public RedisSwitchMaster(String name, RedisSwitchMasterArgs args, CustomResourceOptions options)
    
    type: tencentcloud:RedisSwitchMaster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RedisSwitchMasterArgs
    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 RedisSwitchMasterArgs
    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 RedisSwitchMasterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RedisSwitchMasterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RedisSwitchMasterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    RedisSwitchMaster Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RedisSwitchMaster resource accepts the following input properties:

    InstanceId string
    The ID of instance.
    GroupId double
    Replication group ID, required for multi-AZ instances.
    RedisSwitchMasterId string
    ID of the resource.
    InstanceId string
    The ID of instance.
    GroupId float64
    Replication group ID, required for multi-AZ instances.
    RedisSwitchMasterId string
    ID of the resource.
    instanceId String
    The ID of instance.
    groupId Double
    Replication group ID, required for multi-AZ instances.
    redisSwitchMasterId String
    ID of the resource.
    instanceId string
    The ID of instance.
    groupId number
    Replication group ID, required for multi-AZ instances.
    redisSwitchMasterId string
    ID of the resource.
    instance_id str
    The ID of instance.
    group_id float
    Replication group ID, required for multi-AZ instances.
    redis_switch_master_id str
    ID of the resource.
    instanceId String
    The ID of instance.
    groupId Number
    Replication group ID, required for multi-AZ instances.
    redisSwitchMasterId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RedisSwitchMaster 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 RedisSwitchMaster Resource

    Get an existing RedisSwitchMaster 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?: RedisSwitchMasterState, opts?: CustomResourceOptions): RedisSwitchMaster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_id: Optional[float] = None,
            instance_id: Optional[str] = None,
            redis_switch_master_id: Optional[str] = None) -> RedisSwitchMaster
    func GetRedisSwitchMaster(ctx *Context, name string, id IDInput, state *RedisSwitchMasterState, opts ...ResourceOption) (*RedisSwitchMaster, error)
    public static RedisSwitchMaster Get(string name, Input<string> id, RedisSwitchMasterState? state, CustomResourceOptions? opts = null)
    public static RedisSwitchMaster get(String name, Output<String> id, RedisSwitchMasterState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:RedisSwitchMaster    get:      id: ${id}
    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:
    GroupId double
    Replication group ID, required for multi-AZ instances.
    InstanceId string
    The ID of instance.
    RedisSwitchMasterId string
    ID of the resource.
    GroupId float64
    Replication group ID, required for multi-AZ instances.
    InstanceId string
    The ID of instance.
    RedisSwitchMasterId string
    ID of the resource.
    groupId Double
    Replication group ID, required for multi-AZ instances.
    instanceId String
    The ID of instance.
    redisSwitchMasterId String
    ID of the resource.
    groupId number
    Replication group ID, required for multi-AZ instances.
    instanceId string
    The ID of instance.
    redisSwitchMasterId string
    ID of the resource.
    group_id float
    Replication group ID, required for multi-AZ instances.
    instance_id str
    The ID of instance.
    redis_switch_master_id str
    ID of the resource.
    groupId Number
    Replication group ID, required for multi-AZ instances.
    instanceId String
    The ID of instance.
    redisSwitchMasterId String
    ID of the resource.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack