@overload
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, host_account_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, host_group_id: Optional[pulumi.Input[str]]=None, instance_id: Optional[pulumi.Input[str]]=None, user_group_id: Optional[pulumi.Input[str]]=None, __props__=None):
    '\n        Provides a Bastion Host Host Account Attachment resource to add list host accounts into one user group and one host group.\n\n        > **NOTE:** Available in v1.135.0+.\n\n        ## Example Usage\n\n        Basic Usage\n\n        ```python\n        import pulumi\n        import pulumi_alicloud as alicloud\n\n        default_host = alicloud.bastionhost.Host("defaultHost",\n            instance_id="bastionhost-cn-tl3xxxxxxx",\n            host_name=var["name"],\n            active_address_type="Private",\n            host_private_address="172.16.0.10",\n            os_type="Linux",\n            source="Local")\n        default_host_account = []\n        for range in [{"value": i} for i in range(0, 3)]:\n            default_host_account.append(alicloud.bastionhost.HostAccount(f"defaultHostAccount-{range[\'value\']}",\n                instance_id=default_host.instance_id,\n                host_account_name=f"example_value-{range[\'value\']}",\n                host_id=default_host.host_id,\n                protocol_name="SSH",\n                password="YourPassword12345"))\n        default_user_group = alicloud.bastionhost.UserGroup("defaultUserGroup",\n            instance_id=default_host.instance_id,\n            user_group_name="my-local-user")\n        default_host_group = alicloud.bastionhost.HostGroup("defaultHostGroup",\n            host_group_name="example_value",\n            instance_id="bastionhost-cn-tl3xxxxxxx")\n        default_host_group_account_user_group_attachment = alicloud.bastionhost.HostGroupAccountUserGroupAttachment("defaultHostGroupAccountUserGroupAttachment",\n            instance_id=default_host.instance_id,\n            user_group_id=default_user_group.user_group_id,\n            host_group_id=default_host_group.host_group_id,\n            host_account_names=[__item.host_account_name for __item in default_host_account])\n        ```\n\n        ## Import\n\n        Bastion Host Host Account can be imported using the id, e.g.\n\n        ```sh\n         $ pulumi import alicloud:bastionhost/hostGroupAccountUserGroupAttachment:HostGroupAccountUserGroupAttachment example <instance_id>:<user_group_id>:<host_group_id>\n        ```\n\n        :param str resource_name: The name of the resource.\n        :param pulumi.ResourceOptions opts: Options for the resource.\n        :param pulumi.Input[Sequence[pulumi.Input[str]]] host_account_names: A list names of the host account.\n        :param pulumi.Input[str] host_group_id: The ID of the host group.\n        :param pulumi.Input[str] instance_id: The ID of the Bastionhost instance where you want to authorize the user to manage the specified hosts and host accounts.\n        :param pulumi.Input[str] user_group_id: The ID of the user group that you want to authorize to manage the specified hosts and host accounts.\n        '
    ...
Provides a Bastion Host Host Account Attachment resource to add list host accounts into one user group and one host group.

> **NOTE:** Available in v1.135.0+.

## Example Usage

Basic Usage

```python
import pulumi
import pulumi_alicloud as alicloud

default_host = alicloud.bastionhost.Host("defaultHost",
    instance_id="bastionhost-cn-tl3xxxxxxx",
    host_name=var["name"],
    active_address_type="Private",
    host_private_address="172.16.0.10",
    os_type="Linux",
    source="Local")
default_host_account = []
for range in [{"value": i} for i in range(0, 3)]:
    default_host_account.append(alicloud.bastionhost.HostAccount(f"defaultHostAccount-{range['value']}",
        instance_id=default_host.instance_id,
        host_account_name=f"example_value-{range['value']}",
        host_id=default_host.host_id,
        protocol_name="SSH",
        password="YourPassword12345"))
default_user_group = alicloud.bastionhost.UserGroup("defaultUserGroup",
    instance_id=default_host.instance_id,
    user_group_name="my-local-user")
default_host_group = alicloud.bastionhost.HostGroup("defaultHostGroup",
    host_group_name="example_value",
    instance_id="bastionhost-cn-tl3xxxxxxx")
default_host_group_account_user_group_attachment = alicloud.bastionhost.HostGroupAccountUserGroupAttachment("defaultHostGroupAccountUserGroupAttachment",
    instance_id=default_host.instance_id,
    user_group_id=default_user_group.user_group_id,
    host_group_id=default_host_group.host_group_id,
    host_account_names=[__item.host_account_name for __item in default_host_account])
```

## Import

Bastion Host Host Account can be imported using the id, e.g.

```sh
 $ pulumi import alicloud:bastionhost/hostGroupAccountUserGroupAttachment:HostGroupAccountUserGroupAttachment example <instance_id>:<user_group_id>:<host_group_id>
```

:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Sequence[pulumi.Input[str]]] host_account_names: A list names of the host account.
:param pulumi.Input[str] host_group_id: The ID of the host group.
:param pulumi.Input[str] instance_id: The ID of the Bastionhost instance where you want to authorize the user to manage the specified hosts and host accounts.
:param pulumi.Input[str] user_group_id: The ID of the user group that you want to authorize to manage the specified hosts and host accounts.
@overload
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, host_account_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, host_group_id: Optional[pulumi.Input[str]]=None, instance_id: Optional[pulumi.Input[str]]=None, user_group_id: Optional[pulumi.Input[str]]=None, __props__=None):
    '\n        Provides a Bastion Host Host Account Attachment resource to add list host accounts into one user group and one host group.\n\n        > **NOTE:** Available in v1.135.0+.\n\n        ## Example Usage\n\n        Basic Usage\n\n        ```python\n        import pulumi\n        import pulumi_alicloud as alicloud\n\n        default_host = alicloud.bastionhost.Host("defaultHost",\n            instance_id="bastionhost-cn-tl3xxxxxxx",\n            host_name=var["name"],\n            active_address_type="Private",\n            host_private_address="172.16.0.10",\n            os_type="Linux",\n            source="Local")\n        default_host_account = []\n        for range in [{"value": i} for i in range(0, 3)]:\n            default_host_account.append(alicloud.bastionhost.HostAccount(f"defaultHostAccount-{range[\'value\']}",\n                instance_id=default_host.instance_id,\n                host_account_name=f"example_value-{range[\'value\']}",\n                host_id=default_host.host_id,\n                protocol_name="SSH",\n                password="YourPassword12345"))\n        default_user_group = alicloud.bastionhost.UserGroup("defaultUserGroup",\n            instance_id=default_host.instance_id,\n            user_group_name="my-local-user")\n        default_host_group = alicloud.bastionhost.HostGroup("defaultHostGroup",\n            host_group_name="example_value",\n            instance_id="bastionhost-cn-tl3xxxxxxx")\n        default_host_group_account_user_group_attachment = alicloud.bastionhost.HostGroupAccountUserGroupAttachment("defaultHostGroupAccountUserGroupAttachment",\n            instance_id=default_host.instance_id,\n            user_group_id=default_user_group.user_group_id,\n            host_group_id=default_host_group.host_group_id,\n            host_account_names=[__item.host_account_name for __item in default_host_account])\n        ```\n\n        ## Import\n\n        Bastion Host Host Account can be imported using the id, e.g.\n\n        ```sh\n         $ pulumi import alicloud:bastionhost/hostGroupAccountUserGroupAttachment:HostGroupAccountUserGroupAttachment example <instance_id>:<user_group_id>:<host_group_id>\n        ```\n\n        :param str resource_name: The name of the resource.\n        :param pulumi.ResourceOptions opts: Options for the resource.\n        :param pulumi.Input[Sequence[pulumi.Input[str]]] host_account_names: A list names of the host account.\n        :param pulumi.Input[str] host_group_id: The ID of the host group.\n        :param pulumi.Input[str] instance_id: The ID of the Bastionhost instance where you want to authorize the user to manage the specified hosts and host accounts.\n        :param pulumi.Input[str] user_group_id: The ID of the user group that you want to authorize to manage the specified hosts and host accounts.\n        '
    ...