{-# 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.CloudDirectory.ListOutgoingTypedLinks
-- 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 paginated list of all the outgoing TypedLinkSpecifier
-- information for an object. It also supports filtering by typed link
-- facet and identity attributes. For more information, see
-- <https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink Typed Links>.
--
-- This operation returns paginated results.
module Amazonka.CloudDirectory.ListOutgoingTypedLinks
  ( -- * Creating a Request
    ListOutgoingTypedLinks (..),
    newListOutgoingTypedLinks,

    -- * Request Lenses
    listOutgoingTypedLinks_filterAttributeRanges,
    listOutgoingTypedLinks_consistencyLevel,
    listOutgoingTypedLinks_nextToken,
    listOutgoingTypedLinks_filterTypedLink,
    listOutgoingTypedLinks_maxResults,
    listOutgoingTypedLinks_directoryArn,
    listOutgoingTypedLinks_objectReference,

    -- * Destructuring the Response
    ListOutgoingTypedLinksResponse (..),
    newListOutgoingTypedLinksResponse,

    -- * Response Lenses
    listOutgoingTypedLinksResponse_typedLinkSpecifiers,
    listOutgoingTypedLinksResponse_nextToken,
    listOutgoingTypedLinksResponse_httpStatus,
  )
where

import Amazonka.CloudDirectory.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

-- | /See:/ 'newListOutgoingTypedLinks' smart constructor.
data ListOutgoingTypedLinks = ListOutgoingTypedLinks'
  { -- | Provides range filters for multiple attributes. When providing ranges to
    -- typed link selection, any inexact ranges must be specified at the end.
    -- Any attributes that do not have a range specified are presumed to match
    -- the entire range.
    ListOutgoingTypedLinks -> Maybe [TypedLinkAttributeRange]
filterAttributeRanges :: Prelude.Maybe [TypedLinkAttributeRange],
    -- | The consistency level to execute the request at.
    ListOutgoingTypedLinks -> Maybe ConsistencyLevel
consistencyLevel :: Prelude.Maybe ConsistencyLevel,
    -- | The pagination token.
    ListOutgoingTypedLinks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Filters are interpreted in the order of the attributes defined on the
    -- typed link facet, not the order they are supplied to any API calls.
    ListOutgoingTypedLinks -> Maybe TypedLinkSchemaAndFacetName
filterTypedLink :: Prelude.Maybe TypedLinkSchemaAndFacetName,
    -- | The maximum number of results to retrieve.
    ListOutgoingTypedLinks -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the directory where you want to list
    -- the typed links.
    ListOutgoingTypedLinks -> Text
directoryArn :: Prelude.Text,
    -- | A reference that identifies the object whose attributes will be listed.
    ListOutgoingTypedLinks -> ObjectReference
objectReference :: ObjectReference
  }
  deriving (ListOutgoingTypedLinks -> ListOutgoingTypedLinks -> Bool
(ListOutgoingTypedLinks -> ListOutgoingTypedLinks -> Bool)
-> (ListOutgoingTypedLinks -> ListOutgoingTypedLinks -> Bool)
-> Eq ListOutgoingTypedLinks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOutgoingTypedLinks -> ListOutgoingTypedLinks -> Bool
$c/= :: ListOutgoingTypedLinks -> ListOutgoingTypedLinks -> Bool
== :: ListOutgoingTypedLinks -> ListOutgoingTypedLinks -> Bool
$c== :: ListOutgoingTypedLinks -> ListOutgoingTypedLinks -> Bool
Prelude.Eq, ReadPrec [ListOutgoingTypedLinks]
ReadPrec ListOutgoingTypedLinks
Int -> ReadS ListOutgoingTypedLinks
ReadS [ListOutgoingTypedLinks]
(Int -> ReadS ListOutgoingTypedLinks)
-> ReadS [ListOutgoingTypedLinks]
-> ReadPrec ListOutgoingTypedLinks
-> ReadPrec [ListOutgoingTypedLinks]
-> Read ListOutgoingTypedLinks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOutgoingTypedLinks]
$creadListPrec :: ReadPrec [ListOutgoingTypedLinks]
readPrec :: ReadPrec ListOutgoingTypedLinks
$creadPrec :: ReadPrec ListOutgoingTypedLinks
readList :: ReadS [ListOutgoingTypedLinks]
$creadList :: ReadS [ListOutgoingTypedLinks]
readsPrec :: Int -> ReadS ListOutgoingTypedLinks
$creadsPrec :: Int -> ReadS ListOutgoingTypedLinks
Prelude.Read, Int -> ListOutgoingTypedLinks -> ShowS
[ListOutgoingTypedLinks] -> ShowS
ListOutgoingTypedLinks -> String
(Int -> ListOutgoingTypedLinks -> ShowS)
-> (ListOutgoingTypedLinks -> String)
-> ([ListOutgoingTypedLinks] -> ShowS)
-> Show ListOutgoingTypedLinks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOutgoingTypedLinks] -> ShowS
$cshowList :: [ListOutgoingTypedLinks] -> ShowS
show :: ListOutgoingTypedLinks -> String
$cshow :: ListOutgoingTypedLinks -> String
showsPrec :: Int -> ListOutgoingTypedLinks -> ShowS
$cshowsPrec :: Int -> ListOutgoingTypedLinks -> ShowS
Prelude.Show, (forall x. ListOutgoingTypedLinks -> Rep ListOutgoingTypedLinks x)
-> (forall x.
    Rep ListOutgoingTypedLinks x -> ListOutgoingTypedLinks)
