{-# 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 #-}
module Amazonka.StorageGateway.UpdateAutomaticTapeCreationPolicy
(
UpdateAutomaticTapeCreationPolicy (..),
newUpdateAutomaticTapeCreationPolicy,
updateAutomaticTapeCreationPolicy_automaticTapeCreationRules,
updateAutomaticTapeCreationPolicy_gatewayARN,
UpdateAutomaticTapeCreationPolicyResponse (..),
newUpdateAutomaticTapeCreationPolicyResponse,
updateAutomaticTapeCreationPolicyResponse_gatewayARN,
updateAutomaticTapeCreationPolicyResponse_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
data UpdateAutomaticTapeCreationPolicy = UpdateAutomaticTapeCreationPolicy'
{
UpdateAutomaticTapeCreationPolicy
-> NonEmpty AutomaticTapeCreationRule
automaticTapeCreationRules :: Prelude.NonEmpty AutomaticTapeCreationRule,
UpdateAutomaticTapeCreationPolicy -> Text
gatewayARN :: Prelude.Text
}
deriving (UpdateAutomaticTapeCreationPolicy
-> UpdateAutomaticTapeCreationPolicy -> Bool
(UpdateAutomaticTapeCreationPolicy
-> UpdateAutomaticTapeCreationPolicy -> Bool)
-> (UpdateAutomaticTapeCreationPolicy
-> UpdateAutomaticTapeCreationPolicy -> Bool)
-> Eq UpdateAutomaticTapeCreationPolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAutomaticTapeCreationPolicy
-> UpdateAutomaticTapeCreationPolicy -> Bool
$c/= :: UpdateAutomaticTapeCreationPolicy
-> UpdateAutomaticTapeCreationPolicy -> Bool
== :: UpdateAutomaticTapeCreationPolicy
-> UpdateAutomaticTapeCreationPolicy -> Bool
$c== :: UpdateAutomaticTapeCreationPolicy
-> UpdateAutomaticTapeCreationPolicy -> Bool
Prelude.Eq, ReadPrec [UpdateAutomaticTapeCreationPolicy]
ReadPrec UpdateAutomaticTapeCreationPolicy
Int -> ReadS UpdateAutomaticTapeCreationPolicy
ReadS [UpdateAutomaticTapeCreationPolicy]
(Int -> ReadS UpdateAutomaticTapeCreationPolicy)
-> ReadS [UpdateAutomaticTapeCreationPolicy]
-> ReadPrec UpdateAutomaticTapeCreationPolicy
-> ReadPrec [UpdateAutomaticTapeCreationPolicy]
-> Read UpdateAutomaticTapeCreationPolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAutomaticTapeCreationPolicy]
$creadListPrec :: ReadPrec [UpdateAutomaticTapeCreationPolicy]
readPrec :: ReadPrec UpdateAutomaticTapeCreationPolicy
$creadPrec :: ReadPrec UpdateAutomaticTapeCreationPolicy
readList :: ReadS [UpdateAutomaticTapeCreationPolicy]
$creadList :: ReadS [UpdateAutomaticTapeCreationPolicy]
readsPrec :: Int -> ReadS UpdateAutomaticTapeCreationPolicy
$creadsPrec :: Int -> ReadS UpdateAutomaticTapeCreationPolicy
Prelude.Read, Int -> UpdateAutomaticTapeCreationPolicy -> ShowS
[UpdateAutomaticTapeCreationPolicy] -> ShowS
UpdateAutomaticTapeCreationPolicy -> String
(Int -> UpdateAutomaticTapeCreationPolicy -> ShowS)
-> (UpdateAutomaticTapeCreationPolicy -> String)
-> ([UpdateAutomaticTapeCreationPolicy] -> ShowS)
-> Show UpdateAutomaticTapeCreationPolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAutomaticTapeCreationPolicy] -> ShowS
$cshowList :: [UpdateAutomaticTapeCreationPolicy] -> ShowS
show :: UpdateAutomaticTapeCreationPolicy -> String
$cshow :: UpdateAutomaticTapeCreationPolicy -> String
showsPrec :: Int -> UpdateAutomaticTapeCreationPolicy -> ShowS
$cshowsPrec :: Int -> UpdateAutomaticTapeCreationPolicy -> ShowS
Prelude.Show, (forall x.
UpdateAutomaticTapeCreationPolicy
-> Rep UpdateAutomaticTapeCreationPolicy x)
-> (forall x.
Rep UpdateAutomaticTapeCreationPolicy x
-> UpdateAutomaticTapeCreationPolicy)
-> Generic UpdateAutomaticTapeCreationPolicy
forall x.
Rep UpdateAutomaticTapeCreationPolicy x
-> UpdateAutomaticTapeCreationPolicy
forall x.
UpdateAutomaticTapeCreationPolicy
-> Rep UpdateAutomaticTapeCreationPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAutomaticTapeCreationPolicy x
-> UpdateAutomaticTapeCreationPolicy
$cfrom :: forall x.
UpdateAutomaticTapeCreationPolicy
-> Rep UpdateAutomaticTapeCreationPolicy x
Prelude.Generic)
newUpdateAutomaticTapeCreationPolicy ::
Prelude.NonEmpty AutomaticTapeCreationRule ->
Prelude.Text ->
UpdateAutomaticTapeCreationPolicy
newUpdateAutomaticTapeCreationPolicy :: NonEmpty AutomaticTapeCreationRule
-> Text -> UpdateAutomaticTapeCreationPolicy
newUpdateAutomaticTapeCreationPolicy
NonEmpty AutomaticTapeCreationRule
pAutomaticTapeCreationRules_
Text
pGatewayARN_ =
UpdateAutomaticTapeCreationPolicy' :: NonEmpty AutomaticTapeCreationRule
-> Text -> UpdateAutomaticTapeCreationPolicy
UpdateAutomaticTapeCreationPolicy'
{ $sel:automaticTapeCreationRules:UpdateAutomaticTapeCreationPolicy' :: NonEmpty AutomaticTapeCreationRule
automaticTapeCreationRules =
Tagged
(NonEmpty AutomaticTapeCreationRule)
(Identity (NonEmpty AutomaticTapeCreationRule))
-> Tagged
(NonEmpty AutomaticTapeCreationRule)
(Identity (NonEmpty AutomaticTapeCreationRule))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
(Tagged
(NonEmpty AutomaticTapeCreationRule)
(Identity (NonEmpty AutomaticTapeCreationRule))
-> Tagged
(NonEmpty AutomaticTapeCreationRule)
(Identity (NonEmpty AutomaticTapeCreationRule)))
-> NonEmpty AutomaticTapeCreationRule
-> NonEmpty AutomaticTapeCreationRule
forall t b. AReview t b -> b -> t
Lens.# NonEmpty AutomaticTapeCreationRule
pAutomaticTapeCreationRules_,
$sel:gatewayARN:UpdateAutomaticTapeCreationPolicy' :: Text
gatewayARN = Text
pGatewayARN_
}
updateAutomaticTapeCreationPolicy_automaticTapeCreationRules :: Lens.Lens' UpdateAutomaticTapeCreationPolicy (Prelude.NonEmpty AutomaticTapeCreationRule)
updateAutomaticTapeCreationPolicy_automaticTapeCreationRules :: (NonEmpty AutomaticTapeCreationRule
-> f (NonEmpty AutomaticTapeCreationRule))
-> UpdateAutomaticTapeCreationPolicy
-> f UpdateAutomaticTapeCreationPolicy
updateAutomaticTapeCreationPolicy_automaticTapeCreationRules = (UpdateAutomaticTapeCreationPolicy
-> NonEmpty AutomaticTapeCreationRule)
-> (UpdateAutomaticTapeCreationPolicy
-> NonEmpty AutomaticTapeCreationRule
-> UpdateAutomaticTapeCreationPolicy)
-> Lens
UpdateAutomaticTapeCreationPolicy
UpdateAutomaticTapeCreationPolicy
(NonEmpty AutomaticTapeCreationRule)
(NonEmpty AutomaticTapeCreationRule)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAutomaticTapeCreationPolicy' {NonEmpty AutomaticTapeCreationRule
automaticTapeCreationRules :: NonEmpty AutomaticTapeCreationRule
$sel:automaticTapeCreationRules:UpdateAutomaticTapeCreationPolicy' :: UpdateAutomaticTapeCreationPolicy
-> NonEmpty AutomaticTapeCreationRule
automaticTapeCreationRules} -> NonEmpty AutomaticTapeCreationRule
automaticTapeCreationRules) (\s :: UpdateAutomaticTapeCreationPolicy
s@UpdateAutomaticTapeCreationPolicy' {} NonEmpty AutomaticTapeCreationRule
a -> UpdateAutomaticTapeCreationPolicy
s {$sel:automaticTapeCreationRules:UpdateAutomaticTapeCreationPolicy' :: NonEmpty AutomaticTapeCreationRule
automaticTapeCreationRules = NonEmpty AutomaticTapeCreationRule
a} :: UpdateAutomaticTapeCreationPolicy) ((NonEmpty AutomaticTapeCreationRule
-> f (NonEmpty AutomaticTapeCreationRule))
-> UpdateAutomaticTapeCreationPolicy
-> f UpdateAutomaticTapeCreationPolicy)
-> ((NonEmpty AutomaticTapeCreationRule
-> f (NonEmpty AutomaticTapeCreationRule))
-> NonEmpty AutomaticTapeCreationRule
-> f (NonEmpty AutomaticTapeCreationRule))
-> (NonEmpty AutomaticTapeCreationRule
-> f (NonEmpty AutomaticTapeCreationRule))
-> UpdateAutomaticTapeCreationPolicy
-> f UpdateAutomaticTapeCreationPolicy
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty AutomaticTapeCreationRule
-> f (NonEmpty AutomaticTapeCreationRule))
-> NonEmpty AutomaticTapeCreationRule
-> f (NonEmpty AutomaticTapeCreationRule)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateAutomaticTapeCreationPolicy_gatewayARN :: Lens.Lens' UpdateAutomaticTapeCreationPolicy Prelude.Text
updateAutomaticTapeCreationPolicy_gatewayARN :: (Text -> f Text)
-> UpdateAutomaticTapeCreationPolicy
-> f UpdateAutomaticTapeCreationPolicy
updateAutomaticTapeCreationPolicy_gatewayARN = (UpdateAutomaticTapeCreationPolicy -> Text)
-> (UpdateAutomaticTapeCreationPolicy
-> Text -> UpdateAutomaticTapeCreationPolicy)
-> Lens
UpdateAutomaticTapeCreationPolicy
UpdateAutomaticTapeCreationPolicy
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAutomaticTapeCreationPolicy' {Text
gatewayARN :: Text
$sel:gatewayARN:UpdateAutomaticTapeCreationPolicy' :: UpdateAutomaticTapeCreationPolicy -> Text
gatewayARN} -> Text
gatewayARN) (\s :: UpdateAutomaticTapeCreationPolicy
s@UpdateAutomaticTapeCreationPolicy' {} Text
a -> UpdateAutomaticTapeCreationPolicy
s {$sel:gatewayARN:UpdateAutomaticTapeCreationPolicy' :: Text
gatewayARN = Text
a} :: UpdateAutomaticTapeCreationPolicy)
instance
Core.AWSRequest
UpdateAutomaticTapeCreationPolicy
where
type
AWSResponse UpdateAutomaticTapeCreationPolicy =
UpdateAutomaticTapeCreationPolicyResponse
request :: UpdateAutomaticTapeCreationPolicy
-> Request UpdateAutomaticTapeCreationPolicy
request = Service
-> UpdateAutomaticTapeCreationPolicy
-> Request UpdateAutomaticTapeCreationPolicy
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateAutomaticTapeCreationPolicy
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateAutomaticTapeCreationPolicy)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateAutomaticTapeCreationPolicy))
-> Logger
-> Service
-> Proxy UpdateAutomaticTapeCreationPolicy
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateAutomaticTapeCreationPolicy)))
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 Text -> Int -> UpdateAutomaticTapeCreationPolicyResponse
UpdateAutomaticTapeCreationPolicyResponse'
(Maybe Text -> Int -> UpdateAutomaticTapeCreationPolicyResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateAutomaticTapeCreationPolicyResponse)
forall (f :: * -> *) a b. Functor 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
"GatewayARN")
Either String (Int -> UpdateAutomaticTapeCreationPolicyResponse)
-> Either String Int
-> Either String UpdateAutomaticTapeCreationPolicyResponse
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
UpdateAutomaticTapeCreationPolicy
instance
Prelude.NFData
UpdateAutomaticTapeCreationPolicy
instance
Core.ToHeaders
UpdateAutomaticTapeCreationPolicy
where
toHeaders :: UpdateAutomaticTapeCreationPolicy -> ResponseHeaders
toHeaders =
ResponseHeaders
-> UpdateAutomaticTapeCreationPolicy -> 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.UpdateAutomaticTapeCreationPolicy" ::
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
UpdateAutomaticTapeCreationPolicy
where
toJSON :: UpdateAutomaticTapeCreationPolicy -> Value
toJSON UpdateAutomaticTapeCreationPolicy' {NonEmpty AutomaticTapeCreationRule
Text
gatewayARN :: Text
automaticTapeCreationRules :: NonEmpty AutomaticTapeCreationRule
$sel:gatewayARN:UpdateAutomaticTapeCreationPolicy' :: UpdateAutomaticTapeCreationPolicy -> Text
$sel:automaticTapeCreationRules:UpdateAutomaticTapeCreationPolicy' :: UpdateAutomaticTapeCreationPolicy
-> NonEmpty AutomaticTapeCreationRule
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"AutomaticTapeCreationRules"
Text -> NonEmpty AutomaticTapeCreationRule -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty AutomaticTapeCreationRule
automaticTapeCreationRules
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"GatewayARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gatewayARN)
]
)
instance
Core.ToPath
UpdateAutomaticTapeCreationPolicy
where
toPath :: UpdateAutomaticTapeCreationPolicy -> ByteString
toPath = ByteString -> UpdateAutomaticTapeCreationPolicy -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
UpdateAutomaticTapeCreationPolicy
where
toQuery :: UpdateAutomaticTapeCreationPolicy -> QueryString
toQuery = QueryString -> UpdateAutomaticTapeCreationPolicy -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateAutomaticTapeCreationPolicyResponse = UpdateAutomaticTapeCreationPolicyResponse'
{ UpdateAutomaticTapeCreationPolicyResponse -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
UpdateAutomaticTapeCreationPolicyResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateAutomaticTapeCreationPolicyResponse
-> UpdateAutomaticTapeCreationPolicyResponse -> Bool
(UpdateAutomaticTapeCreationPolicyResponse
-> UpdateAutomaticTapeCreationPolicyResponse -> Bool)
-> (UpdateAutomaticTapeCreationPolicyResponse
-> UpdateAutomaticTapeCreationPolicyResponse -> Bool)
-> Eq UpdateAutomaticTapeCreationPolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAutomaticTapeCreationPolicyResponse
-> UpdateAutomaticTapeCreationPolicyResponse -> Bool
$c/= :: UpdateAutomaticTapeCreationPolicyResponse
-> UpdateAutomaticTapeCreationPolicyResponse -> Bool
== :: UpdateAutomaticTapeCreationPolicyResponse
-> UpdateAutomaticTapeCreationPolicyResponse -> Bool
$c== :: UpdateAutomaticTapeCreationPolicyResponse
-> UpdateAutomaticTapeCreationPolicyResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAutomaticTapeCreationPolicyResponse]
ReadPrec UpdateAutomaticTapeCreationPolicyResponse
Int -> ReadS UpdateAutomaticTapeCreationPolicyResponse
ReadS [UpdateAutomaticTapeCreationPolicyResponse]
(Int -> ReadS UpdateAutomaticTapeCreationPolicyResponse)
-> ReadS [UpdateAutomaticTapeCreationPolicyResponse]
-> ReadPrec UpdateAutomaticTapeCreationPolicyResponse
-> ReadPrec [UpdateAutomaticTapeCreationPolicyResponse]
-> Read UpdateAutomaticTapeCreationPolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAutomaticTapeCreationPolicyResponse]
$creadListPrec :: ReadPrec [UpdateAutomaticTapeCreationPolicyResponse]
readPrec :: ReadPrec UpdateAutomaticTapeCreationPolicyResponse
$creadPrec :: ReadPrec UpdateAutomaticTapeCreationPolicyResponse
readList :: ReadS [UpdateAutomaticTapeCreationPolicyResponse]
$creadList :: ReadS [UpdateAutomaticTapeCreationPolicyResponse]
readsPrec :: Int -> ReadS UpdateAutomaticTapeCreationPolicyResponse
$creadsPrec :: Int -> ReadS UpdateAutomaticTapeCreationPolicyResponse
Prelude.Read, Int -> UpdateAutomaticTapeCreationPolicyResponse -> ShowS
[UpdateAutomaticTapeCreationPolicyResponse] -> ShowS
UpdateAutomaticTapeCreationPolicyResponse -> String
(Int -> UpdateAutomaticTapeCreationPolicyResponse -> ShowS)
-> (UpdateAutomaticTapeCreationPolicyResponse -> String)
-> ([UpdateAutomaticTapeCreationPolicyResponse] -> ShowS)
-> Show UpdateAutomaticTapeCreationPolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAutomaticTapeCreationPolicyResponse] -> ShowS
$cshowList :: [UpdateAutomaticTapeCreationPolicyResponse] -> ShowS
show :: UpdateAutomaticTapeCreationPolicyResponse -> String
$cshow :: UpdateAutomaticTapeCreationPolicyResponse -> String
showsPrec :: Int -> UpdateAutomaticTapeCreationPolicyResponse -> ShowS
$cshowsPrec :: Int -> UpdateAutomaticTapeCreationPolicyResponse -> ShowS
Prelude.Show, (forall x.
UpdateAutomaticTapeCreationPolicyResponse
-> Rep UpdateAutomaticTapeCreationPolicyResponse x)
-> (forall x.
Rep UpdateAutomaticTapeCreationPolicyResponse x
-> UpdateAutomaticTapeCreationPolicyResponse)
-> Generic UpdateAutomaticTapeCreationPolicyResponse
forall x.
Rep UpdateAutomaticTapeCreationPolicyResponse x
-> UpdateAutomaticTapeCreationPolicyResponse
forall x.
UpdateAutomaticTapeCreationPolicyResponse
-> Rep UpdateAutomaticTapeCreationPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAutomaticTapeCreationPolicyResponse x
-> UpdateAutomaticTapeCreationPolicyResponse
$cfrom :: forall x.
UpdateAutomaticTapeCreationPolicyResponse
-> Rep UpdateAutomaticTapeCreationPolicyResponse x
Prelude.Generic)
newUpdateAutomaticTapeCreationPolicyResponse ::
Prelude.Int ->
UpdateAutomaticTapeCreationPolicyResponse
newUpdateAutomaticTapeCreationPolicyResponse :: Int -> UpdateAutomaticTapeCreationPolicyResponse
newUpdateAutomaticTapeCreationPolicyResponse
Int
pHttpStatus_ =
UpdateAutomaticTapeCreationPolicyResponse' :: Maybe Text -> Int -> UpdateAutomaticTapeCreationPolicyResponse
UpdateAutomaticTapeCreationPolicyResponse'
{ $sel:gatewayARN:UpdateAutomaticTapeCreationPolicyResponse' :: Maybe Text
gatewayARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateAutomaticTapeCreationPolicyResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateAutomaticTapeCreationPolicyResponse_gatewayARN :: Lens.Lens' UpdateAutomaticTapeCreationPolicyResponse (Prelude.Maybe Prelude.Text)
updateAutomaticTapeCreationPolicyResponse_gatewayARN :: (Maybe Text -> f (Maybe Text))
-> UpdateAutomaticTapeCreationPolicyResponse
-> f UpdateAutomaticTapeCreationPolicyResponse
updateAutomaticTapeCreationPolicyResponse_gatewayARN = (UpdateAutomaticTapeCreationPolicyResponse -> Maybe Text)
-> (UpdateAutomaticTapeCreationPolicyResponse
-> Maybe Text -> UpdateAutomaticTapeCreationPolicyResponse)
-> Lens
UpdateAutomaticTapeCreationPolicyResponse
UpdateAutomaticTapeCreationPolicyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAutomaticTapeCreationPolicyResponse' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:UpdateAutomaticTapeCreationPolicyResponse' :: UpdateAutomaticTapeCreationPolicyResponse -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: UpdateAutomaticTapeCreationPolicyResponse
s@UpdateAutomaticTapeCreationPolicyResponse' {} Maybe Text
a -> UpdateAutomaticTapeCreationPolicyResponse
s {$sel:gatewayARN:UpdateAutomaticTapeCreationPolicyResponse' :: Maybe Text
gatewayARN = Maybe Text
a} :: UpdateAutomaticTapeCreationPolicyResponse)
updateAutomaticTapeCreationPolicyResponse_httpStatus :: Lens.Lens' UpdateAutomaticTapeCreationPolicyResponse Prelude.Int
updateAutomaticTapeCreationPolicyResponse_httpStatus :: (Int -> f Int)
-> UpdateAutomaticTapeCreationPolicyResponse
-> f UpdateAutomaticTapeCreationPolicyResponse
updateAutomaticTapeCreationPolicyResponse_httpStatus = (UpdateAutomaticTapeCreationPolicyResponse -> Int)
-> (UpdateAutomaticTapeCreationPolicyResponse
-> Int -> UpdateAutomaticTapeCreationPolicyResponse)
-> Lens
UpdateAutomaticTapeCreationPolicyResponse
UpdateAutomaticTapeCreationPolicyResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAutomaticTapeCreationPolicyResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateAutomaticTapeCreationPolicyResponse' :: UpdateAutomaticTapeCreationPolicyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateAutomaticTapeCreationPolicyResponse
s@UpdateAutomaticTapeCreationPolicyResponse' {} Int
a -> UpdateAutomaticTapeCreationPolicyResponse
s {$sel:httpStatus:UpdateAutomaticTapeCreationPolicyResponse' :: Int
httpStatus = Int
a} :: UpdateAutomaticTapeCreationPolicyResponse)
instance
Prelude.NFData
UpdateAutomaticTapeCreationPolicyResponse