Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.27.0 published on Monday, Aug 8, 2022 by Pulumi

DedicatedHostAccount

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 in 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.

Create a 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 an 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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.