{-# 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.Comprehend.DescribeResourcePolicy
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets the details of a resource-based policy that is attached to a custom
-- model, including the JSON body of the policy.
module Amazonka.Comprehend.DescribeResourcePolicy
  ( -- * Creating a Request
    DescribeResourcePolicy (..),
    newDescribeResourcePolicy,

    -- * Request Lenses
    describeResourcePolicy_resourceArn,

    -- * Destructuring the Response
    DescribeResourcePolicyResponse (..),
    newDescribeResourcePolicyResponse,

    -- * Response Lenses
    describeResourcePolicyResponse_creationTime,
    describeResourcePolicyResponse_lastModifiedTime,
    describeResourcePolicyResponse_policyRevisionId,
    describeResourcePolicyResponse_resourcePolicy,
    describeResourcePolicyResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeResourcePolicy' smart constructor.
data DescribeResourcePolicy = DescribeResourcePolicy'
  { -- | The Amazon Resource Name (ARN) of the custom model version that has the
    -- resource policy.
    DescribeResourcePolicy -> Text
resourceArn :: Prelude.Text
  }
  deriving (DescribeResourcePolicy -> DescribeResourcePolicy -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeResourcePolicy -> DescribeResourcePolicy -> Bool
$c/= :: DescribeResourcePolicy -> DescribeResourcePolicy -> Bool
== :: DescribeResourcePolicy -> DescribeResourcePolicy -> Bool
$c== :: DescribeResourcePolicy -> DescribeResourcePolicy -> Bool
Prelude.Eq, ReadPrec [DescribeResourcePolicy]
ReadPrec DescribeResourcePolicy
Int -> ReadS DescribeResourcePolicy
ReadS [DescribeResourcePolicy]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeResourcePolicy]
$creadListPrec :: ReadPrec [DescribeResourcePolicy]
readPrec :: ReadPrec DescribeResourcePolicy
$creadPrec :: ReadPrec DescribeResourcePolicy
readList :: ReadS [DescribeResourcePolicy]
$creadList :: ReadS [DescribeResourcePolicy]
readsPrec :: Int -> ReadS DescribeResourcePolicy
$creadsPrec :: Int -> ReadS DescribeResourcePolicy
Prelude.Read, Int -> DescribeResourcePolicy -> ShowS
[DescribeResourcePolicy] -> ShowS
DescribeResourcePolicy -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeResourcePolicy] -> ShowS
$cshowList :: [DescribeResourcePolicy] -> ShowS
show :: DescribeResourcePolicy -> String
$cshow :: DescribeResourcePolicy -> String
showsPrec :: Int -> DescribeResourcePolicy -> ShowS
$cshowsPrec :: Int -> DescribeResourcePolicy -> ShowS
Prelude.Show, forall x. Rep DescribeResourcePolicy x -> DescribeResourcePolicy
forall x. DescribeResourcePolicy -> Rep DescribeResourcePolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeResourcePolicy x -> DescribeResourcePolicy
$cfrom :: forall x. DescribeResourcePolicy -> Rep DescribeResourcePolicy x
Prelude.Generic)

-- |
-- Create a value of 'DescribeResourcePolicy' 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:
--
-- 'resourceArn', 'describeResourcePolicy_resourceArn' - The Amazon Resource Name (ARN) of the custom model version that has the
-- resource policy.
newDescribeResourcePolicy ::
  -- | 'resourceArn'
  Prelude.Text ->
  DescribeResourcePolicy
newDescribeResourcePolicy :: Text -> DescribeResourcePolicy
newDescribeResourcePolicy Text
pResourceArn_ =
  DescribeResourcePolicy'
    { $sel:resourceArn:DescribeResourcePolicy' :: Text
resourceArn =
        Text
pResourceArn_
    }

-- | The Amazon Resource Name (ARN) of the custom model version that has the
-- resource policy.
describeResourcePolicy_resourceArn :: Lens.Lens' DescribeResourcePolicy Prelude.Text
describeResourcePolicy_resourceArn :: Lens' DescribeResourcePolicy Text
describeResourcePolicy_resourceArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourcePolicy' {Text
resourceArn :: Text
$sel:resourceArn:DescribeResourcePolicy' :: DescribeResourcePolicy -> Text
resourceArn} -> Text
resourceArn) (\s :: DescribeResourcePolicy
s@DescribeResourcePolicy' {} Text
a -> DescribeResourcePolicy
s {$sel:resourceArn:DescribeResourcePolicy' :: Text
resourceArn = Text
a} :: DescribeResourcePolicy)

instance Core.AWSRequest DescribeResourcePolicy where
  type
    AWSResponse DescribeResourcePolicy =
      DescribeResourcePolicyResponse
  request :: (Service -> Service)
