{-# 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.CloudSearch.DescribeExpressions
-- 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)
--
-- Gets the expressions configured for the search domain. Can be limited to
-- specific expressions by name. By default, shows all expressions and
-- includes any pending changes to the configuration. Set the @Deployed@
-- option to @true@ to show the active configuration and exclude pending
-- changes. For more information, see
-- <http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html Configuring Expressions>
-- in the /Amazon CloudSearch Developer Guide/.
module Amazonka.CloudSearch.DescribeExpressions
  ( -- * Creating a Request
    DescribeExpressions (..),
    newDescribeExpressions,

    -- * Request Lenses
    describeExpressions_deployed,
    describeExpressions_expressionNames,
    describeExpressions_domainName,

    -- * Destructuring the Response
    DescribeExpressionsResponse (..),
    newDescribeExpressionsResponse,

    -- * Response Lenses
    describeExpressionsResponse_httpStatus,
    describeExpressionsResponse_expressions,
  )
where

import Amazonka.CloudSearch.Types
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

-- | Container for the parameters to the @DescribeDomains@ operation.
-- Specifies the name of the domain you want to describe. To restrict the
-- response to particular expressions, specify the names of the expressions
-- you want to describe. To show the active configuration and exclude any
-- pending changes, set the @Deployed@ option to @true@.
--
-- /See:/ 'newDescribeExpressions' smart constructor.
data DescribeExpressions = DescribeExpressions'
  { -- | Whether to display the deployed configuration (@true@) or include any
    -- pending changes (@false@). Defaults to @false@.
    DescribeExpressions -> Maybe Bool
deployed :: Prelude.Maybe Prelude.Bool,
    -- | Limits the @DescribeExpressions@ response to the specified expressions.
    -- If not specified, all expressions are shown.
    DescribeExpressions -> Maybe [Text]
expressionNames :: Prelude.Maybe [Prelude.Text],
    -- | The name of the domain you want to describe.
    DescribeExpressions -> Text
domainName :: Prelude.Text
  }
  deriving (DescribeExpressions -> DescribeExpressions -> Bool
(DescribeExpressions -> DescribeExpressions -> Bool)
-> (DescribeExpressions -> DescribeExpressions -> Bool)
-> Eq DescribeExpressions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeExpressions -> DescribeExpressions -> Bool
$c/= :: DescribeExpressions -> DescribeExpressions -> Bool
== :: DescribeExpressions -> DescribeExpressions -> Bool
$c== :: DescribeExpressions -> DescribeExpressions -> Bool
Prelude.Eq, ReadPrec [DescribeExpressions]
ReadPrec DescribeExpressions
Int -> ReadS DescribeExpressions
ReadS [DescribeExpressions]
(Int -> ReadS DescribeExpressions)
-> ReadS [DescribeExpressions]
-> ReadPrec DescribeExpressions
-> ReadPrec [DescribeExpressions]
-> Read DescribeExpressions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeExpressions]
$creadListPrec :: ReadPrec [DescribeExpressions]
readPrec :: ReadPrec DescribeExpressions
$creadPrec :: ReadPrec DescribeExpressions
readList :: ReadS [DescribeExpressions]
$creadList :: ReadS [DescribeExpressions]
readsPrec :: Int -> ReadS DescribeExpressions
$creadsPrec :: Int -> ReadS DescribeExpressions
Prelude.Read, Int -> DescribeExpressions -> ShowS
[DescribeExpressions] -> ShowS
DescribeExpressions -> String
(Int -> DescribeExpressions -> ShowS)
-> (DescribeExpressions -> String)
-> ([DescribeExpressions] -> ShowS)
-> Show DescribeExpressions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeExpressions] -> ShowS
$cshowList :: [DescribeExpressions] -> ShowS
show :: DescribeExpressions -> String
$cshow :: DescribeExpressions -> String
showsPrec :: Int -> DescribeExpressions -> ShowS
$cshowsPrec :: Int -> DescribeExpressions -> ShowS
Prelude.Show, (forall x. DescribeExpressions -> Rep DescribeExpressions x)
-> (forall x. Rep DescribeExpressions x -> DescribeExpressions)
-> Generic DescribeExpressions
forall x. Rep DescribeExpressions x -> DescribeExpressions
forall x. DescribeExpressions -> Rep DescribeExpressions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeExpressions x -> DescribeExpressions
$cfrom :: forall x. DescribeExpressions -> Rep DescribeExpressions x
Prelude.Generic)

