module Stratosphere.AppRunner.Service.AuthenticationConfigurationProperty (
AuthenticationConfigurationProperty(..),
mkAuthenticationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AuthenticationConfigurationProperty
=
AuthenticationConfigurationProperty {AuthenticationConfigurationProperty -> ()
haddock_workaround_ :: (),
AuthenticationConfigurationProperty -> Maybe (Value Text)
accessRoleArn :: (Prelude.Maybe (Value Prelude.Text)),
AuthenticationConfigurationProperty -> Maybe (Value Text)
connectionArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
(AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool)
-> (AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool)
-> Eq AuthenticationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
== :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
$c/= :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
/= :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
Prelude.Eq, Int -> AuthenticationConfigurationProperty -> ShowS
[AuthenticationConfigurationProperty] -> ShowS
AuthenticationConfigurationProperty -> String
(Int -> AuthenticationConfigurationProperty -> ShowS)
-> (AuthenticationConfigurationProperty -> String)
-> ([AuthenticationConfigurationProperty] -> ShowS)
-> Show AuthenticationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AuthenticationConfigurationProperty -> ShowS
showsPrec :: Int -> AuthenticationConfigurationProperty -> ShowS
$cshow :: AuthenticationConfigurationProperty -> String
show :: AuthenticationConfigurationProperty -> String
$cshowList :: [AuthenticationConfigurationProperty] -> ShowS
showList :: [AuthenticationConfigurationProperty] -> ShowS
Prelude.Show)
mkAuthenticationConfigurationProperty ::
AuthenticationConfigurationProperty
mkAuthenticationConfigurationProperty :: AuthenticationConfigurationProperty
mkAuthenticationConfigurationProperty
= AuthenticationConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), accessRoleArn :: Maybe (Value Text)
accessRoleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
connectionArn :: Maybe (Value Text)
connectionArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AuthenticationConfigurationProperty where
toResourceProperties :: AuthenticationConfigurationProperty -> ResourceProperties
toResourceProperties AuthenticationConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
accessRoleArn :: AuthenticationConfigurationProperty -> Maybe (Value Text)
connectionArn :: AuthenticationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRoleArn :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppRunner::Service.AuthenticationConfiguration",
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
"AccessRoleArn" (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)
accessRoleArn,
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
"ConnectionArn" (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)
connectionArn])}
instance JSON.ToJSON AuthenticationConfigurationProperty where
toJSON :: AuthenticationConfigurationProperty -> Value
toJSON AuthenticationConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
accessRoleArn :: AuthenticationConfigurationProperty -> Maybe (Value Text)
connectionArn :: AuthenticationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRoleArn :: Maybe (Value Text)
connectionArn :: 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
"AccessRoleArn" (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)
accessRoleArn,
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
"ConnectionArn" (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)
connectionArn]))
instance Property "AccessRoleArn" AuthenticationConfigurationProperty where
type PropertyType "AccessRoleArn" AuthenticationConfigurationProperty = Value Prelude.Text
set :: PropertyType "AccessRoleArn" AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
set PropertyType "AccessRoleArn" AuthenticationConfigurationProperty
newValue AuthenticationConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
accessRoleArn :: AuthenticationConfigurationProperty -> Maybe (Value Text)
connectionArn :: AuthenticationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRoleArn :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
..}
= AuthenticationConfigurationProperty
{accessRoleArn :: Maybe (Value Text)
accessRoleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccessRoleArn" AuthenticationConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
connectionArn :: Maybe (Value Text)
haddock_workaround_ :: ()
connectionArn :: Maybe (Value Text)
..}
instance Property "ConnectionArn" AuthenticationConfigurationProperty where
type PropertyType "ConnectionArn" AuthenticationConfigurationProperty = Value Prelude.Text
set :: PropertyType "ConnectionArn" AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
set PropertyType "ConnectionArn" AuthenticationConfigurationProperty
newValue AuthenticationConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
accessRoleArn :: AuthenticationConfigurationProperty -> Maybe (Value Text)
connectionArn :: AuthenticationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRoleArn :: Maybe (Value Text)
connectionArn :: Maybe (Value Text)
..}
= AuthenticationConfigurationProperty
{connectionArn :: Maybe (Value Text)
connectionArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectionArn" AuthenticationConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
accessRoleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
accessRoleArn :: Maybe (Value Text)
..}