module Stratosphere.Batch.JobDefinition.EksPersistentVolumeClaimProperty (
        EksPersistentVolumeClaimProperty(..),
        mkEksPersistentVolumeClaimProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EksPersistentVolumeClaimProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekspersistentvolumeclaim.html>
    EksPersistentVolumeClaimProperty {EksPersistentVolumeClaimProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekspersistentvolumeclaim.html#cfn-batch-jobdefinition-ekspersistentvolumeclaim-claimname>
                                      EksPersistentVolumeClaimProperty -> Value Text
claimName :: (Value Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekspersistentvolumeclaim.html#cfn-batch-jobdefinition-ekspersistentvolumeclaim-readonly>
                                      EksPersistentVolumeClaimProperty -> Maybe (Value Bool)
readOnly :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty -> Bool
(EksPersistentVolumeClaimProperty
 -> EksPersistentVolumeClaimProperty -> Bool)
-> (EksPersistentVolumeClaimProperty
    -> EksPersistentVolumeClaimProperty -> Bool)
-> Eq EksPersistentVolumeClaimProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty -> Bool
== :: EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty -> Bool
$c/= :: EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty -> Bool
/= :: EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty -> Bool
Prelude.Eq, Int -> EksPersistentVolumeClaimProperty -> ShowS
[EksPersistentVolumeClaimProperty] -> ShowS
EksPersistentVolumeClaimProperty -> String
(Int -> EksPersistentVolumeClaimProperty -> ShowS)
-> (EksPersistentVolumeClaimProperty -> String)
-> ([EksPersistentVolumeClaimProperty] -> ShowS)
-> Show EksPersistentVolumeClaimProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EksPersistentVolumeClaimProperty -> ShowS
showsPrec :: Int -> EksPersistentVolumeClaimProperty -> ShowS
$cshow :: EksPersistentVolumeClaimProperty -> String
show :: EksPersistentVolumeClaimProperty -> String
$cshowList :: [EksPersistentVolumeClaimProperty] -> ShowS
showList :: [EksPersistentVolumeClaimProperty] -> ShowS
Prelude.Show)
mkEksPersistentVolumeClaimProperty ::
  Value Prelude.Text -> EksPersistentVolumeClaimProperty
mkEksPersistentVolumeClaimProperty :: Value Text -> EksPersistentVolumeClaimProperty
mkEksPersistentVolumeClaimProperty Value Text
claimName
  = EksPersistentVolumeClaimProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), claimName :: Value Text
claimName = Value Text
claimName,
       readOnly :: Maybe (Value Bool)
readOnly = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EksPersistentVolumeClaimProperty where
  toResourceProperties :: EksPersistentVolumeClaimProperty -> ResourceProperties
toResourceProperties EksPersistentVolumeClaimProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: EksPersistentVolumeClaimProperty -> ()
claimName :: EksPersistentVolumeClaimProperty -> Value Text
readOnly :: EksPersistentVolumeClaimProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
claimName :: Value Text
readOnly :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Batch::JobDefinition.EksPersistentVolumeClaim",
         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
"ClaimName" 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
claimName]
                           ([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
"ReadOnly" (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)
readOnly]))}
instance JSON.ToJSON EksPersistentVolumeClaimProperty where
  toJSON :: EksPersistentVolumeClaimProperty -> Value
toJSON EksPersistentVolumeClaimProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: EksPersistentVolumeClaimProperty -> ()
claimName :: EksPersistentVolumeClaimProperty -> Value Text
readOnly :: EksPersistentVolumeClaimProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
claimName :: Value Text
readOnly :: Maybe (Value Bool)
..}
    = [(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
"ClaimName" 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
claimName]
              ([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
"ReadOnly" (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)
readOnly])))
instance Property "ClaimName" EksPersistentVolumeClaimProperty where
  type PropertyType "ClaimName" EksPersistentVolumeClaimProperty = Value Prelude.Text
  set :: PropertyType "ClaimName" EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty
set PropertyType "ClaimName" EksPersistentVolumeClaimProperty
newValue EksPersistentVolumeClaimProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: EksPersistentVolumeClaimProperty -> ()
claimName :: EksPersistentVolumeClaimProperty -> Value Text
readOnly :: EksPersistentVolumeClaimProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
claimName :: Value Text
readOnly :: Maybe (Value Bool)
..}
    = EksPersistentVolumeClaimProperty {claimName :: Value Text
claimName = PropertyType "ClaimName" EksPersistentVolumeClaimProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
readOnly :: Maybe (Value Bool)
haddock_workaround_ :: ()
readOnly :: Maybe (Value Bool)
..}
instance Property "ReadOnly" EksPersistentVolumeClaimProperty where
  type PropertyType "ReadOnly" EksPersistentVolumeClaimProperty = Value Prelude.Bool
  set :: PropertyType "ReadOnly" EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty
-> EksPersistentVolumeClaimProperty
set PropertyType "ReadOnly" EksPersistentVolumeClaimProperty
newValue EksPersistentVolumeClaimProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: EksPersistentVolumeClaimProperty -> ()
claimName :: EksPersistentVolumeClaimProperty -> Value Text
readOnly :: EksPersistentVolumeClaimProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
claimName :: Value Text
readOnly :: Maybe (Value Bool)
..}
    = EksPersistentVolumeClaimProperty
        {readOnly :: Maybe (Value Bool)
readOnly = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReadOnly" EksPersistentVolumeClaimProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
claimName :: Value Text
haddock_workaround_ :: ()
claimName :: Value Text
..}