{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SWF.ListClosedWorkflowExecutions
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of closed workflow executions in the specified domain
-- that meet the filtering criteria. The results may be split into multiple
-- pages. To retrieve subsequent pages, make the call again using the
-- nextPageToken returned by the initial call.
--
-- This operation is eventually consistent. The results are best effort and
-- may not exactly reflect recent updates and changes.
--
-- __Access Control__
--
-- You can use IAM policies to control this action\'s access to Amazon SWF
-- resources as follows:
--
-- -   Use a @Resource@ element with the domain name to limit the action to
--     only specified domains.
--
-- -   Use an @Action@ element to allow or deny permission to call this
--     action.
--
-- -   Constrain the following parameters by using a @Condition@ element
--     with the appropriate keys.
--
--     -   @tagFilter.tag@: String constraint. The key is
--         @swf:tagFilter.tag@.
--
--     -   @typeFilter.name@: String constraint. The key is
--         @swf:typeFilter.name@.
--
--     -   @typeFilter.version@: String constraint. The key is
--         @swf:typeFilter.version@.
--
-- If the caller doesn\'t have sufficient permissions to invoke the action,
-- or the parameter values fall outside the specified constraints, the
-- action fails. The associated event attribute\'s @cause@ parameter is set
-- to @OPERATION_NOT_PERMITTED@. For details and example IAM policies, see
-- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>
-- in the /Amazon SWF Developer Guide/.
--
-- This operation returns paginated results.
module Amazonka.SWF.ListClosedWorkflowExecutions
  ( -- * Creating a Request
    ListClosedWorkflowExecutions (..),
    newListClosedWorkflowExecutions,

    -- * Request Lenses
    listClosedWorkflowExecutions_nextPageToken,
    listClosedWorkflowExecutions_executionFilter,
    listClosedWorkflowExecutions_closeStatusFilter,
    listClosedWorkflowExecutions_typeFilter,
    listClosedWorkflowExecutions_closeTimeFilter,
    listClosedWorkflowExecutions_reverseOrder,
    listClosedWorkflowExecutions_tagFilter,
    listClosedWorkflowExecutions_startTimeFilter,
    listClosedWorkflowExecutions_maximumPageSize,
    listClosedWorkflowExecutions_domain,

    -- * Destructuring the Response
    WorkflowExecutionInfos (..),
    newWorkflowExecutionInfos,

    -- * Response Lenses
    workflowExecutionInfos_nextPageToken,
    workflowExecutionInfos_executionInfos,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SWF.Types

-- | /See:/ 'newListClosedWorkflowExecutions' smart constructor.
data ListClosedWorkflowExecutions = ListClosedWorkflowExecutions'
  { -- | If @NextPageToken@ is returned there are more results available. The
    -- value of @NextPageToken@ is a unique pagination token for each page.
    -- Make the call again using the returned token to retrieve the next page.
    -- Keep all other arguments unchanged. Each pagination token expires after
    -- 60 seconds. Using an expired pagination token will return a @400@ error:
    -- \"@Specified token has exceeded its maximum lifetime@\".
    --
    -- The configured @maximumPageSize@ determines how many results can be
    -- returned in a single call.
    ListClosedWorkflowExecutions -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
    -- | If specified, only workflow executions matching the workflow ID
    -- specified in the filter are returned.
    --
    -- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
    -- mutually exclusive. You can specify at most one of these in a request.
    ListClosedWorkflowExecutions -> Maybe WorkflowExecutionFilter
executionFilter :: Prelude.Maybe WorkflowExecutionFilter,
    -- | If specified, only workflow executions that match this /close status/
    -- are listed. For example, if TERMINATED is specified, then only
    -- TERMINATED workflow executions are listed.
    --
    -- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
    -- mutually exclusive. You can specify at most one of these in a request.
    ListClosedWorkflowExecutions -> Maybe CloseStatusFilter
closeStatusFilter :: Prelude.Maybe CloseStatusFilter,
    -- | If specified, only executions of the type specified in the filter are
    -- returned.
    --
    -- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
    -- mutually exclusive. You can specify at most one of these in a request.
    ListClosedWorkflowExecutions -> Maybe WorkflowTypeFilter
typeFilter :: Prelude.Maybe WorkflowTypeFilter,
    -- | If specified, the workflow executions are included in the returned
    -- results based on whether their close times are within the range
    -- specified by this filter. Also, if this parameter is specified, the
    -- returned results are ordered by their close times.
    --
    -- @startTimeFilter@ and @closeTimeFilter@ are mutually exclusive. You must
    -- specify one of these in a request but not both.
    ListClosedWorkflowExecutions -> Maybe ExecutionTimeFilter
closeTimeFilter :: Prelude.Maybe ExecutionTimeFilter,
    -- | When set to @true@, returns the results in reverse order. By default the
    -- results are returned in descending order of the start or the close time
    -- of the executions.
    ListClosedWorkflowExecutions -> Maybe Bool
reverseOrder :: Prelude.Maybe Prelude.Bool,
    -- | If specified, only executions that have the matching tag are listed.
    --
    -- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
    -- mutually exclusive. You can specify at most one of these in a request.
    ListClosedWorkflowExecutions -> Maybe TagFilter
tagFilter :: Prelude.Maybe TagFilter,
    -- | If specified, the workflow executions are included in the returned
    -- results based on whether their start times are within the range
    -- specified by this filter. Also, if this parameter is specified, the
    -- returned results are ordered by their start times.
    --
    -- @startTimeFilter@ and @closeTimeFilter@ are mutually exclusive. You must
    -- specify one of these in a request but not both.
    ListClosedWorkflowExecutions -> Maybe ExecutionTimeFilter
startTimeFilter :: Prelude.Maybe ExecutionTimeFilter,
    -- | The maximum number of results that are returned per call. Use
    -- @nextPageToken@ to obtain further pages of results.
    ListClosedWorkflowExecutions -> Maybe Natural
maximumPageSize :: Prelude.Maybe Prelude.Natural,
    -- | The name of the domain that contains the workflow executions to list.
    ListClosedWorkflowExecutions -> Text
domain :: Prelude.Text
  }
  deriving (ListClosedWorkflowExecutions
-> ListClosedWorkflowExecutions -> Bool
(ListClosedWorkflowExecutions
 -> ListClosedWorkflowExecutions -> Bool)
-> (ListClosedWorkflowExecutions
    -> ListClosedWorkflowExecutions -> Bool)
-> Eq ListClosedWorkflowExecutions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListClosedWorkflowExecutions
-> ListClosedWorkflowExecutions -> Bool
$c/= :: ListClosedWorkflowExecutions
-> ListClosedWorkflowExecutions -> Bool
== :: ListClosedWorkflowExecutions
-> ListClosedWorkflowExecutions -> Bool
$c== :: ListClosedWorkflowExecutions
-> ListClosedWorkflowExecutions -> Bool
Prelude.Eq, ReadPrec [ListClosedWorkflowExecutions]
ReadPrec ListClosedWorkflowExecutions
Int -> ReadS ListClosedWorkflowExecutions
ReadS [ListClosedWorkflowExecutions]
(Int -> ReadS ListClosedWorkflowExecutions)
-> ReadS [ListClosedWorkflowExecutions]
-> ReadPrec ListClosedWorkflowExecutions
-> ReadPrec [ListClosedWorkflowExecutions]
-> Read ListClosedWorkflowExecutions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListClosedWorkflowExecutions]
$creadListPrec :: ReadPrec [ListClosedWorkflowExecutions]
readPrec :: ReadPrec ListClosedWorkflowExecutions
$creadPrec :: ReadPrec ListClosedWorkflowExecutions
readList :: ReadS [ListClosedWorkflowExecutions]
$creadList :: ReadS [ListClosedWorkflowExecutions]
readsPrec :: Int -> ReadS ListClosedWorkflowExecutions
$creadsPrec :: Int -> ReadS ListClosedWorkflowExecutions
Prelude.Read, Int -> ListClosedWorkflowExecutions -> ShowS
[ListClosedWorkflowExecutions] -> ShowS
ListClosedWorkflowExecutions -> String
(Int -> ListClosedWorkflowExecutions -> ShowS)
-> (ListClosedWorkflowExecutions -> String)
-> ([ListClosedWorkflowExecutions] -> ShowS)
-> Show ListClosedWorkflowExecutions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListClosedWorkflowExecutions] -> ShowS
$cshowList :: [ListClosedWorkflowExecutions] -> ShowS
show :: ListClosedWorkflowExecutions -> String
$cshow :: ListClosedWorkflowExecutions -> String
showsPrec :: Int -> ListClosedWorkflowExecutions -> ShowS
$cshowsPrec :: Int -> ListClosedWorkflowExecutions -> ShowS
Prelude.Show, (forall x.
 ListClosedWorkflowExecutions -> Rep ListClosedWorkflowExecutions x)
-> (forall x.
    Rep ListClosedWorkflowExecutions x -> ListClosedWorkflowExecutions)
-> Generic ListClosedWorkflowExecutions
forall x.
Rep ListClosedWorkflowExecutions x -> ListClosedWorkflowExecutions
forall x.
ListClosedWorkflowExecutions -> Rep ListClosedWorkflowExecutions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListClosedWorkflowExecutions x -> ListClosedWorkflowExecutions
$cfrom :: forall x.
ListClosedWorkflowExecutions -> Rep ListClosedWorkflowExecutions x
Prelude.Generic)

-- |
-- Create a value of 'ListClosedWorkflowExecutions' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextPageToken', 'listClosedWorkflowExecutions_nextPageToken' - If @NextPageToken@ is returned there are more results available. The
-- value of @NextPageToken@ is a unique pagination token for each page.
-- Make the call again using the returned token to retrieve the next page.
-- Keep all other arguments unchanged. Each pagination token expires after
-- 60 seconds. Using an expired pagination token will return a @400@ error:
-- \"@Specified token has exceeded its maximum lifetime@\".
--
-- The configured @maximumPageSize@ determines how many results can be
-- returned in a single call.
--
-- 'executionFilter', 'listClosedWorkflowExecutions_executionFilter' - If specified, only workflow executions matching the workflow ID
-- specified in the filter are returned.
--
-- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
-- mutually exclusive. You can specify at most one of these in a request.
--
-- 'closeStatusFilter', 'listClosedWorkflowExecutions_closeStatusFilter' - If specified, only workflow executions that match this /close status/
-- are listed. For example, if TERMINATED is specified, then only
-- TERMINATED workflow executions are listed.
--
-- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
-- mutually exclusive. You can specify at most one of these in a request.
--
-- 'typeFilter', 'listClosedWorkflowExecutions_typeFilter' - If specified, only executions of the type specified in the filter are
-- returned.
--
-- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
-- mutually exclusive. You can specify at most one of these in a request.
--
-- 'closeTimeFilter', 'listClosedWorkflowExecutions_closeTimeFilter' - If specified, the workflow executions are included in the returned
-- results based on whether their close times are within the range
-- specified by this filter. Also, if this parameter is specified, the
-- returned results are ordered by their close times.
--
-- @startTimeFilter@ and @closeTimeFilter@ are mutually exclusive. You must
-- specify one of these in a request but not both.
--
-- 'reverseOrder', 'listClosedWorkflowExecutions_reverseOrder' - When set to @true@, returns the results in reverse order. By default the
-- results are returned in descending order of the start or the close time
-- of the executions.
--
-- 'tagFilter', 'listClosedWorkflowExecutions_tagFilter' - If specified, only executions that have the matching tag are listed.
--
-- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
-- mutually exclusive. You can specify at most one of these in a request.
--
-- 'startTimeFilter', 'listClosedWorkflowExecutions_startTimeFilter' - If specified, the workflow executions are included in the returned
-- results based on whether their start times are within the range
-- specified by this filter. Also, if this parameter is specified, the
-- returned results are ordered by their start times.
--
-- @startTimeFilter@ and @closeTimeFilter@ are mutually exclusive. You must
-- specify one of these in a request but not both.
--
-- 'maximumPageSize', 'listClosedWorkflowExecutions_maximumPageSize' - The maximum number of results that are returned per call. Use
-- @nextPageToken@ to obtain further pages of results.
--
-- 'domain', 'listClosedWorkflowExecutions_domain' - The name of the domain that contains the workflow executions to list.
newListClosedWorkflowExecutions ::
  -- | 'domain'
  Prelude.Text ->
  ListClosedWorkflowExecutions
newListClosedWorkflowExecutions :: Text -> ListClosedWorkflowExecutions
newListClosedWorkflowExecutions Text
pDomain_ =
  ListClosedWorkflowExecutions' :: Maybe Text
-> Maybe WorkflowExecutionFilter
-> Maybe CloseStatusFilter
-> Maybe WorkflowTypeFilter
-> Maybe ExecutionTimeFilter
-> Maybe Bool
-> Maybe TagFilter
-> Maybe ExecutionTimeFilter
-> Maybe Natural
-> Text
-> ListClosedWorkflowExecutions
ListClosedWorkflowExecutions'
    { $sel:nextPageToken:ListClosedWorkflowExecutions' :: Maybe Text
nextPageToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:executionFilter:ListClosedWorkflowExecutions' :: Maybe WorkflowExecutionFilter
executionFilter = Maybe WorkflowExecutionFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:closeStatusFilter:ListClosedWorkflowExecutions' :: Maybe CloseStatusFilter
closeStatusFilter = Maybe CloseStatusFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:typeFilter:ListClosedWorkflowExecutions' :: Maybe WorkflowTypeFilter
typeFilter = Maybe WorkflowTypeFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:closeTimeFilter:ListClosedWorkflowExecutions' :: Maybe ExecutionTimeFilter
closeTimeFilter = Maybe ExecutionTimeFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:reverseOrder:ListClosedWorkflowExecutions' :: Maybe Bool
reverseOrder = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:tagFilter:ListClosedWorkflowExecutions' :: Maybe TagFilter
tagFilter = Maybe TagFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:startTimeFilter:ListClosedWorkflowExecutions' :: Maybe ExecutionTimeFilter
startTimeFilter = Maybe ExecutionTimeFilter
forall a. Maybe a
Prelude.Nothing,
      $sel:maximumPageSize:ListClosedWorkflowExecutions' :: Maybe Natural
maximumPageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:domain:ListClosedWorkflowExecutions' :: Text
domain = Text
pDomain_
    }

-- | If @NextPageToken@ is returned there are more results available. The
-- value of @NextPageToken@ is a unique pagination token for each page.
-- Make the call again using the returned token to retrieve the next page.
-- Keep all other arguments unchanged. Each pagination token expires after
-- 60 seconds. Using an expired pagination token will return a @400@ error:
-- \"@Specified token has exceeded its maximum lifetime@\".
--
-- The configured @maximumPageSize@ determines how many results can be
-- returned in a single call.
listClosedWorkflowExecutions_nextPageToken :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe Prelude.Text)
listClosedWorkflowExecutions_nextPageToken :: (Maybe Text -> f (Maybe Text))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_nextPageToken = (ListClosedWorkflowExecutions -> Maybe Text)
-> (ListClosedWorkflowExecutions
    -> Maybe Text -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe Text
a -> ListClosedWorkflowExecutions
s {$sel:nextPageToken:ListClosedWorkflowExecutions' :: Maybe Text
nextPageToken = Maybe Text
a} :: ListClosedWorkflowExecutions)

-- | If specified, only workflow executions matching the workflow ID
-- specified in the filter are returned.
--
-- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
-- mutually exclusive. You can specify at most one of these in a request.
listClosedWorkflowExecutions_executionFilter :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe WorkflowExecutionFilter)
listClosedWorkflowExecutions_executionFilter :: (Maybe WorkflowExecutionFilter
 -> f (Maybe WorkflowExecutionFilter))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_executionFilter = (ListClosedWorkflowExecutions -> Maybe WorkflowExecutionFilter)
-> (ListClosedWorkflowExecutions
    -> Maybe WorkflowExecutionFilter -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe WorkflowExecutionFilter)
     (Maybe WorkflowExecutionFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe WorkflowExecutionFilter
executionFilter :: Maybe WorkflowExecutionFilter
$sel:executionFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe WorkflowExecutionFilter
executionFilter} -> Maybe WorkflowExecutionFilter
executionFilter) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe WorkflowExecutionFilter
a -> ListClosedWorkflowExecutions
s {$sel:executionFilter:ListClosedWorkflowExecutions' :: Maybe WorkflowExecutionFilter
executionFilter = Maybe WorkflowExecutionFilter
a} :: ListClosedWorkflowExecutions)

