module Stratosphere.Signer.ProfilePermission (
ProfilePermission(..), mkProfilePermission
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProfilePermission
=
ProfilePermission {ProfilePermission -> ()
haddock_workaround_ :: (),
ProfilePermission -> Value Text
action :: (Value Prelude.Text),
ProfilePermission -> Value Text
principal :: (Value Prelude.Text),
ProfilePermission -> Value Text
profileName :: (Value Prelude.Text),
ProfilePermission -> Maybe (Value Text)
profileVersion :: (Prelude.Maybe (Value Prelude.Text)),
ProfilePermission -> Value Text
statementId :: (Value Prelude.Text)}
deriving stock (ProfilePermission -> ProfilePermission -> Bool
(ProfilePermission -> ProfilePermission -> Bool)
-> (ProfilePermission -> ProfilePermission -> Bool)
-> Eq ProfilePermission
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProfilePermission -> ProfilePermission -> Bool
== :: ProfilePermission -> ProfilePermission -> Bool
$c/= :: ProfilePermission -> ProfilePermission -> Bool
/= :: ProfilePermission -> ProfilePermission -> Bool
Prelude.Eq, Int -> ProfilePermission -> ShowS
[ProfilePermission] -> ShowS
ProfilePermission -> String
(Int -> ProfilePermission -> ShowS)
-> (ProfilePermission -> String)
-> ([ProfilePermission] -> ShowS)
-> Show ProfilePermission
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProfilePermission -> ShowS
showsPrec :: Int -> ProfilePermission -> ShowS
$cshow :: ProfilePermission -> String
show :: ProfilePermission -> String
$cshowList :: [ProfilePermission] -> ShowS
showList :: [ProfilePermission] -> ShowS
Prelude.Show)
mkProfilePermission ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> ProfilePermission
mkProfilePermission :: Value Text
-> Value Text -> Value Text -> Value Text -> ProfilePermission
mkProfilePermission Value Text
action Value Text
principal Value Text
profileName Value Text
statementId
= ProfilePermission
{haddock_workaround_ :: ()
haddock_workaround_ = (), action :: Value Text
action = Value Text
action, principal :: Value Text
principal = Value Text
principal,
profileName :: Value Text
profileName = Value Text
profileName, statementId :: Value Text
statementId = Value Text
statementId,
profileVersion :: Maybe (Value Text)
profileVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProfilePermission where
toResourceProperties :: ProfilePermission -> ResourceProperties
toResourceProperties ProfilePermission {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfilePermission -> ()
action :: ProfilePermission -> Value Text
principal :: ProfilePermission -> Value Text
profileName :: ProfilePermission -> Value Text
profileVersion :: ProfilePermission -> Maybe (Value Text)
statementId :: ProfilePermission -> Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Signer::ProfilePermission",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Action" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
action, Key
"Principal" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
principal,
Key
"ProfileName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
profileName,
Key
"StatementId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
statementId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ProfileVersion" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
profileVersion]))}
instance JSON.ToJSON ProfilePermission where
toJSON :: ProfilePermission -> Value
toJSON ProfilePermission {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfilePermission -> ()
action :: ProfilePermission -> Value Text
principal :: ProfilePermission -> Value Text
profileName :: ProfilePermission -> Value Text
profileVersion :: ProfilePermission -> Maybe (Value Text)
statementId :: ProfilePermission -> Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Action" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
action, Key
"Principal" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
principal,
Key
"ProfileName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
profileName,
Key
"StatementId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
statementId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ProfileVersion" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
profileVersion])))
instance Property "Action" ProfilePermission where
type PropertyType "Action" ProfilePermission = Value Prelude.Text
set :: PropertyType "Action" ProfilePermission
-> ProfilePermission -> ProfilePermission
set PropertyType "Action" ProfilePermission
newValue ProfilePermission {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfilePermission -> ()
action :: ProfilePermission -> Value Text
principal :: ProfilePermission -> Value Text
profileName :: ProfilePermission -> Value Text
profileVersion :: ProfilePermission -> Maybe (Value Text)
statementId :: ProfilePermission -> Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
= ProfilePermission {action :: Value Text
action = PropertyType "Action" ProfilePermission
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
haddock_workaround_ :: ()
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
instance Property "Principal" ProfilePermission where
type PropertyType "Principal" ProfilePermission = Value Prelude.Text
set :: PropertyType "Principal" ProfilePermission
-> ProfilePermission -> ProfilePermission
set PropertyType "Principal" ProfilePermission
newValue ProfilePermission {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfilePermission -> ()
action :: ProfilePermission -> Value Text
principal :: ProfilePermission -> Value Text
profileName :: ProfilePermission -> Value Text
profileVersion :: ProfilePermission -> Maybe (Value Text)
statementId :: ProfilePermission -> Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
= ProfilePermission {principal :: Value Text
principal = PropertyType "Principal" ProfilePermission
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
action :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
haddock_workaround_ :: ()
action :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
instance Property "ProfileName" ProfilePermission where
type PropertyType "ProfileName" ProfilePermission = Value Prelude.Text
set :: PropertyType "ProfileName" ProfilePermission
-> ProfilePermission -> ProfilePermission
set PropertyType "ProfileName" ProfilePermission
newValue ProfilePermission {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfilePermission -> ()
action :: ProfilePermission -> Value Text
principal :: ProfilePermission -> Value Text
profileName :: ProfilePermission -> Value Text
profileVersion :: ProfilePermission -> Maybe (Value Text)
statementId :: ProfilePermission -> Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
= ProfilePermission {profileName :: Value Text
profileName = PropertyType "ProfileName" ProfilePermission
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
instance Property "ProfileVersion" ProfilePermission where
type PropertyType "ProfileVersion" ProfilePermission = Value Prelude.Text
set :: PropertyType "ProfileVersion" ProfilePermission
-> ProfilePermission -> ProfilePermission
set PropertyType "ProfileVersion" ProfilePermission
newValue ProfilePermission {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfilePermission -> ()
action :: ProfilePermission -> Value Text
principal :: ProfilePermission -> Value Text
profileName :: ProfilePermission -> Value Text
profileVersion :: ProfilePermission -> Maybe (Value Text)
statementId :: ProfilePermission -> Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
= ProfilePermission {profileVersion :: Maybe (Value Text)
profileVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ProfileVersion" ProfilePermission
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
statementId :: Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
statementId :: Value Text
..}
instance Property "StatementId" ProfilePermission where
type PropertyType "StatementId" ProfilePermission = Value Prelude.Text
set :: PropertyType "StatementId" ProfilePermission
-> ProfilePermission -> ProfilePermission
set PropertyType "StatementId" ProfilePermission
newValue ProfilePermission {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProfilePermission -> ()
action :: ProfilePermission -> Value Text
principal :: ProfilePermission -> Value Text
profileName :: ProfilePermission -> Value Text
profileVersion :: ProfilePermission -> Maybe (Value Text)
statementId :: ProfilePermission -> Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
statementId :: Value Text
..}
= ProfilePermission {statementId :: Value Text
statementId = PropertyType "StatementId" ProfilePermission
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
action :: Value Text
principal :: Value Text
profileName :: Value Text
profileVersion :: Maybe (Value Text)
..}