stratosphere-cognito-1.0.0: gen/Stratosphere/Cognito/UserPoolUser/AttributeTypeProperty.hs
module Stratosphere.Cognito.UserPoolUser.AttributeTypeProperty (
AttributeTypeProperty(..), mkAttributeTypeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AttributeTypeProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooluser-attributetype.html>
AttributeTypeProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooluser-attributetype.html#cfn-cognito-userpooluser-attributetype-name>
name :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpooluser-attributetype.html#cfn-cognito-userpooluser-attributetype-value>
value :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkAttributeTypeProperty :: AttributeTypeProperty
mkAttributeTypeProperty
= AttributeTypeProperty
{haddock_workaround_ = (), name = Prelude.Nothing,
value = Prelude.Nothing}
instance ToResourceProperties AttributeTypeProperty where
toResourceProperties AttributeTypeProperty {..}
= ResourceProperties
{awsType = "AWS::Cognito::UserPoolUser.AttributeType",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Name" Prelude.<$> name,
(JSON..=) "Value" Prelude.<$> value])}
instance JSON.ToJSON AttributeTypeProperty where
toJSON AttributeTypeProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Name" Prelude.<$> name,
(JSON..=) "Value" Prelude.<$> value]))
instance Property "Name" AttributeTypeProperty where
type PropertyType "Name" AttributeTypeProperty = Value Prelude.Text
set newValue AttributeTypeProperty {..}
= AttributeTypeProperty {name = Prelude.pure newValue, ..}
instance Property "Value" AttributeTypeProperty where
type PropertyType "Value" AttributeTypeProperty = Value Prelude.Text
set newValue AttributeTypeProperty {..}
= AttributeTypeProperty {value = Prelude.pure newValue, ..}