module Stratosphere.OpsWorks.UserProfile (
UserProfile(..), mkUserProfile
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UserProfile
=
UserProfile {UserProfile -> ()
haddock_workaround_ :: (),
UserProfile -> Maybe (Value Bool)
allowSelfManagement :: (Prelude.Maybe (Value Prelude.Bool)),
UserProfile -> Value Text
iamUserArn :: (Value Prelude.Text),
UserProfile -> Maybe (Value Text)
sshPublicKey :: (Prelude.Maybe (Value Prelude.Text)),
UserProfile -> Maybe (Value Text)
sshUsername :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (UserProfile -> UserProfile -> Bool
(UserProfile -> UserProfile -> Bool)
-> (UserProfile -> UserProfile -> Bool) -> Eq UserProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UserProfile -> UserProfile -> Bool
== :: UserProfile -> UserProfile -> Bool
$c/= :: UserProfile -> UserProfile -> Bool
/= :: UserProfile -> UserProfile -> Bool
Prelude.Eq, Int -> UserProfile -> ShowS
[UserProfile] -> ShowS
UserProfile -> String
(Int -> UserProfile -> ShowS)
-> (UserProfile -> String)
-> ([UserProfile] -> ShowS)
-> Show UserProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UserProfile -> ShowS
showsPrec :: Int -> UserProfile -> ShowS
$cshow :: UserProfile -> String
show :: UserProfile -> String
$cshowList :: [UserProfile] -> ShowS
showList :: [UserProfile] -> ShowS
Prelude.Show)
mkUserProfile :: Value Prelude.Text -> UserProfile
mkUserProfile :: Value Text -> UserProfile
mkUserProfile Value Text
iamUserArn
= UserProfile
{haddock_workaround_ :: ()
haddock_workaround_ = (), iamUserArn :: Value Text
iamUserArn = Value Text
iamUserArn,
allowSelfManagement :: Maybe (Value Bool)
allowSelfManagement = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
sshPublicKey :: Maybe (Value Text)
sshPublicKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, sshUsername :: Maybe (Value Text)
sshUsername = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UserProfile where
toResourceProperties :: UserProfile -> ResourceProperties
toResourceProperties UserProfile {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserProfile -> ()
allowSelfManagement :: UserProfile -> Maybe (Value Bool)
iamUserArn :: UserProfile -> Value Text
sshPublicKey :: UserProfile -> Maybe (Value Text)
sshUsername :: UserProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::OpsWorks::UserProfile",
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
"IamUserArn" 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
iamUserArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AllowSelfManagement" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
allowSelfManagement,
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
"SshPublicKey" (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)
sshPublicKey,
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
"SshUsername" (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)
sshUsername]))}
instance JSON.ToJSON UserProfile where
toJSON :: UserProfile -> Value
toJSON UserProfile {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserProfile -> ()
allowSelfManagement :: UserProfile -> Maybe (Value Bool)
iamUserArn :: UserProfile -> Value Text
sshPublicKey :: UserProfile -> Maybe (Value Text)
sshUsername :: UserProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (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
"IamUserArn" 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
iamUserArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AllowSelfManagement" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
allowSelfManagement,
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
"SshPublicKey" (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)
sshPublicKey,
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
"SshUsername" (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)
sshUsername])))
instance Property "AllowSelfManagement" UserProfile where
type PropertyType "AllowSelfManagement" UserProfile = Value Prelude.Bool
set :: PropertyType "AllowSelfManagement" UserProfile
-> UserProfile -> UserProfile
set PropertyType "AllowSelfManagement" UserProfile
newValue UserProfile {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserProfile -> ()
allowSelfManagement :: UserProfile -> Maybe (Value Bool)
iamUserArn :: UserProfile -> Value Text
sshPublicKey :: UserProfile -> Maybe (Value Text)
sshUsername :: UserProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
..}
= UserProfile {allowSelfManagement :: Maybe (Value Bool)
allowSelfManagement = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AllowSelfManagement" UserProfile
Value Bool
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
haddock_workaround_ :: ()
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
..}
instance Property "IamUserArn" UserProfile where
type PropertyType "IamUserArn" UserProfile = Value Prelude.Text
set :: PropertyType "IamUserArn" UserProfile -> UserProfile -> UserProfile
set PropertyType "IamUserArn" UserProfile
newValue UserProfile {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserProfile -> ()
allowSelfManagement :: UserProfile -> Maybe (Value Bool)
iamUserArn :: UserProfile -> Value Text
sshPublicKey :: UserProfile -> Maybe (Value Text)
sshUsername :: UserProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
..}
= UserProfile {iamUserArn :: Value Text
iamUserArn = PropertyType "IamUserArn" UserProfile
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
..}
instance Property "SshPublicKey" UserProfile where
type PropertyType "SshPublicKey" UserProfile = Value Prelude.Text
set :: PropertyType "SshPublicKey" UserProfile
-> UserProfile -> UserProfile
set PropertyType "SshPublicKey" UserProfile
newValue UserProfile {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserProfile -> ()
allowSelfManagement :: UserProfile -> Maybe (Value Bool)
iamUserArn :: UserProfile -> Value Text
sshPublicKey :: UserProfile -> Maybe (Value Text)
sshUsername :: UserProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
..}
= UserProfile {sshPublicKey :: Maybe (Value Text)
sshPublicKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SshPublicKey" UserProfile
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshUsername :: Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshUsername :: Maybe (Value Text)
..}
instance Property "SshUsername" UserProfile where
type PropertyType "SshUsername" UserProfile = Value Prelude.Text
set :: PropertyType "SshUsername" UserProfile
-> UserProfile -> UserProfile
set PropertyType "SshUsername" UserProfile
newValue UserProfile {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserProfile -> ()
allowSelfManagement :: UserProfile -> Maybe (Value Bool)
iamUserArn :: UserProfile -> Value Text
sshPublicKey :: UserProfile -> Maybe (Value Text)
sshUsername :: UserProfile -> Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
sshUsername :: Maybe (Value Text)
..}
= UserProfile {sshUsername :: Maybe (Value Text)
sshUsername = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SshUsername" UserProfile
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
haddock_workaround_ :: ()
allowSelfManagement :: Maybe (Value Bool)
iamUserArn :: Value Text
sshPublicKey :: Maybe (Value Text)
..}