@staticmethod
def get(resource_name: str, id: pulumi.Input[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) -> 'HostGroupAccountUserGroupAttachment':
    "\n        Get an existing HostGroupAccountUserGroupAttachment resource's state with the given name, id, and optional extra\n        properties used to qualify the lookup.\n\n        :param str resource_name: The unique name of the resulting resource.\n        :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.\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        "
    opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
    __props__ = _HostGroupAccountUserGroupAttachmentState.__new__(_HostGroupAccountUserGroupAttachmentState)
    __props__.__dict__['host_account_names'] = host_account_names
    __props__.__dict__['host_group_id'] = host_group_id
    __props__.__dict__['instance_id'] = instance_id
    __props__.__dict__['user_group_id'] = user_group_id
    return HostGroupAccountUserGroupAttachment(resource_name, opts=opts, __props__=__props__)
Get an existing HostGroupAccountUserGroupAttachment resource's state with the given name, id, and optional extra
properties used to qualify the lookup.

:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
: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.
@staticmethod
def get(resource_name: str, id: pulumi.Input[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) -> 'HostGroupAccountUserGroupAttachment':
    "\n        Get an existing HostGroupAccountUserGroupAttachment resource's state with the given name, id, and optional extra\n        properties used to qualify the lookup.\n\n        :param str resource_name: The unique name of the resulting resource.\n        :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.\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        "
    opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
    __props__ = _HostGroupAccountUserGroupAttachmentState.__new__(_HostGroupAccountUserGroupAttachmentState)
    __props__.__dict__['host_account_names'] = host_account_names
    __props__.__dict__['host_group_id'] = host_group_id
    __props__.__dict__['instance_id'] = instance_id
    __props__.__dict__['user_group_id'] = user_group_id
    return HostGroupAccountUserGroupAttachment(resource_name, opts=opts, __props__=__props__)