1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cddc
  5. DedicatedHostAccount
Alibaba Cloud v3.44.0 published on Thursday, Sep 28, 2023 by Pulumi

alicloud.cddc.DedicatedHostAccount

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.44.0 published on Thursday, Sep 28, 2023 by Pulumi

    Provides a ApsaraDB for MyBase Dedicated Host Account resource.

    For information about ApsaraDB for MyBase Dedicated Host Account and how to use it, see What is Dedicated Host Account.

    NOTE: Available since v1.148.0.

    NOTE: Each Dedicated host can have only one account. Before you create an account for a host, make sure that the existing account is deleted.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf_example";
        var defaultZones = AliCloud.Cddc.GetZones.Invoke();
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "10.4.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VswitchName = name,
            CidrBlock = "10.4.0.0/24",
            VpcId = defaultNetwork.Id,
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Ids[0]),
        });
    
        var defaultDedicatedHostGroup = new AliCloud.Cddc.DedicatedHostGroup("defaultDedicatedHostGroup", new()
        {
            Engine = "MySQL",
            VpcId = defaultNetwork.Id,
            CpuAllocationRatio = 101,
            MemAllocationRatio = 50,
            DiskAllocationRatio = 200,
            AllocationPolicy = "Evenly",
            HostReplacePolicy = "Manual",
            DedicatedHostGroupDesc = name,
            OpenPermission = true,
        });
    
        var defaultHostEcsLevelInfos = AliCloud.Cddc.GetHostEcsLevelInfos.Invoke(new()
        {
            DbType = "mysql",
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Ids[0]),
            StorageType = "cloud_essd",
        });
    
        var defaultDedicatedHost = new AliCloud.Cddc.DedicatedHost("defaultDedicatedHost", new()
        {
            HostName = name,
            DedicatedHostGroupId = defaultDedicatedHostGroup.Id,
            HostClass = defaultHostEcsLevelInfos.Apply(getHostEcsLevelInfosResult => getHostEcsLevelInfosResult.Infos[0]?.ResClassCode),
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Ids[0]),
            VswitchId = defaultSwitch.Id,
            PaymentType = "Subscription",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "CDDC_DEDICATED" },
            },
        });
    
        var defaultDedicatedHostAccount = new AliCloud.Cddc.DedicatedHostAccount("defaultDedicatedHostAccount", new()
        {
            AccountName = name,
            AccountPassword = "Password1234",
            DedicatedHostId = defaultDedicatedHost.DedicatedHostId,
            AccountType = "Normal",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cddc"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := cddc.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.4.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("10.4.0.0/24"),
    			VpcId:       defaultNetwork.ID(),
    			ZoneId:      *pulumi.String(defaultZones.Ids[0]),
    		})
    		if err != nil {
    			return err
    		}
    		defaultDedicatedHostGroup, err := cddc.NewDedicatedHostGroup(ctx, "defaultDedicatedHostGroup", &cddc.DedicatedHostGroupArgs{
    			Engine:                 pulumi.String("MySQL"),
    			VpcId:                  defaultNetwork.ID(),
    			CpuAllocationRatio:     pulumi.Int(101),
    			MemAllocationRatio:     pulumi.Int(50),
    			DiskAllocationRatio:    pulumi.Int(200),
    			AllocationPolicy:       pulumi.String("Evenly"),
    			HostReplacePolicy:      pulumi.String("Manual"),
    			DedicatedHostGroupDesc: pulumi.String(name),
    			OpenPermission:         pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		defaultHostEcsLevelInfos, err := cddc.GetHostEcsLevelInfos(ctx, &cddc.GetHostEcsLevelInfosArgs{
    			DbType:      "mysql",
    			ZoneId:      defaultZones.Ids[0],
    			StorageType: "cloud_essd",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultDedicatedHost, err := cddc.NewDedicatedHost(ctx, "defaultDedicatedHost", &cddc.DedicatedHostArgs{
    			HostName:             pulumi.String(name),
    			DedicatedHostGroupId: defaultDedicatedHostGroup.ID(),
    			HostClass:            *pulumi.String(defaultHostEcsLevelInfos.Infos[0].ResClassCode),
    			ZoneId:               *pulumi.String(defaultZones.Ids[0]),
    			VswitchId:            defaultSwitch.ID(),
    			PaymentType:          pulumi.String("Subscription"),
    			Tags: pulumi.AnyMap{
    				"Created": pulumi.Any("TF"),
    				"For":     pulumi.Any("CDDC_DEDICATED"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cddc.NewDedicatedHostAccount(ctx, "defaultDedicatedHostAccount", &cddc.DedicatedHostAccountArgs{
    			AccountName:     pulumi.String(name),
    			AccountPassword: pulumi.String("Password1234"),
    			DedicatedHostId: defaultDedicatedHost.DedicatedHostId,
    			AccountType:     pulumi.String("Normal"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cddc.CddcFunctions;
    import com.pulumi.alicloud.cddc.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.cddc.DedicatedHostGroup;
    import com.pulumi.alicloud.cddc.DedicatedHostGroupArgs;
    import com.pulumi.alicloud.cddc.inputs.GetHostEcsLevelInfosArgs;
    import com.pulumi.alicloud.cddc.DedicatedHost;
    import com.pulumi.alicloud.cddc.DedicatedHostArgs;
    import com.pulumi.alicloud.cddc.DedicatedHostAccount;
    import com.pulumi.alicloud.cddc.DedicatedHostAccountArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf_example");
            final var defaultZones = CddcFunctions.getZones();
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()        
                .vpcName(name)
                .cidrBlock("10.4.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("10.4.0.0/24")
                .vpcId(defaultNetwork.id())
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
                .build());
    
            var defaultDedicatedHostGroup = new DedicatedHostGroup("defaultDedicatedHostGroup", DedicatedHostGroupArgs.builder()        
                .engine("MySQL")
                .vpcId(defaultNetwork.id())
                .cpuAllocationRatio(101)
                .memAllocationRatio(50)
                .diskAllocationRatio(200)
                .allocationPolicy("Evenly")
                .hostReplacePolicy("Manual")
                .dedicatedHostGroupDesc(name)
                .openPermission(true)
                .build());
    
            final var defaultHostEcsLevelInfos = CddcFunctions.getHostEcsLevelInfos(GetHostEcsLevelInfosArgs.builder()
                .dbType("mysql")
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
                .storageType("cloud_essd")
                .build());
    
            var defaultDedicatedHost = new DedicatedHost("defaultDedicatedHost", DedicatedHostArgs.builder()        
                .hostName(name)
                .dedicatedHostGroupId(defaultDedicatedHostGroup.id())
                .hostClass(defaultHostEcsLevelInfos.applyValue(getHostEcsLevelInfosResult -> getHostEcsLevelInfosResult.infos()[0].resClassCode()))
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
                .vswitchId(defaultSwitch.id())
                .paymentType("Subscription")
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "CDDC_DEDICATED")
                ))
                .build());
    
            var defaultDedicatedHostAccount = new DedicatedHostAccount("defaultDedicatedHostAccount", DedicatedHostAccountArgs.builder()        
                .accountName(name)
                .accountPassword("Password1234")
                .dedicatedHostId(defaultDedicatedHost.dedicatedHostId())
                .accountType("Normal")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    default_zones = alicloud.cddc.get_zones()
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="10.4.0.0/16")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vswitch_name=name,
        cidr_block="10.4.0.0/24",
        vpc_id=default_network.id,
        zone_id=default_zones.ids[0])
    default_dedicated_host_group = alicloud.cddc.DedicatedHostGroup("defaultDedicatedHostGroup",
        engine="MySQL",
        vpc_id=default_network.id,
        cpu_allocation_ratio=101,
        mem_allocation_ratio=50,
        disk_allocation_ratio=200,
        allocation_policy="Evenly",
        host_replace_policy="Manual",
        dedicated_host_group_desc=name,
        open_permission=True)
    default_host_ecs_level_infos = alicloud.cddc.get_host_ecs_level_infos(db_type="mysql",
        zone_id=default_zones.ids[0],
        storage_type="cloud_essd")
    default_dedicated_host = alicloud.cddc.DedicatedHost("defaultDedicatedHost",
        host_name=name,
        dedicated_host_group_id=default_dedicated_host_group.id,
        host_class=default_host_ecs_level_infos.infos[0].res_class_code,
        zone_id=default_zones.ids[0],
        vswitch_id=default_switch.id,
        payment_type="Subscription",
        tags={
            "Created": "TF",
            "For": "CDDC_DEDICATED",
        })
    default_dedicated_host_account = alicloud.cddc.DedicatedHostAccount("defaultDedicatedHostAccount",
        account_name=name,
        account_password="Password1234",
        dedicated_host_id=default_dedicated_host.dedicated_host_id,
        account_type="Normal")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf_example";
    const defaultZones = alicloud.cddc.getZones({});
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "10.4.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vswitchName: name,
        cidrBlock: "10.4.0.0/24",
        vpcId: defaultNetwork.id,
        zoneId: defaultZones.then(defaultZones => defaultZones.ids?.[0]),
    });
    const defaultDedicatedHostGroup = new alicloud.cddc.DedicatedHostGroup("defaultDedicatedHostGroup", {
        engine: "MySQL",
        vpcId: defaultNetwork.id,
        cpuAllocationRatio: 101,
        memAllocationRatio: 50,
        diskAllocationRatio: 200,
        allocationPolicy: "Evenly",
        hostReplacePolicy: "Manual",
        dedicatedHostGroupDesc: name,
        openPermission: true,
    });
    const defaultHostEcsLevelInfos = defaultZones.then(defaultZones => alicloud.cddc.getHostEcsLevelInfos({
        dbType: "mysql",
        zoneId: defaultZones.ids?.[0],
        storageType: "cloud_essd",
    }));
    const defaultDedicatedHost = new alicloud.cddc.DedicatedHost("defaultDedicatedHost", {
        hostName: name,
        dedicatedHostGroupId: defaultDedicatedHostGroup.id,
        hostClass: defaultHostEcsLevelInfos.then(defaultHostEcsLevelInfos => defaultHostEcsLevelInfos.infos?.[0]?.resClassCode),
        zoneId: defaultZones.then(defaultZones => defaultZones.ids?.[0]),
        vswitchId: defaultSwitch.id,
        paymentType: "Subscription",
        tags: {
            Created: "TF",
            For: "CDDC_DEDICATED",
        },
    });
    const defaultDedicatedHostAccount = new alicloud.cddc.DedicatedHostAccount("defaultDedicatedHostAccount", {
        accountName: name,
        accountPassword: "Password1234",
        dedicatedHostId: defaultDedicatedHost.dedicatedHostId,
        accountType: "Normal",
    });
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 10.4.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 10.4.0.0/24
          vpcId: ${defaultNetwork.id}
          zoneId: ${defaultZones.ids[0]}
      defaultDedicatedHostGroup:
        type: alicloud:cddc:DedicatedHostGroup
        properties:
          engine: MySQL
          vpcId: ${defaultNetwork.id}
          cpuAllocationRatio: 101
          memAllocationRatio: 50
          diskAllocationRatio: 200
          allocationPolicy: Evenly
          hostReplacePolicy: Manual
          dedicatedHostGroupDesc: ${name}
          openPermission: true
      defaultDedicatedHost:
        type: alicloud:cddc:DedicatedHost
        properties:
          hostName: ${name}
          dedicatedHostGroupId: ${defaultDedicatedHostGroup.id}
          hostClass: ${defaultHostEcsLevelInfos.infos[0].resClassCode}
          zoneId: ${defaultZones.ids[0]}
          vswitchId: ${defaultSwitch.id}
          paymentType: Subscription
          tags:
            Created: TF
            For: CDDC_DEDICATED
      defaultDedicatedHostAccount:
        type: alicloud:cddc:DedicatedHostAccount
        properties:
          accountName: ${name}
          accountPassword: Password1234
          dedicatedHostId: ${defaultDedicatedHost.dedicatedHostId}
          accountType: Normal
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:cddc:getZones
          Arguments: {}
      defaultHostEcsLevelInfos:
        fn::invoke:
          Function: alicloud:cddc:getHostEcsLevelInfos
          Arguments:
            dbType: mysql
            zoneId: ${defaultZones.ids[0]}
            storageType: cloud_essd
    

    Create DedicatedHostAccount Resource

    new DedicatedHostAccount(name: string, args: DedicatedHostAccountArgs, opts?: CustomResourceOptions);
    @overload
    def DedicatedHostAccount(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             account_name: Optional[str] = None,
                             account_password: Optional[str] = None,
                             account_type: Optional[str] = None,
                             dedicated_host_id: Optional[str] = None)
    @overload
    def DedicatedHostAccount(resource_name: str,
                             args: DedicatedHostAccountArgs,
                             opts: Optional[ResourceOptions] = None)
    func NewDedicatedHostAccount(ctx *Context, name string, args DedicatedHostAccountArgs, opts ...ResourceOption) (*DedicatedHostAccount, error)
    public DedicatedHostAccount(string name, DedicatedHostAccountArgs args, CustomResourceOptions? opts = null)
    public DedicatedHostAccount(String name, DedicatedHostAccountArgs args)
    public DedicatedHostAccount(String name, DedicatedHostAccountArgs args, CustomResourceOptions options)
    
    type: alicloud:cddc:DedicatedHostAccount
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DedicatedHostAccountArgs
    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 DedicatedHostAccountArgs
    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 DedicatedHostAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DedicatedHostAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DedicatedHostAccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DedicatedHostAccount Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DedicatedHostAccount resource accepts the following input properties:

    AccountName string

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    AccountPassword string

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    DedicatedHostId string

    The ID of Dedicated the host.

    AccountType string

    The type of the Dedicated host account. Valid values: Admin, Normal.

    AccountName string

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    AccountPassword string

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    DedicatedHostId string

    The ID of Dedicated the host.

    AccountType string

    The type of the Dedicated host account. Valid values: Admin, Normal.

    accountName String

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    accountPassword String

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    dedicatedHostId String

    The ID of Dedicated the host.

    accountType String

    The type of the Dedicated host account. Valid values: Admin, Normal.

    accountName string

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    accountPassword string

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    dedicatedHostId string

    The ID of Dedicated the host.

    accountType string

    The type of the Dedicated host account. Valid values: Admin, Normal.

    account_name str

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    account_password str

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    dedicated_host_id str

    The ID of Dedicated the host.

    account_type str

    The type of the Dedicated host account. Valid values: Admin, Normal.

    accountName String

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    accountPassword String

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    dedicatedHostId String

    The ID of Dedicated the host.

    accountType String

    The type of the Dedicated host account. Valid values: Admin, Normal.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DedicatedHostAccount 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 DedicatedHostAccount Resource

    Get an existing DedicatedHostAccount 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?: DedicatedHostAccountState, opts?: CustomResourceOptions): DedicatedHostAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            account_password: Optional[str] = None,
            account_type: Optional[str] = None,
            dedicated_host_id: Optional[str] = None) -> DedicatedHostAccount
    func GetDedicatedHostAccount(ctx *Context, name string, id IDInput, state *DedicatedHostAccountState, opts ...ResourceOption) (*DedicatedHostAccount, error)
    public static DedicatedHostAccount Get(string name, Input<string> id, DedicatedHostAccountState? state, CustomResourceOptions? opts = null)
    public static DedicatedHostAccount get(String name, Output<String> id, DedicatedHostAccountState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AccountName string

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    AccountPassword string

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    AccountType string

    The type of the Dedicated host account. Valid values: Admin, Normal.

    DedicatedHostId string

    The ID of Dedicated the host.

    AccountName string

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    AccountPassword string

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    AccountType string

    The type of the Dedicated host account. Valid values: Admin, Normal.

    DedicatedHostId string

    The ID of Dedicated the host.

    accountName String

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    accountPassword String

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    accountType String

    The type of the Dedicated host account. Valid values: Admin, Normal.

    dedicatedHostId String

    The ID of Dedicated the host.

    accountName string

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    accountPassword string

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    accountType string

    The type of the Dedicated host account. Valid values: Admin, Normal.

    dedicatedHostId string

    The ID of Dedicated the host.

    account_name str

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    account_password str

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    account_type str

    The type of the Dedicated host account. Valid values: Admin, Normal.

    dedicated_host_id str

    The ID of Dedicated the host.

    accountName String

    The name of the Dedicated host account. The account name must be 2 to 16 characters in length, contain lower case letters, digits, and underscore(_). At the same time, the name must start with a letter and end with a letter or number.

    accountPassword String

    The password of the Dedicated host account. The account password must be 6 to 32 characters in length, and can contain letters, digits, and special characters !@#$%^&*()_+-=.

    accountType String

    The type of the Dedicated host account. Valid values: Admin, Normal.

    dedicatedHostId String

    The ID of Dedicated the host.

    Import

    ApsaraDB for MyBase Dedicated Host Account can be imported using the id, e.g.

     $ pulumi import alicloud:cddc/dedicatedHostAccount:DedicatedHostAccount example <dedicated_host_id>:<account_name>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.44.0 published on Thursday, Sep 28, 2023 by Pulumi