module Stratosphere.Deadline.Fleet.CustomerManagedFleetConfigurationProperty (
        module Exports, CustomerManagedFleetConfigurationProperty(..),
        mkCustomerManagedFleetConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Deadline.Fleet.CustomerManagedWorkerCapabilitiesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomerManagedFleetConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-customermanagedfleetconfiguration.html>
    CustomerManagedFleetConfigurationProperty {CustomerManagedFleetConfigurationProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-customermanagedfleetconfiguration.html#cfn-deadline-fleet-customermanagedfleetconfiguration-mode>
                                               CustomerManagedFleetConfigurationProperty -> Value Text
mode :: (Value Prelude.Text),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-customermanagedfleetconfiguration.html#cfn-deadline-fleet-customermanagedfleetconfiguration-storageprofileid>
                                               CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
storageProfileId :: (Prelude.Maybe (Value Prelude.Text)),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-customermanagedfleetconfiguration.html#cfn-deadline-fleet-customermanagedfleetconfiguration-tagpropagationmode>
                                               CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
tagPropagationMode :: (Prelude.Maybe (Value Prelude.Text)),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-customermanagedfleetconfiguration.html#cfn-deadline-fleet-customermanagedfleetconfiguration-workercapabilities>
                                               CustomerManagedFleetConfigurationProperty
-> CustomerManagedWorkerCapabilitiesProperty
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty}
  deriving stock (CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty -> Bool
(CustomerManagedFleetConfigurationProperty
 -> CustomerManagedFleetConfigurationProperty -> Bool)
-> (CustomerManagedFleetConfigurationProperty
    -> CustomerManagedFleetConfigurationProperty -> Bool)
-> Eq CustomerManagedFleetConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty -> Bool
== :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty -> Bool
$c/= :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty -> Bool
/= :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty -> Bool
Prelude.Eq, Int -> CustomerManagedFleetConfigurationProperty -> ShowS
[CustomerManagedFleetConfigurationProperty] -> ShowS
CustomerManagedFleetConfigurationProperty -> String
(Int -> CustomerManagedFleetConfigurationProperty -> ShowS)
-> (CustomerManagedFleetConfigurationProperty -> String)
-> ([CustomerManagedFleetConfigurationProperty] -> ShowS)
-> Show CustomerManagedFleetConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomerManagedFleetConfigurationProperty -> ShowS
showsPrec :: Int -> CustomerManagedFleetConfigurationProperty -> ShowS
$cshow :: CustomerManagedFleetConfigurationProperty -> String
show :: CustomerManagedFleetConfigurationProperty -> String
$cshowList :: [CustomerManagedFleetConfigurationProperty] -> ShowS
showList :: [CustomerManagedFleetConfigurationProperty] -> ShowS
Prelude.Show)
mkCustomerManagedFleetConfigurationProperty ::
  Value Prelude.Text
  -> CustomerManagedWorkerCapabilitiesProperty
     -> CustomerManagedFleetConfigurationProperty
mkCustomerManagedFleetConfigurationProperty :: Value Text
-> CustomerManagedWorkerCapabilitiesProperty
-> CustomerManagedFleetConfigurationProperty
mkCustomerManagedFleetConfigurationProperty Value Text
mode CustomerManagedWorkerCapabilitiesProperty
workerCapabilities
  = CustomerManagedFleetConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), mode :: Value Text
mode = Value Text
mode,
       workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
workerCapabilities = CustomerManagedWorkerCapabilitiesProperty
workerCapabilities,
       storageProfileId :: Maybe (Value Text)
storageProfileId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tagPropagationMode :: Maybe (Value Text)
tagPropagationMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomerManagedFleetConfigurationProperty where
  toResourceProperties :: CustomerManagedFleetConfigurationProperty -> ResourceProperties
toResourceProperties CustomerManagedFleetConfigurationProperty {Maybe (Value Text)
()
Value Text
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: CustomerManagedFleetConfigurationProperty -> ()
mode :: CustomerManagedFleetConfigurationProperty -> Value Text
storageProfileId :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
tagPropagationMode :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
workerCapabilities :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Deadline::Fleet.CustomerManagedFleetConfiguration",
         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
"Mode" 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
mode,
                            Key
"WorkerCapabilities" Key -> CustomerManagedWorkerCapabilitiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= CustomerManagedWorkerCapabilitiesProperty
workerCapabilities]
                           ([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
"StorageProfileId" (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)
storageProfileId,
                               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
"TagPropagationMode" (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)
tagPropagationMode]))}
instance JSON.ToJSON CustomerManagedFleetConfigurationProperty where
  toJSON :: CustomerManagedFleetConfigurationProperty -> Value
