tencentcloud.RedisReadOnly
Explore with Pulumi AI
Provides a resource to create a redis read only
Example Usage
Create RedisReadOnly Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RedisReadOnly(name: string, args: RedisReadOnlyArgs, opts?: CustomResourceOptions);
@overload
def RedisReadOnly(resource_name: str,
args: RedisReadOnlyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RedisReadOnly(resource_name: str,
opts: Optional[ResourceOptions] = None,
input_mode: Optional[str] = None,
instance_id: Optional[str] = None,
redis_read_only_id: Optional[str] = None)
func NewRedisReadOnly(ctx *Context, name string, args RedisReadOnlyArgs, opts ...ResourceOption) (*RedisReadOnly, error)
public RedisReadOnly(string name, RedisReadOnlyArgs args, CustomResourceOptions? opts = null)
public RedisReadOnly(String name, RedisReadOnlyArgs args)
public RedisReadOnly(String name, RedisReadOnlyArgs args, CustomResourceOptions options)
type: tencentcloud:RedisReadOnly
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 RedisReadOnlyArgs
- 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 RedisReadOnlyArgs
- 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 RedisReadOnlyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RedisReadOnlyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RedisReadOnlyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RedisReadOnly 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 RedisReadOnly resource accepts the following input properties:
- Input
Mode string - Instance input mode:
0
: read-write;1
: read-only. - Instance
Id string - The ID of instance.
- Redis
Read stringOnly Id - ID of the resource.
- Input
Mode string - Instance input mode:
0
: read-write;1
: read-only. - Instance
Id string - The ID of instance.
- Redis
Read stringOnly Id - ID of the resource.
- input
Mode String - Instance input mode:
0
: read-write;1
: read-only. - instance
Id String - The ID of instance.
- redis
Read StringOnly Id - ID of the resource.
- input
Mode string - Instance input mode:
0
: read-write;1
: read-only. - instance
Id string - The ID of instance.
- redis
Read stringOnly Id - ID of the resource.
- input_
mode str - Instance input mode:
0
: read-write;1
: read-only. - instance_
id str - The ID of instance.
- redis_
read_ stronly_ id - ID of the resource.
- input
Mode String - Instance input mode:
0
: read-write;1
: read-only. - instance
Id String - The ID of instance.
- redis
Read StringOnly Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RedisReadOnly 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 RedisReadOnly Resource
Get an existing RedisReadOnly 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?: RedisReadOnlyState, opts?: CustomResourceOptions): RedisReadOnly
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
input_mode: Optional[str] = None,
instance_id: Optional[str] = None,
redis_read_only_id: Optional[str] = None) -> RedisReadOnly
func GetRedisReadOnly(ctx *Context, name string, id IDInput, state *RedisReadOnlyState, opts ...ResourceOption) (*RedisReadOnly, error)
public static RedisReadOnly Get(string name, Input<string> id, RedisReadOnlyState? state, CustomResourceOptions? opts = null)
public static RedisReadOnly get(String name, Output<String> id, RedisReadOnlyState state, CustomResourceOptions options)
resources: _: type: tencentcloud:RedisReadOnly 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.
- Input
Mode string - Instance input mode:
0
: read-write;1
: read-only. - Instance
Id string - The ID of instance.
- Redis
Read stringOnly Id - ID of the resource.
- Input
Mode string - Instance input mode:
0
: read-write;1
: read-only. - Instance
Id string - The ID of instance.
- Redis
Read stringOnly Id - ID of the resource.
- input
Mode String - Instance input mode:
0
: read-write;1
: read-only. - instance
Id String - The ID of instance.
- redis
Read StringOnly Id - ID of the resource.
- input
Mode string - Instance input mode:
0
: read-write;1
: read-only. - instance
Id string - The ID of instance.
- redis
Read stringOnly Id - ID of the resource.
- input_
mode str - Instance input mode:
0
: read-write;1
: read-only. - instance_
id str - The ID of instance.
- redis_
read_ stronly_ id - ID of the resource.
- input
Mode String - Instance input mode:
0
: read-write;1
: read-only. - instance
Id String - The ID of instance.
- redis
Read StringOnly Id - ID of the resource.
Import
redis read_only can be imported using the instanceId, e.g.
$ pulumi import tencentcloud:index/redisReadOnly:RedisReadOnly example crs-c1nl9rpv
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.