{-# 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.Rekognition.PutProjectPolicy
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Attaches a project policy to a Amazon Rekognition Custom Labels project
-- in a trusting AWS account. A project policy specifies that a trusted AWS
-- account can copy a model version from a trusting AWS account to a
-- project in the trusted AWS account. To copy a model version you use the
-- CopyProjectVersion operation.
--
-- For more information about the format of a project policy document, see
-- Attaching a project policy (SDK) in the /Amazon Rekognition Custom
-- Labels Developer Guide/.
--
-- The response from @PutProjectPolicy@ is a revision ID for the project
-- policy. You can attach multiple project policies to a project. You can
-- also update an existing project policy by specifying the policy revision
-- ID of the existing policy.
--
-- To remove a project policy from a project, call DeleteProjectPolicy. To
-- get a list of project policies attached to a project, call
-- ListProjectPolicies.
--
-- You copy a model version by calling CopyProjectVersion.
module Amazonka.Rekognition.PutProjectPolicy
  ( -- * Creating a Request
    PutProjectPolicy (..),
    newPutProjectPolicy,

    -- * Request Lenses
    putProjectPolicy_policyRevisionId,
    putProjectPolicy_projectArn,
    putProjectPolicy_policyName,
    putProjectPolicy_policyDocument,

    -- * Destructuring the Response
    PutProjectPolicyResponse (..),
    newPutProjectPolicyResponse,

    -- * Response Lenses
    putProjectPolicyResponse_policyRevisionId,
    putProjectPolicyResponse_httpStatus,
  )
where

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 Amazonka.Rekognition.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newPutProjectPolicy' smart constructor.
data PutProjectPolicy = PutProjectPolicy'
  { -- | The revision ID for the Project Policy. Each time you modify a policy,
    -- Amazon Rekognition Custom Labels generates and assigns a new
    -- @PolicyRevisionId@ and then deletes the previous version of the policy.
    PutProjectPolicy -> Maybe Text
policyRevisionId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the project that the project policy is
    -- attached to.
    PutProjectPolicy -> Text
projectArn :: Prelude.Text,
    -- | A name for the policy.
    PutProjectPolicy -> Text
policyName :: Prelude.Text,
    -- | A resource policy to add to the model. The policy is a JSON structure
    -- that contains one or more statements that define the policy. The policy
    -- must follow the IAM syntax. For more information about the contents of a
    -- JSON policy document, see
    -- <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html IAM JSON policy reference>.
    PutProjectPolicy -> Text
policyDocument :: Prelude.Text
  }
  deriving (PutProjectPolicy -> PutProjectPolicy -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutProjectPolicy -> PutProjectPolicy -> Bool
$c/= :: PutProjectPolicy -> PutProjectPolicy -> Bool
== :: PutProjectPolicy -> PutProjectPolicy -> Bool
$c== :: PutProjectPolicy -> PutProjectPolicy -> Bool
Prelude.Eq, ReadPrec [PutProjectPolicy]
ReadPrec PutProjectPolicy
Int -> ReadS PutProjectPolicy
ReadS [PutProjectPolicy]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutProjectPolicy]
$creadListPrec :: ReadPrec [PutProjectPolicy]
readPrec :: ReadPrec PutProjectPolicy
$creadPrec :: ReadPrec PutProjectPolicy
readList :: ReadS [PutProjectPolicy]
$creadList :: ReadS [PutProjectPolicy]
readsPrec :: Int -> ReadS PutProjectPolicy
$creadsPrec :: Int -> ReadS PutProjectPolicy
Prelude.Read, Int -> PutProjectPolicy -> ShowS
[PutProjectPolicy] -> ShowS
PutProjectPolicy -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutProjectPolicy] -> ShowS
$cshowList :: [PutProjectPolicy] -> ShowS
show :: PutProjectPolicy -> String
$cshow :: PutProjectPolicy -> String
showsPrec :: Int -> PutProjectPolicy -> ShowS
$cshowsPrec :: Int -> PutProjectPolicy -> ShowS
Prelude.Show, forall x. Rep PutProjectPolicy x -> PutProjectPolicy
forall x. PutProjectPolicy -> Rep PutProjectPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutProjectPolicy x -> PutProjectPolicy
$cfrom :: forall x. PutProjectPolicy -> Rep PutProjectPolicy x
Prelude.Generic)

-- |
-- Create a value of 'PutProjectPolicy' 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:
--
-- 'policyRevisionId', 'putProjectPolicy_policyRevisionId' - The revision ID for the Project Policy. Each time you modify a policy,
-- Amazon Rekognition Custom Labels generates and assigns a new
-- @PolicyRevisionId@ and then deletes the previous version of the policy.
--
-- 'projectArn', 'putProjectPolicy_projectArn' - The Amazon Resource Name (ARN) of the project that the project policy is
-- attached to.
--
-- 'policyName', 'putProjectPolicy_policyName' - A name for the policy.
--
-- 'policyDocument', 'putProjectPolicy_policyDocument' - A resource policy to add to the model. The policy is a JSON structure
-- that contains one or more statements that define the policy. The policy
-- must follow the IAM syntax. For more information about the contents of a
-- JSON policy document, see
-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html IAM JSON policy reference>.
newPutProjectPolicy ::
  -- | 'projectArn'
  Prelude.Text ->
  -- | 'policyName'
  Prelude.Text ->
  -- | 'policyDocument'
  Prelude.Text ->
  PutProjectPolicy
newPutProjectPolicy :: Text -> Text -> Text -> PutProjectPolicy
newPutProjectPolicy
  Text
pProjectArn_
  Text
pPolicyName_
  Text
pPolicyDocument_ =
    PutProjectPolicy'
      { $sel:policyRevisionId:PutProjectPolicy' :: Maybe Text
policyRevisionId =
          forall a. Maybe a
Prelude.Nothing,
        $sel:projectArn:PutProjectPolicy' :: Text
projectArn = Text
pProjectArn_,
        $sel:policyName:PutProjectPolicy' :: Text
policyName = Text
pPolicyName_,
        $sel:policyDocument:PutProjectPolicy' :: Text
policyDocument = Text
pPolicyDocument_
      }

-- | The revision ID for the Project Policy. Each time you modify a policy,
-- Amazon Rekognition Custom Labels generates and assigns a new
-- @PolicyRevisionId@ and then deletes the previous version of the policy.
putProjectPolicy_policyRevisionId :: Lens.Lens' PutProjectPolicy (Prelude.Maybe Prelude.Text)
putProjectPolicy_policyRevisionId :: Lens' PutProjectPolicy (Maybe Text)
putProjectPolicy_policyRevisionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutProjectPolicy' {Maybe Text
policyRevisionId :: Maybe Text
$sel:policyRevisionId:PutProjectPolicy' :: PutProjectPolicy -> Maybe Text
policyRevisionId} -> Maybe Text
policyRevisionId) (\s :: PutProjectPolicy
s@PutProjectPolicy' {} Maybe Text
a -> PutProjectPolicy
s {$sel:policyRevisionId:PutProjectPolicy' :: Maybe Text
policyRevisionId = Maybe Text
a} :: PutProjectPolicy)

-- | The Amazon Resource Name (ARN) of the project that the project policy is
-- attached to.
putProjectPolicy_projectArn :: Lens.Lens' PutProjectPolicy Prelude.Text
putProjectPolicy_projectArn :: Lens' PutProjectPolicy Text
putProjectPolicy_projectArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutProjectPolicy' {Text
projectArn :: Text
$sel:projectArn:PutProjectPolicy' :: PutProjectPolicy -> Text
projectArn} -> Text
projectArn) (\s :: PutProjectPolicy
s@PutProjectPolicy' {} Text
a -> PutProjectPolicy
s {$sel:projectArn:PutProjectPolicy' :: Text
projectArn = Text
a} :: PutProjectPolicy)