-- |
-- Create a value of 'DescribeExpressions' 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:
--
-- 'deployed', 'describeExpressions_deployed' - Whether to display the deployed configuration (@true@) or include any
-- pending changes (@false@). Defaults to @false@.
--
-- 'expressionNames', 'describeExpressions_expressionNames' - Limits the @DescribeExpressions@ response to the specified expressions.
-- If not specified, all expressions are shown.
--
-- 'domainName', 'describeExpressions_domainName' - The name of the domain you want to describe.
newDescribeExpressions ::
  -- | 'domainName'
  Prelude.Text ->
  DescribeExpressions
newDescribeExpressions :: Text -> DescribeExpressions
newDescribeExpressions Text
pDomainName_ =
  DescribeExpressions' :: Maybe Bool -> Maybe [Text] -> Text -> DescribeExpressions
DescribeExpressions'
    { $sel:deployed:DescribeExpressions' :: Maybe Bool
deployed = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:expressionNames:DescribeExpressions' :: Maybe [Text]
expressionNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:DescribeExpressions' :: Text
domainName = Text
pDomainName_
    }

-- | Whether to display the deployed configuration (@true@) or include any
-- pending changes (@false@). Defaults to @false@.
describeExpressions_deployed :: Lens.Lens' DescribeExpressions (Prelude.Maybe Prelude.Bool)
describeExpressions_deployed :: (Maybe Bool -> f (Maybe Bool))
-> DescribeExpressions -> f DescribeExpressions
describeExpressions_deployed = (DescribeExpressions -> Maybe Bool)
-> (DescribeExpressions -> Maybe Bool -> DescribeExpressions)
-> Lens
     DescribeExpressions DescribeExpressions (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExpressions' {Maybe Bool
deployed :: Maybe Bool
$sel:deployed:DescribeExpressions' :: DescribeExpressions -> Maybe Bool
deployed} -> Maybe Bool
deployed) (\s :: DescribeExpressions
s@DescribeExpressions' {} Maybe Bool
a -> DescribeExpressions
s {$sel:deployed:DescribeExpressions' :: Maybe Bool
deployed = Maybe Bool
a} :: DescribeExpressions)

-- | Limits the @DescribeExpressions@ response to the specified expressions.
-- If not specified, all expressions are shown.
describeExpressions_expressionNames :: Lens.Lens' DescribeExpressions (Prelude.Maybe [Prelude.Text])
describeExpressions_expressionNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeExpressions -> f DescribeExpressions
describeExpressions_expressionNames = (DescribeExpressions -> Maybe [Text])
-> (DescribeExpressions -> Maybe [Text] -> DescribeExpressions)
-> Lens
     DescribeExpressions
     DescribeExpressions
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExpressions' {Maybe [Text]
expressionNames :: Maybe [Text]
$sel:expressionNames:DescribeExpressions' :: DescribeExpressions -> Maybe [Text]
expressionNames} -> Maybe [Text]
expressionNames) (\s :: DescribeExpressions
s@DescribeExpressions' {} Maybe [Text]
a -> DescribeExpressions
s {$sel:expressionNames:DescribeExpressions' :: Maybe [Text]
expressionNames = Maybe [Text]
a} :: DescribeExpressions) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeExpressions -> f DescribeExpressions)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeExpressions
-> f DescribeExpressions
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the domain you want to describe.
describeExpressions_domainName :: Lens.Lens' DescribeExpressions Prelude.Text
describeExpressions_domainName :: (Text -> f Text) -> DescribeExpressions -> f DescribeExpressions
describeExpressions_domainName = (DescribeExpressions -> Text)
-> (DescribeExpressions -> Text -> DescribeExpressions)
-> Lens DescribeExpressions DescribeExpressions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExpressions' {Text
domainName :: Text
$sel:domainName:DescribeExpressions' :: DescribeExpressions -> Text
domainName} -> Text
domainName) (\s :: DescribeExpressions
s@DescribeExpressions' {} Text
a -> DescribeExpressions
s {$sel:domainName:DescribeExpressions' :: Text
domainName = Text
a} :: DescribeExpressions)

