stratosphere-apigatewayv2-1.0.0: gen/Stratosphere/ApiGatewayV2/Authorizer/JWTConfigurationProperty.hs
module Stratosphere.ApiGatewayV2.Authorizer.JWTConfigurationProperty (
JWTConfigurationProperty(..), mkJWTConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data JWTConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-authorizer-jwtconfiguration.html>
JWTConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-authorizer-jwtconfiguration.html#cfn-apigatewayv2-authorizer-jwtconfiguration-audience>
audience :: (Prelude.Maybe (ValueList Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-authorizer-jwtconfiguration.html#cfn-apigatewayv2-authorizer-jwtconfiguration-issuer>
issuer :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkJWTConfigurationProperty :: JWTConfigurationProperty
mkJWTConfigurationProperty
= JWTConfigurationProperty
{haddock_workaround_ = (), audience = Prelude.Nothing,
issuer = Prelude.Nothing}
instance ToResourceProperties JWTConfigurationProperty where
toResourceProperties JWTConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::ApiGatewayV2::Authorizer.JWTConfiguration",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Audience" Prelude.<$> audience,
(JSON..=) "Issuer" Prelude.<$> issuer])}
instance JSON.ToJSON JWTConfigurationProperty where
toJSON JWTConfigurationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Audience" Prelude.<$> audience,
(JSON..=) "Issuer" Prelude.<$> issuer]))
instance Property "Audience" JWTConfigurationProperty where
type PropertyType "Audience" JWTConfigurationProperty = ValueList Prelude.Text
set newValue JWTConfigurationProperty {..}
= JWTConfigurationProperty {audience = Prelude.pure newValue, ..}
instance Property "Issuer" JWTConfigurationProperty where
type PropertyType "Issuer" JWTConfigurationProperty = Value Prelude.Text
set newValue JWTConfigurationProperty {..}
= JWTConfigurationProperty {issuer = Prelude.pure newValue, ..}