{-# 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.SSOAdmin.CreatePermissionSet
(
CreatePermissionSet (..),
newCreatePermissionSet,
createPermissionSet_relayState,
createPermissionSet_sessionDuration,
createPermissionSet_description,
createPermissionSet_tags,
createPermissionSet_name,
createPermissionSet_instanceArn,
CreatePermissionSetResponse (..),
newCreatePermissionSetResponse,
createPermissionSetResponse_permissionSet,
createPermissionSetResponse_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.SSOAdmin.Types
data CreatePermissionSet = CreatePermissionSet'
{
CreatePermissionSet -> Maybe Text
relayState :: Prelude.Maybe Prelude.Text,
CreatePermissionSet -> Maybe Text
sessionDuration :: Prelude.Maybe Prelude.Text,
CreatePermissionSet -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreatePermissionSet -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreatePermissionSet -> Text
name :: Prelude.Text,
CreatePermissionSet -> Text
instanceArn :: Prelude.Text
}
deriving (CreatePermissionSet -> CreatePermissionSet -> Bool
(CreatePermissionSet -> CreatePermissionSet -> Bool)
-> (CreatePermissionSet -> CreatePermissionSet -> Bool)
-> Eq CreatePermissionSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreatePermissionSet -> CreatePermissionSet -> Bool
$c/= :: CreatePermissionSet -> CreatePermissionSet -> Bool
== :: CreatePermissionSet -> CreatePermissionSet -> Bool
$c== :: CreatePermissionSet -> CreatePermissionSet -> Bool
Prelude.Eq, ReadPrec [CreatePermissionSet]
ReadPrec CreatePermissionSet
Int -> ReadS CreatePermissionSet
ReadS [CreatePermissionSet]
(Int -> ReadS CreatePermissionSet)
-> ReadS [CreatePermissionSet]
-> ReadPrec CreatePermissionSet
-> ReadPrec [CreatePermissionSet]
-> Read CreatePermissionSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreatePermissionSet]
$creadListPrec :: ReadPrec [CreatePermissionSet]
readPrec :: ReadPrec CreatePermissionSet
$creadPrec :: ReadPrec CreatePermissionSet
readList :: ReadS [CreatePermissionSet]
$creadList :: ReadS [CreatePermissionSet]
readsPrec :: Int -> ReadS CreatePermissionSet
$creadsPrec :: Int -> ReadS CreatePermissionSet
Prelude.Read, Int -> CreatePermissionSet -> ShowS
[CreatePermissionSet] -> ShowS
CreatePermissionSet -> String
(Int -> CreatePermissionSet -> ShowS)
-> (CreatePermissionSet -> String)
-> ([CreatePermissionSet] -> ShowS)
-> Show CreatePermissionSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreatePermissionSet] -> ShowS
$cshowList :: [CreatePermissionSet] -> ShowS
show :: CreatePermissionSet -> String
$cshow :: CreatePermissionSet -> String
showsPrec :: Int -> CreatePermissionSet -> ShowS
$cshowsPrec :: Int -> CreatePermissionSet -> ShowS
Prelude.Show, (forall x. CreatePermissionSet -> Rep CreatePermissionSet x)
-> (forall x. Rep CreatePermissionSet x -> CreatePermissionSet)
-> Generic CreatePermissionSet
forall x. Rep CreatePermissionSet x -> CreatePermissionSet
forall x. CreatePermissionSet -> Rep CreatePermissionSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreatePermissionSet x -> CreatePermissionSet
$cfrom :: forall x. CreatePermissionSet -> Rep CreatePermissionSet x
Prelude.Generic)
newCreatePermissionSet ::
Prelude.Text ->
Prelude.Text ->
CreatePermissionSet
newCreatePermissionSet :: Text -> Text -> CreatePermissionSet
newCreatePermissionSet Text
pName_ Text
pInstanceArn_ =
CreatePermissionSet' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Text
-> Text
-> CreatePermissionSet
CreatePermissionSet'
{ $sel:relayState:CreatePermissionSet' :: Maybe Text
relayState = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sessionDuration:CreatePermissionSet' :: Maybe Text
sessionDuration = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreatePermissionSet' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreatePermissionSet' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreatePermissionSet' :: Text
name = Text
pName_,
$sel:instanceArn:CreatePermissionSet' :: Text
instanceArn = Text
pInstanceArn_
}
createPermissionSet_relayState :: Lens.Lens' CreatePermissionSet (Prelude.Maybe Prelude.Text)
createPermissionSet_relayState :: (Maybe Text -> f (Maybe Text))
-> CreatePermissionSet -> f CreatePermissionSet
createPermissionSet_relayState = (CreatePermissionSet -> Maybe Text)
-> (CreatePermissionSet -> Maybe Text -> CreatePermissionSet)
-> Lens
CreatePermissionSet CreatePermissionSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePermissionSet' {Maybe Text
relayState :: Maybe Text
$sel:relayState:CreatePermissionSet' :: CreatePermissionSet -> Maybe Text
relayState} -> Maybe Text
relayState) (\s :: CreatePermissionSet
s@CreatePermissionSet' {} Maybe Text
a -> CreatePermissionSet
s {$sel:relayState:CreatePermissionSet' :: Maybe Text
relayState = Maybe Text
a} :: CreatePermissionSet)
createPermissionSet_sessionDuration :: Lens.Lens' CreatePermissionSet (Prelude.Maybe Prelude.Text)
createPermissionSet_sessionDuration :: (Maybe Text -> f (Maybe Text))
-> CreatePermissionSet -> f CreatePermissionSet
createPermissionSet_sessionDuration = (CreatePermissionSet -> Maybe Text)
-> (CreatePermissionSet -> Maybe Text -> CreatePermissionSet)
-> Lens
CreatePermissionSet CreatePermissionSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePermissionSet' {Maybe Text
sessionDuration :: Maybe Text
$sel:sessionDuration:CreatePermissionSet' :: CreatePermissionSet -> Maybe Text
sessionDuration} -> Maybe Text
sessionDuration) (\s :: CreatePermissionSet
s@CreatePermissionSet' {} Maybe Text
a -> CreatePermissionSet
s {$sel:sessionDuration:CreatePermissionSet' :: Maybe Text
sessionDuration = Maybe Text
a} :: CreatePermissionSet)
createPermissionSet_description :: Lens.Lens' CreatePermissionSet (Prelude.Maybe Prelude.Text)
createPermissionSet_description :: (Maybe Text -> f (Maybe Text))
-> CreatePermissionSet -> f CreatePermissionSet
createPermissionSet_description = (CreatePermissionSet -> Maybe Text)
-> (CreatePermissionSet -> Maybe Text -> CreatePermissionSet)
-> Lens
CreatePermissionSet CreatePermissionSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePermissionSet' {Maybe Text
description :: Maybe Text
$sel:description:CreatePermissionSet' :: CreatePermissionSet -> Maybe Text
description} -> Maybe Text
description) (\s :: CreatePermissionSet
s@CreatePermissionSet' {} Maybe Text
a -> CreatePermissionSet
s {$sel:description:CreatePermissionSet' :: Maybe Text
description = Maybe Text
a} :: CreatePermissionSet)
createPermissionSet_tags :: Lens.Lens' CreatePermissionSet (Prelude.Maybe [Tag])
createPermissionSet_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreatePermissionSet -> f CreatePermissionSet
createPermissionSet_tags = (CreatePermissionSet -> Maybe [Tag])
-> (CreatePermissionSet -> Maybe [Tag] -> CreatePermissionSet)
-> Lens
CreatePermissionSet CreatePermissionSet (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePermissionSet' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreatePermissionSet' :: CreatePermissionSet -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreatePermissionSet
s@CreatePermissionSet' {} Maybe [Tag]
a -> CreatePermissionSet
s {$sel:tags:CreatePermissionSet' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreatePermissionSet) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreatePermissionSet -> f CreatePermissionSet)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreatePermissionSet
-> f CreatePermissionSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createPermissionSet_name :: Lens.Lens' CreatePermissionSet Prelude.Text
createPermissionSet_name :: (Text -> f Text) -> CreatePermissionSet -> f CreatePermissionSet
createPermissionSet_name = (CreatePermissionSet -> Text)
-> (CreatePermissionSet -> Text -> CreatePermissionSet)
-> Lens CreatePermissionSet CreatePermissionSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePermissionSet' {Text
name :: Text
$sel:name:CreatePermissionSet' :: CreatePermissionSet -> Text
name} -> Text
name) (\s :: CreatePermissionSet
s@CreatePermissionSet' {} Text
a -> CreatePermissionSet
s {$sel:name:CreatePermissionSet' :: Text
name = Text
a} :: CreatePermissionSet)
createPermissionSet_instanceArn :: Lens.Lens' CreatePermissionSet Prelude.Text
createPermissionSet_instanceArn :: (Text -> f Text) -> CreatePermissionSet -> f CreatePermissionSet
createPermissionSet_instanceArn = (CreatePermissionSet -> Text)
-> (CreatePermissionSet -> Text -> CreatePermissionSet)
-> Lens CreatePermissionSet CreatePermissionSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePermissionSet' {Text
instanceArn :: Text
$sel:instanceArn:CreatePermissionSet' :: CreatePermissionSet -> Text
instanceArn} -> Text
instanceArn) (\s :: CreatePermissionSet
s@CreatePermissionSet' {} Text
a -> CreatePermissionSet
s {$sel:instanceArn:CreatePermissionSet' :: Text
instanceArn = Text
a} :: CreatePermissionSet)
instance Core.AWSRequest CreatePermissionSet where
type
AWSResponse CreatePermissionSet =
CreatePermissionSetResponse
request :: CreatePermissionSet -> Request CreatePermissionSet
request = Service -> CreatePermissionSet -> Request CreatePermissionSet
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreatePermissionSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePermissionSet)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreatePermissionSet))
-> Logger
-> Service
-> Proxy CreatePermissionSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePermissionSet)))
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 PermissionSet -> Int -> CreatePermissionSetResponse
CreatePermissionSetResponse'
(Maybe PermissionSet -> Int -> CreatePermissionSetResponse)
-> Either String (Maybe PermissionSet)
-> Either String (Int -> CreatePermissionSetResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe PermissionSet)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PermissionSet")
Either String (Int -> CreatePermissionSetResponse)
-> Either String Int -> Either String CreatePermissionSetResponse
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 CreatePermissionSet
instance Prelude.NFData CreatePermissionSet
instance Core.ToHeaders CreatePermissionSet where
toHeaders :: CreatePermissionSet -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreatePermissionSet -> 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
"SWBExternalService.CreatePermissionSet" ::
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 CreatePermissionSet where
toJSON :: CreatePermissionSet -> Value
toJSON CreatePermissionSet' {Maybe [Tag]
Maybe Text
Text
instanceArn :: Text
name :: Text
tags :: Maybe [Tag]
description :: Maybe Text
sessionDuration :: Maybe Text
relayState :: Maybe Text
$sel:instanceArn:CreatePermissionSet' :: CreatePermissionSet -> Text
$sel:name:CreatePermissionSet' :: CreatePermissionSet -> Text
$sel:tags:CreatePermissionSet' :: CreatePermissionSet -> Maybe [Tag]
$sel:description:CreatePermissionSet' :: CreatePermissionSet -> Maybe Text
$sel:sessionDuration:CreatePermissionSet' :: CreatePermissionSet -> Maybe Text
$sel:relayState:CreatePermissionSet' :: CreatePermissionSet -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"RelayState" 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
relayState,
(Text
"SessionDuration" 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
sessionDuration,
(Text
"Description" 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
description,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InstanceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
instanceArn)
]
)
instance Core.ToPath CreatePermissionSet where
toPath :: CreatePermissionSet -> ByteString
toPath = ByteString -> CreatePermissionSet -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreatePermissionSet where
toQuery :: CreatePermissionSet -> QueryString
toQuery = QueryString -> CreatePermissionSet -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreatePermissionSetResponse = CreatePermissionSetResponse'
{
CreatePermissionSetResponse -> Maybe PermissionSet
permissionSet :: Prelude.Maybe PermissionSet,
CreatePermissionSetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreatePermissionSetResponse -> CreatePermissionSetResponse -> Bool
(CreatePermissionSetResponse
-> CreatePermissionSetResponse -> Bool)
-> (CreatePermissionSetResponse
-> CreatePermissionSetResponse -> Bool)
-> Eq CreatePermissionSetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreatePermissionSetResponse -> CreatePermissionSetResponse -> Bool
$c/= :: CreatePermissionSetResponse -> CreatePermissionSetResponse -> Bool
== :: CreatePermissionSetResponse -> CreatePermissionSetResponse -> Bool
$c== :: CreatePermissionSetResponse -> CreatePermissionSetResponse -> Bool
Prelude.Eq, ReadPrec [CreatePermissionSetResponse]
ReadPrec CreatePermissionSetResponse
Int -> ReadS CreatePermissionSetResponse
ReadS [CreatePermissionSetResponse]
(Int -> ReadS CreatePermissionSetResponse)
-> ReadS [CreatePermissionSetResponse]
-> ReadPrec CreatePermissionSetResponse
-> ReadPrec [CreatePermissionSetResponse]
-> Read CreatePermissionSetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreatePermissionSetResponse]
$creadListPrec :: ReadPrec [CreatePermissionSetResponse]
readPrec :: ReadPrec CreatePermissionSetResponse
$creadPrec :: ReadPrec CreatePermissionSetResponse
readList :: ReadS [CreatePermissionSetResponse]
$creadList :: ReadS [CreatePermissionSetResponse]
readsPrec :: Int -> ReadS CreatePermissionSetResponse
$creadsPrec :: Int -> ReadS CreatePermissionSetResponse
Prelude.Read, Int -> CreatePermissionSetResponse -> ShowS
[CreatePermissionSetResponse] -> ShowS
CreatePermissionSetResponse -> String
(Int -> CreatePermissionSetResponse -> ShowS)
-> (CreatePermissionSetResponse -> String)
-> ([CreatePermissionSetResponse] -> ShowS)
-> Show CreatePermissionSetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreatePermissionSetResponse] -> ShowS
$cshowList :: [CreatePermissionSetResponse] -> ShowS
show :: CreatePermissionSetResponse -> String
$cshow :: CreatePermissionSetResponse -> String
showsPrec :: Int -> CreatePermissionSetResponse -> ShowS
$cshowsPrec :: Int -> CreatePermissionSetResponse -> ShowS
Prelude.Show, (forall x.
CreatePermissionSetResponse -> Rep CreatePermissionSetResponse x)
-> (forall x.
Rep CreatePermissionSetResponse x -> CreatePermissionSetResponse)
-> Generic CreatePermissionSetResponse
forall x.
Rep CreatePermissionSetResponse x -> CreatePermissionSetResponse
forall x.
CreatePermissionSetResponse -> Rep CreatePermissionSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreatePermissionSetResponse x -> CreatePermissionSetResponse
$cfrom :: forall x.
CreatePermissionSetResponse -> Rep CreatePermissionSetResponse x
Prelude.Generic)
newCreatePermissionSetResponse ::
Prelude.Int ->
CreatePermissionSetResponse
newCreatePermissionSetResponse :: Int -> CreatePermissionSetResponse
newCreatePermissionSetResponse Int
pHttpStatus_ =
CreatePermissionSetResponse' :: Maybe PermissionSet -> Int -> CreatePermissionSetResponse
CreatePermissionSetResponse'
{ $sel:permissionSet:CreatePermissionSetResponse' :: Maybe PermissionSet
permissionSet =
Maybe PermissionSet
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreatePermissionSetResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createPermissionSetResponse_permissionSet :: Lens.Lens' CreatePermissionSetResponse (Prelude.Maybe PermissionSet)
createPermissionSetResponse_permissionSet :: (Maybe PermissionSet -> f (Maybe PermissionSet))
-> CreatePermissionSetResponse -> f CreatePermissionSetResponse
createPermissionSetResponse_permissionSet = (CreatePermissionSetResponse -> Maybe PermissionSet)
-> (CreatePermissionSetResponse
-> Maybe PermissionSet -> CreatePermissionSetResponse)
-> Lens
CreatePermissionSetResponse
CreatePermissionSetResponse
(Maybe PermissionSet)
(Maybe PermissionSet)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePermissionSetResponse' {Maybe PermissionSet
permissionSet :: Maybe PermissionSet
$sel:permissionSet:CreatePermissionSetResponse' :: CreatePermissionSetResponse -> Maybe PermissionSet
permissionSet} -> Maybe PermissionSet
permissionSet) (\s :: CreatePermissionSetResponse
s@CreatePermissionSetResponse' {} Maybe PermissionSet
a -> CreatePermissionSetResponse
s {$sel:permissionSet:CreatePermissionSetResponse' :: Maybe PermissionSet
permissionSet = Maybe PermissionSet
a} :: CreatePermissionSetResponse)
createPermissionSetResponse_httpStatus :: Lens.Lens' CreatePermissionSetResponse Prelude.Int
createPermissionSetResponse_httpStatus :: (Int -> f Int)
-> CreatePermissionSetResponse -> f CreatePermissionSetResponse
createPermissionSetResponse_httpStatus = (CreatePermissionSetResponse -> Int)
-> (CreatePermissionSetResponse
-> Int -> CreatePermissionSetResponse)
-> Lens
CreatePermissionSetResponse CreatePermissionSetResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePermissionSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreatePermissionSetResponse' :: CreatePermissionSetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreatePermissionSetResponse
s@CreatePermissionSetResponse' {} Int
a -> CreatePermissionSetResponse
s {$sel:httpStatus:CreatePermissionSetResponse' :: Int
httpStatus = Int
a} :: CreatePermissionSetResponse)
instance Prelude.NFData CreatePermissionSetResponse