{-# 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.AccessAnalyzer.GetGeneratedPolicy
(
GetGeneratedPolicy (..),
newGetGeneratedPolicy,
getGeneratedPolicy_includeServiceLevelTemplate,
getGeneratedPolicy_includeResourcePlaceholders,
getGeneratedPolicy_jobId,
GetGeneratedPolicyResponse (..),
newGetGeneratedPolicyResponse,
getGeneratedPolicyResponse_httpStatus,
getGeneratedPolicyResponse_generatedPolicyResult,
getGeneratedPolicyResponse_jobDetails,
)
where
import Amazonka.AccessAnalyzer.Types
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
data GetGeneratedPolicy = GetGeneratedPolicy'
{
GetGeneratedPolicy -> Maybe Bool
includeServiceLevelTemplate :: Prelude.Maybe Prelude.Bool,
GetGeneratedPolicy -> Maybe Bool
includeResourcePlaceholders :: Prelude.Maybe Prelude.Bool,
GetGeneratedPolicy -> Text
jobId :: Prelude.Text
}
deriving (GetGeneratedPolicy -> GetGeneratedPolicy -> Bool
(GetGeneratedPolicy -> GetGeneratedPolicy -> Bool)
-> (GetGeneratedPolicy -> GetGeneratedPolicy -> Bool)
-> Eq GetGeneratedPolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGeneratedPolicy -> GetGeneratedPolicy -> Bool
$c/= :: GetGeneratedPolicy -> GetGeneratedPolicy -> Bool
== :: GetGeneratedPolicy -> GetGeneratedPolicy -> Bool
$c== :: GetGeneratedPolicy -> GetGeneratedPolicy -> Bool
Prelude.Eq, ReadPrec [GetGeneratedPolicy]
ReadPrec GetGeneratedPolicy
Int -> ReadS GetGeneratedPolicy
ReadS [GetGeneratedPolicy]
(Int -> ReadS GetGeneratedPolicy)
-> ReadS [GetGeneratedPolicy]
-> ReadPrec GetGeneratedPolicy
-> ReadPrec [GetGeneratedPolicy]
-> Read GetGeneratedPolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGeneratedPolicy]
$creadListPrec :: ReadPrec [GetGeneratedPolicy]
readPrec :: ReadPrec GetGeneratedPolicy
$creadPrec :: ReadPrec GetGeneratedPolicy
readList :: ReadS [GetGeneratedPolicy]
$creadList :: ReadS [GetGeneratedPolicy]
readsPrec :: Int -> ReadS GetGeneratedPolicy
$creadsPrec :: Int -> ReadS GetGeneratedPolicy
Prelude.Read, Int -> GetGeneratedPolicy -> ShowS
[GetGeneratedPolicy] -> ShowS
GetGeneratedPolicy -> String
(Int -> GetGeneratedPolicy -> ShowS)
-> (GetGeneratedPolicy -> String)
-> ([GetGeneratedPolicy] -> ShowS)
-> Show GetGeneratedPolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGeneratedPolicy] -> ShowS
$cshowList :: [GetGeneratedPolicy] -> ShowS
show :: GetGeneratedPolicy -> String
$cshow :: GetGeneratedPolicy -> String
showsPrec :: Int -> GetGeneratedPolicy -> ShowS
$cshowsPrec :: Int -> GetGeneratedPolicy -> ShowS
Prelude.Show, (forall x. GetGeneratedPolicy -> Rep GetGeneratedPolicy x)
-> (forall x. Rep GetGeneratedPolicy x -> GetGeneratedPolicy)
-> Generic GetGeneratedPolicy
forall x. Rep GetGeneratedPolicy x -> GetGeneratedPolicy
forall x. GetGeneratedPolicy -> Rep GetGeneratedPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetGeneratedPolicy x -> GetGeneratedPolicy
$cfrom :: forall x. GetGeneratedPolicy -> Rep GetGeneratedPolicy x
Prelude.Generic)
newGetGeneratedPolicy ::
Prelude.Text ->
GetGeneratedPolicy
newGetGeneratedPolicy :: Text -> GetGeneratedPolicy
newGetGeneratedPolicy Text
pJobId_ =
GetGeneratedPolicy' :: Maybe Bool -> Maybe Bool -> Text -> GetGeneratedPolicy
GetGeneratedPolicy'
{ $sel:includeServiceLevelTemplate:GetGeneratedPolicy' :: Maybe Bool
includeServiceLevelTemplate =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:includeResourcePlaceholders:GetGeneratedPolicy' :: Maybe Bool
includeResourcePlaceholders = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetGeneratedPolicy' :: Text
jobId = Text
pJobId_
}
getGeneratedPolicy_includeServiceLevelTemplate :: Lens.Lens' GetGeneratedPolicy (Prelude.Maybe Prelude.Bool)
getGeneratedPolicy_includeServiceLevelTemplate :: (Maybe Bool -> f (Maybe Bool))
-> GetGeneratedPolicy -> f GetGeneratedPolicy
getGeneratedPolicy_includeServiceLevelTemplate = (GetGeneratedPolicy -> Maybe Bool)
-> (GetGeneratedPolicy -> Maybe Bool -> GetGeneratedPolicy)
-> Lens
GetGeneratedPolicy GetGeneratedPolicy (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeneratedPolicy' {Maybe Bool
includeServiceLevelTemplate :: Maybe Bool
$sel:includeServiceLevelTemplate:GetGeneratedPolicy' :: GetGeneratedPolicy -> Maybe Bool
includeServiceLevelTemplate} -> Maybe Bool
includeServiceLevelTemplate) (\s :: GetGeneratedPolicy
s@GetGeneratedPolicy' {} Maybe Bool
a -> GetGeneratedPolicy
s {$sel:includeServiceLevelTemplate:GetGeneratedPolicy' :: Maybe Bool
includeServiceLevelTemplate = Maybe Bool
a} :: GetGeneratedPolicy)
getGeneratedPolicy_includeResourcePlaceholders :: Lens.Lens' GetGeneratedPolicy (Prelude.Maybe Prelude.Bool)
getGeneratedPolicy_includeResourcePlaceholders :: (Maybe Bool -> f (Maybe Bool))
-> GetGeneratedPolicy -> f GetGeneratedPolicy
getGeneratedPolicy_includeResourcePlaceholders = (GetGeneratedPolicy -> Maybe Bool)
-> (GetGeneratedPolicy -> Maybe Bool -> GetGeneratedPolicy)
-> Lens
GetGeneratedPolicy GetGeneratedPolicy (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeneratedPolicy' {Maybe Bool
includeResourcePlaceholders :: Maybe Bool
$sel:includeResourcePlaceholders:GetGeneratedPolicy' :: GetGeneratedPolicy -> Maybe Bool
includeResourcePlaceholders} -> Maybe Bool
includeResourcePlaceholders) (\s :: GetGeneratedPolicy
s@GetGeneratedPolicy' {} Maybe Bool
a -> GetGeneratedPolicy
s {$sel:includeResourcePlaceholders:GetGeneratedPolicy' :: Maybe Bool
includeResourcePlaceholders = Maybe Bool
a} :: GetGeneratedPolicy)
getGeneratedPolicy_jobId :: Lens.Lens' GetGeneratedPolicy Prelude.Text
getGeneratedPolicy_jobId :: (Text -> f Text) -> GetGeneratedPolicy -> f GetGeneratedPolicy
getGeneratedPolicy_jobId = (GetGeneratedPolicy -> Text)
-> (GetGeneratedPolicy -> Text -> GetGeneratedPolicy)
-> Lens GetGeneratedPolicy GetGeneratedPolicy Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeneratedPolicy' {Text
jobId :: Text
$sel:jobId:GetGeneratedPolicy' :: GetGeneratedPolicy -> Text
jobId} -> Text
jobId) (\s :: GetGeneratedPolicy
s@GetGeneratedPolicy' {} Text
a -> GetGeneratedPolicy
s {$sel:jobId:GetGeneratedPolicy' :: Text
jobId = Text
a} :: GetGeneratedPolicy)
instance Core.AWSRequest GetGeneratedPolicy where
type
AWSResponse GetGeneratedPolicy =
GetGeneratedPolicyResponse
request :: GetGeneratedPolicy -> Request GetGeneratedPolicy
request = Service -> GetGeneratedPolicy -> Request GetGeneratedPolicy
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetGeneratedPolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetGeneratedPolicy)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetGeneratedPolicy))
-> Logger
-> Service
-> Proxy GetGeneratedPolicy
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetGeneratedPolicy)))
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 ->
Int
-> GeneratedPolicyResult
-> JobDetails
-> GetGeneratedPolicyResponse
GetGeneratedPolicyResponse'
(Int
-> GeneratedPolicyResult
-> JobDetails
-> GetGeneratedPolicyResponse)
-> Either String Int
-> Either
String
(GeneratedPolicyResult -> JobDetails -> GetGeneratedPolicyResponse)
forall (f :: * -> *) a b. Functor 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))
Either
String
(GeneratedPolicyResult -> JobDetails -> GetGeneratedPolicyResponse)
-> Either String GeneratedPolicyResult
-> Either String (JobDetails -> GetGeneratedPolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String GeneratedPolicyResult
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"generatedPolicyResult")
Either String (JobDetails -> GetGeneratedPolicyResponse)
-> Either String JobDetails
-> Either String GetGeneratedPolicyResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String JobDetails
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"jobDetails")
)
instance Prelude.Hashable GetGeneratedPolicy
instance Prelude.NFData GetGeneratedPolicy
instance Core.ToHeaders GetGeneratedPolicy where
toHeaders :: GetGeneratedPolicy -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetGeneratedPolicy -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath GetGeneratedPolicy where
toPath :: GetGeneratedPolicy -> ByteString
toPath GetGeneratedPolicy' {Maybe Bool
Text
jobId :: Text
includeResourcePlaceholders :: Maybe Bool
includeServiceLevelTemplate :: Maybe Bool
$sel:jobId:GetGeneratedPolicy' :: GetGeneratedPolicy -> Text
$sel:includeResourcePlaceholders:GetGeneratedPolicy' :: GetGeneratedPolicy -> Maybe Bool
$sel:includeServiceLevelTemplate:GetGeneratedPolicy' :: GetGeneratedPolicy -> Maybe Bool
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/policy/generation/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
jobId]
instance Core.ToQuery GetGeneratedPolicy where
toQuery :: GetGeneratedPolicy -> QueryString
toQuery GetGeneratedPolicy' {Maybe Bool
Text
jobId :: Text
includeResourcePlaceholders :: Maybe Bool
includeServiceLevelTemplate :: Maybe Bool
$sel:jobId:GetGeneratedPolicy' :: GetGeneratedPolicy -> Text
$sel:includeResourcePlaceholders:GetGeneratedPolicy' :: GetGeneratedPolicy -> Maybe Bool
$sel:includeServiceLevelTemplate:GetGeneratedPolicy' :: GetGeneratedPolicy -> Maybe Bool
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"includeServiceLevelTemplate"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
includeServiceLevelTemplate,
ByteString
"includeResourcePlaceholders"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
includeResourcePlaceholders
]
data GetGeneratedPolicyResponse = GetGeneratedPolicyResponse'
{
GetGeneratedPolicyResponse -> Int
httpStatus :: Prelude.Int,
GetGeneratedPolicyResponse -> GeneratedPolicyResult
generatedPolicyResult :: GeneratedPolicyResult,
GetGeneratedPolicyResponse -> JobDetails
jobDetails :: JobDetails
}
deriving (GetGeneratedPolicyResponse -> GetGeneratedPolicyResponse -> Bool
(GetGeneratedPolicyResponse -> GetGeneratedPolicyResponse -> Bool)
-> (GetGeneratedPolicyResponse
-> GetGeneratedPolicyResponse -> Bool)
-> Eq GetGeneratedPolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGeneratedPolicyResponse -> GetGeneratedPolicyResponse -> Bool
$c/= :: GetGeneratedPolicyResponse -> GetGeneratedPolicyResponse -> Bool
== :: GetGeneratedPolicyResponse -> GetGeneratedPolicyResponse -> Bool
$c== :: GetGeneratedPolicyResponse -> GetGeneratedPolicyResponse -> Bool
Prelude.Eq, ReadPrec [GetGeneratedPolicyResponse]
ReadPrec GetGeneratedPolicyResponse
Int -> ReadS GetGeneratedPolicyResponse
ReadS [GetGeneratedPolicyResponse]
(Int -> ReadS GetGeneratedPolicyResponse)
-> ReadS [GetGeneratedPolicyResponse]
-> ReadPrec GetGeneratedPolicyResponse
-> ReadPrec [GetGeneratedPolicyResponse]
-> Read GetGeneratedPolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGeneratedPolicyResponse]
$creadListPrec :: ReadPrec [GetGeneratedPolicyResponse]
readPrec :: ReadPrec GetGeneratedPolicyResponse
$creadPrec :: ReadPrec GetGeneratedPolicyResponse
readList :: ReadS [GetGeneratedPolicyResponse]
$creadList :: ReadS [GetGeneratedPolicyResponse]
readsPrec :: Int -> ReadS GetGeneratedPolicyResponse
$creadsPrec :: Int -> ReadS GetGeneratedPolicyResponse
Prelude.Read, Int -> GetGeneratedPolicyResponse -> ShowS
[GetGeneratedPolicyResponse] -> ShowS
GetGeneratedPolicyResponse -> String
(Int -> GetGeneratedPolicyResponse -> ShowS)
-> (GetGeneratedPolicyResponse -> String)
-> ([GetGeneratedPolicyResponse] -> ShowS)
-> Show GetGeneratedPolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGeneratedPolicyResponse] -> ShowS
$cshowList :: [GetGeneratedPolicyResponse] -> ShowS
show :: GetGeneratedPolicyResponse -> String
$cshow :: GetGeneratedPolicyResponse -> String
showsPrec :: Int -> GetGeneratedPolicyResponse -> ShowS
$cshowsPrec :: Int -> GetGeneratedPolicyResponse -> ShowS
Prelude.Show, (forall x.
GetGeneratedPolicyResponse -> Rep GetGeneratedPolicyResponse x)
-> (forall x.
Rep GetGeneratedPolicyResponse x -> GetGeneratedPolicyResponse)
-> Generic GetGeneratedPolicyResponse
forall x.
Rep GetGeneratedPolicyResponse x -> GetGeneratedPolicyResponse
forall x.
GetGeneratedPolicyResponse -> Rep GetGeneratedPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetGeneratedPolicyResponse x -> GetGeneratedPolicyResponse
$cfrom :: forall x.
GetGeneratedPolicyResponse -> Rep GetGeneratedPolicyResponse x
Prelude.Generic)
newGetGeneratedPolicyResponse ::
Prelude.Int ->
GeneratedPolicyResult ->
JobDetails ->
GetGeneratedPolicyResponse
newGetGeneratedPolicyResponse :: Int
-> GeneratedPolicyResult
-> JobDetails
-> GetGeneratedPolicyResponse
newGetGeneratedPolicyResponse
Int
pHttpStatus_
GeneratedPolicyResult
pGeneratedPolicyResult_
JobDetails
pJobDetails_ =
GetGeneratedPolicyResponse' :: Int
-> GeneratedPolicyResult
-> JobDetails
-> GetGeneratedPolicyResponse
GetGeneratedPolicyResponse'
{ $sel:httpStatus:GetGeneratedPolicyResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:generatedPolicyResult:GetGeneratedPolicyResponse' :: GeneratedPolicyResult
generatedPolicyResult = GeneratedPolicyResult
pGeneratedPolicyResult_,
$sel:jobDetails:GetGeneratedPolicyResponse' :: JobDetails
jobDetails = JobDetails
pJobDetails_
}
getGeneratedPolicyResponse_httpStatus :: Lens.Lens' GetGeneratedPolicyResponse Prelude.Int
getGeneratedPolicyResponse_httpStatus :: (Int -> f Int)
-> GetGeneratedPolicyResponse -> f GetGeneratedPolicyResponse
getGeneratedPolicyResponse_httpStatus = (GetGeneratedPolicyResponse -> Int)
-> (GetGeneratedPolicyResponse
-> Int -> GetGeneratedPolicyResponse)
-> Lens
GetGeneratedPolicyResponse GetGeneratedPolicyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeneratedPolicyResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetGeneratedPolicyResponse' :: GetGeneratedPolicyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetGeneratedPolicyResponse
s@GetGeneratedPolicyResponse' {} Int
a -> GetGeneratedPolicyResponse
s {$sel:httpStatus:GetGeneratedPolicyResponse' :: Int
httpStatus = Int
a} :: GetGeneratedPolicyResponse)
getGeneratedPolicyResponse_generatedPolicyResult :: Lens.Lens' GetGeneratedPolicyResponse GeneratedPolicyResult
getGeneratedPolicyResponse_generatedPolicyResult :: (GeneratedPolicyResult -> f GeneratedPolicyResult)
-> GetGeneratedPolicyResponse -> f GetGeneratedPolicyResponse
getGeneratedPolicyResponse_generatedPolicyResult = (GetGeneratedPolicyResponse -> GeneratedPolicyResult)
-> (GetGeneratedPolicyResponse
-> GeneratedPolicyResult -> GetGeneratedPolicyResponse)
-> Lens
GetGeneratedPolicyResponse
GetGeneratedPolicyResponse
GeneratedPolicyResult
GeneratedPolicyResult
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeneratedPolicyResponse' {GeneratedPolicyResult
generatedPolicyResult :: GeneratedPolicyResult
$sel:generatedPolicyResult:GetGeneratedPolicyResponse' :: GetGeneratedPolicyResponse -> GeneratedPolicyResult
generatedPolicyResult} -> GeneratedPolicyResult
generatedPolicyResult) (\s :: GetGeneratedPolicyResponse
s@GetGeneratedPolicyResponse' {} GeneratedPolicyResult
a -> GetGeneratedPolicyResponse
s {$sel:generatedPolicyResult:GetGeneratedPolicyResponse' :: GeneratedPolicyResult
generatedPolicyResult = GeneratedPolicyResult
a} :: GetGeneratedPolicyResponse)
getGeneratedPolicyResponse_jobDetails :: Lens.Lens' GetGeneratedPolicyResponse JobDetails
getGeneratedPolicyResponse_jobDetails :: (JobDetails -> f JobDetails)
-> GetGeneratedPolicyResponse -> f GetGeneratedPolicyResponse
getGeneratedPolicyResponse_jobDetails = (GetGeneratedPolicyResponse -> JobDetails)
-> (GetGeneratedPolicyResponse
-> JobDetails -> GetGeneratedPolicyResponse)
-> Lens
GetGeneratedPolicyResponse
GetGeneratedPolicyResponse
JobDetails
JobDetails
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGeneratedPolicyResponse' {JobDetails
jobDetails :: JobDetails
$sel:jobDetails:GetGeneratedPolicyResponse' :: GetGeneratedPolicyResponse -> JobDetails
jobDetails} -> JobDetails
jobDetails) (\s :: GetGeneratedPolicyResponse
s@GetGeneratedPolicyResponse' {} JobDetails
a -> GetGeneratedPolicyResponse
s {$sel:jobDetails:GetGeneratedPolicyResponse' :: JobDetails
jobDetails = JobDetails
a} :: GetGeneratedPolicyResponse)
instance Prelude.NFData GetGeneratedPolicyResponse