def _internal_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):
    if (opts is None):
        opts = pulumi.ResourceOptions()
    if (not isinstance(opts, pulumi.ResourceOptions)):
        raise TypeError('Expected resource options to be a ResourceOptions instance')
    if (opts.version is None):
        opts.version = _utilities.get_version()
    if (opts.id is None):
        if (__props__ is not None):
            raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
        __props__ = HostGroupAccountUserGroupAttachmentArgs.__new__(HostGroupAccountUserGroupAttachmentArgs)
        if ((host_account_names is None) and (not opts.urn)):
            raise TypeError("Missing required property 'host_account_names'")
        __props__.__dict__['host_account_names'] = host_account_names
        if ((host_group_id is None) and (not opts.urn)):
            raise TypeError("Missing required property 'host_group_id'")
        __props__.__dict__['host_group_id'] = host_group_id
        if ((instance_id is None) and (not opts.urn)):
            raise TypeError("Missing required property 'instance_id'")
        __props__.__dict__['instance_id'] = instance_id
        if ((user_group_id is None) and (not opts.urn)):
            raise TypeError("Missing required property 'user_group_id'")
        __props__.__dict__['user_group_id'] = user_group_id
    super(HostGroupAccountUserGroupAttachment, __self__).__init__('alicloud:bastionhost/hostGroupAccountUserGroupAttachment:HostGroupAccountUserGroupAttachment', resource_name, __props__, opts)
def _internal_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):
    if (opts is None):
        opts = pulumi.ResourceOptions()
    if (not isinstance(opts, pulumi.ResourceOptions)):
        raise TypeError('Expected resource options to be a ResourceOptions instance')
    if (opts.version is None):
        opts.version = _utilities.get_version()
    if (opts.id is None):
        if (__props__ is not None):
            raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
        __props__ = HostGroupAccountUserGroupAttachmentArgs.__new__(HostGroupAccountUserGroupAttachmentArgs)
        if ((host_account_names is None) and (not opts.urn)):
            raise TypeError("Missing required property 'host_account_names'")
        __props__.__dict__['host_account_names'] = host_account_names
        if ((host_group_id is None) and (not opts.urn)):
            raise TypeError("Missing required property 'host_group_id'")
        __props__.__dict__['host_group_id'] = host_group_id
        if ((instance_id is None) and (not opts.urn)):
            raise TypeError("Missing required property 'instance_id'")
        __props__.__dict__['instance_id'] = instance_id
        if ((user_group_id is None) and (not opts.urn)):
            raise TypeError("Missing required property 'user_group_id'")
        __props__.__dict__['user_group_id'] = user_group_id
    super(HostGroupAccountUserGroupAttachment, __self__).__init__('alicloud:bastionhost/hostGroupAccountUserGroupAttachment:HostGroupAccountUserGroupAttachment', resource_name, __props__, opts)