content: module Stratosphere.Cognito.UserPoolUserToGroupAttachment (
          UserPoolUserToGroupAttachment(..), mkUserPoolUserToGroupAttachment
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data UserPoolUserToGroupAttachment
    = UserPoolUserToGroupAttachment {groupName :: (Value Prelude.Text),
                                     userPoolId :: (Value Prelude.Text),
                                     username :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkUserPoolUserToGroupAttachment ::
    Value Prelude.Text
    -> Value Prelude.Text
       -> Value Prelude.Text -> UserPoolUserToGroupAttachment
  mkUserPoolUserToGroupAttachment groupName userPoolId username
    = UserPoolUserToGroupAttachment
        {groupName = groupName, userPoolId = userPoolId,
         username = username}
  instance ToResourceProperties UserPoolUserToGroupAttachment where
    toResourceProperties UserPoolUserToGroupAttachment {..}
      = ResourceProperties
          {awsType = "AWS::Cognito::UserPoolUserToGroupAttachment",
           supportsTags = Prelude.False,
           properties = ["GroupName" JSON..= groupName,
                         "UserPoolId" JSON..= userPoolId, "Username" JSON..= username]}
  instance JSON.ToJSON UserPoolUserToGroupAttachment where
    toJSON UserPoolUserToGroupAttachment {..}
      = JSON.object
          ["GroupName" JSON..= groupName, "UserPoolId" JSON..= userPoolId,
           "Username" JSON..= username]
  instance Property "GroupName" UserPoolUserToGroupAttachment where
    type PropertyType "GroupName" UserPoolUserToGroupAttachment = Value Prelude.Text
    set newValue UserPoolUserToGroupAttachment {..}
      = UserPoolUserToGroupAttachment {groupName = newValue, ..}
  instance Property "UserPoolId" UserPoolUserToGroupAttachment where
    type PropertyType "UserPoolId" UserPoolUserToGroupAttachment = Value Prelude.Text
    set newValue UserPoolUserToGroupAttachment {..}
      = UserPoolUserToGroupAttachment {userPoolId = newValue, ..}
  instance Property "Username" UserPoolUserToGroupAttachment where
    type PropertyType "Username" UserPoolUserToGroupAttachment = Value Prelude.Text
    set newValue UserPoolUserToGroupAttachment {..}
      = UserPoolUserToGroupAttachment {username = newValue, ..}