module Stratosphere.EKS.IdentityProviderConfig.RequiredClaimProperty (
        RequiredClaimProperty(..), mkRequiredClaimProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RequiredClaimProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-identityproviderconfig-requiredclaim.html>
    RequiredClaimProperty {RequiredClaimProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-identityproviderconfig-requiredclaim.html#cfn-eks-identityproviderconfig-requiredclaim-key>
                           RequiredClaimProperty -> Value Text
key :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-identityproviderconfig-requiredclaim.html#cfn-eks-identityproviderconfig-requiredclaim-value>
                           RequiredClaimProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (RequiredClaimProperty -> RequiredClaimProperty -> Bool
(RequiredClaimProperty -> RequiredClaimProperty -> Bool)
-> (RequiredClaimProperty -> RequiredClaimProperty -> Bool)
-> Eq RequiredClaimProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RequiredClaimProperty -> RequiredClaimProperty -> Bool
== :: RequiredClaimProperty -> RequiredClaimProperty -> Bool
$c/= :: RequiredClaimProperty -> RequiredClaimProperty -> Bool
/= :: RequiredClaimProperty -> RequiredClaimProperty -> Bool
Prelude.Eq, Int -> RequiredClaimProperty -> ShowS
[RequiredClaimProperty] -> ShowS
RequiredClaimProperty -> String
(Int -> RequiredClaimProperty -> ShowS)
-> (RequiredClaimProperty -> String)
-> ([RequiredClaimProperty] -> ShowS)
-> Show RequiredClaimProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RequiredClaimProperty -> ShowS
showsPrec :: Int -> RequiredClaimProperty -> ShowS
$cshow :: RequiredClaimProperty -> String
show :: RequiredClaimProperty -> String
$cshowList :: [RequiredClaimProperty] -> ShowS
showList :: [RequiredClaimProperty] -> ShowS
Prelude.Show)
mkRequiredClaimProperty ::
  Value Prelude.Text -> Value Prelude.Text -> RequiredClaimProperty
mkRequiredClaimProperty :: Value Text -> Value Text -> RequiredClaimProperty
mkRequiredClaimProperty Value Text
key Value Text
value
  = RequiredClaimProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, value :: Value Text
value = Value Text
value}
instance ToResourceProperties RequiredClaimProperty where
  toResourceProperties :: RequiredClaimProperty -> ResourceProperties
toResourceProperties RequiredClaimProperty {()
Value Text
haddock_workaround_ :: RequiredClaimProperty -> ()
key :: RequiredClaimProperty -> Value Text
value :: RequiredClaimProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EKS::IdentityProviderConfig.RequiredClaim",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Key" 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
key, Key
"Value" 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
value]}
instance JSON.ToJSON RequiredClaimProperty where
  toJSON :: RequiredClaimProperty -> Value
toJSON RequiredClaimProperty {()
Value Text
haddock_workaround_ :: RequiredClaimProperty -> ()
key :: RequiredClaimProperty -> Value Text
value :: RequiredClaimProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Key" 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
key, Key
"Value" 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
value]
instance Property "Key" RequiredClaimProperty where
  type PropertyType "Key" RequiredClaimProperty = Value Prelude.Text
  set :: PropertyType "Key" RequiredClaimProperty
-> RequiredClaimProperty -> RequiredClaimProperty
set PropertyType "Key" RequiredClaimProperty
newValue RequiredClaimProperty {()
Value Text
haddock_workaround_ :: RequiredClaimProperty -> ()
key :: RequiredClaimProperty -> Value Text
value :: RequiredClaimProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = RequiredClaimProperty {key :: Value Text
key = PropertyType "Key" RequiredClaimProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" RequiredClaimProperty where
  type PropertyType "Value" RequiredClaimProperty = Value Prelude.Text
  set :: PropertyType "Value" RequiredClaimProperty
-> RequiredClaimProperty -> RequiredClaimProperty
set PropertyType "Value" RequiredClaimProperty
newValue RequiredClaimProperty {()
Value Text
haddock_workaround_ :: RequiredClaimProperty -> ()
key :: RequiredClaimProperty -> Value Text
value :: RequiredClaimProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = RequiredClaimProperty {value :: Value Text
value = PropertyType "Value" RequiredClaimProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}