-- | If specified, only workflow executions that match this /close status/
-- are listed. For example, if TERMINATED is specified, then only
-- TERMINATED workflow executions are listed.
--
-- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
-- mutually exclusive. You can specify at most one of these in a request.
listClosedWorkflowExecutions_closeStatusFilter :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe CloseStatusFilter)
listClosedWorkflowExecutions_closeStatusFilter :: (Maybe CloseStatusFilter -> f (Maybe CloseStatusFilter))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_closeStatusFilter = (ListClosedWorkflowExecutions -> Maybe CloseStatusFilter)
-> (ListClosedWorkflowExecutions
    -> Maybe CloseStatusFilter -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe CloseStatusFilter)
     (Maybe CloseStatusFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe CloseStatusFilter
closeStatusFilter :: Maybe CloseStatusFilter
$sel:closeStatusFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe CloseStatusFilter
closeStatusFilter} -> Maybe CloseStatusFilter
closeStatusFilter) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe CloseStatusFilter
a -> ListClosedWorkflowExecutions
s {$sel:closeStatusFilter:ListClosedWorkflowExecutions' :: Maybe CloseStatusFilter
closeStatusFilter = Maybe CloseStatusFilter
a} :: ListClosedWorkflowExecutions)

-- | If specified, only executions of the type specified in the filter are
-- returned.
--
-- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
-- mutually exclusive. You can specify at most one of these in a request.
listClosedWorkflowExecutions_typeFilter :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe WorkflowTypeFilter)
listClosedWorkflowExecutions_typeFilter :: (Maybe WorkflowTypeFilter -> f (Maybe WorkflowTypeFilter))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_typeFilter = (ListClosedWorkflowExecutions -> Maybe WorkflowTypeFilter)
-> (ListClosedWorkflowExecutions
    -> Maybe WorkflowTypeFilter -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe WorkflowTypeFilter)
     (Maybe WorkflowTypeFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe WorkflowTypeFilter
typeFilter :: Maybe WorkflowTypeFilter
$sel:typeFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe WorkflowTypeFilter
typeFilter} -> Maybe WorkflowTypeFilter
typeFilter) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe WorkflowTypeFilter
a -> ListClosedWorkflowExecutions
s {$sel:typeFilter:ListClosedWorkflowExecutions' :: Maybe WorkflowTypeFilter
typeFilter = Maybe WorkflowTypeFilter
a} :: ListClosedWorkflowExecutions)

-- | If specified, the workflow executions are included in the returned
-- results based on whether their close times are within the range
-- specified by this filter. Also, if this parameter is specified, the
-- returned results are ordered by their close times.
--
-- @startTimeFilter@ and @closeTimeFilter@ are mutually exclusive. You must
-- specify one of these in a request but not both.
listClosedWorkflowExecutions_closeTimeFilter :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe ExecutionTimeFilter)
listClosedWorkflowExecutions_closeTimeFilter :: (Maybe ExecutionTimeFilter -> f (Maybe ExecutionTimeFilter))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_closeTimeFilter = (ListClosedWorkflowExecutions -> Maybe ExecutionTimeFilter)
-> (ListClosedWorkflowExecutions
    -> Maybe ExecutionTimeFilter -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe ExecutionTimeFilter)
     (Maybe ExecutionTimeFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe ExecutionTimeFilter
closeTimeFilter :: Maybe ExecutionTimeFilter
$sel:closeTimeFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe ExecutionTimeFilter
closeTimeFilter} -> Maybe ExecutionTimeFilter
closeTimeFilter) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe ExecutionTimeFilter
a -> ListClosedWorkflowExecutions
s {$sel:closeTimeFilter:ListClosedWorkflowExecutions' :: Maybe ExecutionTimeFilter
closeTimeFilter = Maybe ExecutionTimeFilter
a} :: ListClosedWorkflowExecutions)

