module Stratosphere.ECS.Service.ServiceVolumeConfigurationProperty (
        module Exports, ServiceVolumeConfigurationProperty(..),
        mkServiceVolumeConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ECS.Service.ServiceManagedEBSVolumeConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceVolumeConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-servicevolumeconfiguration.html>
    ServiceVolumeConfigurationProperty {ServiceVolumeConfigurationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-servicevolumeconfiguration.html#cfn-ecs-service-servicevolumeconfiguration-managedebsvolume>
                                        ServiceVolumeConfigurationProperty
-> Maybe ServiceManagedEBSVolumeConfigurationProperty
managedEBSVolume :: (Prelude.Maybe ServiceManagedEBSVolumeConfigurationProperty),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-servicevolumeconfiguration.html#cfn-ecs-service-servicevolumeconfiguration-name>
                                        ServiceVolumeConfigurationProperty -> Value Text
name :: (Value Prelude.Text)}
  deriving stock (ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty -> Bool
(ServiceVolumeConfigurationProperty
 -> ServiceVolumeConfigurationProperty -> Bool)
-> (ServiceVolumeConfigurationProperty
    -> ServiceVolumeConfigurationProperty -> Bool)
-> Eq ServiceVolumeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty -> Bool
== :: ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty -> Bool
$c/= :: ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty -> Bool
/= :: ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty -> Bool
Prelude.Eq, Int -> ServiceVolumeConfigurationProperty -> ShowS
[ServiceVolumeConfigurationProperty] -> ShowS
ServiceVolumeConfigurationProperty -> String
(Int -> ServiceVolumeConfigurationProperty -> ShowS)
-> (ServiceVolumeConfigurationProperty -> String)
-> ([ServiceVolumeConfigurationProperty] -> ShowS)
-> Show ServiceVolumeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceVolumeConfigurationProperty -> ShowS
showsPrec :: Int -> ServiceVolumeConfigurationProperty -> ShowS
$cshow :: ServiceVolumeConfigurationProperty -> String
show :: ServiceVolumeConfigurationProperty -> String
$cshowList :: [ServiceVolumeConfigurationProperty] -> ShowS
showList :: [ServiceVolumeConfigurationProperty] -> ShowS
Prelude.Show)
mkServiceVolumeConfigurationProperty ::
  Value Prelude.Text -> ServiceVolumeConfigurationProperty
mkServiceVolumeConfigurationProperty :: Value Text -> ServiceVolumeConfigurationProperty
mkServiceVolumeConfigurationProperty Value Text
name
  = ServiceVolumeConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       managedEBSVolume :: Maybe ServiceManagedEBSVolumeConfigurationProperty
managedEBSVolume = Maybe ServiceManagedEBSVolumeConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceVolumeConfigurationProperty where
  toResourceProperties :: ServiceVolumeConfigurationProperty -> ResourceProperties
toResourceProperties ServiceVolumeConfigurationProperty {Maybe ServiceManagedEBSVolumeConfigurationProperty
()
Value Text
haddock_workaround_ :: ServiceVolumeConfigurationProperty -> ()
managedEBSVolume :: ServiceVolumeConfigurationProperty
-> Maybe ServiceManagedEBSVolumeConfigurationProperty
name :: ServiceVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
managedEBSVolume :: Maybe ServiceManagedEBSVolumeConfigurationProperty
name :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ECS::Service.ServiceVolumeConfiguration",
         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
"Name" 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
name]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ServiceManagedEBSVolumeConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ManagedEBSVolume" (ServiceManagedEBSVolumeConfigurationProperty -> (Key, Value))
-> Maybe ServiceManagedEBSVolumeConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServiceManagedEBSVolumeConfigurationProperty
managedEBSVolume]))}
instance JSON.ToJSON ServiceVolumeConfigurationProperty where
  toJSON :: ServiceVolumeConfigurationProperty -> Value
toJSON ServiceVolumeConfigurationProperty {Maybe ServiceManagedEBSVolumeConfigurationProperty
()
Value Text
haddock_workaround_ :: ServiceVolumeConfigurationProperty -> ()
managedEBSVolume :: ServiceVolumeConfigurationProperty
-> Maybe ServiceManagedEBSVolumeConfigurationProperty
name :: ServiceVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
managedEBSVolume :: Maybe ServiceManagedEBSVolumeConfigurationProperty
name :: 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
"Name" 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
name]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ServiceManagedEBSVolumeConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ManagedEBSVolume" (ServiceManagedEBSVolumeConfigurationProperty -> (Key, Value))
-> Maybe ServiceManagedEBSVolumeConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServiceManagedEBSVolumeConfigurationProperty
managedEBSVolume])))
instance Property "ManagedEBSVolume" ServiceVolumeConfigurationProperty where
  type PropertyType "ManagedEBSVolume" ServiceVolumeConfigurationProperty = ServiceManagedEBSVolumeConfigurationProperty
  set :: PropertyType "ManagedEBSVolume" ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty
set PropertyType "ManagedEBSVolume" ServiceVolumeConfigurationProperty
newValue ServiceVolumeConfigurationProperty {Maybe ServiceManagedEBSVolumeConfigurationProperty
()
Value Text
haddock_workaround_ :: ServiceVolumeConfigurationProperty -> ()
managedEBSVolume :: ServiceVolumeConfigurationProperty
-> Maybe ServiceManagedEBSVolumeConfigurationProperty
name :: ServiceVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
managedEBSVolume :: Maybe ServiceManagedEBSVolumeConfigurationProperty
name :: Value Text
..}
    = ServiceVolumeConfigurationProperty
        {managedEBSVolume :: Maybe ServiceManagedEBSVolumeConfigurationProperty
managedEBSVolume = ServiceManagedEBSVolumeConfigurationProperty
-> Maybe ServiceManagedEBSVolumeConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManagedEBSVolume" ServiceVolumeConfigurationProperty
ServiceManagedEBSVolumeConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
instance Property "Name" ServiceVolumeConfigurationProperty where
  type PropertyType "Name" ServiceVolumeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Name" ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty
-> ServiceVolumeConfigurationProperty
set PropertyType "Name" ServiceVolumeConfigurationProperty
newValue ServiceVolumeConfigurationProperty {Maybe ServiceManagedEBSVolumeConfigurationProperty
()
Value Text
haddock_workaround_ :: ServiceVolumeConfigurationProperty -> ()
managedEBSVolume :: ServiceVolumeConfigurationProperty
-> Maybe ServiceManagedEBSVolumeConfigurationProperty
name :: ServiceVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
managedEBSVolume :: Maybe ServiceManagedEBSVolumeConfigurationProperty
name :: Value Text
..}
    = ServiceVolumeConfigurationProperty {name :: Value Text
name = PropertyType "Name" ServiceVolumeConfigurationProperty
Value Text
newValue, Maybe ServiceManagedEBSVolumeConfigurationProperty
()
haddock_workaround_ :: ()
managedEBSVolume :: Maybe ServiceManagedEBSVolumeConfigurationProperty
haddock_workaround_ :: ()
managedEBSVolume :: Maybe ServiceManagedEBSVolumeConfigurationProperty
..}