def METHOD_NAME(nat_rule_name: Optional[str] = None,
                                         resource_group_name: Optional[str] = None,
                                         virtual_network_gateway_name: Optional[str] = None,
                                         opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVirtualNetworkGatewayNatRuleResult:
    """
    Retrieves the details of a nat rule.
    :param str nat_rule_name: The name of the nat rule.
    :param str resource_group_name: The resource group name of the Virtual Network Gateway.
    :param str virtual_network_gateway_name: The name of the gateway.
    """
    __args__ = dict()
    __args__['natRuleName'] = nat_rule_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['virtualNetworkGatewayName'] = virtual_network_gateway_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:network/v20230501:getVirtualNetworkGatewayNatRule', __args__, opts=opts, typ=GetVirtualNetworkGatewayNatRuleResult).value
    return AwaitableGetVirtualNetworkGatewayNatRuleResult(
        etag=pulumi.get(__ret__, 'etag'),
        external_mappings=pulumi.get(__ret__, 'external_mappings'),
        id=pulumi.get(__ret__, 'id'),
        internal_mappings=pulumi.get(__ret__, 'internal_mappings'),
        ip_configuration_id=pulumi.get(__ret__, 'ip_configuration_id'),
        mode=pulumi.get(__ret__, 'mode'),
        name=pulumi.get(__ret__, 'name'),
        provisioning_state=pulumi.get(__ret__, 'provisioning_state'),
        type=pulumi.get(__ret__, 'type'))