instance Core.AWSRequest DescribeExpressions where
  type
    AWSResponse DescribeExpressions =
      DescribeExpressionsResponse
  request :: DescribeExpressions -> Request DescribeExpressions
request = Service -> DescribeExpressions -> Request DescribeExpressions
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeExpressions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeExpressions)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeExpressions))
-> Logger
-> Service
-> Proxy DescribeExpressions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeExpressions)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DescribeExpressionsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int -> [ExpressionStatus] -> DescribeExpressionsResponse
DescribeExpressionsResponse'
            (Int -> [ExpressionStatus] -> DescribeExpressionsResponse)
-> Either String Int
-> Either
     String ([ExpressionStatus] -> DescribeExpressionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either String ([ExpressionStatus] -> DescribeExpressionsResponse)
-> Either String [ExpressionStatus]
-> Either String DescribeExpressionsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Expressions" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
                            Either String [Node]
-> ([Node] -> Either String [ExpressionStatus])
-> Either String [ExpressionStatus]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [ExpressionStatus]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member"
                        )
      )

instance Prelude.Hashable DescribeExpressions

instance Prelude.NFData DescribeExpressions

instance Core.ToHeaders DescribeExpressions where
  toHeaders :: DescribeExpressions -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeExpressions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery DescribeExpressions where
  toQuery :: DescribeExpressions -> QueryString
toQuery DescribeExpressions' {Maybe Bool
Maybe [Text]
Text
domainName :: Text
expressionNames :: Maybe [Text]
deployed :: Maybe Bool
$sel:domainName:DescribeExpressions' :: DescribeExpressions -> Text
$sel:expressionNames:DescribeExpressions' :: DescribeExpressions -> Maybe [Text]
$sel:deployed:DescribeExpressions' :: DescribeExpressions -> Maybe Bool
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeExpressions" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2013-01-01" :: Prelude.ByteString),
        ByteString
"Deployed" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
deployed,
        ByteString
"ExpressionNames"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
                ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
expressionNames
            ),
        ByteString
"DomainName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
domainName
      ]

-- | The result of a @DescribeExpressions@ request. Contains the expressions
-- configured for the domain specified in the request.
--
-- /See:/ 'newDescribeExpressionsResponse' smart constructor.
data DescribeExpressionsResponse = DescribeExpressionsResponse'
  { -- | The response's http status code.
    DescribeExpressionsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The expressions configured for the domain.
    DescribeExpressionsResponse -> [ExpressionStatus]
expressions :: [ExpressionStatus]
  }
  deriving (DescribeExpressionsResponse -> DescribeExpressionsResponse -> Bool
(DescribeExpressionsResponse
 -> DescribeExpressionsResponse -> Bool)
-> (DescribeExpressionsResponse
    -> DescribeExpressionsResponse -> Bool)
-> Eq DescribeExpressionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeExpressionsResponse -> DescribeExpressionsResponse -> Bool
$c/= :: DescribeExpressionsResponse -> DescribeExpressionsResponse -> Bool
== :: DescribeExpressionsResponse -> DescribeExpressionsResponse -> Bool
$c== :: DescribeExpressionsResponse -> DescribeExpressionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeExpressionsResponse]
ReadPrec DescribeExpressionsResponse
Int -> ReadS DescribeExpressionsResponse
ReadS [DescribeExpressionsResponse]
(Int -> ReadS DescribeExpressionsResponse)
-> ReadS [DescribeExpressionsResponse]
-> ReadPrec DescribeExpressionsResponse
-> ReadPrec [DescribeExpressionsResponse]
-> Read DescribeExpressionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeExpressionsResponse]
$creadListPrec :: ReadPrec [DescribeExpressionsResponse]
readPrec :: ReadPrec DescribeExpressionsResponse
$creadPrec :: ReadPrec DescribeExpressionsResponse
readList :: ReadS [DescribeExpressionsResponse]
$creadList :: ReadS [DescribeExpressionsResponse]
readsPrec :: Int -> ReadS DescribeExpressionsResponse
$creadsPrec :: Int -> ReadS DescribeExpressionsResponse
Prelude.Read, Int -> DescribeExpressionsResponse -> ShowS
[DescribeExpressionsResponse] -> ShowS
DescribeExpressionsResponse -> String
(Int -> DescribeExpressionsResponse -> ShowS)
-> (DescribeExpressionsResponse -> String)
-> ([DescribeExpressionsResponse] -> ShowS)
-> Show DescribeExpressionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeExpressionsResponse] -> ShowS
$cshowList :: [DescribeExpressionsResponse] -> ShowS
show :: DescribeExpressionsResponse -> String
$cshow :: DescribeExpressionsResponse -> String
showsPrec :: Int -> DescribeExpressionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeExpressionsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeExpressionsResponse -> Rep DescribeExpressionsResponse x)
-> (forall x.
    Rep DescribeExpressionsResponse x -> DescribeExpressionsResponse)
