module Stratosphere.WorkSpaces.ConnectionAlias.ConnectionAliasAssociationProperty (
        ConnectionAliasAssociationProperty(..),
        mkConnectionAliasAssociationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConnectionAliasAssociationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-connectionalias-connectionaliasassociation.html>
    ConnectionAliasAssociationProperty {ConnectionAliasAssociationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-connectionalias-connectionaliasassociation.html#cfn-workspaces-connectionalias-connectionaliasassociation-associatedaccountid>
                                        ConnectionAliasAssociationProperty -> Maybe (Value Text)
associatedAccountId :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-connectionalias-connectionaliasassociation.html#cfn-workspaces-connectionalias-connectionaliasassociation-associationstatus>
                                        ConnectionAliasAssociationProperty -> Maybe (Value Text)
associationStatus :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-connectionalias-connectionaliasassociation.html#cfn-workspaces-connectionalias-connectionaliasassociation-connectionidentifier>
                                        ConnectionAliasAssociationProperty -> Maybe (Value Text)
connectionIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-connectionalias-connectionaliasassociation.html#cfn-workspaces-connectionalias-connectionaliasassociation-resourceid>
                                        ConnectionAliasAssociationProperty -> Maybe (Value Text)
resourceId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty -> Bool
(ConnectionAliasAssociationProperty
 -> ConnectionAliasAssociationProperty -> Bool)
-> (ConnectionAliasAssociationProperty
    -> ConnectionAliasAssociationProperty -> Bool)
-> Eq ConnectionAliasAssociationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty -> Bool
== :: ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty -> Bool
$c/= :: ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty -> Bool
/= :: ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty -> Bool
Prelude.Eq, Int -> ConnectionAliasAssociationProperty -> ShowS
[ConnectionAliasAssociationProperty] -> ShowS
ConnectionAliasAssociationProperty -> String
(Int -> ConnectionAliasAssociationProperty -> ShowS)
-> (ConnectionAliasAssociationProperty -> String)
-> ([ConnectionAliasAssociationProperty] -> ShowS)
-> Show ConnectionAliasAssociationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConnectionAliasAssociationProperty -> ShowS
showsPrec :: Int -> ConnectionAliasAssociationProperty -> ShowS
$cshow :: ConnectionAliasAssociationProperty -> String
show :: ConnectionAliasAssociationProperty -> String
$cshowList :: [ConnectionAliasAssociationProperty] -> ShowS
showList :: [ConnectionAliasAssociationProperty] -> ShowS
Prelude.Show)
mkConnectionAliasAssociationProperty ::
  ConnectionAliasAssociationProperty
mkConnectionAliasAssociationProperty :: ConnectionAliasAssociationProperty
mkConnectionAliasAssociationProperty
  = ConnectionAliasAssociationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), associatedAccountId :: Maybe (Value Text)
associatedAccountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       associationStatus :: Maybe (Value Text)
associationStatus = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       connectionIdentifier :: Maybe (Value Text)
connectionIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       resourceId :: Maybe (Value Text)
resourceId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConnectionAliasAssociationProperty where
  toResourceProperties :: ConnectionAliasAssociationProperty -> ResourceProperties
toResourceProperties ConnectionAliasAssociationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectionAliasAssociationProperty -> ()
associatedAccountId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
associationStatus :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
connectionIdentifier :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
resourceId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WorkSpaces::ConnectionAlias.ConnectionAliasAssociation",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([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
"AssociatedAccountId" (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)
associatedAccountId,
                            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
"AssociationStatus" (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)
associationStatus,
                            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
"ConnectionIdentifier" (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)
connectionIdentifier,
                            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
"ResourceId" (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)
resourceId])}
instance JSON.ToJSON ConnectionAliasAssociationProperty where
  toJSON :: ConnectionAliasAssociationProperty -> Value
toJSON ConnectionAliasAssociationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectionAliasAssociationProperty -> ()
associatedAccountId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
associationStatus :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
connectionIdentifier :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
resourceId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([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
"AssociatedAccountId" (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)
associatedAccountId,
               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
"AssociationStatus" (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)
associationStatus,
               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
"ConnectionIdentifier" (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)
connectionIdentifier,
               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
"ResourceId" (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)
resourceId]))
instance Property "AssociatedAccountId" ConnectionAliasAssociationProperty where
  type PropertyType "AssociatedAccountId" ConnectionAliasAssociationProperty = Value Prelude.Text
  set :: PropertyType
  "AssociatedAccountId" ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty
set PropertyType
  "AssociatedAccountId" ConnectionAliasAssociationProperty
newValue ConnectionAliasAssociationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectionAliasAssociationProperty -> ()
associatedAccountId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
associationStatus :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
connectionIdentifier :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
resourceId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = ConnectionAliasAssociationProperty
        {associatedAccountId :: Maybe (Value Text)
associatedAccountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AssociatedAccountId" ConnectionAliasAssociationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
haddock_workaround_ :: ()
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
instance Property "AssociationStatus" ConnectionAliasAssociationProperty where
  type PropertyType "AssociationStatus" ConnectionAliasAssociationProperty = Value Prelude.Text
  set :: PropertyType "AssociationStatus" ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty
set PropertyType "AssociationStatus" ConnectionAliasAssociationProperty
newValue ConnectionAliasAssociationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectionAliasAssociationProperty -> ()
associatedAccountId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
associationStatus :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
connectionIdentifier :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
resourceId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = ConnectionAliasAssociationProperty
        {associationStatus :: Maybe (Value Text)
associationStatus = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AssociationStatus" ConnectionAliasAssociationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
instance Property "ConnectionIdentifier" ConnectionAliasAssociationProperty where
  type PropertyType "ConnectionIdentifier" ConnectionAliasAssociationProperty = Value Prelude.Text
  set :: PropertyType
  "ConnectionIdentifier" ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty
set PropertyType
  "ConnectionIdentifier" ConnectionAliasAssociationProperty
newValue ConnectionAliasAssociationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectionAliasAssociationProperty -> ()
associatedAccountId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
associationStatus :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
connectionIdentifier :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
resourceId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = ConnectionAliasAssociationProperty
        {connectionIdentifier :: Maybe (Value Text)
connectionIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ConnectionIdentifier" ConnectionAliasAssociationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
instance Property "ResourceId" ConnectionAliasAssociationProperty where
  type PropertyType "ResourceId" ConnectionAliasAssociationProperty = Value Prelude.Text
  set :: PropertyType "ResourceId" ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty
-> ConnectionAliasAssociationProperty
set PropertyType "ResourceId" ConnectionAliasAssociationProperty
newValue ConnectionAliasAssociationProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectionAliasAssociationProperty -> ()
associatedAccountId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
associationStatus :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
connectionIdentifier :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
resourceId :: ConnectionAliasAssociationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = ConnectionAliasAssociationProperty
        {resourceId :: Maybe (Value Text)
resourceId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceId" ConnectionAliasAssociationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
associatedAccountId :: Maybe (Value Text)
associationStatus :: Maybe (Value Text)
connectionIdentifier :: Maybe (Value Text)
..}