{-# 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.StorageGateway.ListAutomaticTapeCreationPolicies
-- 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)
--
-- Lists the automatic tape creation policies for a gateway. If there are
-- no automatic tape creation policies for the gateway, it returns an empty
-- list.
--
-- This operation is only supported for tape gateways.
module Amazonka.StorageGateway.ListAutomaticTapeCreationPolicies
  ( -- * Creating a Request
    ListAutomaticTapeCreationPolicies (..),
    newListAutomaticTapeCreationPolicies,

    -- * Request Lenses
    listAutomaticTapeCreationPolicies_gatewayARN,

    -- * Destructuring the Response
    ListAutomaticTapeCreationPoliciesResponse (..),
    newListAutomaticTapeCreationPoliciesResponse,

    -- * Response Lenses
    listAutomaticTapeCreationPoliciesResponse_automaticTapeCreationPolicyInfos,
    listAutomaticTapeCreationPoliciesResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListAutomaticTapeCreationPolicies' smart constructor.
data ListAutomaticTapeCreationPolicies = ListAutomaticTapeCreationPolicies'
  { ListAutomaticTapeCreationPolicies -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text
  }
  deriving (ListAutomaticTapeCreationPolicies
-> ListAutomaticTapeCreationPolicies -> Bool
(ListAutomaticTapeCreationPolicies
 -> ListAutomaticTapeCreationPolicies -> Bool)
-> (ListAutomaticTapeCreationPolicies
    -> ListAutomaticTapeCreationPolicies -> Bool)
-> Eq ListAutomaticTapeCreationPolicies
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAutomaticTapeCreationPolicies
-> ListAutomaticTapeCreationPolicies -> Bool
$c/= :: ListAutomaticTapeCreationPolicies
-> ListAutomaticTapeCreationPolicies -> Bool
== :: ListAutomaticTapeCreationPolicies
-> ListAutomaticTapeCreationPolicies -> Bool
$c== :: ListAutomaticTapeCreationPolicies
-> ListAutomaticTapeCreationPolicies -> Bool
Prelude.Eq, ReadPrec [ListAutomaticTapeCreationPolicies]
ReadPrec ListAutomaticTapeCreationPolicies
Int -> ReadS ListAutomaticTapeCreationPolicies
ReadS [ListAutomaticTapeCreationPolicies]
(Int -> ReadS ListAutomaticTapeCreationPolicies)
-> ReadS [ListAutomaticTapeCreationPolicies]
-> ReadPrec ListAutomaticTapeCreationPolicies
-> ReadPrec [ListAutomaticTapeCreationPolicies]
-> Read ListAutomaticTapeCreationPolicies
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAutomaticTapeCreationPolicies]
$creadListPrec :: ReadPrec [ListAutomaticTapeCreationPolicies]
readPrec :: ReadPrec ListAutomaticTapeCreationPolicies
$creadPrec :: ReadPrec ListAutomaticTapeCreationPolicies
readList :: ReadS [ListAutomaticTapeCreationPolicies]
$creadList :: ReadS [ListAutomaticTapeCreationPolicies]
readsPrec :: Int -> ReadS ListAutomaticTapeCreationPolicies
$creadsPrec :: Int -> ReadS ListAutomaticTapeCreationPolicies
Prelude.Read, Int -> ListAutomaticTapeCreationPolicies -> ShowS
[ListAutomaticTapeCreationPolicies] -> ShowS
ListAutomaticTapeCreationPolicies -> String
(Int -> ListAutomaticTapeCreationPolicies -> ShowS)
-> (ListAutomaticTapeCreationPolicies -> String)
-> ([ListAutomaticTapeCreationPolicies] -> ShowS)
-> Show ListAutomaticTapeCreationPolicies
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAutomaticTapeCreationPolicies] -> ShowS
$cshowList :: [ListAutomaticTapeCreationPolicies] -> ShowS
show :: ListAutomaticTapeCreationPolicies -> String
$cshow :: ListAutomaticTapeCreationPolicies -> String
showsPrec :: Int -> ListAutomaticTapeCreationPolicies -> ShowS
$cshowsPrec :: Int -> ListAutomaticTapeCreationPolicies -> ShowS
Prelude.Show, (forall x.
 ListAutomaticTapeCreationPolicies
 -> Rep ListAutomaticTapeCreationPolicies x)
-> (forall x.
    Rep ListAutomaticTapeCreationPolicies x
    -> ListAutomaticTapeCreationPolicies)
-> Generic ListAutomaticTapeCreationPolicies
forall x.
Rep ListAutomaticTapeCreationPolicies x
-> ListAutomaticTapeCreationPolicies
forall x.
ListAutomaticTapeCreationPolicies
-> Rep ListAutomaticTapeCreationPolicies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAutomaticTapeCreationPolicies x
-> ListAutomaticTapeCreationPolicies
$cfrom :: forall x.
ListAutomaticTapeCreationPolicies
-> Rep ListAutomaticTapeCreationPolicies x
Prelude.Generic)

-- |
-- Create a value of 'ListAutomaticTapeCreationPolicies' 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:
--
-- 'gatewayARN', 'listAutomaticTapeCreationPolicies_gatewayARN' - Undocumented member.
newListAutomaticTapeCreationPolicies ::
  ListAutomaticTapeCreationPolicies
newListAutomaticTapeCreationPolicies :: ListAutomaticTapeCreationPolicies
newListAutomaticTapeCreationPolicies =
  ListAutomaticTapeCreationPolicies' :: Maybe Text -> ListAutomaticTapeCreationPolicies
ListAutomaticTapeCreationPolicies'
    { $sel:gatewayARN:ListAutomaticTapeCreationPolicies' :: Maybe Text
gatewayARN =
        Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
listAutomaticTapeCreationPolicies_gatewayARN :: Lens.Lens' ListAutomaticTapeCreationPolicies (Prelude.Maybe Prelude.Text)
listAutomaticTapeCreationPolicies_gatewayARN :: (Maybe Text -> f (Maybe Text))
-> ListAutomaticTapeCreationPolicies
-> f ListAutomaticTapeCreationPolicies
listAutomaticTapeCreationPolicies_gatewayARN = (ListAutomaticTapeCreationPolicies -> Maybe Text)
-> (ListAutomaticTapeCreationPolicies
    -> Maybe Text -> ListAutomaticTapeCreationPolicies)
-> Lens
     ListAutomaticTapeCreationPolicies
     ListAutomaticTapeCreationPolicies
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutomaticTapeCreationPolicies' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:ListAutomaticTapeCreationPolicies' :: ListAutomaticTapeCreationPolicies -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: ListAutomaticTapeCreationPolicies
s@ListAutomaticTapeCreationPolicies' {} Maybe Text
a -> ListAutomaticTapeCreationPolicies
s {$sel:gatewayARN:ListAutomaticTapeCreationPolicies' :: Maybe Text
gatewayARN = Maybe Text
a} :: ListAutomaticTapeCreationPolicies)

instance
  Core.AWSRequest
    ListAutomaticTapeCreationPolicies
  where
  type
    AWSResponse ListAutomaticTapeCreationPolicies =
      ListAutomaticTapeCreationPoliciesResponse
  request :: ListAutomaticTapeCreationPolicies
-> Request ListAutomaticTapeCreationPolicies
request = Service
-> ListAutomaticTapeCreationPolicies
-> Request ListAutomaticTapeCreationPolicies
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListAutomaticTapeCreationPolicies
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListAutomaticTapeCreationPolicies)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListAutomaticTapeCreationPolicies))
-> Logger
-> Service
-> Proxy ListAutomaticTapeCreationPolicies
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListAutomaticTapeCreationPolicies)))
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 [AutomaticTapeCreationPolicyInfo]
-> Int -> ListAutomaticTapeCreationPoliciesResponse
ListAutomaticTapeCreationPoliciesResponse'
            (Maybe [AutomaticTapeCreationPolicyInfo]
 -> Int -> ListAutomaticTapeCreationPoliciesResponse)
