module Stratosphere.Cognito.UserPoolClient.AnalyticsConfigurationProperty (
AnalyticsConfigurationProperty(..),
mkAnalyticsConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AnalyticsConfigurationProperty
=
AnalyticsConfigurationProperty {AnalyticsConfigurationProperty -> ()
haddock_workaround_ :: (),
AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationArn :: (Prelude.Maybe (Value Prelude.Text)),
AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationId :: (Prelude.Maybe (Value Prelude.Text)),
AnalyticsConfigurationProperty -> Maybe (Value Text)
externalId :: (Prelude.Maybe (Value Prelude.Text)),
AnalyticsConfigurationProperty -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text)),
AnalyticsConfigurationProperty -> Maybe (Value Bool)
userDataShared :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> Bool
(AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> Bool)
-> (AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> Bool)
-> Eq AnalyticsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> Bool
== :: AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> Bool
$c/= :: AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> Bool
/= :: AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> Bool
Prelude.Eq, Int -> AnalyticsConfigurationProperty -> ShowS
[AnalyticsConfigurationProperty] -> ShowS
AnalyticsConfigurationProperty -> String
(Int -> AnalyticsConfigurationProperty -> ShowS)
-> (AnalyticsConfigurationProperty -> String)
-> ([AnalyticsConfigurationProperty] -> ShowS)
-> Show AnalyticsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AnalyticsConfigurationProperty -> ShowS
showsPrec :: Int -> AnalyticsConfigurationProperty -> ShowS
$cshow :: AnalyticsConfigurationProperty -> String
show :: AnalyticsConfigurationProperty -> String
$cshowList :: [AnalyticsConfigurationProperty] -> ShowS
showList :: [AnalyticsConfigurationProperty] -> ShowS
Prelude.Show)
mkAnalyticsConfigurationProperty :: AnalyticsConfigurationProperty
mkAnalyticsConfigurationProperty :: AnalyticsConfigurationProperty
mkAnalyticsConfigurationProperty
= AnalyticsConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), applicationArn :: Maybe (Value Text)
applicationArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
applicationId :: Maybe (Value Text)
applicationId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, externalId :: Maybe (Value Text)
externalId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, userDataShared :: Maybe (Value Bool)
userDataShared = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AnalyticsConfigurationProperty where
toResourceProperties :: AnalyticsConfigurationProperty -> ResourceProperties
toResourceProperties AnalyticsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AnalyticsConfigurationProperty -> ()
applicationArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
externalId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
roleArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
userDataShared :: AnalyticsConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cognito::UserPoolClient.AnalyticsConfiguration",
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
"ApplicationArn" (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)
applicationArn,
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
"ApplicationId" (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)
applicationId,
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
"ExternalId" (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)
externalId,
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
"RoleArn" (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)
roleArn,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UserDataShared" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
userDataShared])}
instance JSON.ToJSON AnalyticsConfigurationProperty where
toJSON :: AnalyticsConfigurationProperty -> Value
toJSON AnalyticsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AnalyticsConfigurationProperty -> ()
applicationArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
externalId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
roleArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
userDataShared :: AnalyticsConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
= [(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
"ApplicationArn" (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)
applicationArn,
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
"ApplicationId" (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)
applicationId,
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
"ExternalId" (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)
externalId,
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
"RoleArn" (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)
roleArn,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UserDataShared" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
userDataShared]))
instance Property "ApplicationArn" AnalyticsConfigurationProperty where
type PropertyType "ApplicationArn" AnalyticsConfigurationProperty = Value Prelude.Text
set :: PropertyType "ApplicationArn" AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> AnalyticsConfigurationProperty
set PropertyType "ApplicationArn" AnalyticsConfigurationProperty
newValue AnalyticsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AnalyticsConfigurationProperty -> ()
applicationArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
externalId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
roleArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
userDataShared :: AnalyticsConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
= AnalyticsConfigurationProperty
{applicationArn :: Maybe (Value Text)
applicationArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplicationArn" AnalyticsConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
haddock_workaround_ :: ()
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
instance Property "ApplicationId" AnalyticsConfigurationProperty where
type PropertyType "ApplicationId" AnalyticsConfigurationProperty = Value Prelude.Text
set :: PropertyType "ApplicationId" AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> AnalyticsConfigurationProperty
set PropertyType "ApplicationId" AnalyticsConfigurationProperty
newValue AnalyticsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AnalyticsConfigurationProperty -> ()
applicationArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
externalId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
roleArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
userDataShared :: AnalyticsConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
= AnalyticsConfigurationProperty
{applicationId :: Maybe (Value Text)
applicationId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplicationId" AnalyticsConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
instance Property "ExternalId" AnalyticsConfigurationProperty where
type PropertyType "ExternalId" AnalyticsConfigurationProperty = Value Prelude.Text
set :: PropertyType "ExternalId" AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> AnalyticsConfigurationProperty
set PropertyType "ExternalId" AnalyticsConfigurationProperty
newValue AnalyticsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AnalyticsConfigurationProperty -> ()
applicationArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
externalId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
roleArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
userDataShared :: AnalyticsConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
= AnalyticsConfigurationProperty
{externalId :: Maybe (Value Text)
externalId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExternalId" AnalyticsConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
instance Property "RoleArn" AnalyticsConfigurationProperty where
type PropertyType "RoleArn" AnalyticsConfigurationProperty = Value Prelude.Text
set :: PropertyType "RoleArn" AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> AnalyticsConfigurationProperty
set PropertyType "RoleArn" AnalyticsConfigurationProperty
newValue AnalyticsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AnalyticsConfigurationProperty -> ()
applicationArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
externalId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
roleArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
userDataShared :: AnalyticsConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
= AnalyticsConfigurationProperty
{roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" AnalyticsConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
instance Property "UserDataShared" AnalyticsConfigurationProperty where
type PropertyType "UserDataShared" AnalyticsConfigurationProperty = Value Prelude.Bool
set :: PropertyType "UserDataShared" AnalyticsConfigurationProperty
-> AnalyticsConfigurationProperty -> AnalyticsConfigurationProperty
set PropertyType "UserDataShared" AnalyticsConfigurationProperty
newValue AnalyticsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AnalyticsConfigurationProperty -> ()
applicationArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
applicationId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
externalId :: AnalyticsConfigurationProperty -> Maybe (Value Text)
roleArn :: AnalyticsConfigurationProperty -> Maybe (Value Text)
userDataShared :: AnalyticsConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
userDataShared :: Maybe (Value Bool)
..}
= AnalyticsConfigurationProperty
{userDataShared :: Maybe (Value Bool)
userDataShared = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserDataShared" AnalyticsConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationArn :: Maybe (Value Text)
applicationId :: Maybe (Value Text)
externalId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}