module Stratosphere.EKS.AccessEntry.AccessScopeProperty (
        AccessScopeProperty(..), mkAccessScopeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AccessScopeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-accessentry-accessscope.html>
    AccessScopeProperty {AccessScopeProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-accessentry-accessscope.html#cfn-eks-accessentry-accessscope-namespaces>
                         AccessScopeProperty -> Maybe (ValueList Text)
namespaces :: (Prelude.Maybe (ValueList Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-accessentry-accessscope.html#cfn-eks-accessentry-accessscope-type>
                         AccessScopeProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (AccessScopeProperty -> AccessScopeProperty -> Bool
(AccessScopeProperty -> AccessScopeProperty -> Bool)
-> (AccessScopeProperty -> AccessScopeProperty -> Bool)
-> Eq AccessScopeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AccessScopeProperty -> AccessScopeProperty -> Bool
== :: AccessScopeProperty -> AccessScopeProperty -> Bool
$c/= :: AccessScopeProperty -> AccessScopeProperty -> Bool
/= :: AccessScopeProperty -> AccessScopeProperty -> Bool
Prelude.Eq, Int -> AccessScopeProperty -> ShowS
[AccessScopeProperty] -> ShowS
AccessScopeProperty -> String
(Int -> AccessScopeProperty -> ShowS)
-> (AccessScopeProperty -> String)
-> ([AccessScopeProperty] -> ShowS)
-> Show AccessScopeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AccessScopeProperty -> ShowS
showsPrec :: Int -> AccessScopeProperty -> ShowS
$cshow :: AccessScopeProperty -> String
show :: AccessScopeProperty -> String
$cshowList :: [AccessScopeProperty] -> ShowS
showList :: [AccessScopeProperty] -> ShowS
Prelude.Show)
mkAccessScopeProperty :: Value Prelude.Text -> AccessScopeProperty
mkAccessScopeProperty :: Value Text -> AccessScopeProperty
mkAccessScopeProperty Value Text
type'
  = AccessScopeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
       namespaces :: Maybe (ValueList Text)
namespaces = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AccessScopeProperty where
  toResourceProperties :: AccessScopeProperty -> ResourceProperties
toResourceProperties AccessScopeProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AccessScopeProperty -> ()
namespaces :: AccessScopeProperty -> Maybe (ValueList Text)
type' :: AccessScopeProperty -> Value Text
haddock_workaround_ :: ()
namespaces :: Maybe (ValueList Text)
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EKS::AccessEntry.AccessScope",
         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
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ValueList 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
"Namespaces" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
namespaces]))}
instance JSON.ToJSON AccessScopeProperty where
  toJSON :: AccessScopeProperty -> Value
toJSON AccessScopeProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AccessScopeProperty -> ()
namespaces :: AccessScopeProperty -> Maybe (ValueList Text)
type' :: AccessScopeProperty -> Value Text
haddock_workaround_ :: ()
namespaces :: Maybe (ValueList Text)
type' :: 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
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ValueList 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
"Namespaces" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
namespaces])))
instance Property "Namespaces" AccessScopeProperty where
  type PropertyType "Namespaces" AccessScopeProperty = ValueList Prelude.Text
  set :: PropertyType "Namespaces" AccessScopeProperty
-> AccessScopeProperty -> AccessScopeProperty
set PropertyType "Namespaces" AccessScopeProperty
newValue AccessScopeProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AccessScopeProperty -> ()
namespaces :: AccessScopeProperty -> Maybe (ValueList Text)
type' :: AccessScopeProperty -> Value Text
haddock_workaround_ :: ()
namespaces :: Maybe (ValueList Text)
type' :: Value Text
..}
    = AccessScopeProperty {namespaces :: Maybe (ValueList Text)
namespaces = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Namespaces" AccessScopeProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" AccessScopeProperty where
  type PropertyType "Type" AccessScopeProperty = Value Prelude.Text
  set :: PropertyType "Type" AccessScopeProperty
-> AccessScopeProperty -> AccessScopeProperty
set PropertyType "Type" AccessScopeProperty
newValue AccessScopeProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: AccessScopeProperty -> ()
namespaces :: AccessScopeProperty -> Maybe (ValueList Text)
type' :: AccessScopeProperty -> Value Text
haddock_workaround_ :: ()
namespaces :: Maybe (ValueList Text)
type' :: Value Text
..}
    = AccessScopeProperty {type' :: Value Text
type' = PropertyType "Type" AccessScopeProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
namespaces :: Maybe (ValueList Text)
haddock_workaround_ :: ()
namespaces :: Maybe (ValueList Text)
..}