-- | A name for the policy.
putProjectPolicy_policyName :: Lens.Lens' PutProjectPolicy Prelude.Text
putProjectPolicy_policyName :: Lens' PutProjectPolicy Text
putProjectPolicy_policyName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutProjectPolicy' {Text
policyName :: Text
$sel:policyName:PutProjectPolicy' :: PutProjectPolicy -> Text
policyName} -> Text
policyName) (\s :: PutProjectPolicy
s@PutProjectPolicy' {} Text
a -> PutProjectPolicy
s {$sel:policyName:PutProjectPolicy' :: Text
policyName = Text
a} :: PutProjectPolicy)

-- | A resource policy to add to the model. The policy is a JSON structure
-- that contains one or more statements that define the policy. The policy
-- must follow the IAM syntax. For more information about the contents of a
-- JSON policy document, see
-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html IAM JSON policy reference>.
putProjectPolicy_policyDocument :: Lens.Lens' PutProjectPolicy Prelude.Text
putProjectPolicy_policyDocument :: Lens' PutProjectPolicy Text
putProjectPolicy_policyDocument = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutProjectPolicy' {Text
policyDocument :: Text
$sel:policyDocument:PutProjectPolicy' :: PutProjectPolicy -> Text
policyDocument} -> Text
policyDocument) (\s :: PutProjectPolicy
s@PutProjectPolicy' {} Text
a -> PutProjectPolicy
s {$sel:policyDocument:PutProjectPolicy' :: Text
policyDocument = Text
a} :: PutProjectPolicy)

instance Core.AWSRequest PutProjectPolicy where
  type
    AWSResponse PutProjectPolicy =
      PutProjectPolicyResponse
  request :: (Service -> Service)
-> PutProjectPolicy -> Request PutProjectPolicy
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 PutProjectPolicy
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutProjectPolicy)))
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 Text -> Int -> PutProjectPolicyResponse
PutProjectPolicyResponse'
            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
"PolicyRevisionId")
            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 PutProjectPolicy where
  hashWithSalt :: Int -> PutProjectPolicy -> Int
hashWithSalt Int
_salt PutProjectPolicy' {Maybe Text
Text
policyDocument :: Text
policyName :: Text
projectArn :: Text
policyRevisionId :: Maybe Text
$sel:policyDocument:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:policyName:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:projectArn:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:policyRevisionId:PutProjectPolicy' :: PutProjectPolicy -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
policyRevisionId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
projectArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
policyName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
policyDocument

instance Prelude.NFData PutProjectPolicy where
  rnf :: PutProjectPolicy -> ()
rnf PutProjectPolicy' {Maybe Text
Text
policyDocument :: Text
policyName :: Text
projectArn :: Text
policyRevisionId :: Maybe Text
$sel:policyDocument:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:policyName:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:projectArn:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:policyRevisionId:PutProjectPolicy' :: PutProjectPolicy -> Maybe Text
..} =
    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 Text
projectArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
policyName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
policyDocument

instance Data.ToHeaders PutProjectPolicy where
  toHeaders :: PutProjectPolicy -> 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
"RekognitionService.PutProjectPolicy" ::
                          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 PutProjectPolicy where
  toJSON :: PutProjectPolicy -> Value
toJSON PutProjectPolicy' {Maybe Text
Text
policyDocument :: Text
policyName :: Text
projectArn :: Text
policyRevisionId :: Maybe Text
$sel:policyDocument:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:policyName:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:projectArn:PutProjectPolicy' :: PutProjectPolicy -> Text
$sel:policyRevisionId:PutProjectPolicy' :: PutProjectPolicy -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"PolicyRevisionId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
policyRevisionId,
            forall a. a -> Maybe a
Prelude.Just (Key
"ProjectArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
projectArn),
            forall a. a -> Maybe a
Prelude.Just (Key
"PolicyName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
policyName),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"PolicyDocument" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
policyDocument)
          ]
      )

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

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