-> Generic ListOutgoingTypedLinks
forall x. Rep ListOutgoingTypedLinks x -> ListOutgoingTypedLinks
forall x. ListOutgoingTypedLinks -> Rep ListOutgoingTypedLinks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOutgoingTypedLinks x -> ListOutgoingTypedLinks
$cfrom :: forall x. ListOutgoingTypedLinks -> Rep ListOutgoingTypedLinks x
Prelude.Generic)

-- |
-- Create a value of 'ListOutgoingTypedLinks' 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:
--
-- 'filterAttributeRanges', 'listOutgoingTypedLinks_filterAttributeRanges' - Provides range filters for multiple attributes. When providing ranges to
-- typed link selection, any inexact ranges must be specified at the end.
-- Any attributes that do not have a range specified are presumed to match
-- the entire range.
--
-- 'consistencyLevel', 'listOutgoingTypedLinks_consistencyLevel' - The consistency level to execute the request at.
--
-- 'nextToken', 'listOutgoingTypedLinks_nextToken' - The pagination token.
--
-- 'filterTypedLink', 'listOutgoingTypedLinks_filterTypedLink' - Filters are interpreted in the order of the attributes defined on the
-- typed link facet, not the order they are supplied to any API calls.
--
-- 'maxResults', 'listOutgoingTypedLinks_maxResults' - The maximum number of results to retrieve.
--
-- 'directoryArn', 'listOutgoingTypedLinks_directoryArn' - The Amazon Resource Name (ARN) of the directory where you want to list
-- the typed links.
--
-- 'objectReference', 'listOutgoingTypedLinks_objectReference' - A reference that identifies the object whose attributes will be listed.
newListOutgoingTypedLinks ::
  -- | 'directoryArn'
  Prelude.Text ->
  -- | 'objectReference'
  ObjectReference ->
  ListOutgoingTypedLinks
newListOutgoingTypedLinks :: Text -> ObjectReference -> ListOutgoingTypedLinks
newListOutgoingTypedLinks
  Text
pDirectoryArn_
  ObjectReference
pObjectReference_ =
    ListOutgoingTypedLinks' :: Maybe [TypedLinkAttributeRange]
-> Maybe ConsistencyLevel
-> Maybe Text
-> Maybe TypedLinkSchemaAndFacetName
-> Maybe Natural
-> Text
-> ObjectReference
-> ListOutgoingTypedLinks
ListOutgoingTypedLinks'
      { $sel:filterAttributeRanges:ListOutgoingTypedLinks' :: Maybe [TypedLinkAttributeRange]
filterAttributeRanges =
          Maybe [TypedLinkAttributeRange]
forall a. Maybe a
Prelude.Nothing,
        $sel:consistencyLevel:ListOutgoingTypedLinks' :: Maybe ConsistencyLevel
consistencyLevel = Maybe ConsistencyLevel
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListOutgoingTypedLinks' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:filterTypedLink:ListOutgoingTypedLinks' :: Maybe TypedLinkSchemaAndFacetName
filterTypedLink = Maybe TypedLinkSchemaAndFacetName
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:ListOutgoingTypedLinks' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:directoryArn:ListOutgoingTypedLinks' :: Text
directoryArn = Text
pDirectoryArn_,
        $sel:objectReference:ListOutgoingTypedLinks' :: ObjectReference
objectReference = ObjectReference
pObjectReference_
      }

