def METHOD_NAME(integration_account_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    session_name: Optional[str] = None,
                                    opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIntegrationAccountSessionResult:
    """
    Gets an integration account session.
    :param str integration_account_name: The integration account name.
    :param str resource_group_name: The resource group name.
    :param str session_name: The integration account session name.
    """
    __args__ = dict()
    __args__['integrationAccountName'] = integration_account_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['sessionName'] = session_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:logic/v20190501:getIntegrationAccountSession', __args__, opts=opts, typ=GetIntegrationAccountSessionResult).value
    return AwaitableGetIntegrationAccountSessionResult(
        changed_time=pulumi.get(__ret__, 'changed_time'),
        content=pulumi.get(__ret__, 'content'),
        created_time=pulumi.get(__ret__, 'created_time'),
        id=pulumi.get(__ret__, 'id'),
        location=pulumi.get(__ret__, 'location'),
        name=pulumi.get(__ret__, 'name'),
        tags=pulumi.get(__ret__, 'tags'),
        type=pulumi.get(__ret__, 'type'))