def get_event_channel(event_channel_name: Optional[str]=None, partner_namespace_name: Optional[str]=None, resource_group_name: Optional[str]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetEventChannelResult:
    "\n    Event Channel.\n    API Version: 2020-04-01-preview.\n\n\n    :param str event_channel_name: Name of the event channel.\n    :param str partner_namespace_name: Name of the partner namespace.\n    :param str resource_group_name: The name of the resource group within the user's subscription.\n    "
    __args__ = dict()
    __args__['eventChannelName'] = event_channel_name
    __args__['partnerNamespaceName'] = partner_namespace_name
    __args__['resourceGroupName'] = resource_group_name
    if (opts is None):
        opts = pulumi.InvokeOptions()
    if (opts.version is None):
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:eventgrid:getEventChannel', __args__, opts=opts, typ=GetEventChannelResult).value
    return AwaitableGetEventChannelResult(destination=__ret__.destination, expiration_time_if_not_activated_utc=__ret__.expiration_time_if_not_activated_utc, filter=__ret__.filter, id=__ret__.id, name=__ret__.name, partner_topic_friendly_description=__ret__.partner_topic_friendly_description, partner_topic_readiness_state=__ret__.partner_topic_readiness_state, provisioning_state=__ret__.provisioning_state, source=__ret__.source, type=__ret__.type)
Event Channel.
API Version: 2020-04-01-preview.


:param str event_channel_name: Name of the event channel.
:param str partner_namespace_name: Name of the partner namespace.
:param str resource_group_name: The name of the resource group within the user's subscription.
def get_event_channel(event_channel_name: Optional[str]=None, partner_namespace_name: Optional[str]=None, resource_group_name: Optional[str]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetEventChannelResult:
    "\n    Event Channel.\n    API Version: 2020-04-01-preview.\n\n\n    :param str event_channel_name: Name of the event channel.\n    :param str partner_namespace_name: Name of the partner namespace.\n    :param str resource_group_name: The name of the resource group within the user's subscription.\n    "
    __args__ = dict()
    __args__['eventChannelName'] = event_channel_name
    __args__['partnerNamespaceName'] = partner_namespace_name
    __args__['resourceGroupName'] = resource_group_name
    if (opts is None):
        opts = pulumi.InvokeOptions()
    if (opts.version is None):
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:eventgrid:getEventChannel', __args__, opts=opts, typ=GetEventChannelResult).value
    return AwaitableGetEventChannelResult(destination=__ret__.destination, expiration_time_if_not_activated_utc=__ret__.expiration_time_if_not_activated_utc, filter=__ret__.filter, id=__ret__.id, name=__ret__.name, partner_topic_friendly_description=__ret__.partner_topic_friendly_description, partner_topic_readiness_state=__ret__.partner_topic_readiness_state, provisioning_state=__ret__.provisioning_state, source=__ret__.source, type=__ret__.type)