-- | Provides range filters for multiple attributes. When providing ranges to
-- typed link selection, any inexact ranges must be specified at the end.
-- Any attributes that do not have a range specified are presumed to match
-- the entire range.
listOutgoingTypedLinks_filterAttributeRanges :: Lens.Lens' ListOutgoingTypedLinks (Prelude.Maybe [TypedLinkAttributeRange])
listOutgoingTypedLinks_filterAttributeRanges :: (Maybe [TypedLinkAttributeRange]
 -> f (Maybe [TypedLinkAttributeRange]))
-> ListOutgoingTypedLinks -> f ListOutgoingTypedLinks
listOutgoingTypedLinks_filterAttributeRanges = (ListOutgoingTypedLinks -> Maybe [TypedLinkAttributeRange])
-> (ListOutgoingTypedLinks
    -> Maybe [TypedLinkAttributeRange] -> ListOutgoingTypedLinks)
-> Lens
     ListOutgoingTypedLinks
     ListOutgoingTypedLinks
     (Maybe [TypedLinkAttributeRange])
     (Maybe [TypedLinkAttributeRange])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOutgoingTypedLinks' {Maybe [TypedLinkAttributeRange]
filterAttributeRanges :: Maybe [TypedLinkAttributeRange]
$sel:filterAttributeRanges:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe [TypedLinkAttributeRange]
filterAttributeRanges} -> Maybe [TypedLinkAttributeRange]
filterAttributeRanges) (\s :: ListOutgoingTypedLinks
s@ListOutgoingTypedLinks' {} Maybe [TypedLinkAttributeRange]
a -> ListOutgoingTypedLinks
s {$sel:filterAttributeRanges:ListOutgoingTypedLinks' :: Maybe [TypedLinkAttributeRange]
filterAttributeRanges = Maybe [TypedLinkAttributeRange]
a} :: ListOutgoingTypedLinks) ((Maybe [TypedLinkAttributeRange]
  -> f (Maybe [TypedLinkAttributeRange]))
 -> ListOutgoingTypedLinks -> f ListOutgoingTypedLinks)
-> ((Maybe [TypedLinkAttributeRange]
     -> f (Maybe [TypedLinkAttributeRange]))
    -> Maybe [TypedLinkAttributeRange]
    -> f (Maybe [TypedLinkAttributeRange]))
-> (Maybe [TypedLinkAttributeRange]
    -> f (Maybe [TypedLinkAttributeRange]))
-> ListOutgoingTypedLinks
-> f ListOutgoingTypedLinks
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
-> Iso
     (Maybe [TypedLinkAttributeRange])
     (Maybe [TypedLinkAttributeRange])
     (Maybe [TypedLinkAttributeRange])
     (Maybe [TypedLinkAttributeRange])
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
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The consistency level to execute the request at.
listOutgoingTypedLinks_consistencyLevel :: Lens.Lens' ListOutgoingTypedLinks (Prelude.Maybe ConsistencyLevel)
listOutgoingTypedLinks_consistencyLevel :: (Maybe ConsistencyLevel -> f (Maybe ConsistencyLevel))
-> ListOutgoingTypedLinks -> f ListOutgoingTypedLinks
listOutgoingTypedLinks_consistencyLevel = (ListOutgoingTypedLinks -> Maybe ConsistencyLevel)
-> (ListOutgoingTypedLinks
    -> Maybe ConsistencyLevel -> ListOutgoingTypedLinks)
-> Lens
     ListOutgoingTypedLinks
     ListOutgoingTypedLinks
     (Maybe ConsistencyLevel)
     (Maybe ConsistencyLevel)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOutgoingTypedLinks' {Maybe ConsistencyLevel
consistencyLevel :: Maybe ConsistencyLevel
$sel:consistencyLevel:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe ConsistencyLevel
consistencyLevel} -> Maybe ConsistencyLevel
consistencyLevel) (\s :: ListOutgoingTypedLinks
s@ListOutgoingTypedLinks' {} Maybe ConsistencyLevel
a -> ListOutgoingTypedLinks
s {$sel:consistencyLevel:ListOutgoingTypedLinks' :: Maybe ConsistencyLevel
consistencyLevel = Maybe ConsistencyLevel
a} :: ListOutgoingTypedLinks)

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

-- | Filters are interpreted in the order of the attributes defined on the
-- typed link facet, not the order they are supplied to any API calls.
listOutgoingTypedLinks_filterTypedLink :: Lens.Lens' ListOutgoingTypedLinks (Prelude.Maybe TypedLinkSchemaAndFacetName)
listOutgoingTypedLinks_filterTypedLink :: (Maybe TypedLinkSchemaAndFacetName
 -> f (Maybe TypedLinkSchemaAndFacetName))
-> ListOutgoingTypedLinks -> f ListOutgoingTypedLinks
listOutgoingTypedLinks_filterTypedLink = (ListOutgoingTypedLinks -> Maybe TypedLinkSchemaAndFacetName)
-> (ListOutgoingTypedLinks
    -> Maybe TypedLinkSchemaAndFacetName -> ListOutgoingTypedLinks)
-> Lens
     ListOutgoingTypedLinks
     ListOutgoingTypedLinks
     (Maybe TypedLinkSchemaAndFacetName)
     (Maybe TypedLinkSchemaAndFacetName)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOutgoingTypedLinks' {Maybe TypedLinkSchemaAndFacetName
filterTypedLink :: Maybe TypedLinkSchemaAndFacetName
$sel:filterTypedLink:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe TypedLinkSchemaAndFacetName
filterTypedLink} -> Maybe TypedLinkSchemaAndFacetName
filterTypedLink) (\s :: ListOutgoingTypedLinks
s@ListOutgoingTypedLinks' {} Maybe TypedLinkSchemaAndFacetName
a -> ListOutgoingTypedLinks
s {$sel:filterTypedLink:ListOutgoingTypedLinks' :: Maybe TypedLinkSchemaAndFacetName
filterTypedLink = Maybe TypedLinkSchemaAndFacetName
a} :: ListOutgoingTypedLinks)

-- | The maximum number of results to retrieve.
listOutgoingTypedLinks_maxResults :: Lens.Lens' ListOutgoingTypedLinks (Prelude.Maybe Prelude.Natural)
listOutgoingTypedLinks_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListOutgoingTypedLinks -> f ListOutgoingTypedLinks
listOutgoingTypedLinks_maxResults = (ListOutgoingTypedLinks -> Maybe Natural)
-> (ListOutgoingTypedLinks
    -> Maybe Natural -> ListOutgoingTypedLinks)
-> Lens
     ListOutgoingTypedLinks
     ListOutgoingTypedLinks
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOutgoingTypedLinks' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListOutgoingTypedLinks
s@ListOutgoingTypedLinks' {} Maybe Natural
a -> ListOutgoingTypedLinks
s {$sel:maxResults:ListOutgoingTypedLinks' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListOutgoingTypedLinks)

-- | The Amazon Resource Name (ARN) of the directory where you want to list
-- the typed links.
listOutgoingTypedLinks_directoryArn :: Lens.Lens' ListOutgoingTypedLinks Prelude.Text
listOutgoingTypedLinks_directoryArn :: (Text -> f Text)
-> ListOutgoingTypedLinks -> f ListOutgoingTypedLinks
listOutgoingTypedLinks_directoryArn = (ListOutgoingTypedLinks -> Text)
-> (ListOutgoingTypedLinks -> Text -> ListOutgoingTypedLinks)
-> Lens ListOutgoingTypedLinks ListOutgoingTypedLinks Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOutgoingTypedLinks' {Text
directoryArn :: Text
$sel:directoryArn:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Text
directoryArn} -> Text
directoryArn) (\s :: ListOutgoingTypedLinks
s@ListOutgoingTypedLinks' {} Text
a -> ListOutgoingTypedLinks
s {$sel:directoryArn:ListOutgoingTypedLinks' :: Text
directoryArn = Text
a} :: ListOutgoingTypedLinks)

-- | A reference that identifies the object whose attributes will be listed.
listOutgoingTypedLinks_objectReference :: Lens.Lens' ListOutgoingTypedLinks ObjectReference
listOutgoingTypedLinks_objectReference :: (ObjectReference -> f ObjectReference)
-> ListOutgoingTypedLinks -> f ListOutgoingTypedLinks
listOutgoingTypedLinks_objectReference = (ListOutgoingTypedLinks -> ObjectReference)
-> (ListOutgoingTypedLinks
    -> ObjectReference -> ListOutgoingTypedLinks)