-> Generic DescribeExpressionsResponse
forall x.
Rep DescribeExpressionsResponse x -> DescribeExpressionsResponse
forall x.
DescribeExpressionsResponse -> Rep DescribeExpressionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeExpressionsResponse x -> DescribeExpressionsResponse
$cfrom :: forall x.
DescribeExpressionsResponse -> Rep DescribeExpressionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeExpressionsResponse' 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:
--
-- 'httpStatus', 'describeExpressionsResponse_httpStatus' - The response's http status code.
--
-- 'expressions', 'describeExpressionsResponse_expressions' - The expressions configured for the domain.
newDescribeExpressionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeExpressionsResponse
newDescribeExpressionsResponse :: Int -> DescribeExpressionsResponse
newDescribeExpressionsResponse Int
pHttpStatus_ =
  DescribeExpressionsResponse' :: Int -> [ExpressionStatus] -> DescribeExpressionsResponse
DescribeExpressionsResponse'
    { $sel:httpStatus:DescribeExpressionsResponse' :: Int
httpStatus =
        Int
pHttpStatus_,
      $sel:expressions:DescribeExpressionsResponse' :: [ExpressionStatus]
expressions = [ExpressionStatus]
forall a. Monoid a => a
Prelude.mempty
    }

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

-- | The expressions configured for the domain.
describeExpressionsResponse_expressions :: Lens.Lens' DescribeExpressionsResponse [ExpressionStatus]
describeExpressionsResponse_expressions :: ([ExpressionStatus] -> f [ExpressionStatus])
-> DescribeExpressionsResponse -> f DescribeExpressionsResponse
describeExpressionsResponse_expressions = (DescribeExpressionsResponse -> [ExpressionStatus])
-> (DescribeExpressionsResponse
    -> [ExpressionStatus] -> DescribeExpressionsResponse)
-> Lens
     DescribeExpressionsResponse
     DescribeExpressionsResponse
     [ExpressionStatus]
     [ExpressionStatus]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExpressionsResponse' {[ExpressionStatus]
expressions :: [ExpressionStatus]
$sel:expressions:DescribeExpressionsResponse' :: DescribeExpressionsResponse -> [ExpressionStatus]
expressions} -> [ExpressionStatus]
expressions) (\s :: DescribeExpressionsResponse
s@DescribeExpressionsResponse' {} [ExpressionStatus]
a -> DescribeExpressionsResponse
s {$sel:expressions:DescribeExpressionsResponse' :: [ExpressionStatus]
expressions = [ExpressionStatus]
a} :: DescribeExpressionsResponse) (([ExpressionStatus] -> f [ExpressionStatus])
 -> DescribeExpressionsResponse -> f DescribeExpressionsResponse)
-> (([ExpressionStatus] -> f [ExpressionStatus])
    -> [ExpressionStatus] -> f [ExpressionStatus])
-> ([ExpressionStatus] -> f [ExpressionStatus])
-> DescribeExpressionsResponse
-> f DescribeExpressionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ExpressionStatus] -> f [ExpressionStatus])
-> [ExpressionStatus] -> f [ExpressionStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData DescribeExpressionsResponse