content: module Stratosphere.QuickSight.Folder.ResourcePermissionProperty (
          ResourcePermissionProperty(..), mkResourcePermissionProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data ResourcePermissionProperty
    = ResourcePermissionProperty {actions :: (ValueList Prelude.Text),
                                  principal :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkResourcePermissionProperty ::
    ValueList Prelude.Text
    -> Value Prelude.Text -> ResourcePermissionProperty
  mkResourcePermissionProperty actions principal
    = ResourcePermissionProperty
        {actions = actions, principal = principal}
  instance ToResourceProperties ResourcePermissionProperty where
    toResourceProperties ResourcePermissionProperty {..}
      = ResourceProperties
          {awsType = "AWS::QuickSight::Folder.ResourcePermission",
           supportsTags = Prelude.False,
           properties = ["Actions" JSON..= actions,
                         "Principal" JSON..= principal]}
  instance JSON.ToJSON ResourcePermissionProperty where
    toJSON ResourcePermissionProperty {..}
      = JSON.object
          ["Actions" JSON..= actions, "Principal" JSON..= principal]
  instance Property "Actions" ResourcePermissionProperty where
    type PropertyType "Actions" ResourcePermissionProperty = ValueList Prelude.Text
    set newValue ResourcePermissionProperty {..}
      = ResourcePermissionProperty {actions = newValue, ..}
  instance Property "Principal" ResourcePermissionProperty where
    type PropertyType "Principal" ResourcePermissionProperty = Value Prelude.Text
    set newValue ResourcePermissionProperty {..}
      = ResourcePermissionProperty {principal = newValue, ..}