{-# 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.MigrationHubOrchestrator.ListWorkflowStepGroups
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- List the step groups in a migration workflow.
--
-- This operation returns paginated results.
module Amazonka.MigrationHubOrchestrator.ListWorkflowStepGroups
  ( -- * Creating a Request
    ListWorkflowStepGroups (..),
    newListWorkflowStepGroups,

    -- * Request Lenses
    listWorkflowStepGroups_maxResults,
    listWorkflowStepGroups_nextToken,
    listWorkflowStepGroups_workflowId,

    -- * Destructuring the Response
    ListWorkflowStepGroupsResponse (..),
    newListWorkflowStepGroupsResponse,

    -- * Response Lenses
    listWorkflowStepGroupsResponse_nextToken,
    listWorkflowStepGroupsResponse_httpStatus,
    listWorkflowStepGroupsResponse_workflowStepGroupsSummary,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MigrationHubOrchestrator.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListWorkflowStepGroups' smart constructor.
data ListWorkflowStepGroups = ListWorkflowStepGroups'
  { -- | The maximum number of results that can be returned.
    ListWorkflowStepGroups -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The pagination token.
    ListWorkflowStepGroups -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The ID of the migration workflow.
    ListWorkflowStepGroups -> Text
workflowId :: Prelude.Text
  }
  deriving (ListWorkflowStepGroups -> ListWorkflowStepGroups -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWorkflowStepGroups -> ListWorkflowStepGroups -> Bool
$c/= :: ListWorkflowStepGroups -> ListWorkflowStepGroups -> Bool
== :: ListWorkflowStepGroups -> ListWorkflowStepGroups -> Bool
$c== :: ListWorkflowStepGroups -> ListWorkflowStepGroups -> Bool
Prelude.Eq, ReadPrec [ListWorkflowStepGroups]
ReadPrec ListWorkflowStepGroups
Int -> ReadS ListWorkflowStepGroups
ReadS [ListWorkflowStepGroups]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWorkflowStepGroups]
$creadListPrec :: ReadPrec [ListWorkflowStepGroups]
readPrec :: ReadPrec ListWorkflowStepGroups
$creadPrec :: ReadPrec ListWorkflowStepGroups
readList :: ReadS [ListWorkflowStepGroups]
$creadList :: ReadS [ListWorkflowStepGroups]
readsPrec :: Int -> ReadS ListWorkflowStepGroups
$creadsPrec :: Int -> ReadS ListWorkflowStepGroups
Prelude.Read, Int -> ListWorkflowStepGroups -> ShowS
[ListWorkflowStepGroups] -> ShowS
ListWorkflowStepGroups -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWorkflowStepGroups] -> ShowS
$cshowList :: [ListWorkflowStepGroups] -> ShowS
show :: ListWorkflowStepGroups -> String
$cshow :: ListWorkflowStepGroups -> String
showsPrec :: Int -> ListWorkflowStepGroups -> ShowS
$cshowsPrec :: Int -> ListWorkflowStepGroups -> ShowS
Prelude.Show, forall x. Rep ListWorkflowStepGroups x -> ListWorkflowStepGroups
forall x. ListWorkflowStepGroups -> Rep ListWorkflowStepGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListWorkflowStepGroups x -> ListWorkflowStepGroups
$cfrom :: forall x. ListWorkflowStepGroups -> Rep ListWorkflowStepGroups x
Prelude.Generic)

-- |
-- Create a value of 'ListWorkflowStepGroups' 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:
--
-- 'maxResults', 'listWorkflowStepGroups_maxResults' - The maximum number of results that can be returned.
--
-- 'nextToken', 'listWorkflowStepGroups_nextToken' - The pagination token.
--
-- 'workflowId', 'listWorkflowStepGroups_workflowId' - The ID of the migration workflow.
newListWorkflowStepGroups ::
  -- | 'workflowId'
  Prelude.Text ->
  ListWorkflowStepGroups
newListWorkflowStepGroups :: Text -> ListWorkflowStepGroups
newListWorkflowStepGroups Text
pWorkflowId_ =
  ListWorkflowStepGroups'
    { $sel:maxResults:ListWorkflowStepGroups' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListWorkflowStepGroups' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:workflowId:ListWorkflowStepGroups' :: Text
workflowId = Text
pWorkflowId_
    }

