module Stratosphere.EMR.Cluster.KerberosAttributesProperty (
KerberosAttributesProperty(..), mkKerberosAttributesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KerberosAttributesProperty
=
KerberosAttributesProperty {KerberosAttributesProperty -> ()
haddock_workaround_ :: (),
KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinPassword :: (Prelude.Maybe (Value Prelude.Text)),
KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinUser :: (Prelude.Maybe (Value Prelude.Text)),
KerberosAttributesProperty -> Maybe (Value Text)
crossRealmTrustPrincipalPassword :: (Prelude.Maybe (Value Prelude.Text)),
KerberosAttributesProperty -> Value Text
kdcAdminPassword :: (Value Prelude.Text),
KerberosAttributesProperty -> Value Text
realm :: (Value Prelude.Text)}
deriving stock (KerberosAttributesProperty -> KerberosAttributesProperty -> Bool
(KerberosAttributesProperty -> KerberosAttributesProperty -> Bool)
-> (KerberosAttributesProperty
-> KerberosAttributesProperty -> Bool)
-> Eq KerberosAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KerberosAttributesProperty -> KerberosAttributesProperty -> Bool
== :: KerberosAttributesProperty -> KerberosAttributesProperty -> Bool
$c/= :: KerberosAttributesProperty -> KerberosAttributesProperty -> Bool
/= :: KerberosAttributesProperty -> KerberosAttributesProperty -> Bool
Prelude.Eq, Int -> KerberosAttributesProperty -> ShowS
[KerberosAttributesProperty] -> ShowS
KerberosAttributesProperty -> String
(Int -> KerberosAttributesProperty -> ShowS)
-> (KerberosAttributesProperty -> String)
-> ([KerberosAttributesProperty] -> ShowS)
-> Show KerberosAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KerberosAttributesProperty -> ShowS
showsPrec :: Int -> KerberosAttributesProperty -> ShowS
$cshow :: KerberosAttributesProperty -> String
show :: KerberosAttributesProperty -> String
$cshowList :: [KerberosAttributesProperty] -> ShowS
showList :: [KerberosAttributesProperty] -> ShowS
Prelude.Show)
mkKerberosAttributesProperty ::
Value Prelude.Text
-> Value Prelude.Text -> KerberosAttributesProperty
mkKerberosAttributesProperty :: Value Text -> Value Text -> KerberosAttributesProperty
mkKerberosAttributesProperty Value Text
kdcAdminPassword Value Text
realm
= KerberosAttributesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), kdcAdminPassword :: Value Text
kdcAdminPassword = Value Text
kdcAdminPassword,
realm :: Value Text
realm = Value Text
realm, aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinPassword = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
aDDomainJoinUser :: Maybe (Value Text)
aDDomainJoinUser = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
crossRealmTrustPrincipalPassword = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties KerberosAttributesProperty where
toResourceProperties :: KerberosAttributesProperty -> ResourceProperties
toResourceProperties KerberosAttributesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KerberosAttributesProperty -> ()
aDDomainJoinPassword :: KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinUser :: KerberosAttributesProperty -> Maybe (Value Text)
crossRealmTrustPrincipalPassword :: KerberosAttributesProperty -> Maybe (Value Text)
kdcAdminPassword :: KerberosAttributesProperty -> Value Text
realm :: KerberosAttributesProperty -> Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EMR::Cluster.KerberosAttributes",
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
"KdcAdminPassword" 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
kdcAdminPassword,
Key
"Realm" 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
realm]
([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
"ADDomainJoinPassword" (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)
aDDomainJoinPassword,
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
"ADDomainJoinUser" (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)
aDDomainJoinUser,
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
"CrossRealmTrustPrincipalPassword"
(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)
crossRealmTrustPrincipalPassword]))}
instance JSON.ToJSON KerberosAttributesProperty where
toJSON :: KerberosAttributesProperty -> Value
toJSON KerberosAttributesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KerberosAttributesProperty -> ()
aDDomainJoinPassword :: KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinUser :: KerberosAttributesProperty -> Maybe (Value Text)
crossRealmTrustPrincipalPassword :: KerberosAttributesProperty -> Maybe (Value Text)
kdcAdminPassword :: KerberosAttributesProperty -> Value Text
realm :: KerberosAttributesProperty -> Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: 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
"KdcAdminPassword" 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
kdcAdminPassword,
Key
"Realm" 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
realm]
([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
"ADDomainJoinPassword" (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)
aDDomainJoinPassword,
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
"ADDomainJoinUser" (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)
aDDomainJoinUser,
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
"CrossRealmTrustPrincipalPassword"
(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)
crossRealmTrustPrincipalPassword])))
instance Property "ADDomainJoinPassword" KerberosAttributesProperty where
type PropertyType "ADDomainJoinPassword" KerberosAttributesProperty = Value Prelude.Text
set :: PropertyType "ADDomainJoinPassword" KerberosAttributesProperty
-> KerberosAttributesProperty -> KerberosAttributesProperty
set PropertyType "ADDomainJoinPassword" KerberosAttributesProperty
newValue KerberosAttributesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KerberosAttributesProperty -> ()
aDDomainJoinPassword :: KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinUser :: KerberosAttributesProperty -> Maybe (Value Text)
crossRealmTrustPrincipalPassword :: KerberosAttributesProperty -> Maybe (Value Text)
kdcAdminPassword :: KerberosAttributesProperty -> Value Text
realm :: KerberosAttributesProperty -> Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
= KerberosAttributesProperty
{aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinPassword = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ADDomainJoinPassword" KerberosAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
haddock_workaround_ :: ()
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
instance Property "ADDomainJoinUser" KerberosAttributesProperty where
type PropertyType "ADDomainJoinUser" KerberosAttributesProperty = Value Prelude.Text
set :: PropertyType "ADDomainJoinUser" KerberosAttributesProperty
-> KerberosAttributesProperty -> KerberosAttributesProperty
set PropertyType "ADDomainJoinUser" KerberosAttributesProperty
newValue KerberosAttributesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KerberosAttributesProperty -> ()
aDDomainJoinPassword :: KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinUser :: KerberosAttributesProperty -> Maybe (Value Text)
crossRealmTrustPrincipalPassword :: KerberosAttributesProperty -> Maybe (Value Text)
kdcAdminPassword :: KerberosAttributesProperty -> Value Text
realm :: KerberosAttributesProperty -> Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
= KerberosAttributesProperty
{aDDomainJoinUser :: Maybe (Value Text)
aDDomainJoinUser = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ADDomainJoinUser" KerberosAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
instance Property "CrossRealmTrustPrincipalPassword" KerberosAttributesProperty where
type PropertyType "CrossRealmTrustPrincipalPassword" KerberosAttributesProperty = Value Prelude.Text
set :: PropertyType
"CrossRealmTrustPrincipalPassword" KerberosAttributesProperty
-> KerberosAttributesProperty -> KerberosAttributesProperty
set PropertyType
"CrossRealmTrustPrincipalPassword" KerberosAttributesProperty
newValue KerberosAttributesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KerberosAttributesProperty -> ()
aDDomainJoinPassword :: KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinUser :: KerberosAttributesProperty -> Maybe (Value Text)
crossRealmTrustPrincipalPassword :: KerberosAttributesProperty -> Maybe (Value Text)
kdcAdminPassword :: KerberosAttributesProperty -> Value Text
realm :: KerberosAttributesProperty -> Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
= KerberosAttributesProperty
{crossRealmTrustPrincipalPassword :: Maybe (Value Text)
crossRealmTrustPrincipalPassword = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CrossRealmTrustPrincipalPassword" KerberosAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
instance Property "KdcAdminPassword" KerberosAttributesProperty where
type PropertyType "KdcAdminPassword" KerberosAttributesProperty = Value Prelude.Text
set :: PropertyType "KdcAdminPassword" KerberosAttributesProperty
-> KerberosAttributesProperty -> KerberosAttributesProperty
set PropertyType "KdcAdminPassword" KerberosAttributesProperty
newValue KerberosAttributesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KerberosAttributesProperty -> ()
aDDomainJoinPassword :: KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinUser :: KerberosAttributesProperty -> Maybe (Value Text)
crossRealmTrustPrincipalPassword :: KerberosAttributesProperty -> Maybe (Value Text)
kdcAdminPassword :: KerberosAttributesProperty -> Value Text
realm :: KerberosAttributesProperty -> Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
= KerberosAttributesProperty {kdcAdminPassword :: Value Text
kdcAdminPassword = PropertyType "KdcAdminPassword" KerberosAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
realm :: Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
realm :: Value Text
..}
instance Property "Realm" KerberosAttributesProperty where
type PropertyType "Realm" KerberosAttributesProperty = Value Prelude.Text
set :: PropertyType "Realm" KerberosAttributesProperty
-> KerberosAttributesProperty -> KerberosAttributesProperty
set PropertyType "Realm" KerberosAttributesProperty
newValue KerberosAttributesProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: KerberosAttributesProperty -> ()
aDDomainJoinPassword :: KerberosAttributesProperty -> Maybe (Value Text)
aDDomainJoinUser :: KerberosAttributesProperty -> Maybe (Value Text)
crossRealmTrustPrincipalPassword :: KerberosAttributesProperty -> Maybe (Value Text)
kdcAdminPassword :: KerberosAttributesProperty -> Value Text
realm :: KerberosAttributesProperty -> Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
realm :: Value Text
..}
= KerberosAttributesProperty {realm :: Value Text
realm = PropertyType "Realm" KerberosAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
haddock_workaround_ :: ()
aDDomainJoinPassword :: Maybe (Value Text)
aDDomainJoinUser :: Maybe (Value Text)
crossRealmTrustPrincipalPassword :: Maybe (Value Text)
kdcAdminPassword :: Value Text
..}