module Stratosphere.QuickSight.DataSet.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 {ResourcePermissionProperty -> ()
haddock_workaround_ :: (),
ResourcePermissionProperty -> ValueList Text
actions :: (ValueList Prelude.Text),
ResourcePermissionProperty -> Value Text
principal :: (Value Prelude.Text)}
deriving stock (ResourcePermissionProperty -> ResourcePermissionProperty -> Bool
(ResourcePermissionProperty -> ResourcePermissionProperty -> Bool)
-> (ResourcePermissionProperty
-> ResourcePermissionProperty -> Bool)
-> Eq ResourcePermissionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourcePermissionProperty -> ResourcePermissionProperty -> Bool
== :: ResourcePermissionProperty -> ResourcePermissionProperty -> Bool
$c/= :: ResourcePermissionProperty -> ResourcePermissionProperty -> Bool
/= :: ResourcePermissionProperty -> ResourcePermissionProperty -> Bool
Prelude.Eq, Int -> ResourcePermissionProperty -> ShowS
[ResourcePermissionProperty] -> ShowS
ResourcePermissionProperty -> String
(Int -> ResourcePermissionProperty -> ShowS)
-> (ResourcePermissionProperty -> String)
-> ([ResourcePermissionProperty] -> ShowS)
-> Show ResourcePermissionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourcePermissionProperty -> ShowS
showsPrec :: Int -> ResourcePermissionProperty -> ShowS
$cshow :: ResourcePermissionProperty -> String
show :: ResourcePermissionProperty -> String
$cshowList :: [ResourcePermissionProperty] -> ShowS
showList :: [ResourcePermissionProperty] -> ShowS
Prelude.Show)
mkResourcePermissionProperty ::
ValueList Prelude.Text
-> Value Prelude.Text -> ResourcePermissionProperty
mkResourcePermissionProperty :: ValueList Text -> Value Text -> ResourcePermissionProperty
mkResourcePermissionProperty ValueList Text
actions Value Text
principal
= ResourcePermissionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), actions :: ValueList Text
actions = ValueList Text
actions,
principal :: Value Text
principal = Value Text
principal}
instance ToResourceProperties ResourcePermissionProperty where
toResourceProperties :: ResourcePermissionProperty -> ResourceProperties
toResourceProperties ResourcePermissionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ResourcePermissionProperty -> ()
actions :: ResourcePermissionProperty -> ValueList Text
principal :: ResourcePermissionProperty -> Value Text
haddock_workaround_ :: ()
actions :: ValueList Text
principal :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::DataSet.ResourcePermission",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Actions" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
actions,
Key
"Principal" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
principal]}
instance JSON.ToJSON ResourcePermissionProperty where
toJSON :: ResourcePermissionProperty -> Value
toJSON ResourcePermissionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ResourcePermissionProperty -> ()
actions :: ResourcePermissionProperty -> ValueList Text
principal :: ResourcePermissionProperty -> Value Text
haddock_workaround_ :: ()
actions :: ValueList Text
principal :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Actions" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
actions, Key
"Principal" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
principal]
instance Property "Actions" ResourcePermissionProperty where
type PropertyType "Actions" ResourcePermissionProperty = ValueList Prelude.Text
set :: PropertyType "Actions" ResourcePermissionProperty
-> ResourcePermissionProperty -> ResourcePermissionProperty
set PropertyType "Actions" ResourcePermissionProperty
newValue ResourcePermissionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ResourcePermissionProperty -> ()
actions :: ResourcePermissionProperty -> ValueList Text
principal :: ResourcePermissionProperty -> Value Text
haddock_workaround_ :: ()
actions :: ValueList Text
principal :: Value Text
..}
= ResourcePermissionProperty {actions :: ValueList Text
actions = PropertyType "Actions" ResourcePermissionProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
principal :: Value Text
haddock_workaround_ :: ()
principal :: Value Text
..}
instance Property "Principal" ResourcePermissionProperty where
type PropertyType "Principal" ResourcePermissionProperty = Value Prelude.Text
set :: PropertyType "Principal" ResourcePermissionProperty
-> ResourcePermissionProperty -> ResourcePermissionProperty
set PropertyType "Principal" ResourcePermissionProperty
newValue ResourcePermissionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ResourcePermissionProperty -> ()
actions :: ResourcePermissionProperty -> ValueList Text
principal :: ResourcePermissionProperty -> Value Text
haddock_workaround_ :: ()
actions :: ValueList Text
principal :: Value Text
..}
= ResourcePermissionProperty {principal :: Value Text
principal = PropertyType "Principal" ResourcePermissionProperty
Value Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
actions :: ValueList Text
haddock_workaround_ :: ()
actions :: ValueList Text
..}