-- | The maximum number of results that can be returned.
listWorkflowStepGroups_maxResults :: Lens.Lens' ListWorkflowStepGroups (Prelude.Maybe Prelude.Natural)
listWorkflowStepGroups_maxResults :: Lens' ListWorkflowStepGroups (Maybe Natural)
listWorkflowStepGroups_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepGroups' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListWorkflowStepGroups
s@ListWorkflowStepGroups' {} Maybe Natural
a -> ListWorkflowStepGroups
s {$sel:maxResults:ListWorkflowStepGroups' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListWorkflowStepGroups)

-- | The pagination token.
listWorkflowStepGroups_nextToken :: Lens.Lens' ListWorkflowStepGroups (Prelude.Maybe Prelude.Text)
listWorkflowStepGroups_nextToken :: Lens' ListWorkflowStepGroups (Maybe Text)
listWorkflowStepGroups_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepGroups' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWorkflowStepGroups
s@ListWorkflowStepGroups' {} Maybe Text
a -> ListWorkflowStepGroups
s {$sel:nextToken:ListWorkflowStepGroups' :: Maybe Text
nextToken = Maybe Text
a} :: ListWorkflowStepGroups)

-- | The ID of the migration workflow.
listWorkflowStepGroups_workflowId :: Lens.Lens' ListWorkflowStepGroups Prelude.Text
listWorkflowStepGroups_workflowId :: Lens' ListWorkflowStepGroups Text
listWorkflowStepGroups_workflowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepGroups' {Text
workflowId :: Text
$sel:workflowId:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Text
workflowId} -> Text
workflowId) (\s :: ListWorkflowStepGroups
s@ListWorkflowStepGroups' {} Text
a -> ListWorkflowStepGroups
s {$sel:workflowId:ListWorkflowStepGroups' :: Text
workflowId = Text
a} :: ListWorkflowStepGroups)

instance Core.AWSPager ListWorkflowStepGroups where
  page :: ListWorkflowStepGroups
-> AWSResponse ListWorkflowStepGroups
-> Maybe ListWorkflowStepGroups
page ListWorkflowStepGroups
rq AWSResponse ListWorkflowStepGroups
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListWorkflowStepGroups
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListWorkflowStepGroupsResponse (Maybe Text)
listWorkflowStepGroupsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListWorkflowStepGroups
rs
            forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListWorkflowStepGroupsResponse [WorkflowStepGroupSummary]
listWorkflowStepGroupsResponse_workflowStepGroupsSummary
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListWorkflowStepGroups
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListWorkflowStepGroups (Maybe Text)
listWorkflowStepGroups_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListWorkflowStepGroups
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListWorkflowStepGroupsResponse (Maybe Text)
listWorkflowStepGroupsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListWorkflowStepGroups where
  type
    AWSResponse ListWorkflowStepGroups =
      ListWorkflowStepGroupsResponse
  request :: (Service -> Service)
-> ListWorkflowStepGroups -> Request ListWorkflowStepGroups
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListWorkflowStepGroups
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListWorkflowStepGroups)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Int
-> [WorkflowStepGroupSummary]
-> ListWorkflowStepGroupsResponse
ListWorkflowStepGroupsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"workflowStepGroupsSummary"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListWorkflowStepGroups where
  hashWithSalt :: Int -> ListWorkflowStepGroups -> Int
hashWithSalt Int
_salt ListWorkflowStepGroups' {Maybe Natural
Maybe Text
Text
workflowId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:workflowId:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Text
$sel:nextToken:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Maybe Text
$sel:maxResults:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
workflowId

instance Prelude.NFData ListWorkflowStepGroups where
  rnf :: ListWorkflowStepGroups -> ()
rnf ListWorkflowStepGroups' {Maybe Natural
Maybe Text
Text
workflowId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:workflowId:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Text
$sel:nextToken:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Maybe Text
$sel:maxResults:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
workflowId

instance Data.ToHeaders ListWorkflowStepGroups where
  toHeaders :: ListWorkflowStepGroups -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath ListWorkflowStepGroups where
  toPath :: ListWorkflowStepGroups -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/workflowstepgroups"

instance Data.ToQuery ListWorkflowStepGroups where
  toQuery :: ListWorkflowStepGroups -> QueryString
toQuery ListWorkflowStepGroups' {Maybe Natural
Maybe Text
Text
workflowId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:workflowId:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Text
$sel:nextToken:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Maybe Text
$sel:maxResults:ListWorkflowStepGroups' :: ListWorkflowStepGroups -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
        ByteString
"workflowId" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
workflowId
      ]

-- | /See:/ 'newListWorkflowStepGroupsResponse' smart constructor.
data ListWorkflowStepGroupsResponse = ListWorkflowStepGroupsResponse'
  { -- | The pagination token.
    ListWorkflowStepGroupsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListWorkflowStepGroupsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The summary of step groups in a migration workflow.
    ListWorkflowStepGroupsResponse -> [WorkflowStepGroupSummary]
workflowStepGroupsSummary :: [WorkflowStepGroupSummary]
  }
  deriving (ListWorkflowStepGroupsResponse
-> ListWorkflowStepGroupsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWorkflowStepGroupsResponse
-> ListWorkflowStepGroupsResponse -> Bool
$c/= :: ListWorkflowStepGroupsResponse
-> ListWorkflowStepGroupsResponse -> Bool
== :: ListWorkflowStepGroupsResponse
-> ListWorkflowStepGroupsResponse -> Bool
$c== :: ListWorkflowStepGroupsResponse
-> ListWorkflowStepGroupsResponse -> Bool
Prelude.Eq, ReadPrec [ListWorkflowStepGroupsResponse]
ReadPrec ListWorkflowStepGroupsResponse
Int -> ReadS ListWorkflowStepGroupsResponse
ReadS [ListWorkflowStepGroupsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWorkflowStepGroupsResponse]
$creadListPrec :: ReadPrec [ListWorkflowStepGroupsResponse]
readPrec :: ReadPrec ListWorkflowStepGroupsResponse
$creadPrec :: ReadPrec ListWorkflowStepGroupsResponse
readList :: ReadS [ListWorkflowStepGroupsResponse]
$creadList :: ReadS [ListWorkflowStepGroupsResponse]
readsPrec :: Int -> ReadS ListWorkflowStepGroupsResponse
$creadsPrec :: Int -> ReadS ListWorkflowStepGroupsResponse
Prelude.Read, Int -> ListWorkflowStepGroupsResponse -> ShowS
[ListWorkflowStepGroupsResponse] -> ShowS
ListWorkflowStepGroupsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWorkflowStepGroupsResponse] -> ShowS
$cshowList :: [ListWorkflowStepGroupsResponse] -> ShowS
show :: ListWorkflowStepGroupsResponse -> String
$cshow :: ListWorkflowStepGroupsResponse -> String
showsPrec :: Int -> ListWorkflowStepGroupsResponse -> ShowS
$cshowsPrec :: Int -> ListWorkflowStepGroupsResponse -> ShowS
Prelude.Show, forall x.
Rep ListWorkflowStepGroupsResponse x
-> ListWorkflowStepGroupsResponse
forall x.
ListWorkflowStepGroupsResponse
-> Rep ListWorkflowStepGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListWorkflowStepGroupsResponse x
-> ListWorkflowStepGroupsResponse
$cfrom :: forall x.
ListWorkflowStepGroupsResponse
-> Rep ListWorkflowStepGroupsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListWorkflowStepGroupsResponse' 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:
--
-- 'nextToken', 'listWorkflowStepGroupsResponse_nextToken' - The pagination token.
--
-- 'httpStatus', 'listWorkflowStepGroupsResponse_httpStatus' - The response's http status code.
--
-- 'workflowStepGroupsSummary', 'listWorkflowStepGroupsResponse_workflowStepGroupsSummary' - The summary of step groups in a migration workflow.
newListWorkflowStepGroupsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListWorkflowStepGroupsResponse
newListWorkflowStepGroupsResponse :: Int -> ListWorkflowStepGroupsResponse
newListWorkflowStepGroupsResponse Int
pHttpStatus_ =
  ListWorkflowStepGroupsResponse'
    { $sel:nextToken:ListWorkflowStepGroupsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListWorkflowStepGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:workflowStepGroupsSummary:ListWorkflowStepGroupsResponse' :: [WorkflowStepGroupSummary]
workflowStepGroupsSummary = forall a. Monoid a => a
Prelude.mempty
    }