-> Lens
     ListOutgoingTypedLinks
     ListOutgoingTypedLinks
     ObjectReference
     ObjectReference
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOutgoingTypedLinks' {ObjectReference
objectReference :: ObjectReference
$sel:objectReference:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> ObjectReference
objectReference} -> ObjectReference
objectReference) (\s :: ListOutgoingTypedLinks
s@ListOutgoingTypedLinks' {} ObjectReference
a -> ListOutgoingTypedLinks
s {$sel:objectReference:ListOutgoingTypedLinks' :: ObjectReference
objectReference = ObjectReference
a} :: ListOutgoingTypedLinks)

instance Core.AWSPager ListOutgoingTypedLinks where
  page :: ListOutgoingTypedLinks
-> AWSResponse ListOutgoingTypedLinks
-> Maybe ListOutgoingTypedLinks
page ListOutgoingTypedLinks
rq AWSResponse ListOutgoingTypedLinks
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListOutgoingTypedLinks
ListOutgoingTypedLinksResponse
rs
            ListOutgoingTypedLinksResponse
-> Getting (First Text) ListOutgoingTypedLinksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListOutgoingTypedLinksResponse
-> Const (First Text) ListOutgoingTypedLinksResponse
Lens' ListOutgoingTypedLinksResponse (Maybe Text)
listOutgoingTypedLinksResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListOutgoingTypedLinksResponse
 -> Const (First Text) ListOutgoingTypedLinksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListOutgoingTypedLinksResponse 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 ListOutgoingTypedLinks
forall a. Maybe a
Prelude.Nothing
    | Maybe [TypedLinkSpecifier] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListOutgoingTypedLinks
ListOutgoingTypedLinksResponse
rs
            ListOutgoingTypedLinksResponse
-> Getting
     (First [TypedLinkSpecifier])
     ListOutgoingTypedLinksResponse
     [TypedLinkSpecifier]
-> Maybe [TypedLinkSpecifier]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [TypedLinkSpecifier]
 -> Const (First [TypedLinkSpecifier]) (Maybe [TypedLinkSpecifier]))
-> ListOutgoingTypedLinksResponse
-> Const
     (First [TypedLinkSpecifier]) ListOutgoingTypedLinksResponse
Lens' ListOutgoingTypedLinksResponse (Maybe [TypedLinkSpecifier])
listOutgoingTypedLinksResponse_typedLinkSpecifiers
              ((Maybe [TypedLinkSpecifier]
  -> Const (First [TypedLinkSpecifier]) (Maybe [TypedLinkSpecifier]))
 -> ListOutgoingTypedLinksResponse
 -> Const
      (First [TypedLinkSpecifier]) ListOutgoingTypedLinksResponse)
-> (([TypedLinkSpecifier]
     -> Const (First [TypedLinkSpecifier]) [TypedLinkSpecifier])
    -> Maybe [TypedLinkSpecifier]
    -> Const (First [TypedLinkSpecifier]) (Maybe [TypedLinkSpecifier]))
-> Getting
     (First [TypedLinkSpecifier])
     ListOutgoingTypedLinksResponse
     [TypedLinkSpecifier]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TypedLinkSpecifier]
 -> Const (First [TypedLinkSpecifier]) [TypedLinkSpecifier])
-> Maybe [TypedLinkSpecifier]
-> Const (First [TypedLinkSpecifier]) (Maybe [TypedLinkSpecifier])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListOutgoingTypedLinks
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListOutgoingTypedLinks -> Maybe ListOutgoingTypedLinks
forall a. a -> Maybe a
Prelude.Just (ListOutgoingTypedLinks -> Maybe ListOutgoingTypedLinks)
-> ListOutgoingTypedLinks -> Maybe ListOutgoingTypedLinks
forall a b. (a -> b) -> a -> b
Prelude.$
        ListOutgoingTypedLinks
rq
          ListOutgoingTypedLinks
-> (ListOutgoingTypedLinks -> ListOutgoingTypedLinks)
-> ListOutgoingTypedLinks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListOutgoingTypedLinks -> Identity ListOutgoingTypedLinks
Lens
  ListOutgoingTypedLinks
  ListOutgoingTypedLinks
  (Maybe Text)
  (Maybe Text)
listOutgoingTypedLinks_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListOutgoingTypedLinks -> Identity ListOutgoingTypedLinks)
-> Maybe Text -> ListOutgoingTypedLinks -> ListOutgoingTypedLinks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListOutgoingTypedLinks
ListOutgoingTypedLinksResponse
rs
          ListOutgoingTypedLinksResponse
