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

tencentcloud.MariadbInstanceConfig

Explore with Pulumi AI

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

    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:

    InstanceId string
    instance id.
    ExtranetAccess double
    External network status, 0-closed; 1- Opening; Default not enabled.
    MariadbInstanceConfigId string
    ID of the resource.
    RsAccessStrategy double
    RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
    InstanceId string
    instance id.
    ExtranetAccess float64
    External network status, 0-closed; 1- Opening; Default not enabled.
    MariadbInstanceConfigId string
    ID of the resource.
    RsAccessStrategy float64
    RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
    instanceId String
    instance id.
    extranetAccess Double
    External network status, 0-closed; 1- Opening; Default not enabled.
    mariadbInstanceConfigId String
    ID of the resource.
    rsAccessStrategy Double
    RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
    instanceId string
    instance id.
    extranetAccess number
    External network status, 0-closed; 1- Opening; Default not enabled.
    mariadbInstanceConfigId string
    ID of the resource.
    rsAccessStrategy number
    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_config_id str
    ID of the resource.
    rs_access_strategy float
    RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
    instanceId String
    instance id.
    extranetAccess Number
    External network status, 0-closed; 1- Opening; Default not enabled.
    mariadbInstanceConfigId String
    ID of the resource.
    rsAccessStrategy Number
    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.
    The following state arguments are supported:
    ExtranetAccess double
    External network status, 0-closed; 1- Opening; Default not enabled.
    InstanceId string
    instance id.
    MariadbInstanceConfigId string
    ID of the resource.
    RsAccessStrategy double
    RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
    ExtranetAccess float64
    External network status, 0-closed; 1- Opening; Default not enabled.
    InstanceId string
    instance id.
    MariadbInstanceConfigId string
    ID of the resource.
    RsAccessStrategy float64
    RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
    extranetAccess Double
    External network status, 0-closed; 1- Opening; Default not enabled.
    instanceId String
    instance id.
    mariadbInstanceConfigId String
    ID of the resource.
    rsAccessStrategy Double
    RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
    extranetAccess number
    External network status, 0-closed; 1- Opening; Default not enabled.
    instanceId string
    instance id.
    mariadbInstanceConfigId string
    ID of the resource.
    rsAccessStrategy number
    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_config_id str
    ID of the resource.
    rs_access_strategy float
    RS proximity mode, 0- no strategy, 1- access to the nearest available zone.
    extranetAccess Number
    External network status, 0-closed; 1- Opening; Default not enabled.
    instanceId String
    instance id.
    mariadbInstanceConfigId String
    ID of the resource.
    rsAccessStrategy Number
    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack