def METHOD_NAME(remediation_name: Optional[str] = None,
                                                   resource_group_name: Optional[str] = None,
                                                   top: Optional[int] = None,
                                                   opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListRemediationDeploymentsAtResourceGroupResult:
    """
    Gets all deployments for a remediation at resource group scope.
    Azure REST API version: 2021-10-01.
    :param str remediation_name: The name of the remediation.
    :param str resource_group_name: Resource group name.
    :param int top: Maximum number of records to return.
    """
    __args__ = dict()
    __args__['remediationName'] = remediation_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['top'] = top
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:policyinsights:listRemediationDeploymentsAtResourceGroup', __args__, opts=opts, typ=ListRemediationDeploymentsAtResourceGroupResult).value
    return AwaitableListRemediationDeploymentsAtResourceGroupResult(
        next_link=pulumi.get(__ret__, 'next_link'),
        value=pulumi.get(__ret__, 'value'))