-> Getting (First Text) ListOutgoingTypedLinksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListOutgoingTypedLinksResponse
-> Const (First Text) ListOutgoingTypedLinksResponse
Lens' ListOutgoingTypedLinksResponse (Maybe Text)
listOutgoingTypedLinksResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListOutgoingTypedLinksResponse
 -> Const (First Text) ListOutgoingTypedLinksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListOutgoingTypedLinksResponse 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 ListOutgoingTypedLinks where
  type
    AWSResponse ListOutgoingTypedLinks =
      ListOutgoingTypedLinksResponse
  request :: ListOutgoingTypedLinks -> Request ListOutgoingTypedLinks
request = Service -> ListOutgoingTypedLinks -> Request ListOutgoingTypedLinks
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListOutgoingTypedLinks
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListOutgoingTypedLinks)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListOutgoingTypedLinks))
-> Logger
-> Service
-> Proxy ListOutgoingTypedLinks
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListOutgoingTypedLinks)))
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 ->
          Maybe [TypedLinkSpecifier]
-> Maybe Text -> Int -> ListOutgoingTypedLinksResponse
ListOutgoingTypedLinksResponse'
            (Maybe [TypedLinkSpecifier]
 -> Maybe Text -> Int -> ListOutgoingTypedLinksResponse)
-> Either String (Maybe [TypedLinkSpecifier])
-> Either
     String (Maybe Text -> Int -> ListOutgoingTypedLinksResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [TypedLinkSpecifier]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TypedLinkSpecifiers"
                            Either String (Maybe (Maybe [TypedLinkSpecifier]))
-> Maybe [TypedLinkSpecifier]
-> Either String (Maybe [TypedLinkSpecifier])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TypedLinkSpecifier]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListOutgoingTypedLinksResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListOutgoingTypedLinksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
            Either String (Int -> ListOutgoingTypedLinksResponse)
-> Either String Int
-> Either String ListOutgoingTypedLinksResponse
forall (f :: * -> *) a b. Applicative f => 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))
      )

instance Prelude.Hashable ListOutgoingTypedLinks

instance Prelude.NFData ListOutgoingTypedLinks

instance Core.ToHeaders ListOutgoingTypedLinks where
  toHeaders :: ListOutgoingTypedLinks -> ResponseHeaders
toHeaders ListOutgoingTypedLinks' {Maybe Natural
Maybe [TypedLinkAttributeRange]
Maybe Text
Maybe ConsistencyLevel
Maybe TypedLinkSchemaAndFacetName
Text
ObjectReference
objectReference :: ObjectReference
directoryArn :: Text
maxResults :: Maybe Natural
filterTypedLink :: Maybe TypedLinkSchemaAndFacetName
nextToken :: Maybe Text
consistencyLevel :: Maybe ConsistencyLevel
filterAttributeRanges :: Maybe [TypedLinkAttributeRange]
$sel:objectReference:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> ObjectReference
$sel:directoryArn:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Text
$sel:maxResults:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe Natural
$sel:filterTypedLink:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe TypedLinkSchemaAndFacetName
$sel:nextToken:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe Text
$sel:consistencyLevel:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe ConsistencyLevel
$sel:filterAttributeRanges:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe [TypedLinkAttributeRange]
..} =
    [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [HeaderName
"x-amz-data-partition" HeaderName -> Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Text
directoryArn]

instance Core.ToJSON ListOutgoingTypedLinks where
  toJSON :: ListOutgoingTypedLinks -> Value
toJSON ListOutgoingTypedLinks' {Maybe Natural
Maybe [TypedLinkAttributeRange]
Maybe Text
Maybe ConsistencyLevel
Maybe TypedLinkSchemaAndFacetName
Text
ObjectReference
objectReference :: ObjectReference
directoryArn :: Text
maxResults :: Maybe Natural
filterTypedLink :: Maybe TypedLinkSchemaAndFacetName
nextToken :: Maybe Text
consistencyLevel :: Maybe ConsistencyLevel
filterAttributeRanges :: Maybe [TypedLinkAttributeRange]
$sel:objectReference:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> ObjectReference
$sel:directoryArn:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Text
$sel:maxResults:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe Natural
$sel:filterTypedLink:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe TypedLinkSchemaAndFacetName
$sel:nextToken:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe Text
$sel:consistencyLevel:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe ConsistencyLevel
$sel:filterAttributeRanges:ListOutgoingTypedLinks' :: ListOutgoingTypedLinks -> Maybe [TypedLinkAttributeRange]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"FilterAttributeRanges" Text -> [TypedLinkAttributeRange] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([TypedLinkAttributeRange] -> Pair)
-> Maybe [TypedLinkAttributeRange] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TypedLinkAttributeRange]
filterAttributeRanges,
            (Text
"ConsistencyLevel" Text -> ConsistencyLevel -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ConsistencyLevel -> Pair) -> Maybe ConsistencyLevel -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConsistencyLevel
consistencyLevel,
            (Text
"NextToken" 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
nextToken,
            (Text
"FilterTypedLink" Text -> TypedLinkSchemaAndFacetName -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (TypedLinkSchemaAndFacetName -> Pair)
-> Maybe TypedLinkSchemaAndFacetName -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TypedLinkSchemaAndFacetName
filterTypedLink,
            (Text
"MaxResults" 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
maxResults,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ObjectReference" Text -> ObjectReference -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ObjectReference
objectReference)
          ]
      )

