{-# 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.SSM.ListOpsMetadata
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Amazon Web Services Systems Manager calls this API operation when
-- displaying all Application Manager OpsMetadata objects or blobs.
--
-- This operation returns paginated results.
module Amazonka.SSM.ListOpsMetadata
  ( -- * Creating a Request
    ListOpsMetadata (..),
    newListOpsMetadata,

    -- * Request Lenses
    listOpsMetadata_filters,
    listOpsMetadata_maxResults,
    listOpsMetadata_nextToken,

    -- * Destructuring the Response
    ListOpsMetadataResponse (..),
    newListOpsMetadataResponse,

    -- * Response Lenses
    listOpsMetadataResponse_nextToken,
    listOpsMetadataResponse_opsMetadataList,
    listOpsMetadataResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListOpsMetadata' smart constructor.
data ListOpsMetadata = ListOpsMetadata'
  { -- | One or more filters to limit the number of OpsMetadata objects returned
    -- by the call.
    ListOpsMetadata -> Maybe [OpsMetadataFilter]
filters :: Prelude.Maybe [OpsMetadataFilter],
    -- | The maximum number of items to return for this call. The call also
    -- returns a token that you can specify in a subsequent call to get the
    -- next set of results.
    ListOpsMetadata -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A token to start the list. Use this token to get the next set of
    -- results.
    ListOpsMetadata -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListOpsMetadata -> ListOpsMetadata -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOpsMetadata -> ListOpsMetadata -> Bool
$c/= :: ListOpsMetadata -> ListOpsMetadata -> Bool
== :: ListOpsMetadata -> ListOpsMetadata -> Bool
$c== :: ListOpsMetadata -> ListOpsMetadata -> Bool
Prelude.Eq, ReadPrec [ListOpsMetadata]
ReadPrec ListOpsMetadata
Int -> ReadS ListOpsMetadata
ReadS [ListOpsMetadata]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOpsMetadata]
$creadListPrec :: ReadPrec [ListOpsMetadata]
readPrec :: ReadPrec ListOpsMetadata
$creadPrec :: ReadPrec ListOpsMetadata
readList :: ReadS [ListOpsMetadata]
$creadList :: ReadS [ListOpsMetadata]
readsPrec :: Int -> ReadS ListOpsMetadata
$creadsPrec :: Int -> ReadS ListOpsMetadata
Prelude.Read, Int -> ListOpsMetadata -> ShowS
[ListOpsMetadata] -> ShowS
ListOpsMetadata -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOpsMetadata] -> ShowS
$cshowList :: [ListOpsMetadata] -> ShowS
show :: ListOpsMetadata -> String
$cshow :: ListOpsMetadata -> String
showsPrec :: Int -> ListOpsMetadata -> ShowS
$cshowsPrec :: Int -> ListOpsMetadata -> ShowS
Prelude.Show, forall x. Rep ListOpsMetadata x -> ListOpsMetadata
forall x. ListOpsMetadata -> Rep ListOpsMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOpsMetadata x -> ListOpsMetadata
$cfrom :: forall x. ListOpsMetadata -> Rep ListOpsMetadata x
Prelude.Generic)

-- |
-- Create a value of 'ListOpsMetadata' 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:
--
-- 'filters', 'listOpsMetadata_filters' - One or more filters to limit the number of OpsMetadata objects returned
-- by the call.
--
-- 'maxResults', 'listOpsMetadata_maxResults' - The maximum number of items to return for this call. The call also
-- returns a token that you can specify in a subsequent call to get the
-- next set of results.
--
-- 'nextToken', 'listOpsMetadata_nextToken' - A token to start the list. Use this token to get the next set of
-- results.
newListOpsMetadata ::
  ListOpsMetadata
newListOpsMetadata :: ListOpsMetadata
newListOpsMetadata =
  ListOpsMetadata'
    { $sel:filters:ListOpsMetadata' :: Maybe [OpsMetadataFilter]
filters = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListOpsMetadata' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListOpsMetadata' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | One or more filters to limit the number of OpsMetadata objects returned
-- by the call.
listOpsMetadata_filters :: Lens.Lens' ListOpsMetadata (Prelude.Maybe [OpsMetadataFilter])
listOpsMetadata_filters :: Lens' ListOpsMetadata (Maybe [OpsMetadataFilter])
listOpsMetadata_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadata' {Maybe [OpsMetadataFilter]
filters :: Maybe [OpsMetadataFilter]
$sel:filters:ListOpsMetadata' :: ListOpsMetadata -> Maybe [OpsMetadataFilter]
filters} -> Maybe [OpsMetadataFilter]
filters) (\s :: ListOpsMetadata
s@ListOpsMetadata' {} Maybe [OpsMetadataFilter]
a -> ListOpsMetadata
s {$sel:filters:ListOpsMetadata' :: Maybe [OpsMetadataFilter]
filters = Maybe [OpsMetadataFilter]
a} :: ListOpsMetadata) 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 maximum number of items to return for this call. The call also
-- returns a token that you can specify in a subsequent call to get the
-- next set of results.
listOpsMetadata_maxResults :: Lens.Lens' ListOpsMetadata (Prelude.Maybe Prelude.Natural)
listOpsMetadata_maxResults :: Lens' ListOpsMetadata (Maybe Natural)
listOpsMetadata_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadata' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListOpsMetadata' :: ListOpsMetadata -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListOpsMetadata
s@ListOpsMetadata' {} Maybe Natural
a -> ListOpsMetadata
s {$sel:maxResults:ListOpsMetadata' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListOpsMetadata)

-- | A token to start the list. Use this token to get the next set of
-- results.
listOpsMetadata_nextToken :: Lens.Lens' ListOpsMetadata (Prelude.Maybe Prelude.Text)
listOpsMetadata_nextToken :: Lens' ListOpsMetadata (Maybe Text)
listOpsMetadata_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadata' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOpsMetadata' :: ListOpsMetadata -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOpsMetadata
s@ListOpsMetadata' {} Maybe Text
a -> ListOpsMetadata
s {$sel:nextToken:ListOpsMetadata' :: Maybe Text
nextToken = Maybe Text
a} :: ListOpsMetadata)

instance Core.AWSPager ListOpsMetadata where
  page :: ListOpsMetadata
-> AWSResponse ListOpsMetadata -> Maybe ListOpsMetadata
page ListOpsMetadata
rq AWSResponse ListOpsMetadata
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListOpsMetadata
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListOpsMetadataResponse (Maybe Text)
listOpsMetadataResponse_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 ListOpsMetadata
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListOpsMetadataResponse (Maybe (NonEmpty OpsMetadata))
listOpsMetadataResponse_opsMetadataList
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (p :: * -> * -> *) (f :: * -> *) s a.
(Profunctor p, Contravariant f) =>
(s -> a) -> Optic' p f s a
Lens.to forall l. IsList l => l -> [Item l]
Prelude.toList
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListOpsMetadata
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListOpsMetadata (Maybe Text)
listOpsMetadata_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListOpsMetadata
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListOpsMetadataResponse (Maybe Text)
listOpsMetadataResponse_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 ListOpsMetadata where
  type
    AWSResponse ListOpsMetadata =
      ListOpsMetadataResponse
  request :: (Service -> Service) -> ListOpsMetadata -> Request ListOpsMetadata
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 ListOpsMetadata
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListOpsMetadata)))
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 (NonEmpty OpsMetadata) -> Int -> ListOpsMetadataResponse
ListOpsMetadataResponse'
            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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OpsMetadataList")
            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 ListOpsMetadata where
  hashWithSalt :: Int -> ListOpsMetadata -> Int
hashWithSalt Int
_salt ListOpsMetadata' {Maybe Natural
Maybe [OpsMetadataFilter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [OpsMetadataFilter]
$sel:nextToken:ListOpsMetadata' :: ListOpsMetadata -> Maybe Text
$sel:maxResults:ListOpsMetadata' :: ListOpsMetadata -> Maybe Natural
$sel:filters:ListOpsMetadata' :: ListOpsMetadata -> Maybe [OpsMetadataFilter]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [OpsMetadataFilter]
filters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData ListOpsMetadata where
  rnf :: ListOpsMetadata -> ()
rnf ListOpsMetadata' {Maybe Natural
Maybe [OpsMetadataFilter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [OpsMetadataFilter]
$sel:nextToken:ListOpsMetadata' :: ListOpsMetadata -> Maybe Text
$sel:maxResults:ListOpsMetadata' :: ListOpsMetadata -> Maybe Natural
$sel:filters:ListOpsMetadata' :: ListOpsMetadata -> Maybe [OpsMetadataFilter]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [OpsMetadataFilter]
filters
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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

instance Data.ToHeaders ListOpsMetadata where
  toHeaders :: ListOpsMetadata -> 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
"AmazonSSM.ListOpsMetadata" :: 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 ListOpsMetadata where
  toJSON :: ListOpsMetadata -> Value
toJSON ListOpsMetadata' {Maybe Natural
Maybe [OpsMetadataFilter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [OpsMetadataFilter]
$sel:nextToken:ListOpsMetadata' :: ListOpsMetadata -> Maybe Text
$sel:maxResults:ListOpsMetadata' :: ListOpsMetadata -> Maybe Natural
$sel:filters:ListOpsMetadata' :: ListOpsMetadata -> Maybe [OpsMetadataFilter]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Filters" 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 [OpsMetadataFilter]
filters,
            (Key
"MaxResults" 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 Natural
maxResults,
            (Key
"NextToken" 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
nextToken
          ]
      )

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

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

-- | /See:/ 'newListOpsMetadataResponse' smart constructor.
data ListOpsMetadataResponse = ListOpsMetadataResponse'
  { -- | The token for the next set of items to return. Use this token to get the
    -- next set of results.
    ListOpsMetadataResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Returns a list of OpsMetadata objects.
    ListOpsMetadataResponse -> Maybe (NonEmpty OpsMetadata)
opsMetadataList :: Prelude.Maybe (Prelude.NonEmpty OpsMetadata),
    -- | The response's http status code.
    ListOpsMetadataResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
$c/= :: ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
== :: ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
$c== :: ListOpsMetadataResponse -> ListOpsMetadataResponse -> Bool
Prelude.Eq, ReadPrec [ListOpsMetadataResponse]
ReadPrec ListOpsMetadataResponse
Int -> ReadS ListOpsMetadataResponse
ReadS [ListOpsMetadataResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOpsMetadataResponse]
$creadListPrec :: ReadPrec [ListOpsMetadataResponse]
readPrec :: ReadPrec ListOpsMetadataResponse
$creadPrec :: ReadPrec ListOpsMetadataResponse
readList :: ReadS [ListOpsMetadataResponse]
$creadList :: ReadS [ListOpsMetadataResponse]
readsPrec :: Int -> ReadS ListOpsMetadataResponse
$creadsPrec :: Int -> ReadS ListOpsMetadataResponse
Prelude.Read, Int -> ListOpsMetadataResponse -> ShowS
[ListOpsMetadataResponse] -> ShowS
ListOpsMetadataResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOpsMetadataResponse] -> ShowS
$cshowList :: [ListOpsMetadataResponse] -> ShowS
show :: ListOpsMetadataResponse -> String
$cshow :: ListOpsMetadataResponse -> String
showsPrec :: Int -> ListOpsMetadataResponse -> ShowS
$cshowsPrec :: Int -> ListOpsMetadataResponse -> ShowS
Prelude.Show, forall x. Rep ListOpsMetadataResponse x -> ListOpsMetadataResponse
forall x. ListOpsMetadataResponse -> Rep ListOpsMetadataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOpsMetadataResponse x -> ListOpsMetadataResponse
$cfrom :: forall x. ListOpsMetadataResponse -> Rep ListOpsMetadataResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListOpsMetadataResponse' 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', 'listOpsMetadataResponse_nextToken' - The token for the next set of items to return. Use this token to get the
-- next set of results.
--
-- 'opsMetadataList', 'listOpsMetadataResponse_opsMetadataList' - Returns a list of OpsMetadata objects.
--
-- 'httpStatus', 'listOpsMetadataResponse_httpStatus' - The response's http status code.
newListOpsMetadataResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListOpsMetadataResponse
newListOpsMetadataResponse :: Int -> ListOpsMetadataResponse
newListOpsMetadataResponse Int
pHttpStatus_ =
  ListOpsMetadataResponse'
    { $sel:nextToken:ListOpsMetadataResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:opsMetadataList:ListOpsMetadataResponse' :: Maybe (NonEmpty OpsMetadata)
opsMetadataList = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListOpsMetadataResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token for the next set of items to return. Use this token to get the
-- next set of results.
listOpsMetadataResponse_nextToken :: Lens.Lens' ListOpsMetadataResponse (Prelude.Maybe Prelude.Text)
listOpsMetadataResponse_nextToken :: Lens' ListOpsMetadataResponse (Maybe Text)
listOpsMetadataResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadataResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOpsMetadataResponse
s@ListOpsMetadataResponse' {} Maybe Text
a -> ListOpsMetadataResponse
s {$sel:nextToken:ListOpsMetadataResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListOpsMetadataResponse)

-- | Returns a list of OpsMetadata objects.
listOpsMetadataResponse_opsMetadataList :: Lens.Lens' ListOpsMetadataResponse (Prelude.Maybe (Prelude.NonEmpty OpsMetadata))
listOpsMetadataResponse_opsMetadataList :: Lens' ListOpsMetadataResponse (Maybe (NonEmpty OpsMetadata))
listOpsMetadataResponse_opsMetadataList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadataResponse' {Maybe (NonEmpty OpsMetadata)
opsMetadataList :: Maybe (NonEmpty OpsMetadata)
$sel:opsMetadataList:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> Maybe (NonEmpty OpsMetadata)
opsMetadataList} -> Maybe (NonEmpty OpsMetadata)
opsMetadataList) (\s :: ListOpsMetadataResponse
s@ListOpsMetadataResponse' {} Maybe (NonEmpty OpsMetadata)
a -> ListOpsMetadataResponse
s {$sel:opsMetadataList:ListOpsMetadataResponse' :: Maybe (NonEmpty OpsMetadata)
opsMetadataList = Maybe (NonEmpty OpsMetadata)
a} :: ListOpsMetadataResponse) 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.
listOpsMetadataResponse_httpStatus :: Lens.Lens' ListOpsMetadataResponse Prelude.Int
listOpsMetadataResponse_httpStatus :: Lens' ListOpsMetadataResponse Int
listOpsMetadataResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpsMetadataResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListOpsMetadataResponse
s@ListOpsMetadataResponse' {} Int
a -> ListOpsMetadataResponse
s {$sel:httpStatus:ListOpsMetadataResponse' :: Int
httpStatus = Int
a} :: ListOpsMetadataResponse)

instance Prelude.NFData ListOpsMetadataResponse where
  rnf :: ListOpsMetadataResponse -> ()
rnf ListOpsMetadataResponse' {Int
Maybe (NonEmpty OpsMetadata)
Maybe Text
httpStatus :: Int
opsMetadataList :: Maybe (NonEmpty OpsMetadata)
nextToken :: Maybe Text
$sel:httpStatus:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> Int
$sel:opsMetadataList:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> Maybe (NonEmpty OpsMetadata)
$sel:nextToken:ListOpsMetadataResponse' :: ListOpsMetadataResponse -> 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 Maybe (NonEmpty OpsMetadata)
opsMetadataList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus