module Stratosphere.AppStream.Stack.StorageConnectorProperty (
        StorageConnectorProperty(..), mkStorageConnectorProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StorageConnectorProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html>
    StorageConnectorProperty {StorageConnectorProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html#cfn-appstream-stack-storageconnector-connectortype>
                              StorageConnectorProperty -> Value Text
connectorType :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html#cfn-appstream-stack-storageconnector-domains>
                              StorageConnectorProperty -> Maybe (ValueList Text)
domains :: (Prelude.Maybe (ValueList Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-stack-storageconnector.html#cfn-appstream-stack-storageconnector-resourceidentifier>
                              StorageConnectorProperty -> Maybe (Value Text)
resourceIdentifier :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (StorageConnectorProperty -> StorageConnectorProperty -> Bool
(StorageConnectorProperty -> StorageConnectorProperty -> Bool)
-> (StorageConnectorProperty -> StorageConnectorProperty -> Bool)
-> Eq StorageConnectorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StorageConnectorProperty -> StorageConnectorProperty -> Bool
== :: StorageConnectorProperty -> StorageConnectorProperty -> Bool
$c/= :: StorageConnectorProperty -> StorageConnectorProperty -> Bool
/= :: StorageConnectorProperty -> StorageConnectorProperty -> Bool
Prelude.Eq, Int -> StorageConnectorProperty -> ShowS
[StorageConnectorProperty] -> ShowS
StorageConnectorProperty -> String
(Int -> StorageConnectorProperty -> ShowS)
-> (StorageConnectorProperty -> String)
-> ([StorageConnectorProperty] -> ShowS)
-> Show StorageConnectorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StorageConnectorProperty -> ShowS
showsPrec :: Int -> StorageConnectorProperty -> ShowS
$cshow :: StorageConnectorProperty -> String
show :: StorageConnectorProperty -> String
$cshowList :: [StorageConnectorProperty] -> ShowS
showList :: [StorageConnectorProperty] -> ShowS
Prelude.Show)
mkStorageConnectorProperty ::
  Value Prelude.Text -> StorageConnectorProperty
mkStorageConnectorProperty :: Value Text -> StorageConnectorProperty
mkStorageConnectorProperty Value Text
connectorType
  = StorageConnectorProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), connectorType :: Value Text
connectorType = Value Text
connectorType,
       domains :: Maybe (ValueList Text)
domains = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, resourceIdentifier :: Maybe (Value Text)
resourceIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StorageConnectorProperty where
  toResourceProperties :: StorageConnectorProperty -> ResourceProperties
toResourceProperties StorageConnectorProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StorageConnectorProperty -> ()
connectorType :: StorageConnectorProperty -> Value Text
domains :: StorageConnectorProperty -> Maybe (ValueList Text)
resourceIdentifier :: StorageConnectorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorType :: Value Text
domains :: Maybe (ValueList Text)
resourceIdentifier :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppStream::Stack.StorageConnector",
         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
"ConnectorType" 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
connectorType]
                           ([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
"Domains" (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)
domains,
                               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
"ResourceIdentifier" (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)
resourceIdentifier]))}
instance JSON.ToJSON StorageConnectorProperty where
  toJSON :: StorageConnectorProperty -> Value
toJSON StorageConnectorProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StorageConnectorProperty -> ()
connectorType :: StorageConnectorProperty -> Value Text
domains :: StorageConnectorProperty -> Maybe (ValueList Text)
resourceIdentifier :: StorageConnectorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorType :: Value Text
domains :: Maybe (ValueList Text)
resourceIdentifier :: Maybe (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
"ConnectorType" 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
connectorType]
              ([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
"Domains" (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)
domains,
                  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
"ResourceIdentifier" (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)
resourceIdentifier])))
instance Property "ConnectorType" StorageConnectorProperty where
  type PropertyType "ConnectorType" StorageConnectorProperty = Value Prelude.Text
  set :: PropertyType "ConnectorType" StorageConnectorProperty
-> StorageConnectorProperty -> StorageConnectorProperty
set PropertyType "ConnectorType" StorageConnectorProperty
newValue StorageConnectorProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StorageConnectorProperty -> ()
connectorType :: StorageConnectorProperty -> Value Text
domains :: StorageConnectorProperty -> Maybe (ValueList Text)
resourceIdentifier :: StorageConnectorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorType :: Value Text
domains :: Maybe (ValueList Text)
resourceIdentifier :: Maybe (Value Text)
..}
    = StorageConnectorProperty {connectorType :: Value Text
connectorType = PropertyType "ConnectorType" StorageConnectorProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
domains :: Maybe (ValueList Text)
resourceIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
domains :: Maybe (ValueList Text)
resourceIdentifier :: Maybe (Value Text)
..}
instance Property "Domains" StorageConnectorProperty where
  type PropertyType "Domains" StorageConnectorProperty = ValueList Prelude.Text
  set :: PropertyType "Domains" StorageConnectorProperty
-> StorageConnectorProperty -> StorageConnectorProperty
set PropertyType "Domains" StorageConnectorProperty
newValue StorageConnectorProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StorageConnectorProperty -> ()
connectorType :: StorageConnectorProperty -> Value Text
domains :: StorageConnectorProperty -> Maybe (ValueList Text)
resourceIdentifier :: StorageConnectorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorType :: Value Text
domains :: Maybe (ValueList Text)
resourceIdentifier :: Maybe (Value Text)
..}
    = StorageConnectorProperty {domains :: Maybe (ValueList Text)
domains = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Domains" StorageConnectorProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
connectorType :: Value Text
resourceIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
connectorType :: Value Text
resourceIdentifier :: Maybe (Value Text)
..}
instance Property "ResourceIdentifier" StorageConnectorProperty where
  type PropertyType "ResourceIdentifier" StorageConnectorProperty = Value Prelude.Text
  set :: PropertyType "ResourceIdentifier" StorageConnectorProperty
-> StorageConnectorProperty -> StorageConnectorProperty
set PropertyType "ResourceIdentifier" StorageConnectorProperty
newValue StorageConnectorProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StorageConnectorProperty -> ()
connectorType :: StorageConnectorProperty -> Value Text
domains :: StorageConnectorProperty -> Maybe (ValueList Text)
resourceIdentifier :: StorageConnectorProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorType :: Value Text
domains :: Maybe (ValueList Text)
resourceIdentifier :: Maybe (Value Text)
..}
    = StorageConnectorProperty
        {resourceIdentifier :: Maybe (Value Text)
resourceIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceIdentifier" StorageConnectorProperty
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
connectorType :: Value Text
domains :: Maybe (ValueList Text)
haddock_workaround_ :: ()
connectorType :: Value Text
domains :: Maybe (ValueList Text)
..}