-- | When set to @true@, returns the results in reverse order. By default the
-- results are returned in descending order of the start or the close time
-- of the executions.
listClosedWorkflowExecutions_reverseOrder :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe Prelude.Bool)
listClosedWorkflowExecutions_reverseOrder :: (Maybe Bool -> f (Maybe Bool))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_reverseOrder = (ListClosedWorkflowExecutions -> Maybe Bool)
-> (ListClosedWorkflowExecutions
    -> Maybe Bool -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe Bool
reverseOrder :: Maybe Bool
$sel:reverseOrder:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe Bool
reverseOrder} -> Maybe Bool
reverseOrder) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe Bool
a -> ListClosedWorkflowExecutions
s {$sel:reverseOrder:ListClosedWorkflowExecutions' :: Maybe Bool
reverseOrder = Maybe Bool
a} :: ListClosedWorkflowExecutions)

-- | If specified, only executions that have the matching tag are listed.
--
-- @closeStatusFilter@, @executionFilter@, @typeFilter@ and @tagFilter@ are
-- mutually exclusive. You can specify at most one of these in a request.
listClosedWorkflowExecutions_tagFilter :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe TagFilter)
listClosedWorkflowExecutions_tagFilter :: (Maybe TagFilter -> f (Maybe TagFilter))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_tagFilter = (ListClosedWorkflowExecutions -> Maybe TagFilter)
-> (ListClosedWorkflowExecutions
    -> Maybe TagFilter -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe TagFilter)
     (Maybe TagFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe TagFilter
tagFilter :: Maybe TagFilter
$sel:tagFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe TagFilter
tagFilter} -> Maybe TagFilter
tagFilter) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe TagFilter
a -> ListClosedWorkflowExecutions
s {$sel:tagFilter:ListClosedWorkflowExecutions' :: Maybe TagFilter
tagFilter = Maybe TagFilter
a} :: ListClosedWorkflowExecutions)

-- | If specified, the workflow executions are included in the returned
-- results based on whether their start times are within the range
-- specified by this filter. Also, if this parameter is specified, the
-- returned results are ordered by their start times.
--
-- @startTimeFilter@ and @closeTimeFilter@ are mutually exclusive. You must
-- specify one of these in a request but not both.
listClosedWorkflowExecutions_startTimeFilter :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe ExecutionTimeFilter)
listClosedWorkflowExecutions_startTimeFilter :: (Maybe ExecutionTimeFilter -> f (Maybe ExecutionTimeFilter))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_startTimeFilter = (ListClosedWorkflowExecutions -> Maybe ExecutionTimeFilter)
-> (ListClosedWorkflowExecutions
    -> Maybe ExecutionTimeFilter -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe ExecutionTimeFilter)
     (Maybe ExecutionTimeFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe ExecutionTimeFilter
startTimeFilter :: Maybe ExecutionTimeFilter
$sel:startTimeFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe ExecutionTimeFilter
startTimeFilter} -> Maybe ExecutionTimeFilter
startTimeFilter) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe ExecutionTimeFilter
a -> ListClosedWorkflowExecutions
s {$sel:startTimeFilter:ListClosedWorkflowExecutions' :: Maybe ExecutionTimeFilter
startTimeFilter = Maybe ExecutionTimeFilter
a} :: ListClosedWorkflowExecutions)

-- | The maximum number of results that are returned per call. Use
-- @nextPageToken@ to obtain further pages of results.
listClosedWorkflowExecutions_maximumPageSize :: Lens.Lens' ListClosedWorkflowExecutions (Prelude.Maybe Prelude.Natural)
listClosedWorkflowExecutions_maximumPageSize :: (Maybe Natural -> f (Maybe Natural))
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_maximumPageSize = (ListClosedWorkflowExecutions -> Maybe Natural)
-> (ListClosedWorkflowExecutions
    -> Maybe Natural -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions
     ListClosedWorkflowExecutions
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Maybe Natural
maximumPageSize :: Maybe Natural
$sel:maximumPageSize:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe Natural
maximumPageSize} -> Maybe Natural
maximumPageSize) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Maybe Natural
a -> ListClosedWorkflowExecutions
s {$sel:maximumPageSize:ListClosedWorkflowExecutions' :: Maybe Natural
maximumPageSize = Maybe Natural
a} :: ListClosedWorkflowExecutions)

-- | The name of the domain that contains the workflow executions to list.
listClosedWorkflowExecutions_domain :: Lens.Lens' ListClosedWorkflowExecutions Prelude.Text
listClosedWorkflowExecutions_domain :: (Text -> f Text)
-> ListClosedWorkflowExecutions -> f ListClosedWorkflowExecutions
listClosedWorkflowExecutions_domain = (ListClosedWorkflowExecutions -> Text)
-> (ListClosedWorkflowExecutions
    -> Text -> ListClosedWorkflowExecutions)
-> Lens
     ListClosedWorkflowExecutions ListClosedWorkflowExecutions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClosedWorkflowExecutions' {Text
domain :: Text
$sel:domain:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Text
domain} -> Text
domain) (\s :: ListClosedWorkflowExecutions
s@ListClosedWorkflowExecutions' {} Text
a -> ListClosedWorkflowExecutions
s {$sel:domain:ListClosedWorkflowExecutions' :: Text
domain = Text
a} :: ListClosedWorkflowExecutions)

instance Core.AWSPager ListClosedWorkflowExecutions where
  page :: ListClosedWorkflowExecutions
-> AWSResponse ListClosedWorkflowExecutions
-> Maybe ListClosedWorkflowExecutions
page ListClosedWorkflowExecutions
rq AWSResponse ListClosedWorkflowExecutions
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListClosedWorkflowExecutions
WorkflowExecutionInfos
rs
            WorkflowExecutionInfos
-> Getting (First Text) WorkflowExecutionInfos Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> WorkflowExecutionInfos
-> Const (First Text) WorkflowExecutionInfos
Lens' WorkflowExecutionInfos (Maybe Text)
workflowExecutionInfos_nextPageToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> WorkflowExecutionInfos
 -> Const (First Text) WorkflowExecutionInfos)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) WorkflowExecutionInfos Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListClosedWorkflowExecutions
forall a. Maybe a
Prelude.Nothing
    | [WorkflowExecutionInfo] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        (AWSResponse ListClosedWorkflowExecutions
WorkflowExecutionInfos
rs WorkflowExecutionInfos
-> Getting
     [WorkflowExecutionInfo]
     WorkflowExecutionInfos
     [WorkflowExecutionInfo]
-> [WorkflowExecutionInfo]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
  [WorkflowExecutionInfo]
  WorkflowExecutionInfos
  [WorkflowExecutionInfo]
Lens' WorkflowExecutionInfos [WorkflowExecutionInfo]
workflowExecutionInfos_executionInfos) =
      Maybe ListClosedWorkflowExecutions
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListClosedWorkflowExecutions -> Maybe ListClosedWorkflowExecutions
forall a. a -> Maybe a
Prelude.Just (ListClosedWorkflowExecutions
 -> Maybe ListClosedWorkflowExecutions)
-> ListClosedWorkflowExecutions
-> Maybe ListClosedWorkflowExecutions
forall a b. (a -> b) -> a -> b
Prelude.$
        ListClosedWorkflowExecutions
rq
          ListClosedWorkflowExecutions
-> (ListClosedWorkflowExecutions -> ListClosedWorkflowExecutions)
-> ListClosedWorkflowExecutions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListClosedWorkflowExecutions
-> Identity ListClosedWorkflowExecutions
Lens
  ListClosedWorkflowExecutions
  ListClosedWorkflowExecutions
  (Maybe Text)
  (Maybe Text)
listClosedWorkflowExecutions_nextPageToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListClosedWorkflowExecutions
 -> Identity ListClosedWorkflowExecutions)
-> Maybe Text
-> ListClosedWorkflowExecutions
-> ListClosedWorkflowExecutions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListClosedWorkflowExecutions
WorkflowExecutionInfos
rs
          WorkflowExecutionInfos
-> Getting (First Text) WorkflowExecutionInfos Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> WorkflowExecutionInfos
-> Const (First Text) WorkflowExecutionInfos
Lens' WorkflowExecutionInfos (Maybe Text)
workflowExecutionInfos_nextPageToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> WorkflowExecutionInfos
 -> Const (First Text) WorkflowExecutionInfos)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) WorkflowExecutionInfos Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListClosedWorkflowExecutions where
  type
    AWSResponse ListClosedWorkflowExecutions =
      WorkflowExecutionInfos
  request :: ListClosedWorkflowExecutions
-> Request ListClosedWorkflowExecutions
request = Service
-> ListClosedWorkflowExecutions
-> Request ListClosedWorkflowExecutions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListClosedWorkflowExecutions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListClosedWorkflowExecutions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListClosedWorkflowExecutions))
-> Logger
-> Service
-> Proxy ListClosedWorkflowExecutions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListClosedWorkflowExecutions)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      (\Int
s ResponseHeaders
h Object
x -> Object -> Either String WorkflowExecutionInfos
forall a. FromJSON a => Object -> Either String a
Core.eitherParseJSON Object
x)

instance
  Prelude.Hashable
    ListClosedWorkflowExecutions

instance Prelude.NFData ListClosedWorkflowExecutions

instance Core.ToHeaders ListClosedWorkflowExecutions where
  toHeaders :: ListClosedWorkflowExecutions -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListClosedWorkflowExecutions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SimpleWorkflowService.ListClosedWorkflowExecutions" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListClosedWorkflowExecutions where
  toJSON :: ListClosedWorkflowExecutions -> Value
toJSON ListClosedWorkflowExecutions' {Maybe Bool
Maybe Natural
Maybe Text
Maybe CloseStatusFilter
Maybe ExecutionTimeFilter
Maybe TagFilter
Maybe WorkflowExecutionFilter
Maybe WorkflowTypeFilter
Text
domain :: Text
maximumPageSize :: Maybe Natural
startTimeFilter :: Maybe ExecutionTimeFilter
tagFilter :: Maybe TagFilter
reverseOrder :: Maybe Bool
closeTimeFilter :: Maybe ExecutionTimeFilter
typeFilter :: Maybe WorkflowTypeFilter
closeStatusFilter :: Maybe CloseStatusFilter
executionFilter :: Maybe WorkflowExecutionFilter
nextPageToken :: Maybe Text
$sel:domain:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Text
$sel:maximumPageSize:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe Natural
$sel:startTimeFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe ExecutionTimeFilter
$sel:tagFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe TagFilter
$sel:reverseOrder:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe Bool
$sel:closeTimeFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe ExecutionTimeFilter
$sel:typeFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe WorkflowTypeFilter
$sel:closeStatusFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe CloseStatusFilter
$sel:executionFilter:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe WorkflowExecutionFilter
$sel:nextPageToken:ListClosedWorkflowExecutions' :: ListClosedWorkflowExecutions -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"nextPageToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextPageToken,
            (Text
"executionFilter" Text -> WorkflowExecutionFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (WorkflowExecutionFilter -> Pair)
-> Maybe WorkflowExecutionFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe WorkflowExecutionFilter
executionFilter,
            (Text
"closeStatusFilter" Text -> CloseStatusFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (CloseStatusFilter -> Pair)
-> Maybe CloseStatusFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloseStatusFilter
closeStatusFilter,
            (Text
"typeFilter" Text -> WorkflowTypeFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (WorkflowTypeFilter -> Pair)
-> Maybe WorkflowTypeFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe WorkflowTypeFilter
typeFilter,
            (Text
"closeTimeFilter" Text -> ExecutionTimeFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ExecutionTimeFilter -> Pair)
-> Maybe ExecutionTimeFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExecutionTimeFilter
closeTimeFilter,
            (Text
"reverseOrder" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
reverseOrder,
            (Text
"tagFilter" Text -> TagFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (TagFilter -> Pair) -> Maybe TagFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TagFilter
tagFilter,
            (Text
"startTimeFilter" Text -> ExecutionTimeFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ExecutionTimeFilter -> Pair)
-> Maybe ExecutionTimeFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ExecutionTimeFilter
startTimeFilter,
            (Text
"maximumPageSize" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maximumPageSize,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"domain" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domain)
          ]
      )

instance Core.ToPath ListClosedWorkflowExecutions where
  toPath :: ListClosedWorkflowExecutions -> ByteString
toPath = ByteString -> ListClosedWorkflowExecutions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ListClosedWorkflowExecutions where
  toQuery :: ListClosedWorkflowExecutions -> QueryString
toQuery = QueryString -> ListClosedWorkflowExecutions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty