module Stratosphere.SSO.Application (
module Exports, Application(..), mkApplication
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSO.Application.PortalOptionsConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Application
=
Application {Application -> ()
haddock_workaround_ :: (),
Application -> Value Text
applicationProviderArn :: (Value Prelude.Text),
Application -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
Application -> Value Text
instanceArn :: (Value Prelude.Text),
Application -> Value Text
name :: (Value Prelude.Text),
Application -> Maybe PortalOptionsConfigurationProperty
portalOptions :: (Prelude.Maybe PortalOptionsConfigurationProperty),
Application -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
Application -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Application -> Application -> Bool
(Application -> Application -> Bool)
-> (Application -> Application -> Bool) -> Eq Application
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Application -> Application -> Bool
== :: Application -> Application -> Bool
$c/= :: Application -> Application -> Bool
/= :: Application -> Application -> Bool
Prelude.Eq, Int -> Application -> ShowS
[Application] -> ShowS
Application -> String
(Int -> Application -> ShowS)
-> (Application -> String)
-> ([Application] -> ShowS)
-> Show Application
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Application -> ShowS
showsPrec :: Int -> Application -> ShowS
$cshow :: Application -> String
show :: Application -> String
$cshowList :: [Application] -> ShowS
showList :: [Application] -> ShowS
Prelude.Show)
mkApplication ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> Application
mkApplication :: Value Text -> Value Text -> Value Text -> Application
mkApplication Value Text
applicationProviderArn Value Text
instanceArn Value Text
name
= Application
{haddock_workaround_ :: ()
haddock_workaround_ = (),
applicationProviderArn :: Value Text
applicationProviderArn = Value Text
applicationProviderArn,
instanceArn :: Value Text
instanceArn = Value Text
instanceArn, name :: Value Text
name = Value Text
name,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, portalOptions :: Maybe PortalOptionsConfigurationProperty
portalOptions = Maybe PortalOptionsConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Application where
toResourceProperties :: Application -> ResourceProperties
toResourceProperties Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSO::Application", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"ApplicationProviderArn" 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
applicationProviderArn,
Key
"InstanceArn" 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
instanceArn, 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 -> 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
"Description" (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)
description,
Key -> PortalOptionsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PortalOptions" (PortalOptionsConfigurationProperty -> (Key, Value))
-> Maybe PortalOptionsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PortalOptionsConfigurationProperty
portalOptions,
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
"Status" (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)
status,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON Application where
toJSON :: Application -> Value
toJSON Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
"ApplicationProviderArn" 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
applicationProviderArn,
Key
"InstanceArn" 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
instanceArn, 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 -> 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
"Description" (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)
description,
Key -> PortalOptionsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PortalOptions" (PortalOptionsConfigurationProperty -> (Key, Value))
-> Maybe PortalOptionsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PortalOptionsConfigurationProperty
portalOptions,
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
"Status" (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)
status,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "ApplicationProviderArn" Application where
type PropertyType "ApplicationProviderArn" Application = Value Prelude.Text
set :: PropertyType "ApplicationProviderArn" Application
-> Application -> Application
set PropertyType "ApplicationProviderArn" Application
newValue Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Application {applicationProviderArn :: Value Text
applicationProviderArn = PropertyType "ApplicationProviderArn" Application
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Description" Application where
type PropertyType "Description" Application = Value Prelude.Text
set :: PropertyType "Description" Application
-> Application -> Application
set PropertyType "Description" Application
newValue Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Application {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Application
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "InstanceArn" Application where
type PropertyType "InstanceArn" Application = Value Prelude.Text
set :: PropertyType "InstanceArn" Application
-> Application -> Application
set PropertyType "InstanceArn" Application
newValue Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Application {instanceArn :: Value Text
instanceArn = PropertyType "InstanceArn" Application
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" Application where
type PropertyType "Name" Application = Value Prelude.Text
set :: PropertyType "Name" Application -> Application -> Application
set PropertyType "Name" Application
newValue Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Application {name :: Value Text
name = PropertyType "Name" Application
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "PortalOptions" Application where
type PropertyType "PortalOptions" Application = PortalOptionsConfigurationProperty
set :: PropertyType "PortalOptions" Application
-> Application -> Application
set PropertyType "PortalOptions" Application
newValue Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Application {portalOptions :: Maybe PortalOptionsConfigurationProperty
portalOptions = PortalOptionsConfigurationProperty
-> Maybe PortalOptionsConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PortalOptions" Application
PortalOptionsConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
status :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Status" Application where
type PropertyType "Status" Application = Value Prelude.Text
set :: PropertyType "Status" Application -> Application -> Application
set PropertyType "Status" Application
newValue Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Application {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" Application
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" Application where
type PropertyType "Tags" Application = [Tag]
set :: PropertyType "Tags" Application -> Application -> Application
set PropertyType "Tags" Application
newValue Application {Maybe [Tag]
Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: Application -> ()
applicationProviderArn :: Application -> Value Text
description :: Application -> Maybe (Value Text)
instanceArn :: Application -> Value Text
name :: Application -> Value Text
portalOptions :: Application -> Maybe PortalOptionsConfigurationProperty
status :: Application -> Maybe (Value Text)
tags :: Application -> Maybe [Tag]
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Application {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Application
newValue, Maybe (Value Text)
Maybe PortalOptionsConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationProviderArn :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
portalOptions :: Maybe PortalOptionsConfigurationProperty
status :: Maybe (Value Text)
..}