toJSON CustomerManagedFleetConfigurationProperty {Maybe (Value Text)
()
Value Text
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: CustomerManagedFleetConfigurationProperty -> ()
mode :: CustomerManagedFleetConfigurationProperty -> Value Text
storageProfileId :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
tagPropagationMode :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
workerCapabilities :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
    = [(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
"Mode" 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
mode,
               Key
"WorkerCapabilities" Key -> CustomerManagedWorkerCapabilitiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= CustomerManagedWorkerCapabilitiesProperty
workerCapabilities]
              ([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
"StorageProfileId" (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)
storageProfileId,
                  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
"TagPropagationMode" (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)
tagPropagationMode])))
instance Property "Mode" CustomerManagedFleetConfigurationProperty where
  type PropertyType "Mode" CustomerManagedFleetConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Mode" CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty
set PropertyType "Mode" CustomerManagedFleetConfigurationProperty
newValue CustomerManagedFleetConfigurationProperty {Maybe (Value Text)
()
Value Text
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: CustomerManagedFleetConfigurationProperty -> ()
mode :: CustomerManagedFleetConfigurationProperty -> Value Text
storageProfileId :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
tagPropagationMode :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
workerCapabilities :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
    = CustomerManagedFleetConfigurationProperty {mode :: Value Text
mode = PropertyType "Mode" CustomerManagedFleetConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
instance Property "StorageProfileId" CustomerManagedFleetConfigurationProperty where
  type PropertyType "StorageProfileId" CustomerManagedFleetConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "StorageProfileId" CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty
set PropertyType
  "StorageProfileId" CustomerManagedFleetConfigurationProperty
newValue CustomerManagedFleetConfigurationProperty {Maybe (Value Text)
()
Value Text
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: CustomerManagedFleetConfigurationProperty -> ()
mode :: CustomerManagedFleetConfigurationProperty -> Value Text
storageProfileId :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
tagPropagationMode :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
workerCapabilities :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
    = CustomerManagedFleetConfigurationProperty
        {storageProfileId :: Maybe (Value Text)
storageProfileId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "StorageProfileId" CustomerManagedFleetConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
instance Property "TagPropagationMode" CustomerManagedFleetConfigurationProperty where
  type PropertyType "TagPropagationMode" CustomerManagedFleetConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "TagPropagationMode" CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty
set PropertyType
  "TagPropagationMode" CustomerManagedFleetConfigurationProperty
newValue CustomerManagedFleetConfigurationProperty {Maybe (Value Text)
()
Value Text
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: CustomerManagedFleetConfigurationProperty -> ()
mode :: CustomerManagedFleetConfigurationProperty -> Value Text
storageProfileId :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
tagPropagationMode :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
workerCapabilities :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
    = CustomerManagedFleetConfigurationProperty
        {tagPropagationMode :: Maybe (Value Text)
tagPropagationMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "TagPropagationMode" CustomerManagedFleetConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
instance Property "WorkerCapabilities" CustomerManagedFleetConfigurationProperty where
  type PropertyType "WorkerCapabilities" CustomerManagedFleetConfigurationProperty = CustomerManagedWorkerCapabilitiesProperty
  set :: PropertyType
  "WorkerCapabilities" CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty
-> CustomerManagedFleetConfigurationProperty
set PropertyType
  "WorkerCapabilities" CustomerManagedFleetConfigurationProperty
newValue CustomerManagedFleetConfigurationProperty {Maybe (Value Text)
()
Value Text
CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: CustomerManagedFleetConfigurationProperty -> ()
mode :: CustomerManagedFleetConfigurationProperty -> Value Text
storageProfileId :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
tagPropagationMode :: CustomerManagedFleetConfigurationProperty -> Maybe (Value Text)
workerCapabilities :: CustomerManagedFleetConfigurationProperty
-> CustomerManagedWorkerCapabilitiesProperty
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
..}
    = CustomerManagedFleetConfigurationProperty
        {workerCapabilities :: CustomerManagedWorkerCapabilitiesProperty
workerCapabilities = PropertyType
  "WorkerCapabilities" CustomerManagedFleetConfigurationProperty
CustomerManagedWorkerCapabilitiesProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
haddock_workaround_ :: ()
mode :: Value Text
storageProfileId :: Maybe (Value Text)
tagPropagationMode :: Maybe (Value Text)
..}