-> Either String (Maybe [AutomaticTapeCreationPolicyInfo])
-> Either String (Int -> ListAutomaticTapeCreationPoliciesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [AutomaticTapeCreationPolicyInfo]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AutomaticTapeCreationPolicyInfos"
                            Either String (Maybe (Maybe [AutomaticTapeCreationPolicyInfo]))
-> Maybe [AutomaticTapeCreationPolicyInfo]
-> Either String (Maybe [AutomaticTapeCreationPolicyInfo])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AutomaticTapeCreationPolicyInfo]
forall a. Monoid a => a
Prelude.mempty
                        )
              Either String (Int -> ListAutomaticTapeCreationPoliciesResponse)
-> Either String Int
-> Either String ListAutomaticTapeCreationPoliciesResponse
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
    ListAutomaticTapeCreationPolicies

instance
  Prelude.NFData
    ListAutomaticTapeCreationPolicies

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

instance
  Core.ToJSON
    ListAutomaticTapeCreationPolicies
  where
  toJSON :: ListAutomaticTapeCreationPolicies -> Value
toJSON ListAutomaticTapeCreationPolicies' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:ListAutomaticTapeCreationPolicies' :: ListAutomaticTapeCreationPolicies -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [(Text
"GatewayARN" 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
gatewayARN]
      )

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

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

-- | /See:/ 'newListAutomaticTapeCreationPoliciesResponse' smart constructor.
data ListAutomaticTapeCreationPoliciesResponse = ListAutomaticTapeCreationPoliciesResponse'
  { -- | Gets a listing of information about the gateway\'s automatic tape
    -- creation policies, including the automatic tape creation rules and the
    -- gateway that is using the policies.
    ListAutomaticTapeCreationPoliciesResponse
-> Maybe [AutomaticTapeCreationPolicyInfo]
automaticTapeCreationPolicyInfos :: Prelude.Maybe [AutomaticTapeCreationPolicyInfo],
    -- | The response's http status code.
    ListAutomaticTapeCreationPoliciesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListAutomaticTapeCreationPoliciesResponse
-> ListAutomaticTapeCreationPoliciesResponse -> Bool
(ListAutomaticTapeCreationPoliciesResponse
 -> ListAutomaticTapeCreationPoliciesResponse -> Bool)
-> (ListAutomaticTapeCreationPoliciesResponse
    -> ListAutomaticTapeCreationPoliciesResponse -> Bool)
-> Eq ListAutomaticTapeCreationPoliciesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAutomaticTapeCreationPoliciesResponse
-> ListAutomaticTapeCreationPoliciesResponse -> Bool
$c/= :: ListAutomaticTapeCreationPoliciesResponse
-> ListAutomaticTapeCreationPoliciesResponse -> Bool
== :: ListAutomaticTapeCreationPoliciesResponse
-> ListAutomaticTapeCreationPoliciesResponse -> Bool
$c== :: ListAutomaticTapeCreationPoliciesResponse
-> ListAutomaticTapeCreationPoliciesResponse -> Bool
Prelude.Eq, ReadPrec [ListAutomaticTapeCreationPoliciesResponse]
ReadPrec ListAutomaticTapeCreationPoliciesResponse
Int -> ReadS ListAutomaticTapeCreationPoliciesResponse
ReadS [ListAutomaticTapeCreationPoliciesResponse]
(Int -> ReadS ListAutomaticTapeCreationPoliciesResponse)
-> ReadS [ListAutomaticTapeCreationPoliciesResponse]
-> ReadPrec ListAutomaticTapeCreationPoliciesResponse
-> ReadPrec [ListAutomaticTapeCreationPoliciesResponse]
-> Read ListAutomaticTapeCreationPoliciesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAutomaticTapeCreationPoliciesResponse]
$creadListPrec :: ReadPrec [ListAutomaticTapeCreationPoliciesResponse]
readPrec :: ReadPrec ListAutomaticTapeCreationPoliciesResponse
$creadPrec :: ReadPrec ListAutomaticTapeCreationPoliciesResponse
readList :: ReadS [ListAutomaticTapeCreationPoliciesResponse]
$creadList :: ReadS [ListAutomaticTapeCreationPoliciesResponse]
readsPrec :: Int -> ReadS ListAutomaticTapeCreationPoliciesResponse
$creadsPrec :: Int -> ReadS ListAutomaticTapeCreationPoliciesResponse
Prelude.Read, Int -> ListAutomaticTapeCreationPoliciesResponse -> ShowS
[ListAutomaticTapeCreationPoliciesResponse] -> ShowS
ListAutomaticTapeCreationPoliciesResponse -> String
(Int -> ListAutomaticTapeCreationPoliciesResponse -> ShowS)
-> (ListAutomaticTapeCreationPoliciesResponse -> String)
-> ([ListAutomaticTapeCreationPoliciesResponse] -> ShowS)
-> Show ListAutomaticTapeCreationPoliciesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAutomaticTapeCreationPoliciesResponse] -> ShowS
$cshowList :: [ListAutomaticTapeCreationPoliciesResponse] -> ShowS
show :: ListAutomaticTapeCreationPoliciesResponse -> String
$cshow :: ListAutomaticTapeCreationPoliciesResponse -> String
showsPrec :: Int -> ListAutomaticTapeCreationPoliciesResponse -> ShowS
$cshowsPrec :: Int -> ListAutomaticTapeCreationPoliciesResponse -> ShowS
Prelude.Show, (forall x.
 ListAutomaticTapeCreationPoliciesResponse
 -> Rep ListAutomaticTapeCreationPoliciesResponse x)
-> (forall x.
    Rep ListAutomaticTapeCreationPoliciesResponse x
    -> ListAutomaticTapeCreationPoliciesResponse)
-> Generic ListAutomaticTapeCreationPoliciesResponse
forall x.
Rep ListAutomaticTapeCreationPoliciesResponse x
-> ListAutomaticTapeCreationPoliciesResponse
forall x.
ListAutomaticTapeCreationPoliciesResponse
-> Rep ListAutomaticTapeCreationPoliciesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAutomaticTapeCreationPoliciesResponse x
-> ListAutomaticTapeCreationPoliciesResponse
$cfrom :: forall x.
ListAutomaticTapeCreationPoliciesResponse
-> Rep ListAutomaticTapeCreationPoliciesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListAutomaticTapeCreationPoliciesResponse' 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:
--
-- 'automaticTapeCreationPolicyInfos', 'listAutomaticTapeCreationPoliciesResponse_automaticTapeCreationPolicyInfos' - Gets a listing of information about the gateway\'s automatic tape
-- creation policies, including the automatic tape creation rules and the
-- gateway that is using the policies.
--
-- 'httpStatus', 'listAutomaticTapeCreationPoliciesResponse_httpStatus' - The response's http status code.
newListAutomaticTapeCreationPoliciesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListAutomaticTapeCreationPoliciesResponse
newListAutomaticTapeCreationPoliciesResponse :: Int -> ListAutomaticTapeCreationPoliciesResponse
newListAutomaticTapeCreationPoliciesResponse
  Int
pHttpStatus_ =
    ListAutomaticTapeCreationPoliciesResponse' :: Maybe [AutomaticTapeCreationPolicyInfo]
-> Int -> ListAutomaticTapeCreationPoliciesResponse
ListAutomaticTapeCreationPoliciesResponse'
      { $sel:automaticTapeCreationPolicyInfos:ListAutomaticTapeCreationPoliciesResponse' :: Maybe [AutomaticTapeCreationPolicyInfo]
automaticTapeCreationPolicyInfos =
          Maybe [AutomaticTapeCreationPolicyInfo]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListAutomaticTapeCreationPoliciesResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Gets a listing of information about the gateway\'s automatic tape
-- creation policies, including the automatic tape creation rules and the
-- gateway that is using the policies.
listAutomaticTapeCreationPoliciesResponse_automaticTapeCreationPolicyInfos :: Lens.Lens' ListAutomaticTapeCreationPoliciesResponse (Prelude.Maybe [AutomaticTapeCreationPolicyInfo])
listAutomaticTapeCreationPoliciesResponse_automaticTapeCreationPolicyInfos :: (Maybe [AutomaticTapeCreationPolicyInfo]
 -> f (Maybe [AutomaticTapeCreationPolicyInfo]))
-> ListAutomaticTapeCreationPoliciesResponse
-> f ListAutomaticTapeCreationPoliciesResponse
listAutomaticTapeCreationPoliciesResponse_automaticTapeCreationPolicyInfos = (ListAutomaticTapeCreationPoliciesResponse
 -> Maybe [AutomaticTapeCreationPolicyInfo])
-> (ListAutomaticTapeCreationPoliciesResponse
    -> Maybe [AutomaticTapeCreationPolicyInfo]
    -> ListAutomaticTapeCreationPoliciesResponse)
-> Lens
     ListAutomaticTapeCreationPoliciesResponse
     ListAutomaticTapeCreationPoliciesResponse
     (Maybe [AutomaticTapeCreationPolicyInfo])
     (Maybe [AutomaticTapeCreationPolicyInfo])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAutomaticTapeCreationPoliciesResponse' {Maybe [AutomaticTapeCreationPolicyInfo]
automaticTapeCreationPolicyInfos :: Maybe [AutomaticTapeCreationPolicyInfo]
$sel:automaticTapeCreationPolicyInfos:ListAutomaticTapeCreationPoliciesResponse' :: ListAutomaticTapeCreationPoliciesResponse
-> Maybe [AutomaticTapeCreationPolicyInfo]
automaticTapeCreationPolicyInfos} -> Maybe [AutomaticTapeCreationPolicyInfo]
automaticTapeCreationPolicyInfos) (\s :: ListAutomaticTapeCreationPoliciesResponse
s@ListAutomaticTapeCreationPoliciesResponse' {} Maybe [AutomaticTapeCreationPolicyInfo]
a -> ListAutomaticTapeCreationPoliciesResponse
s {$sel:automaticTapeCreationPolicyInfos:ListAutomaticTapeCreationPoliciesResponse' :: Maybe [AutomaticTapeCreationPolicyInfo]
automaticTapeCreationPolicyInfos = Maybe [AutomaticTapeCreationPolicyInfo]
a} :: ListAutomaticTapeCreationPoliciesResponse) ((Maybe [AutomaticTapeCreationPolicyInfo]
  -> f (Maybe [AutomaticTapeCreationPolicyInfo]))
 -> ListAutomaticTapeCreationPoliciesResponse
 -> f ListAutomaticTapeCreationPoliciesResponse)
-> ((Maybe [AutomaticTapeCreationPolicyInfo]
     -> f (Maybe [AutomaticTapeCreationPolicyInfo]))
    -> Maybe [AutomaticTapeCreationPolicyInfo]
    -> f (Maybe [AutomaticTapeCreationPolicyInfo]))
-> (Maybe [AutomaticTapeCreationPolicyInfo]
    -> f (Maybe [AutomaticTapeCreationPolicyInfo]))
-> ListAutomaticTapeCreationPoliciesResponse
-> f ListAutomaticTapeCreationPoliciesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AutomaticTapeCreationPolicyInfo]
  [AutomaticTapeCreationPolicyInfo]
  [AutomaticTapeCreationPolicyInfo]
  [AutomaticTapeCreationPolicyInfo]
-> Iso
     (Maybe [AutomaticTapeCreationPolicyInfo])
     (Maybe [AutomaticTapeCreationPolicyInfo])
     (Maybe [AutomaticTapeCreationPolicyInfo])
     (Maybe [AutomaticTapeCreationPolicyInfo])
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
  [AutomaticTapeCreationPolicyInfo]
  [AutomaticTapeCreationPolicyInfo]
  [AutomaticTapeCreationPolicyInfo]
  [AutomaticTapeCreationPolicyInfo]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    ListAutomaticTapeCreationPoliciesResponse