{-# 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.Glue.GetResourcePolicy
(
GetResourcePolicy (..),
newGetResourcePolicy,
getResourcePolicy_resourceArn,
GetResourcePolicyResponse (..),
newGetResourcePolicyResponse,
getResourcePolicyResponse_policyInJson,
getResourcePolicyResponse_updateTime,
getResourcePolicyResponse_policyHash,
getResourcePolicyResponse_createTime,
getResourcePolicyResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetResourcePolicy = GetResourcePolicy'
{
GetResourcePolicy -> Maybe Text
resourceArn :: Prelude.Maybe Prelude.Text
}
deriving (GetResourcePolicy -> GetResourcePolicy -> Bool
(GetResourcePolicy -> GetResourcePolicy -> Bool)
-> (GetResourcePolicy -> GetResourcePolicy -> Bool)
-> Eq GetResourcePolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResourcePolicy -> GetResourcePolicy -> Bool
$c/= :: GetResourcePolicy -> GetResourcePolicy -> Bool
== :: GetResourcePolicy -> GetResourcePolicy -> Bool
$c== :: GetResourcePolicy -> GetResourcePolicy -> Bool
Prelude.Eq, ReadPrec [GetResourcePolicy]
ReadPrec GetResourcePolicy
Int -> ReadS GetResourcePolicy
ReadS [GetResourcePolicy]
(Int -> ReadS GetResourcePolicy)
-> ReadS [GetResourcePolicy]
-> ReadPrec GetResourcePolicy
-> ReadPrec [GetResourcePolicy]
-> Read GetResourcePolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResourcePolicy]
$creadListPrec :: ReadPrec [GetResourcePolicy]
readPrec :: ReadPrec GetResourcePolicy
$creadPrec :: ReadPrec GetResourcePolicy
readList :: ReadS [GetResourcePolicy]
$creadList :: ReadS [GetResourcePolicy]
readsPrec :: Int -> ReadS GetResourcePolicy
$creadsPrec :: Int -> ReadS GetResourcePolicy
Prelude.Read, Int -> GetResourcePolicy -> ShowS
[GetResourcePolicy] -> ShowS
GetResourcePolicy -> String
(Int -> GetResourcePolicy -> ShowS)
-> (GetResourcePolicy -> String)
-> ([GetResourcePolicy] -> ShowS)
-> Show GetResourcePolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResourcePolicy] -> ShowS
$cshowList :: [GetResourcePolicy] -> ShowS
show :: GetResourcePolicy -> String
$cshow :: GetResourcePolicy -> String
showsPrec :: Int -> GetResourcePolicy -> ShowS
$cshowsPrec :: Int -> GetResourcePolicy -> ShowS
Prelude.Show, (forall x. GetResourcePolicy -> Rep GetResourcePolicy x)
-> (forall x. Rep GetResourcePolicy x -> GetResourcePolicy)
-> Generic GetResourcePolicy
forall x. Rep GetResourcePolicy x -> GetResourcePolicy
forall x. GetResourcePolicy -> Rep GetResourcePolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetResourcePolicy x -> GetResourcePolicy
$cfrom :: forall x. GetResourcePolicy -> Rep GetResourcePolicy x
Prelude.Generic)
newGetResourcePolicy ::
GetResourcePolicy
newGetResourcePolicy :: GetResourcePolicy
newGetResourcePolicy =
GetResourcePolicy' :: Maybe Text -> GetResourcePolicy
GetResourcePolicy' {$sel:resourceArn:GetResourcePolicy' :: Maybe Text
resourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing}
getResourcePolicy_resourceArn :: Lens.Lens' GetResourcePolicy (Prelude.Maybe Prelude.Text)
getResourcePolicy_resourceArn :: (Maybe Text -> f (Maybe Text))
-> GetResourcePolicy -> f GetResourcePolicy
getResourcePolicy_resourceArn = (GetResourcePolicy -> Maybe Text)
-> (GetResourcePolicy -> Maybe Text -> GetResourcePolicy)
-> Lens
GetResourcePolicy GetResourcePolicy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcePolicy' {Maybe Text
resourceArn :: Maybe Text
$sel:resourceArn:GetResourcePolicy' :: GetResourcePolicy -> Maybe Text
resourceArn} -> Maybe Text
resourceArn) (\s :: GetResourcePolicy
s@GetResourcePolicy' {} Maybe Text
a -> GetResourcePolicy
s {$sel:resourceArn:GetResourcePolicy' :: Maybe Text
resourceArn = Maybe Text
a} :: GetResourcePolicy)
instance Core.AWSRequest GetResourcePolicy where
type
AWSResponse GetResourcePolicy =
GetResourcePolicyResponse
request :: GetResourcePolicy -> Request GetResourcePolicy
request = Service -> GetResourcePolicy -> Request GetResourcePolicy
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetResourcePolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetResourcePolicy)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetResourcePolicy))
-> Logger
-> Service
-> Proxy GetResourcePolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetResourcePolicy)))
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
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetResourcePolicyResponse
GetResourcePolicyResponse'
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetResourcePolicyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text -> Maybe POSIX -> Int -> GetResourcePolicyResponse)
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
"PolicyInJson")
Either
String
(Maybe POSIX
-> Maybe Text -> Maybe POSIX -> Int -> GetResourcePolicyResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text -> Maybe POSIX -> Int -> GetResourcePolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UpdateTime")
Either
String
(Maybe Text -> Maybe POSIX -> Int -> GetResourcePolicyResponse)
-> Either String (Maybe Text)
-> Either String (Maybe POSIX -> Int -> GetResourcePolicyResponse)
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
"PolicyHash")
Either String (Maybe POSIX -> Int -> GetResourcePolicyResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> GetResourcePolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreateTime")
Either String (Int -> GetResourcePolicyResponse)
-> Either String Int -> Either String GetResourcePolicyResponse
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 GetResourcePolicy
instance Prelude.NFData GetResourcePolicy
instance Core.ToHeaders GetResourcePolicy where
toHeaders :: GetResourcePolicy -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetResourcePolicy -> 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
"AWSGlue.GetResourcePolicy" :: 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 GetResourcePolicy where
toJSON :: GetResourcePolicy -> Value
toJSON GetResourcePolicy' {Maybe Text
resourceArn :: Maybe Text
$sel:resourceArn:GetResourcePolicy' :: GetResourcePolicy -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"ResourceArn" 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
resourceArn]
)
instance Core.ToPath GetResourcePolicy where
toPath :: GetResourcePolicy -> ByteString
toPath = ByteString -> GetResourcePolicy -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetResourcePolicy where
toQuery :: GetResourcePolicy -> QueryString
toQuery = QueryString -> GetResourcePolicy -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetResourcePolicyResponse = GetResourcePolicyResponse'
{
GetResourcePolicyResponse -> Maybe Text
policyInJson :: Prelude.Maybe Prelude.Text,
GetResourcePolicyResponse -> Maybe POSIX
updateTime :: Prelude.Maybe Core.POSIX,
GetResourcePolicyResponse -> Maybe Text
policyHash :: Prelude.Maybe Prelude.Text,
GetResourcePolicyResponse -> Maybe POSIX
createTime :: Prelude.Maybe Core.POSIX,
GetResourcePolicyResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetResourcePolicyResponse -> GetResourcePolicyResponse -> Bool
(GetResourcePolicyResponse -> GetResourcePolicyResponse -> Bool)
-> (GetResourcePolicyResponse -> GetResourcePolicyResponse -> Bool)
-> Eq GetResourcePolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResourcePolicyResponse -> GetResourcePolicyResponse -> Bool
$c/= :: GetResourcePolicyResponse -> GetResourcePolicyResponse -> Bool
== :: GetResourcePolicyResponse -> GetResourcePolicyResponse -> Bool
$c== :: GetResourcePolicyResponse -> GetResourcePolicyResponse -> Bool
Prelude.Eq, ReadPrec [GetResourcePolicyResponse]
ReadPrec GetResourcePolicyResponse
Int -> ReadS GetResourcePolicyResponse
ReadS [GetResourcePolicyResponse]
(Int -> ReadS GetResourcePolicyResponse)
-> ReadS [GetResourcePolicyResponse]
-> ReadPrec GetResourcePolicyResponse
-> ReadPrec [GetResourcePolicyResponse]
-> Read GetResourcePolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResourcePolicyResponse]
$creadListPrec :: ReadPrec [GetResourcePolicyResponse]
readPrec :: ReadPrec GetResourcePolicyResponse
$creadPrec :: ReadPrec GetResourcePolicyResponse
readList :: ReadS [GetResourcePolicyResponse]
$creadList :: ReadS [GetResourcePolicyResponse]
readsPrec :: Int -> ReadS GetResourcePolicyResponse
$creadsPrec :: Int -> ReadS GetResourcePolicyResponse
Prelude.Read, Int -> GetResourcePolicyResponse -> ShowS
[GetResourcePolicyResponse] -> ShowS
GetResourcePolicyResponse -> String
(Int -> GetResourcePolicyResponse -> ShowS)
-> (GetResourcePolicyResponse -> String)
-> ([GetResourcePolicyResponse] -> ShowS)
-> Show GetResourcePolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResourcePolicyResponse] -> ShowS
$cshowList :: [GetResourcePolicyResponse] -> ShowS
show :: GetResourcePolicyResponse -> String
$cshow :: GetResourcePolicyResponse -> String
showsPrec :: Int -> GetResourcePolicyResponse -> ShowS
$cshowsPrec :: Int -> GetResourcePolicyResponse -> ShowS
Prelude.Show, (forall x.
GetResourcePolicyResponse -> Rep GetResourcePolicyResponse x)
-> (forall x.
Rep GetResourcePolicyResponse x -> GetResourcePolicyResponse)
-> Generic GetResourcePolicyResponse
forall x.
Rep GetResourcePolicyResponse x -> GetResourcePolicyResponse
forall x.
GetResourcePolicyResponse -> Rep GetResourcePolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetResourcePolicyResponse x -> GetResourcePolicyResponse
$cfrom :: forall x.
GetResourcePolicyResponse -> Rep GetResourcePolicyResponse x
Prelude.Generic)
newGetResourcePolicyResponse ::
Prelude.Int ->
GetResourcePolicyResponse
newGetResourcePolicyResponse :: Int -> GetResourcePolicyResponse
newGetResourcePolicyResponse Int
pHttpStatus_ =
GetResourcePolicyResponse' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Int
-> GetResourcePolicyResponse
GetResourcePolicyResponse'
{ $sel:policyInJson:GetResourcePolicyResponse' :: Maybe Text
policyInJson =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:updateTime:GetResourcePolicyResponse' :: Maybe POSIX
updateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:policyHash:GetResourcePolicyResponse' :: Maybe Text
policyHash = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createTime:GetResourcePolicyResponse' :: Maybe POSIX
createTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetResourcePolicyResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getResourcePolicyResponse_policyInJson :: Lens.Lens' GetResourcePolicyResponse (Prelude.Maybe Prelude.Text)
getResourcePolicyResponse_policyInJson :: (Maybe Text -> f (Maybe Text))
-> GetResourcePolicyResponse -> f GetResourcePolicyResponse
getResourcePolicyResponse_policyInJson = (GetResourcePolicyResponse -> Maybe Text)
-> (GetResourcePolicyResponse
-> Maybe Text -> GetResourcePolicyResponse)
-> Lens
GetResourcePolicyResponse
GetResourcePolicyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcePolicyResponse' {Maybe Text
policyInJson :: Maybe Text
$sel:policyInJson:GetResourcePolicyResponse' :: GetResourcePolicyResponse -> Maybe Text
policyInJson} -> Maybe Text
policyInJson) (\s :: GetResourcePolicyResponse
s@GetResourcePolicyResponse' {} Maybe Text
a -> GetResourcePolicyResponse
s {$sel:policyInJson:GetResourcePolicyResponse' :: Maybe Text
policyInJson = Maybe Text
a} :: GetResourcePolicyResponse)
getResourcePolicyResponse_updateTime :: Lens.Lens' GetResourcePolicyResponse (Prelude.Maybe Prelude.UTCTime)
getResourcePolicyResponse_updateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetResourcePolicyResponse -> f GetResourcePolicyResponse
getResourcePolicyResponse_updateTime = (GetResourcePolicyResponse -> Maybe POSIX)
-> (GetResourcePolicyResponse
-> Maybe POSIX -> GetResourcePolicyResponse)
-> Lens
GetResourcePolicyResponse
GetResourcePolicyResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcePolicyResponse' {Maybe POSIX
updateTime :: Maybe POSIX
$sel:updateTime:GetResourcePolicyResponse' :: GetResourcePolicyResponse -> Maybe POSIX
updateTime} -> Maybe POSIX
updateTime) (\s :: GetResourcePolicyResponse
s@GetResourcePolicyResponse' {} Maybe POSIX
a -> GetResourcePolicyResponse
s {$sel:updateTime:GetResourcePolicyResponse' :: Maybe POSIX
updateTime = Maybe POSIX
a} :: GetResourcePolicyResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetResourcePolicyResponse -> f GetResourcePolicyResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetResourcePolicyResponse
-> f GetResourcePolicyResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getResourcePolicyResponse_policyHash :: Lens.Lens' GetResourcePolicyResponse (Prelude.Maybe Prelude.Text)
getResourcePolicyResponse_policyHash :: (Maybe Text -> f (Maybe Text))
-> GetResourcePolicyResponse -> f GetResourcePolicyResponse
getResourcePolicyResponse_policyHash = (GetResourcePolicyResponse -> Maybe Text)
-> (GetResourcePolicyResponse
-> Maybe Text -> GetResourcePolicyResponse)
-> Lens
GetResourcePolicyResponse
GetResourcePolicyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcePolicyResponse' {Maybe Text
policyHash :: Maybe Text
$sel:policyHash:GetResourcePolicyResponse' :: GetResourcePolicyResponse -> Maybe Text
policyHash} -> Maybe Text
policyHash) (\s :: GetResourcePolicyResponse
s@GetResourcePolicyResponse' {} Maybe Text
a -> GetResourcePolicyResponse
s {$sel:policyHash:GetResourcePolicyResponse' :: Maybe Text
policyHash = Maybe Text
a} :: GetResourcePolicyResponse)
getResourcePolicyResponse_createTime :: Lens.Lens' GetResourcePolicyResponse (Prelude.Maybe Prelude.UTCTime)
getResourcePolicyResponse_createTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetResourcePolicyResponse -> f GetResourcePolicyResponse
getResourcePolicyResponse_createTime = (GetResourcePolicyResponse -> Maybe POSIX)
-> (GetResourcePolicyResponse
-> Maybe POSIX -> GetResourcePolicyResponse)
-> Lens
GetResourcePolicyResponse
GetResourcePolicyResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcePolicyResponse' {Maybe POSIX
createTime :: Maybe POSIX
$sel:createTime:GetResourcePolicyResponse' :: GetResourcePolicyResponse -> Maybe POSIX
createTime} -> Maybe POSIX
createTime) (\s :: GetResourcePolicyResponse
s@GetResourcePolicyResponse' {} Maybe POSIX
a -> GetResourcePolicyResponse
s {$sel:createTime:GetResourcePolicyResponse' :: Maybe POSIX
createTime = Maybe POSIX
a} :: GetResourcePolicyResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetResourcePolicyResponse -> f GetResourcePolicyResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetResourcePolicyResponse
-> f GetResourcePolicyResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getResourcePolicyResponse_httpStatus :: Lens.Lens' GetResourcePolicyResponse Prelude.Int
getResourcePolicyResponse_httpStatus :: (Int -> f Int)
-> GetResourcePolicyResponse -> f GetResourcePolicyResponse
getResourcePolicyResponse_httpStatus = (GetResourcePolicyResponse -> Int)
-> (GetResourcePolicyResponse -> Int -> GetResourcePolicyResponse)
-> Lens GetResourcePolicyResponse GetResourcePolicyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResourcePolicyResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetResourcePolicyResponse' :: GetResourcePolicyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetResourcePolicyResponse
s@GetResourcePolicyResponse' {} Int
a -> GetResourcePolicyResponse
s {$sel:httpStatus:GetResourcePolicyResponse' :: Int
httpStatus = Int
a} :: GetResourcePolicyResponse)
instance Prelude.NFData GetResourcePolicyResponse