published on Wednesday, Apr 29, 2026 by tencentcloudstack
published on Wednesday, Apr 29, 2026 by tencentcloudstack
Provides a resource to create a BH auth mode config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.BhAuthModeConfig("example", {authMode: 2});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.BhAuthModeConfig("example", auth_mode=2)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewBhAuthModeConfig(ctx, "example", &tencentcloud.BhAuthModeConfigArgs{
AuthMode: pulumi.Float64(2),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.BhAuthModeConfig("example", new()
{
AuthMode = 2,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BhAuthModeConfig;
import com.pulumi.tencentcloud.BhAuthModeConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new BhAuthModeConfig("example", BhAuthModeConfigArgs.builder()
.authMode(2.0)
.build());
}
}
resources:
example:
type: tencentcloud:BhAuthModeConfig
properties:
authMode: 2
Create BhAuthModeConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BhAuthModeConfig(name: string, args?: BhAuthModeConfigArgs, opts?: CustomResourceOptions);@overload
def BhAuthModeConfig(resource_name: str,
args: Optional[BhAuthModeConfigArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def BhAuthModeConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth_mode: Optional[float] = None,
auth_mode_gm: Optional[float] = None,
bh_auth_mode_config_id: Optional[str] = None)func NewBhAuthModeConfig(ctx *Context, name string, args *BhAuthModeConfigArgs, opts ...ResourceOption) (*BhAuthModeConfig, error)public BhAuthModeConfig(string name, BhAuthModeConfigArgs? args = null, CustomResourceOptions? opts = null)
public BhAuthModeConfig(String name, BhAuthModeConfigArgs args)
public BhAuthModeConfig(String name, BhAuthModeConfigArgs args, CustomResourceOptions options)
type: tencentcloud:BhAuthModeConfig
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 BhAuthModeConfigArgs
- 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 BhAuthModeConfigArgs
- 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 BhAuthModeConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BhAuthModeConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BhAuthModeConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BhAuthModeConfig 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 BhAuthModeConfig resource accepts the following input properties:
- Auth
Mode double - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - Auth
Mode doubleGm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - Bh
Auth stringMode Config Id - ID of the resource.
- Auth
Mode float64 - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - Auth
Mode float64Gm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - Bh
Auth stringMode Config Id - ID of the resource.
- auth
Mode Double - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - auth
Mode DoubleGm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - bh
Auth StringMode Config Id - ID of the resource.
- auth
Mode number - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - auth
Mode numberGm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - bh
Auth stringMode Config Id - ID of the resource.
- auth_
mode float - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - auth_
mode_ floatgm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - bh_
auth_ strmode_ config_ id - ID of the resource.
- auth
Mode Number - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - auth
Mode NumberGm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - bh
Auth StringMode Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the BhAuthModeConfig 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 BhAuthModeConfig Resource
Get an existing BhAuthModeConfig 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?: BhAuthModeConfigState, opts?: CustomResourceOptions): BhAuthModeConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_mode: Optional[float] = None,
auth_mode_gm: Optional[float] = None,
bh_auth_mode_config_id: Optional[str] = None) -> BhAuthModeConfigfunc GetBhAuthModeConfig(ctx *Context, name string, id IDInput, state *BhAuthModeConfigState, opts ...ResourceOption) (*BhAuthModeConfig, error)public static BhAuthModeConfig Get(string name, Input<string> id, BhAuthModeConfigState? state, CustomResourceOptions? opts = null)public static BhAuthModeConfig get(String name, Output<String> id, BhAuthModeConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:BhAuthModeConfig 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.
- Auth
Mode double - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - Auth
Mode doubleGm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - Bh
Auth stringMode Config Id - ID of the resource.
- Auth
Mode float64 - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - Auth
Mode float64Gm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - Bh
Auth stringMode Config Id - ID of the resource.
- auth
Mode Double - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - auth
Mode DoubleGm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - bh
Auth StringMode Config Id - ID of the resource.
- auth
Mode number - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - auth
Mode numberGm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - bh
Auth stringMode Config Id - ID of the resource.
- auth_
mode float - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - auth_
mode_ floatgm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - bh_
auth_ strmode_ config_ id - ID of the resource.
- auth
Mode Number - Double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key, only valid when ResourceType=1 and AuthModeGM is not passed). Note: At least one of AuthMode and AuthModeGM must be passed. - auth
Mode NumberGm - National secret double factor authentication configuration. Valid values:
0(disabled),1(OTP),2(SMS),3(USB Key). Note: At least one of AuthMode and AuthModeGM must be passed. AuthModeGM has higher priority than ResourceType. - bh
Auth StringMode Config Id - ID of the resource.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Wednesday, Apr 29, 2026 by tencentcloudstack
