def METHOD_NAME(monitor_name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMonitorDefaultKeyResult:
    """
    Use this data source to access information about an existing resource.
    :param str monitor_name: Monitor resource name
    :param str resource_group_name: The name of the resource group. The name is case insensitive.
    """
    __args__ = dict()
    __args__['monitorName'] = monitor_name
    __args__['resourceGroupName'] = resource_group_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:datadog/v20220601:getMonitorDefaultKey', __args__, opts=opts, typ=GetMonitorDefaultKeyResult).value
    return AwaitableGetMonitorDefaultKeyResult(
        created=pulumi.get(__ret__, 'created'),
        created_by=pulumi.get(__ret__, 'created_by'),
        key=pulumi.get(__ret__, 'key'),
        name=pulumi.get(__ret__, 'name'))