-- | /See:/ 'newPutProjectPolicyResponse' smart constructor.
data PutProjectPolicyResponse = PutProjectPolicyResponse'
  { -- | The ID of the project policy.
    PutProjectPolicyResponse -> Maybe Text
policyRevisionId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    PutProjectPolicyResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (PutProjectPolicyResponse -> PutProjectPolicyResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutProjectPolicyResponse -> PutProjectPolicyResponse -> Bool
$c/= :: PutProjectPolicyResponse -> PutProjectPolicyResponse -> Bool
== :: PutProjectPolicyResponse -> PutProjectPolicyResponse -> Bool
$c== :: PutProjectPolicyResponse -> PutProjectPolicyResponse -> Bool
Prelude.Eq, ReadPrec [PutProjectPolicyResponse]
ReadPrec PutProjectPolicyResponse
Int -> ReadS PutProjectPolicyResponse
ReadS [PutProjectPolicyResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutProjectPolicyResponse]
$creadListPrec :: ReadPrec [PutProjectPolicyResponse]
readPrec :: ReadPrec PutProjectPolicyResponse
$creadPrec :: ReadPrec PutProjectPolicyResponse
readList :: ReadS [PutProjectPolicyResponse]
$creadList :: ReadS [PutProjectPolicyResponse]
readsPrec :: Int -> ReadS PutProjectPolicyResponse
$creadsPrec :: Int -> ReadS PutProjectPolicyResponse
Prelude.Read, Int -> PutProjectPolicyResponse -> ShowS
[PutProjectPolicyResponse] -> ShowS
PutProjectPolicyResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutProjectPolicyResponse] -> ShowS
$cshowList :: [PutProjectPolicyResponse] -> ShowS
show :: PutProjectPolicyResponse -> String
$cshow :: PutProjectPolicyResponse -> String
showsPrec :: Int -> PutProjectPolicyResponse -> ShowS
$cshowsPrec :: Int -> PutProjectPolicyResponse -> ShowS
Prelude.Show, forall x.
Rep PutProjectPolicyResponse x -> PutProjectPolicyResponse
forall x.
PutProjectPolicyResponse -> Rep PutProjectPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutProjectPolicyResponse x -> PutProjectPolicyResponse
$cfrom :: forall x.
PutProjectPolicyResponse -> Rep PutProjectPolicyResponse x
Prelude.Generic)

-- |
-- Create a value of 'PutProjectPolicyResponse' 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:
--
-- 'policyRevisionId', 'putProjectPolicyResponse_policyRevisionId' - The ID of the project policy.
--
-- 'httpStatus', 'putProjectPolicyResponse_httpStatus' - The response's http status code.
newPutProjectPolicyResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  PutProjectPolicyResponse
newPutProjectPolicyResponse :: Int -> PutProjectPolicyResponse
newPutProjectPolicyResponse Int
pHttpStatus_ =
  PutProjectPolicyResponse'
    { $sel:policyRevisionId:PutProjectPolicyResponse' :: Maybe Text
policyRevisionId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:PutProjectPolicyResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The ID of the project policy.
putProjectPolicyResponse_policyRevisionId :: Lens.Lens' PutProjectPolicyResponse (Prelude.Maybe Prelude.Text)
putProjectPolicyResponse_policyRevisionId :: Lens' PutProjectPolicyResponse (Maybe Text)
putProjectPolicyResponse_policyRevisionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutProjectPolicyResponse' {Maybe Text
policyRevisionId :: Maybe Text
$sel:policyRevisionId:PutProjectPolicyResponse' :: PutProjectPolicyResponse -> Maybe Text
policyRevisionId} -> Maybe Text
policyRevisionId) (\s :: PutProjectPolicyResponse
s@PutProjectPolicyResponse' {} Maybe Text
a -> PutProjectPolicyResponse
s {$sel:policyRevisionId:PutProjectPolicyResponse' :: Maybe Text
policyRevisionId = Maybe Text
a} :: PutProjectPolicyResponse)

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

instance Prelude.NFData PutProjectPolicyResponse where
  rnf :: PutProjectPolicyResponse -> ()
rnf PutProjectPolicyResponse' {Int
Maybe Text
httpStatus :: Int
policyRevisionId :: Maybe Text
$sel:httpStatus:PutProjectPolicyResponse' :: PutProjectPolicyResponse -> Int
$sel:policyRevisionId:PutProjectPolicyResponse' :: PutProjectPolicyResponse -> Maybe Text
..} =
    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 Int
httpStatus