-> DescribeResourcePolicy -> Request DescribeResourcePolicy
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeResourcePolicy
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeResourcePolicy)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeResourcePolicyResponse
DescribeResourcePolicyResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"PolicyRevisionId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ResourcePolicy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeResourcePolicy where
  hashWithSalt :: Int -> DescribeResourcePolicy -> Int
hashWithSalt Int
_salt DescribeResourcePolicy' {Text
resourceArn :: Text
$sel:resourceArn:DescribeResourcePolicy' :: DescribeResourcePolicy -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
resourceArn

instance Prelude.NFData DescribeResourcePolicy where
  rnf :: DescribeResourcePolicy -> ()
rnf DescribeResourcePolicy' {Text
resourceArn :: Text
$sel:resourceArn:DescribeResourcePolicy' :: DescribeResourcePolicy -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
resourceArn

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

instance Data.ToJSON DescribeResourcePolicy where
  toJSON :: DescribeResourcePolicy -> Value
toJSON DescribeResourcePolicy' {Text
resourceArn :: Text
$sel:resourceArn:DescribeResourcePolicy' :: DescribeResourcePolicy -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [forall a. a -> Maybe a
Prelude.Just (Key
"ResourceArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
resourceArn)]
      )

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

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

-- | /See:/ 'newDescribeResourcePolicyResponse' smart constructor.
data DescribeResourcePolicyResponse = DescribeResourcePolicyResponse'
  { -- | The time at which the policy was created.
    DescribeResourcePolicyResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The time at which the policy was last modified.
    DescribeResourcePolicyResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The revision ID of the policy. Each time you modify a policy, Amazon
    -- Comprehend assigns a new revision ID, and it deletes the prior version
    -- of the policy.
    DescribeResourcePolicyResponse -> Maybe Text
policyRevisionId :: Prelude.Maybe Prelude.Text,
    -- | The JSON body of the resource-based policy.
    DescribeResourcePolicyResponse -> Maybe Text
resourcePolicy :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeResourcePolicyResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeResourcePolicyResponse
-> DescribeResourcePolicyResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeResourcePolicyResponse
-> DescribeResourcePolicyResponse -> Bool
$c/= :: DescribeResourcePolicyResponse
-> DescribeResourcePolicyResponse -> Bool
== :: DescribeResourcePolicyResponse
-> DescribeResourcePolicyResponse -> Bool
$c== :: DescribeResourcePolicyResponse
-> DescribeResourcePolicyResponse -> Bool
Prelude.Eq, ReadPrec [DescribeResourcePolicyResponse]
ReadPrec DescribeResourcePolicyResponse
Int -> ReadS DescribeResourcePolicyResponse
ReadS [DescribeResourcePolicyResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeResourcePolicyResponse]
$creadListPrec :: ReadPrec [DescribeResourcePolicyResponse]
readPrec :: ReadPrec DescribeResourcePolicyResponse
$creadPrec :: ReadPrec DescribeResourcePolicyResponse
readList :: ReadS [DescribeResourcePolicyResponse]
$creadList :: ReadS [DescribeResourcePolicyResponse]
readsPrec :: Int -> ReadS DescribeResourcePolicyResponse
$creadsPrec :: Int -> ReadS DescribeResourcePolicyResponse
Prelude.Read, Int -> DescribeResourcePolicyResponse -> ShowS
[DescribeResourcePolicyResponse] -> ShowS
DescribeResourcePolicyResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeResourcePolicyResponse] -> ShowS
$cshowList :: [DescribeResourcePolicyResponse] -> ShowS
show :: DescribeResourcePolicyResponse -> String
$cshow :: DescribeResourcePolicyResponse -> String
showsPrec :: Int -> DescribeResourcePolicyResponse -> ShowS
$cshowsPrec :: Int -> DescribeResourcePolicyResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeResourcePolicyResponse x
-> DescribeResourcePolicyResponse
forall x.
DescribeResourcePolicyResponse
-> Rep DescribeResourcePolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeResourcePolicyResponse x
-> DescribeResourcePolicyResponse
$cfrom :: forall x.
DescribeResourcePolicyResponse
-> Rep DescribeResourcePolicyResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeResourcePolicyResponse' 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:
--
-- 'creationTime', 'describeResourcePolicyResponse_creationTime' - The time at which the policy was created.
--
-- 'lastModifiedTime', 'describeResourcePolicyResponse_lastModifiedTime' - The time at which the policy was last modified.
--
-- 'policyRevisionId', 'describeResourcePolicyResponse_policyRevisionId' - The revision ID of the policy. Each time you modify a policy, Amazon
-- Comprehend assigns a new revision ID, and it deletes the prior version
-- of the policy.
--
-- 'resourcePolicy', 'describeResourcePolicyResponse_resourcePolicy' - The JSON body of the resource-based policy.
--
-- 'httpStatus', 'describeResourcePolicyResponse_httpStatus' - The response's http status code.
newDescribeResourcePolicyResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeResourcePolicyResponse
newDescribeResourcePolicyResponse :: Int -> DescribeResourcePolicyResponse
newDescribeResourcePolicyResponse Int
pHttpStatus_ =
  DescribeResourcePolicyResponse'
    { $sel:creationTime:DescribeResourcePolicyResponse' :: Maybe POSIX
creationTime =
        forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DescribeResourcePolicyResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:policyRevisionId:DescribeResourcePolicyResponse' :: Maybe Text
policyRevisionId = forall a. Maybe a
Prelude.Nothing,
      $sel:resourcePolicy:DescribeResourcePolicyResponse' :: Maybe Text
resourcePolicy = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeResourcePolicyResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The time at which the policy was created.
describeResourcePolicyResponse_creationTime :: Lens.Lens' DescribeResourcePolicyResponse (Prelude.Maybe Prelude.UTCTime)
describeResourcePolicyResponse_creationTime :: Lens' DescribeResourcePolicyResponse (Maybe UTCTime)
describeResourcePolicyResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourcePolicyResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeResourcePolicyResponse
s@DescribeResourcePolicyResponse' {} Maybe POSIX
a -> DescribeResourcePolicyResponse
s {$sel:creationTime:DescribeResourcePolicyResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeResourcePolicyResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The time at which the policy was last modified.
describeResourcePolicyResponse_lastModifiedTime :: Lens.Lens' DescribeResourcePolicyResponse (Prelude.Maybe Prelude.UTCTime)
describeResourcePolicyResponse_lastModifiedTime :: Lens' DescribeResourcePolicyResponse (Maybe UTCTime)
describeResourcePolicyResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourcePolicyResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeResourcePolicyResponse
s@DescribeResourcePolicyResponse' {} Maybe POSIX
a -> DescribeResourcePolicyResponse
s {$sel:lastModifiedTime:DescribeResourcePolicyResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeResourcePolicyResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The revision ID of the policy. Each time you modify a policy, Amazon
-- Comprehend assigns a new revision ID, and it deletes the prior version
-- of the policy.
describeResourcePolicyResponse_policyRevisionId :: Lens.Lens' DescribeResourcePolicyResponse (Prelude.Maybe Prelude.Text)
describeResourcePolicyResponse_policyRevisionId :: Lens' DescribeResourcePolicyResponse (Maybe Text)
describeResourcePolicyResponse_policyRevisionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourcePolicyResponse' {Maybe Text
policyRevisionId :: Maybe Text
$sel:policyRevisionId:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Maybe Text
policyRevisionId} -> Maybe Text
policyRevisionId) (\s :: DescribeResourcePolicyResponse
s@DescribeResourcePolicyResponse' {} Maybe Text
a -> DescribeResourcePolicyResponse
s {$sel:policyRevisionId:DescribeResourcePolicyResponse' :: Maybe Text
policyRevisionId = Maybe Text
a} :: DescribeResourcePolicyResponse)

-- | The JSON body of the resource-based policy.
describeResourcePolicyResponse_resourcePolicy :: Lens.Lens' DescribeResourcePolicyResponse (Prelude.Maybe Prelude.Text)
describeResourcePolicyResponse_resourcePolicy :: Lens' DescribeResourcePolicyResponse (Maybe Text)
describeResourcePolicyResponse_resourcePolicy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeResourcePolicyResponse' {Maybe Text
resourcePolicy :: Maybe Text
$sel:resourcePolicy:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Maybe Text
resourcePolicy} -> Maybe Text
resourcePolicy) (\s :: DescribeResourcePolicyResponse
s@DescribeResourcePolicyResponse' {} Maybe Text
a -> DescribeResourcePolicyResponse
s {$sel:resourcePolicy:DescribeResourcePolicyResponse' :: Maybe Text
resourcePolicy = Maybe Text
a} :: DescribeResourcePolicyResponse)

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

instance
  Prelude.NFData
    DescribeResourcePolicyResponse
  where
  rnf :: DescribeResourcePolicyResponse -> ()
rnf DescribeResourcePolicyResponse' {Int
Maybe Text
Maybe POSIX
httpStatus :: Int
resourcePolicy :: Maybe Text
policyRevisionId :: Maybe Text
lastModifiedTime :: Maybe POSIX
creationTime :: Maybe POSIX
$sel:httpStatus:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Int
$sel:resourcePolicy:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Maybe Text
$sel:policyRevisionId:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Maybe Text
$sel:lastModifiedTime:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Maybe POSIX
$sel:creationTime:DescribeResourcePolicyResponse' :: DescribeResourcePolicyResponse -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
policyRevisionId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourcePolicy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus