tencentcloud.RedisConnectionConfig
Explore with Pulumi AI
Provides a resource to create a redis connection config
Example Usage
Create RedisConnectionConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RedisConnectionConfig(name: string, args: RedisConnectionConfigArgs, opts?: CustomResourceOptions);
@overload
def RedisConnectionConfig(resource_name: str,
args: RedisConnectionConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RedisConnectionConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
add_bandwidth: Optional[float] = None,
client_limit: Optional[float] = None,
redis_connection_config_id: Optional[str] = None)
func NewRedisConnectionConfig(ctx *Context, name string, args RedisConnectionConfigArgs, opts ...ResourceOption) (*RedisConnectionConfig, error)
public RedisConnectionConfig(string name, RedisConnectionConfigArgs args, CustomResourceOptions? opts = null)
public RedisConnectionConfig(String name, RedisConnectionConfigArgs args)
public RedisConnectionConfig(String name, RedisConnectionConfigArgs args, CustomResourceOptions options)
type: tencentcloud:RedisConnectionConfig
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 RedisConnectionConfigArgs
- 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 RedisConnectionConfigArgs
- 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 RedisConnectionConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisConnectionConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RedisConnectionConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RedisConnectionConfig 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 RedisConnectionConfig resource accepts the following input properties:
- Instance
Id string - The ID of instance.
- Add
Bandwidth double - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- Client
Limit double - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- Redis
Connection stringConfig Id - ID of the resource.
- Instance
Id string - The ID of instance.
- Add
Bandwidth float64 - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- Client
Limit float64 - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- Redis
Connection stringConfig Id - ID of the resource.
- instance
Id String - The ID of instance.
- add
Bandwidth Double - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- client
Limit Double - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- redis
Connection StringConfig Id - ID of the resource.
- instance
Id string - The ID of instance.
- add
Bandwidth number - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- client
Limit number - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- redis
Connection stringConfig Id - ID of the resource.
- instance_
id str - The ID of instance.
- add_
bandwidth float - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- client_
limit float - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- redis_
connection_ strconfig_ id - ID of the resource.
- instance
Id String - The ID of instance.
- add
Bandwidth Number - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- client
Limit Number - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- redis
Connection StringConfig Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RedisConnectionConfig resource produces the following output properties:
- Base
Bandwidth double - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Add doubleBandwidth - Additional bandwidth is capped.
- Min
Add doubleBandwidth - Additional bandwidth sets the lower limit.
- Total
Bandwidth double - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- Base
Bandwidth float64 - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Add float64Bandwidth - Additional bandwidth is capped.
- Min
Add float64Bandwidth - Additional bandwidth sets the lower limit.
- Total
Bandwidth float64 - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- base
Bandwidth Double - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Add DoubleBandwidth - Additional bandwidth is capped.
- min
Add DoubleBandwidth - Additional bandwidth sets the lower limit.
- total
Bandwidth Double - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- base
Bandwidth number - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- id string
- The provider-assigned unique ID for this managed resource.
- max
Add numberBandwidth - Additional bandwidth is capped.
- min
Add numberBandwidth - Additional bandwidth sets the lower limit.
- total
Bandwidth number - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- base_
bandwidth float - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- id str
- The provider-assigned unique ID for this managed resource.
- max_
add_ floatbandwidth - Additional bandwidth is capped.
- min_
add_ floatbandwidth - Additional bandwidth sets the lower limit.
- total_
bandwidth float - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- base
Bandwidth Number - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Add NumberBandwidth - Additional bandwidth is capped.
- min
Add NumberBandwidth - Additional bandwidth sets the lower limit.
- total
Bandwidth Number - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
Look up Existing RedisConnectionConfig Resource
Get an existing RedisConnectionConfig 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?: RedisConnectionConfigState, opts?: CustomResourceOptions): RedisConnectionConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
add_bandwidth: Optional[float] = None,
base_bandwidth: Optional[float] = None,
client_limit: Optional[float] = None,
instance_id: Optional[str] = None,
max_add_bandwidth: Optional[float] = None,
min_add_bandwidth: Optional[float] = None,
redis_connection_config_id: Optional[str] = None,
total_bandwidth: Optional[float] = None) -> RedisConnectionConfig
func GetRedisConnectionConfig(ctx *Context, name string, id IDInput, state *RedisConnectionConfigState, opts ...ResourceOption) (*RedisConnectionConfig, error)
public static RedisConnectionConfig Get(string name, Input<string> id, RedisConnectionConfigState? state, CustomResourceOptions? opts = null)
public static RedisConnectionConfig get(String name, Output<String> id, RedisConnectionConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:RedisConnectionConfig 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.
- Add
Bandwidth double - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- Base
Bandwidth double - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- Client
Limit double - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- Instance
Id string - The ID of instance.
- Max
Add doubleBandwidth - Additional bandwidth is capped.
- Min
Add doubleBandwidth - Additional bandwidth sets the lower limit.
- Redis
Connection stringConfig Id - ID of the resource.
- Total
Bandwidth double - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- Add
Bandwidth float64 - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- Base
Bandwidth float64 - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- Client
Limit float64 - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- Instance
Id string - The ID of instance.
- Max
Add float64Bandwidth - Additional bandwidth is capped.
- Min
Add float64Bandwidth - Additional bandwidth sets the lower limit.
- Redis
Connection stringConfig Id - ID of the resource.
- Total
Bandwidth float64 - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- add
Bandwidth Double - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- base
Bandwidth Double - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- client
Limit Double - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- instance
Id String - The ID of instance.
- max
Add DoubleBandwidth - Additional bandwidth is capped.
- min
Add DoubleBandwidth - Additional bandwidth sets the lower limit.
- redis
Connection StringConfig Id - ID of the resource.
- total
Bandwidth Double - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- add
Bandwidth number - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- base
Bandwidth number - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- client
Limit number - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- instance
Id string - The ID of instance.
- max
Add numberBandwidth - Additional bandwidth is capped.
- min
Add numberBandwidth - Additional bandwidth sets the lower limit.
- redis
Connection stringConfig Id - ID of the resource.
- total
Bandwidth number - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- add_
bandwidth float - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- base_
bandwidth float - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- client_
limit float - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- instance_
id str - The ID of instance.
- max_
add_ floatbandwidth - Additional bandwidth is capped.
- min_
add_ floatbandwidth - Additional bandwidth sets the lower limit.
- redis_
connection_ strconfig_ id - ID of the resource.
- total_
bandwidth float - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
- add
Bandwidth Number - Refers to the additional bandwidth of the instance. When the standard bandwidth does not meet the demand, the user can increase the bandwidth by himself. When the read-only copy is enabled, the total bandwidth of the instance = additional bandwidth * number of fragments + standard bandwidth * number of fragments * Max ([number of read-only replicas, 1] ), the number of shards in the standard architecture = 1, and when read-only replicas are not enabled, the total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards, and the number of shards in the standard architecture = 1.
- base
Bandwidth Number - standard bandwidth. Refers to the bandwidth allocated by the system to each node when an instance is purchased.
- client
Limit Number - The total number of connections per shard.If read-only replicas are not enabled, the lower limit is 10,000 and the upper limit is 40,000.When you enable read-only replicas, the minimum limit is 10,000 and the upper limit is 10,000 * (the number of read replicas +3).
- instance
Id String - The ID of instance.
- max
Add NumberBandwidth - Additional bandwidth is capped.
- min
Add NumberBandwidth - Additional bandwidth sets the lower limit.
- redis
Connection StringConfig Id - ID of the resource.
- total
Bandwidth Number - Total bandwidth of the instance = additional bandwidth * number of shards + standard bandwidth * number of shards * (number of primary nodes + number of read-only replica nodes), the number of shards of the standard architecture = 1, in Mb/s.
Import
redis connection config can be imported, e.g.
$ pulumi import tencentcloud:index/redisConnectionConfig:RedisConnectionConfig example crs-cqdfdzvt
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.