module Stratosphere.APS.Workspace.WorkspaceConfigurationProperty (
        module Exports, WorkspaceConfigurationProperty(..),
        mkWorkspaceConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.APS.Workspace.LimitsPerLabelSetProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WorkspaceConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-workspaceconfiguration.html>
    WorkspaceConfigurationProperty {WorkspaceConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-workspaceconfiguration.html#cfn-aps-workspace-workspaceconfiguration-limitsperlabelsets>
                                    WorkspaceConfigurationProperty -> Maybe [LimitsPerLabelSetProperty]
limitsPerLabelSets :: (Prelude.Maybe [LimitsPerLabelSetProperty]),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-workspaceconfiguration.html#cfn-aps-workspace-workspaceconfiguration-retentionperiodindays>
                                    WorkspaceConfigurationProperty -> Maybe (Value Integer)
retentionPeriodInDays :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (WorkspaceConfigurationProperty
-> WorkspaceConfigurationProperty -> Bool
(WorkspaceConfigurationProperty
 -> WorkspaceConfigurationProperty -> Bool)
-> (WorkspaceConfigurationProperty
    -> WorkspaceConfigurationProperty -> Bool)
-> Eq WorkspaceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WorkspaceConfigurationProperty
-> WorkspaceConfigurationProperty -> Bool
== :: WorkspaceConfigurationProperty
-> WorkspaceConfigurationProperty -> Bool
$c/= :: WorkspaceConfigurationProperty
-> WorkspaceConfigurationProperty -> Bool
/= :: WorkspaceConfigurationProperty
-> WorkspaceConfigurationProperty -> Bool
Prelude.Eq, Int -> WorkspaceConfigurationProperty -> ShowS
[WorkspaceConfigurationProperty] -> ShowS
WorkspaceConfigurationProperty -> String
(Int -> WorkspaceConfigurationProperty -> ShowS)
-> (WorkspaceConfigurationProperty -> String)
-> ([WorkspaceConfigurationProperty] -> ShowS)
-> Show WorkspaceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WorkspaceConfigurationProperty -> ShowS
showsPrec :: Int -> WorkspaceConfigurationProperty -> ShowS
$cshow :: WorkspaceConfigurationProperty -> String
show :: WorkspaceConfigurationProperty -> String
$cshowList :: [WorkspaceConfigurationProperty] -> ShowS
showList :: [WorkspaceConfigurationProperty] -> ShowS
Prelude.Show)
mkWorkspaceConfigurationProperty :: WorkspaceConfigurationProperty
mkWorkspaceConfigurationProperty :: WorkspaceConfigurationProperty
mkWorkspaceConfigurationProperty
  = WorkspaceConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), limitsPerLabelSets :: Maybe [LimitsPerLabelSetProperty]
limitsPerLabelSets = Maybe [LimitsPerLabelSetProperty]
forall a. Maybe a
Prelude.Nothing,
       retentionPeriodInDays :: Maybe (Value Integer)
retentionPeriodInDays = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WorkspaceConfigurationProperty where
  toResourceProperties :: WorkspaceConfigurationProperty -> ResourceProperties
toResourceProperties WorkspaceConfigurationProperty {Maybe [LimitsPerLabelSetProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: WorkspaceConfigurationProperty -> ()
limitsPerLabelSets :: WorkspaceConfigurationProperty -> Maybe [LimitsPerLabelSetProperty]
retentionPeriodInDays :: WorkspaceConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
limitsPerLabelSets :: Maybe [LimitsPerLabelSetProperty]
retentionPeriodInDays :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::APS::Workspace.WorkspaceConfiguration",
         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 -> [LimitsPerLabelSetProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LimitsPerLabelSets" ([LimitsPerLabelSetProperty] -> (Key, Value))
-> Maybe [LimitsPerLabelSetProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LimitsPerLabelSetProperty]
limitsPerLabelSets,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RetentionPeriodInDays"
                              (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
retentionPeriodInDays])}
instance JSON.ToJSON WorkspaceConfigurationProperty where
  toJSON :: WorkspaceConfigurationProperty -> Value
toJSON WorkspaceConfigurationProperty {Maybe [LimitsPerLabelSetProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: WorkspaceConfigurationProperty -> ()
limitsPerLabelSets :: WorkspaceConfigurationProperty -> Maybe [LimitsPerLabelSetProperty]
retentionPeriodInDays :: WorkspaceConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
limitsPerLabelSets :: Maybe [LimitsPerLabelSetProperty]
retentionPeriodInDays :: Maybe (Value Integer)
..}
    = [(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 -> [LimitsPerLabelSetProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LimitsPerLabelSets" ([LimitsPerLabelSetProperty] -> (Key, Value))
-> Maybe [LimitsPerLabelSetProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LimitsPerLabelSetProperty]
limitsPerLabelSets,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RetentionPeriodInDays"
                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
retentionPeriodInDays]))
instance Property "LimitsPerLabelSets" WorkspaceConfigurationProperty where
  type PropertyType "LimitsPerLabelSets" WorkspaceConfigurationProperty = [LimitsPerLabelSetProperty]
  set :: PropertyType "LimitsPerLabelSets" WorkspaceConfigurationProperty
-> WorkspaceConfigurationProperty -> WorkspaceConfigurationProperty
set PropertyType "LimitsPerLabelSets" WorkspaceConfigurationProperty
newValue WorkspaceConfigurationProperty {Maybe [LimitsPerLabelSetProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: WorkspaceConfigurationProperty -> ()
limitsPerLabelSets :: WorkspaceConfigurationProperty -> Maybe [LimitsPerLabelSetProperty]
retentionPeriodInDays :: WorkspaceConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
limitsPerLabelSets :: Maybe [LimitsPerLabelSetProperty]
retentionPeriodInDays :: Maybe (Value Integer)
..}
    = WorkspaceConfigurationProperty
        {limitsPerLabelSets :: Maybe [LimitsPerLabelSetProperty]
limitsPerLabelSets = [LimitsPerLabelSetProperty] -> Maybe [LimitsPerLabelSetProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [LimitsPerLabelSetProperty]
PropertyType "LimitsPerLabelSets" WorkspaceConfigurationProperty
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
retentionPeriodInDays :: Maybe (Value Integer)
haddock_workaround_ :: ()
retentionPeriodInDays :: Maybe (Value Integer)
..}
instance Property "RetentionPeriodInDays" WorkspaceConfigurationProperty where
  type PropertyType "RetentionPeriodInDays" WorkspaceConfigurationProperty = Value Prelude.Integer
  set :: PropertyType "RetentionPeriodInDays" WorkspaceConfigurationProperty
-> WorkspaceConfigurationProperty -> WorkspaceConfigurationProperty
set PropertyType "RetentionPeriodInDays" WorkspaceConfigurationProperty
newValue WorkspaceConfigurationProperty {Maybe [LimitsPerLabelSetProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: WorkspaceConfigurationProperty -> ()
limitsPerLabelSets :: WorkspaceConfigurationProperty -> Maybe [LimitsPerLabelSetProperty]
retentionPeriodInDays :: WorkspaceConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
limitsPerLabelSets :: Maybe [LimitsPerLabelSetProperty]
retentionPeriodInDays :: Maybe (Value Integer)
..}
    = WorkspaceConfigurationProperty
        {retentionPeriodInDays :: Maybe (Value Integer)
retentionPeriodInDays = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RetentionPeriodInDays" WorkspaceConfigurationProperty
Value Integer
newValue, Maybe [LimitsPerLabelSetProperty]
()
haddock_workaround_ :: ()
limitsPerLabelSets :: Maybe [LimitsPerLabelSetProperty]
haddock_workaround_ :: ()
limitsPerLabelSets :: Maybe [LimitsPerLabelSetProperty]
..}