instance Core.ToPath ListOutgoingTypedLinks where
  toPath :: ListOutgoingTypedLinks -> ByteString
toPath =
    ByteString -> ListOutgoingTypedLinks -> ByteString
forall a b. a -> b -> a
Prelude.const
      ByteString
"/amazonclouddirectory/2017-01-11/typedlink/outgoing"

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

-- | /See:/ 'newListOutgoingTypedLinksResponse' smart constructor.
data ListOutgoingTypedLinksResponse = ListOutgoingTypedLinksResponse'
  { -- | Returns a typed link specifier as output.
    ListOutgoingTypedLinksResponse -> Maybe [TypedLinkSpecifier]
typedLinkSpecifiers :: Prelude.Maybe [TypedLinkSpecifier],
    -- | The pagination token.
    ListOutgoingTypedLinksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListOutgoingTypedLinksResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListOutgoingTypedLinksResponse
-> ListOutgoingTypedLinksResponse -> Bool
(ListOutgoingTypedLinksResponse
 -> ListOutgoingTypedLinksResponse -> Bool)
-> (ListOutgoingTypedLinksResponse
    -> ListOutgoingTypedLinksResponse -> Bool)
-> Eq ListOutgoingTypedLinksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOutgoingTypedLinksResponse
-> ListOutgoingTypedLinksResponse -> Bool
$c/= :: ListOutgoingTypedLinksResponse
-> ListOutgoingTypedLinksResponse -> Bool
== :: ListOutgoingTypedLinksResponse
-> ListOutgoingTypedLinksResponse -> Bool
$c== :: ListOutgoingTypedLinksResponse
-> ListOutgoingTypedLinksResponse -> Bool
Prelude.Eq, ReadPrec [ListOutgoingTypedLinksResponse]
ReadPrec ListOutgoingTypedLinksResponse
Int -> ReadS ListOutgoingTypedLinksResponse
ReadS [ListOutgoingTypedLinksResponse]
(Int -> ReadS ListOutgoingTypedLinksResponse)
-> ReadS [ListOutgoingTypedLinksResponse]
-> ReadPrec ListOutgoingTypedLinksResponse
-> ReadPrec [ListOutgoingTypedLinksResponse]
-> Read ListOutgoingTypedLinksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOutgoingTypedLinksResponse]
$creadListPrec :: ReadPrec [ListOutgoingTypedLinksResponse]
readPrec :: ReadPrec ListOutgoingTypedLinksResponse
$creadPrec :: ReadPrec ListOutgoingTypedLinksResponse
readList :: ReadS [ListOutgoingTypedLinksResponse]
$creadList :: ReadS [ListOutgoingTypedLinksResponse]
readsPrec :: Int -> ReadS ListOutgoingTypedLinksResponse
$creadsPrec :: Int -> ReadS ListOutgoingTypedLinksResponse
Prelude.Read, Int -> ListOutgoingTypedLinksResponse -> ShowS
[ListOutgoingTypedLinksResponse] -> ShowS
ListOutgoingTypedLinksResponse -> String
(Int -> ListOutgoingTypedLinksResponse -> ShowS)
-> (ListOutgoingTypedLinksResponse -> String)
-> ([ListOutgoingTypedLinksResponse] -> ShowS)
-> Show ListOutgoingTypedLinksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOutgoingTypedLinksResponse] -> ShowS
$cshowList :: [ListOutgoingTypedLinksResponse] -> ShowS
show :: ListOutgoingTypedLinksResponse -> String
$cshow :: ListOutgoingTypedLinksResponse -> String
showsPrec :: Int -> ListOutgoingTypedLinksResponse -> ShowS
$cshowsPrec :: Int -> ListOutgoingTypedLinksResponse -> ShowS
Prelude.Show, (forall x.
 ListOutgoingTypedLinksResponse
 -> Rep ListOutgoingTypedLinksResponse x)
-> (forall x.
    Rep ListOutgoingTypedLinksResponse x
    -> ListOutgoingTypedLinksResponse)
-> Generic ListOutgoingTypedLinksResponse
forall x.
Rep ListOutgoingTypedLinksResponse x
-> ListOutgoingTypedLinksResponse
forall x.
ListOutgoingTypedLinksResponse
-> Rep ListOutgoingTypedLinksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListOutgoingTypedLinksResponse x
-> ListOutgoingTypedLinksResponse
$cfrom :: forall x.
ListOutgoingTypedLinksResponse
-> Rep ListOutgoingTypedLinksResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListOutgoingTypedLinksResponse' 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:
--
-- 'typedLinkSpecifiers', 'listOutgoingTypedLinksResponse_typedLinkSpecifiers' - Returns a typed link specifier as output.
--
-- 'nextToken', 'listOutgoingTypedLinksResponse_nextToken' - The pagination token.
--
-- 'httpStatus', 'listOutgoingTypedLinksResponse_httpStatus' - The response's http status code.
newListOutgoingTypedLinksResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListOutgoingTypedLinksResponse
newListOutgoingTypedLinksResponse :: Int -> ListOutgoingTypedLinksResponse
newListOutgoingTypedLinksResponse Int
pHttpStatus_ =
  ListOutgoingTypedLinksResponse' :: Maybe [TypedLinkSpecifier]
-> Maybe Text -> Int -> ListOutgoingTypedLinksResponse
ListOutgoingTypedLinksResponse'
    { $sel:typedLinkSpecifiers:ListOutgoingTypedLinksResponse' :: Maybe [TypedLinkSpecifier]
typedLinkSpecifiers =
        Maybe [TypedLinkSpecifier]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListOutgoingTypedLinksResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListOutgoingTypedLinksResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Returns a typed link specifier as output.
listOutgoingTypedLinksResponse_typedLinkSpecifiers :: Lens.Lens' ListOutgoingTypedLinksResponse (Prelude.Maybe [TypedLinkSpecifier])
listOutgoingTypedLinksResponse_typedLinkSpecifiers :: (Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
-> ListOutgoingTypedLinksResponse
-> f ListOutgoingTypedLinksResponse
listOutgoingTypedLinksResponse_typedLinkSpecifiers = (ListOutgoingTypedLinksResponse -> Maybe [TypedLinkSpecifier])
-> (ListOutgoingTypedLinksResponse
    -> Maybe [TypedLinkSpecifier] -> ListOutgoingTypedLinksResponse)
-> Lens'
     ListOutgoingTypedLinksResponse (Maybe [TypedLinkSpecifier])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOutgoingTypedLinksResponse' {Maybe [TypedLinkSpecifier]
typedLinkSpecifiers :: Maybe [TypedLinkSpecifier]
$sel:typedLinkSpecifiers:ListOutgoingTypedLinksResponse' :: ListOutgoingTypedLinksResponse -> Maybe [TypedLinkSpecifier]
typedLinkSpecifiers} -> Maybe [TypedLinkSpecifier]
typedLinkSpecifiers) (\s :: ListOutgoingTypedLinksResponse
s@ListOutgoingTypedLinksResponse' {} Maybe [TypedLinkSpecifier]
a -> ListOutgoingTypedLinksResponse
s {$sel:typedLinkSpecifiers:ListOutgoingTypedLinksResponse' :: Maybe [TypedLinkSpecifier]
typedLinkSpecifiers = Maybe [TypedLinkSpecifier]
a} :: ListOutgoingTypedLinksResponse) ((Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
 -> ListOutgoingTypedLinksResponse
 -> f ListOutgoingTypedLinksResponse)
-> ((Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
    -> Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
-> (Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
-> ListOutgoingTypedLinksResponse
-> f ListOutgoingTypedLinksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
-> Iso
     (Maybe [TypedLinkSpecifier])
     (Maybe [TypedLinkSpecifier])
     (Maybe [TypedLinkSpecifier])
     (Maybe [TypedLinkSpecifier])
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
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

instance
  Prelude.NFData
    ListOutgoingTypedLinksResponse