tencentcloud.MariadbInstanceConfig
Explore with Pulumi AI
Provides a resource to create a mariadb instance_config
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
test:
type: tencentcloud:MariadbInstanceConfig
properties:
extranetAccess: 0
instanceId: tdsql-9vqvls95
rsAccessStrategy: 1
subnetId: subnet-3ku415by
vip: 127.0.0.1
vpcId: vpc-ii1jfbhl
Create MariadbInstanceConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MariadbInstanceConfig(name: string, args: MariadbInstanceConfigArgs, opts?: CustomResourceOptions);
@overload
def MariadbInstanceConfig(resource_name: str,
args: MariadbInstanceConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MariadbInstanceConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
extranet_access: Optional[float] = None,
mariadb_instance_config_id: Optional[str] = None,
rs_access_strategy: Optional[float] = None)
func NewMariadbInstanceConfig(ctx *Context, name string, args MariadbInstanceConfigArgs, opts ...ResourceOption) (*MariadbInstanceConfig, error)
public MariadbInstanceConfig(string name, MariadbInstanceConfigArgs args, CustomResourceOptions? opts = null)
public MariadbInstanceConfig(String name, MariadbInstanceConfigArgs args)
public MariadbInstanceConfig(String name, MariadbInstanceConfigArgs args, CustomResourceOptions options)
type: tencentcloud:MariadbInstanceConfig
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 MariadbInstanceConfigArgs
- 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 MariadbInstanceConfigArgs
- 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 MariadbInstanceConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MariadbInstanceConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MariadbInstanceConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MariadbInstanceConfig 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 MariadbInstanceConfig resource accepts the following input properties:
- Instance
Id string - instance id.
- Extranet
Access double - External network status, 0-closed; 1- Opening; Default not enabled.
- Mariadb
Instance stringConfig Id - ID of the resource.
- Rs
Access doubleStrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- Instance
Id string - instance id.
- Extranet
Access float64 - External network status, 0-closed; 1- Opening; Default not enabled.
- Mariadb
Instance stringConfig Id - ID of the resource.
- Rs
Access float64Strategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- instance
Id String - instance id.
- extranet
Access Double - External network status, 0-closed; 1- Opening; Default not enabled.
- mariadb
Instance StringConfig Id - ID of the resource.
- rs
Access DoubleStrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- instance
Id string - instance id.
- extranet
Access number - External network status, 0-closed; 1- Opening; Default not enabled.
- mariadb
Instance stringConfig Id - ID of the resource.
- rs
Access numberStrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- instance_
id str - instance id.
- extranet_
access float - External network status, 0-closed; 1- Opening; Default not enabled.
- mariadb_
instance_ strconfig_ id - ID of the resource.
- rs_
access_ floatstrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- instance
Id String - instance id.
- extranet
Access Number - External network status, 0-closed; 1- Opening; Default not enabled.
- mariadb
Instance StringConfig Id - ID of the resource.
- rs
Access NumberStrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the MariadbInstanceConfig 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 MariadbInstanceConfig Resource
Get an existing MariadbInstanceConfig 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?: MariadbInstanceConfigState, opts?: CustomResourceOptions): MariadbInstanceConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
extranet_access: Optional[float] = None,
instance_id: Optional[str] = None,
mariadb_instance_config_id: Optional[str] = None,
rs_access_strategy: Optional[float] = None) -> MariadbInstanceConfig
func GetMariadbInstanceConfig(ctx *Context, name string, id IDInput, state *MariadbInstanceConfigState, opts ...ResourceOption) (*MariadbInstanceConfig, error)
public static MariadbInstanceConfig Get(string name, Input<string> id, MariadbInstanceConfigState? state, CustomResourceOptions? opts = null)
public static MariadbInstanceConfig get(String name, Output<String> id, MariadbInstanceConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MariadbInstanceConfig 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.
- Extranet
Access double - External network status, 0-closed; 1- Opening; Default not enabled.
- Instance
Id string - instance id.
- Mariadb
Instance stringConfig Id - ID of the resource.
- Rs
Access doubleStrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- Extranet
Access float64 - External network status, 0-closed; 1- Opening; Default not enabled.
- Instance
Id string - instance id.
- Mariadb
Instance stringConfig Id - ID of the resource.
- Rs
Access float64Strategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- extranet
Access Double - External network status, 0-closed; 1- Opening; Default not enabled.
- instance
Id String - instance id.
- mariadb
Instance StringConfig Id - ID of the resource.
- rs
Access DoubleStrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- extranet
Access number - External network status, 0-closed; 1- Opening; Default not enabled.
- instance
Id string - instance id.
- mariadb
Instance stringConfig Id - ID of the resource.
- rs
Access numberStrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- extranet_
access float - External network status, 0-closed; 1- Opening; Default not enabled.
- instance_
id str - instance id.
- mariadb_
instance_ strconfig_ id - ID of the resource.
- rs_
access_ floatstrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
- extranet
Access Number - External network status, 0-closed; 1- Opening; Default not enabled.
- instance
Id String - instance id.
- mariadb
Instance StringConfig Id - ID of the resource.
- rs
Access NumberStrategy - RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
Import
mariadb instance_config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mariadbInstanceConfig:MariadbInstanceConfig test id
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.