{-# 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.DMS.DescribeSchemas
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns information about the schema for the specified endpoint.
--
-- This operation returns paginated results.
module Amazonka.DMS.DescribeSchemas
  ( -- * Creating a Request
    DescribeSchemas (..),
    newDescribeSchemas,

    -- * Request Lenses
    describeSchemas_marker,
    describeSchemas_maxRecords,
    describeSchemas_endpointArn,

    -- * Destructuring the Response
    DescribeSchemasResponse (..),
    newDescribeSchemasResponse,

    -- * Response Lenses
    describeSchemasResponse_marker,
    describeSchemasResponse_schemas,
    describeSchemasResponse_httpStatus,
  )
where

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

-- |
--
-- /See:/ 'newDescribeSchemas' smart constructor.
data DescribeSchemas = DescribeSchemas'
  { -- | An optional pagination token provided by a previous request. If this
    -- parameter is specified, the response includes only records beyond the
    -- marker, up to the value specified by @MaxRecords@.
    DescribeSchemas -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of records to include in the response. If more
    -- records exist than the specified @MaxRecords@ value, a pagination token
    -- called a marker is included in the response so that the remaining
    -- results can be retrieved.
    --
    -- Default: 100
    --
    -- Constraints: Minimum 20, maximum 100.
    DescribeSchemas -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
    -- | The Amazon Resource Name (ARN) string that uniquely identifies the
    -- endpoint.
    DescribeSchemas -> Text
endpointArn :: Prelude.Text
  }
  deriving (DescribeSchemas -> DescribeSchemas -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSchemas -> DescribeSchemas -> Bool
$c/= :: DescribeSchemas -> DescribeSchemas -> Bool
== :: DescribeSchemas -> DescribeSchemas -> Bool
$c== :: DescribeSchemas -> DescribeSchemas -> Bool
Prelude.Eq, ReadPrec [DescribeSchemas]
ReadPrec DescribeSchemas
Int -> ReadS DescribeSchemas
ReadS [DescribeSchemas]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSchemas]
$creadListPrec :: ReadPrec [DescribeSchemas]
readPrec :: ReadPrec DescribeSchemas
$creadPrec :: ReadPrec DescribeSchemas
readList :: ReadS [DescribeSchemas]
$creadList :: ReadS [DescribeSchemas]
readsPrec :: Int -> ReadS DescribeSchemas
$creadsPrec :: Int -> ReadS DescribeSchemas
Prelude.Read, Int -> DescribeSchemas -> ShowS
[DescribeSchemas] -> ShowS
DescribeSchemas -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSchemas] -> ShowS
$cshowList :: [DescribeSchemas] -> ShowS
show :: DescribeSchemas -> String
$cshow :: DescribeSchemas -> String
showsPrec :: Int -> DescribeSchemas -> ShowS
$cshowsPrec :: Int -> DescribeSchemas -> ShowS
Prelude.Show, forall x. Rep DescribeSchemas x -> DescribeSchemas
forall x. DescribeSchemas -> Rep DescribeSchemas x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSchemas x -> DescribeSchemas
$cfrom :: forall x. DescribeSchemas -> Rep DescribeSchemas x
Prelude.Generic)

-- |
-- Create a value of 'DescribeSchemas' 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:
--
-- 'marker', 'describeSchemas_marker' - An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
--
-- 'maxRecords', 'describeSchemas_maxRecords' - The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- called a marker is included in the response so that the remaining
-- results can be retrieved.
--
-- Default: 100
--
-- Constraints: Minimum 20, maximum 100.
--
-- 'endpointArn', 'describeSchemas_endpointArn' - The Amazon Resource Name (ARN) string that uniquely identifies the
-- endpoint.
newDescribeSchemas ::
  -- | 'endpointArn'
  Prelude.Text ->
  DescribeSchemas
newDescribeSchemas :: Text -> DescribeSchemas
newDescribeSchemas Text
pEndpointArn_ =
  DescribeSchemas'
    { $sel:marker:DescribeSchemas' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
      $sel:maxRecords:DescribeSchemas' :: Maybe Int
maxRecords = forall a. Maybe a
Prelude.Nothing,
      $sel:endpointArn:DescribeSchemas' :: Text
endpointArn = Text
pEndpointArn_
    }

-- | An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
describeSchemas_marker :: Lens.Lens' DescribeSchemas (Prelude.Maybe Prelude.Text)
describeSchemas_marker :: Lens' DescribeSchemas (Maybe Text)
describeSchemas_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemas' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeSchemas' :: DescribeSchemas -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeSchemas
s@DescribeSchemas' {} Maybe Text
a -> DescribeSchemas
s {$sel:marker:DescribeSchemas' :: Maybe Text
marker = Maybe Text
a} :: DescribeSchemas)

-- | The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- called a marker is included in the response so that the remaining
-- results can be retrieved.
--
-- Default: 100
--
-- Constraints: Minimum 20, maximum 100.
describeSchemas_maxRecords :: Lens.Lens' DescribeSchemas (Prelude.Maybe Prelude.Int)
describeSchemas_maxRecords :: Lens' DescribeSchemas (Maybe Int)
describeSchemas_maxRecords = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemas' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeSchemas' :: DescribeSchemas -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeSchemas
s@DescribeSchemas' {} Maybe Int
a -> DescribeSchemas
s {$sel:maxRecords:DescribeSchemas' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeSchemas)

-- | The Amazon Resource Name (ARN) string that uniquely identifies the
-- endpoint.
describeSchemas_endpointArn :: Lens.Lens' DescribeSchemas Prelude.Text
describeSchemas_endpointArn :: Lens' DescribeSchemas Text
describeSchemas_endpointArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemas' {Text
endpointArn :: Text
$sel:endpointArn:DescribeSchemas' :: DescribeSchemas -> Text
endpointArn} -> Text
endpointArn) (\s :: DescribeSchemas
s@DescribeSchemas' {} Text
a -> DescribeSchemas
s {$sel:endpointArn:DescribeSchemas' :: Text
endpointArn = Text
a} :: DescribeSchemas)

instance Core.AWSPager DescribeSchemas where
  page :: DescribeSchemas
-> AWSResponse DescribeSchemas -> Maybe DescribeSchemas
page DescribeSchemas
rq AWSResponse DescribeSchemas
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeSchemas
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeSchemasResponse (Maybe Text)
describeSchemasResponse_marker
            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 DescribeSchemas
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeSchemasResponse (Maybe [Text])
describeSchemasResponse_schemas
            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
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ DescribeSchemas
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeSchemas (Maybe Text)
describeSchemas_marker
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeSchemas
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeSchemasResponse (Maybe Text)
describeSchemasResponse_marker
          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 DescribeSchemas where
  type
    AWSResponse DescribeSchemas =
      DescribeSchemasResponse
  request :: (Service -> Service) -> DescribeSchemas -> Request DescribeSchemas
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeSchemas
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeSchemas)))
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 -> Maybe [Text] -> Int -> DescribeSchemasResponse
DescribeSchemasResponse'
            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
"Marker")
            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
"Schemas" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            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))
      )

instance Prelude.Hashable DescribeSchemas where
  hashWithSalt :: Int -> DescribeSchemas -> Int
hashWithSalt Int
_salt DescribeSchemas' {Maybe Int
Maybe Text
Text
endpointArn :: Text
maxRecords :: Maybe Int
marker :: Maybe Text
$sel:endpointArn:DescribeSchemas' :: DescribeSchemas -> Text
$sel:maxRecords:DescribeSchemas' :: DescribeSchemas -> Maybe Int
$sel:marker:DescribeSchemas' :: DescribeSchemas -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
marker
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxRecords
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
endpointArn

instance Prelude.NFData DescribeSchemas where
  rnf :: DescribeSchemas -> ()
rnf DescribeSchemas' {Maybe Int
Maybe Text
Text
endpointArn :: Text
maxRecords :: Maybe Int
marker :: Maybe Text
$sel:endpointArn:DescribeSchemas' :: DescribeSchemas -> Text
$sel:maxRecords:DescribeSchemas' :: DescribeSchemas -> Maybe Int
$sel:marker:DescribeSchemas' :: DescribeSchemas -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
marker
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxRecords
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
endpointArn

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

instance Data.ToJSON DescribeSchemas where
  toJSON :: DescribeSchemas -> Value
toJSON DescribeSchemas' {Maybe Int
Maybe Text
Text
endpointArn :: Text
maxRecords :: Maybe Int
marker :: Maybe Text
$sel:endpointArn:DescribeSchemas' :: DescribeSchemas -> Text
$sel:maxRecords:DescribeSchemas' :: DescribeSchemas -> Maybe Int
$sel:marker:DescribeSchemas' :: DescribeSchemas -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Marker" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
marker,
            (Key
"MaxRecords" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxRecords,
            forall a. a -> Maybe a
Prelude.Just (Key
"EndpointArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
endpointArn)
          ]
      )

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

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

-- |
--
-- /See:/ 'newDescribeSchemasResponse' smart constructor.
data DescribeSchemasResponse = DescribeSchemasResponse'
  { -- | An optional pagination token provided by a previous request. If this
    -- parameter is specified, the response includes only records beyond the
    -- marker, up to the value specified by @MaxRecords@.
    DescribeSchemasResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The described schema.
    DescribeSchemasResponse -> Maybe [Text]
schemas :: Prelude.Maybe [Prelude.Text],
    -- | The response's http status code.
    DescribeSchemasResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
$c/= :: DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
== :: DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
$c== :: DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
Prelude.Eq, ReadPrec [DescribeSchemasResponse]
ReadPrec DescribeSchemasResponse
Int -> ReadS DescribeSchemasResponse
ReadS [DescribeSchemasResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSchemasResponse]
$creadListPrec :: ReadPrec [DescribeSchemasResponse]
readPrec :: ReadPrec DescribeSchemasResponse
$creadPrec :: ReadPrec DescribeSchemasResponse
readList :: ReadS [DescribeSchemasResponse]
$creadList :: ReadS [DescribeSchemasResponse]
readsPrec :: Int -> ReadS DescribeSchemasResponse
$creadsPrec :: Int -> ReadS DescribeSchemasResponse
Prelude.Read, Int -> DescribeSchemasResponse -> ShowS
[DescribeSchemasResponse] -> ShowS
DescribeSchemasResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSchemasResponse] -> ShowS
$cshowList :: [DescribeSchemasResponse] -> ShowS
show :: DescribeSchemasResponse -> String
$cshow :: DescribeSchemasResponse -> String
showsPrec :: Int -> DescribeSchemasResponse -> ShowS
$cshowsPrec :: Int -> DescribeSchemasResponse -> ShowS
Prelude.Show, forall x. Rep DescribeSchemasResponse x -> DescribeSchemasResponse
forall x. DescribeSchemasResponse -> Rep DescribeSchemasResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSchemasResponse x -> DescribeSchemasResponse
$cfrom :: forall x. DescribeSchemasResponse -> Rep DescribeSchemasResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeSchemasResponse' 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:
--
-- 'marker', 'describeSchemasResponse_marker' - An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
--
-- 'schemas', 'describeSchemasResponse_schemas' - The described schema.
--
-- 'httpStatus', 'describeSchemasResponse_httpStatus' - The response's http status code.
newDescribeSchemasResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeSchemasResponse
newDescribeSchemasResponse :: Int -> DescribeSchemasResponse
newDescribeSchemasResponse Int
pHttpStatus_ =
  DescribeSchemasResponse'
    { $sel:marker:DescribeSchemasResponse' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
      $sel:schemas:DescribeSchemasResponse' :: Maybe [Text]
schemas = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeSchemasResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
describeSchemasResponse_marker :: Lens.Lens' DescribeSchemasResponse (Prelude.Maybe Prelude.Text)
describeSchemasResponse_marker :: Lens' DescribeSchemasResponse (Maybe Text)
describeSchemasResponse_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemasResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeSchemasResponse' :: DescribeSchemasResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeSchemasResponse
s@DescribeSchemasResponse' {} Maybe Text
a -> DescribeSchemasResponse
s {$sel:marker:DescribeSchemasResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeSchemasResponse)

-- | The described schema.
describeSchemasResponse_schemas :: Lens.Lens' DescribeSchemasResponse (Prelude.Maybe [Prelude.Text])
describeSchemasResponse_schemas :: Lens' DescribeSchemasResponse (Maybe [Text])
describeSchemasResponse_schemas = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemasResponse' {Maybe [Text]
schemas :: Maybe [Text]
$sel:schemas:DescribeSchemasResponse' :: DescribeSchemasResponse -> Maybe [Text]
schemas} -> Maybe [Text]
schemas) (\s :: DescribeSchemasResponse
s@DescribeSchemasResponse' {} Maybe [Text]
a -> DescribeSchemasResponse
s {$sel:schemas:DescribeSchemasResponse' :: Maybe [Text]
schemas = Maybe [Text]
a} :: DescribeSchemasResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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