-- | The pagination token.
listWorkflowStepGroupsResponse_nextToken :: Lens.Lens' ListWorkflowStepGroupsResponse (Prelude.Maybe Prelude.Text)
listWorkflowStepGroupsResponse_nextToken :: Lens' ListWorkflowStepGroupsResponse (Maybe Text)
listWorkflowStepGroupsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepGroupsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWorkflowStepGroupsResponse' :: ListWorkflowStepGroupsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWorkflowStepGroupsResponse
s@ListWorkflowStepGroupsResponse' {} Maybe Text
a -> ListWorkflowStepGroupsResponse
s {$sel:nextToken:ListWorkflowStepGroupsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListWorkflowStepGroupsResponse)

-- | The response's http status code.
listWorkflowStepGroupsResponse_httpStatus :: Lens.Lens' ListWorkflowStepGroupsResponse Prelude.Int
listWorkflowStepGroupsResponse_httpStatus :: Lens' ListWorkflowStepGroupsResponse Int
listWorkflowStepGroupsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListWorkflowStepGroupsResponse' :: ListWorkflowStepGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListWorkflowStepGroupsResponse
s@ListWorkflowStepGroupsResponse' {} Int
a -> ListWorkflowStepGroupsResponse
s {$sel:httpStatus:ListWorkflowStepGroupsResponse' :: Int
httpStatus = Int
a} :: ListWorkflowStepGroupsResponse)

-- | The summary of step groups in a migration workflow.
listWorkflowStepGroupsResponse_workflowStepGroupsSummary :: Lens.Lens' ListWorkflowStepGroupsResponse [WorkflowStepGroupSummary]
listWorkflowStepGroupsResponse_workflowStepGroupsSummary :: Lens' ListWorkflowStepGroupsResponse [WorkflowStepGroupSummary]
listWorkflowStepGroupsResponse_workflowStepGroupsSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWorkflowStepGroupsResponse' {[WorkflowStepGroupSummary]
workflowStepGroupsSummary :: [WorkflowStepGroupSummary]
$sel:workflowStepGroupsSummary:ListWorkflowStepGroupsResponse' :: ListWorkflowStepGroupsResponse -> [WorkflowStepGroupSummary]
workflowStepGroupsSummary} -> [WorkflowStepGroupSummary]
workflowStepGroupsSummary) (\s :: ListWorkflowStepGroupsResponse
s@ListWorkflowStepGroupsResponse' {} [WorkflowStepGroupSummary]
a -> ListWorkflowStepGroupsResponse
s {$sel:workflowStepGroupsSummary:ListWorkflowStepGroupsResponse' :: [WorkflowStepGroupSummary]
workflowStepGroupsSummary = [WorkflowStepGroupSummary]
a} :: ListWorkflowStepGroupsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListWorkflowStepGroupsResponse
  where
  rnf :: ListWorkflowStepGroupsResponse -> ()
rnf ListWorkflowStepGroupsResponse' {Int
[WorkflowStepGroupSummary]
Maybe Text
workflowStepGroupsSummary :: [WorkflowStepGroupSummary]
httpStatus :: Int
nextToken :: Maybe Text
$sel:workflowStepGroupsSummary:ListWorkflowStepGroupsResponse' :: ListWorkflowStepGroupsResponse -> [WorkflowStepGroupSummary]
$sel:httpStatus:ListWorkflowStepGroupsResponse' :: ListWorkflowStepGroupsResponse -> Int
$sel:nextToken:ListWorkflowStepGroupsResponse' :: ListWorkflowStepGroupsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [WorkflowStepGroupSummary]
workflowStepGroupsSummary