module Stratosphere.BedrockAgentCore.Runtime.AuthorizerConfigurationProperty (
module Exports, AuthorizerConfigurationProperty(..),
mkAuthorizerConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BedrockAgentCore.Runtime.CustomJWTAuthorizerConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data AuthorizerConfigurationProperty
=
AuthorizerConfigurationProperty {AuthorizerConfigurationProperty -> ()
haddock_workaround_ :: (),
AuthorizerConfigurationProperty
-> Maybe CustomJWTAuthorizerConfigurationProperty
customJWTAuthorizer :: (Prelude.Maybe CustomJWTAuthorizerConfigurationProperty)}
deriving stock (AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty -> Bool
(AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty -> Bool)
-> (AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty -> Bool)
-> Eq AuthorizerConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty -> Bool
== :: AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty -> Bool
$c/= :: AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty -> Bool
/= :: AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty -> Bool
Prelude.Eq, Int -> AuthorizerConfigurationProperty -> ShowS
[AuthorizerConfigurationProperty] -> ShowS
AuthorizerConfigurationProperty -> String
(Int -> AuthorizerConfigurationProperty -> ShowS)
-> (AuthorizerConfigurationProperty -> String)
-> ([AuthorizerConfigurationProperty] -> ShowS)
-> Show AuthorizerConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AuthorizerConfigurationProperty -> ShowS
showsPrec :: Int -> AuthorizerConfigurationProperty -> ShowS
$cshow :: AuthorizerConfigurationProperty -> String
show :: AuthorizerConfigurationProperty -> String
$cshowList :: [AuthorizerConfigurationProperty] -> ShowS
showList :: [AuthorizerConfigurationProperty] -> ShowS
Prelude.Show)
mkAuthorizerConfigurationProperty ::
AuthorizerConfigurationProperty
mkAuthorizerConfigurationProperty :: AuthorizerConfigurationProperty
mkAuthorizerConfigurationProperty
= AuthorizerConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), customJWTAuthorizer :: Maybe CustomJWTAuthorizerConfigurationProperty
customJWTAuthorizer = Maybe CustomJWTAuthorizerConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AuthorizerConfigurationProperty where
toResourceProperties :: AuthorizerConfigurationProperty -> ResourceProperties
toResourceProperties AuthorizerConfigurationProperty {Maybe CustomJWTAuthorizerConfigurationProperty
()
haddock_workaround_ :: AuthorizerConfigurationProperty -> ()
customJWTAuthorizer :: AuthorizerConfigurationProperty
-> Maybe CustomJWTAuthorizerConfigurationProperty
haddock_workaround_ :: ()
customJWTAuthorizer :: Maybe CustomJWTAuthorizerConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::Runtime.AuthorizerConfiguration",
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 -> CustomJWTAuthorizerConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomJWTAuthorizer" (CustomJWTAuthorizerConfigurationProperty -> (Key, Value))
-> Maybe CustomJWTAuthorizerConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomJWTAuthorizerConfigurationProperty
customJWTAuthorizer])}
instance JSON.ToJSON AuthorizerConfigurationProperty where
toJSON :: AuthorizerConfigurationProperty -> Value
toJSON AuthorizerConfigurationProperty {Maybe CustomJWTAuthorizerConfigurationProperty
()
haddock_workaround_ :: AuthorizerConfigurationProperty -> ()
customJWTAuthorizer :: AuthorizerConfigurationProperty
-> Maybe CustomJWTAuthorizerConfigurationProperty
haddock_workaround_ :: ()
customJWTAuthorizer :: Maybe CustomJWTAuthorizerConfigurationProperty
..}
= [(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 -> CustomJWTAuthorizerConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomJWTAuthorizer" (CustomJWTAuthorizerConfigurationProperty -> (Key, Value))
-> Maybe CustomJWTAuthorizerConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomJWTAuthorizerConfigurationProperty
customJWTAuthorizer]))
instance Property "CustomJWTAuthorizer" AuthorizerConfigurationProperty where
type PropertyType "CustomJWTAuthorizer" AuthorizerConfigurationProperty = CustomJWTAuthorizerConfigurationProperty
set :: PropertyType "CustomJWTAuthorizer" AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty
-> AuthorizerConfigurationProperty
set PropertyType "CustomJWTAuthorizer" AuthorizerConfigurationProperty
newValue AuthorizerConfigurationProperty {Maybe CustomJWTAuthorizerConfigurationProperty
()
haddock_workaround_ :: AuthorizerConfigurationProperty -> ()
customJWTAuthorizer :: AuthorizerConfigurationProperty
-> Maybe CustomJWTAuthorizerConfigurationProperty
haddock_workaround_ :: ()
customJWTAuthorizer :: Maybe CustomJWTAuthorizerConfigurationProperty
..}
= AuthorizerConfigurationProperty
{customJWTAuthorizer :: Maybe CustomJWTAuthorizerConfigurationProperty
customJWTAuthorizer = CustomJWTAuthorizerConfigurationProperty
-> Maybe CustomJWTAuthorizerConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomJWTAuthorizer" AuthorizerConfigurationProperty
CustomJWTAuthorizerConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}