def METHOD_NAME(connection_name: Optional[str] = None,
                         id: Optional[str] = None,
                         kind: Optional[str] = None,
                         location: Optional[str] = None,
                         name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         type: Optional[str] = None,
                         validity_time_span: Optional[str] = None,
                         opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListConnectionKeysResult:
    """
    Lists connection keys.
    :param str connection_name: The connection name.
    :param str id: Resource Id
    :param str kind: Kind of resource
    :param str location: Resource Location
    :param str name: Resource Name
    :param str resource_group_name: The resource group name.
    :param Mapping[str, str] tags: Resource tags
    :param str type: Resource type
    :param str validity_time_span: time span for how long the keys will be valid
    """
    __args__ = dict()
    __args__['connectionName'] = connection_name
    __args__['id'] = id
    __args__['kind'] = kind
    __args__['location'] = location
    __args__['name'] = name
    __args__['resourceGroupName'] = resource_group_name
    __args__['tags'] = tags
    __args__['type'] = type
    __args__['validityTimeSpan'] = validity_time_span
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:web/v20150801preview:listConnectionKeys', __args__, opts=opts, typ=ListConnectionKeysResult).value
    return AwaitableListConnectionKeysResult(
        connection_key=pulumi.get(__ret__, 'connection_key'),
        parameter_values=pulumi.get(__ret__, 'parameter_values'))