module Stratosphere.ResourceExplorer2.DefaultViewAssociation (
DefaultViewAssociation(..), mkDefaultViewAssociation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DefaultViewAssociation
=
DefaultViewAssociation {DefaultViewAssociation -> ()
haddock_workaround_ :: (),
DefaultViewAssociation -> Value Text
viewArn :: (Value Prelude.Text)}
deriving stock (DefaultViewAssociation -> DefaultViewAssociation -> Bool
(DefaultViewAssociation -> DefaultViewAssociation -> Bool)
-> (DefaultViewAssociation -> DefaultViewAssociation -> Bool)
-> Eq DefaultViewAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DefaultViewAssociation -> DefaultViewAssociation -> Bool
== :: DefaultViewAssociation -> DefaultViewAssociation -> Bool
$c/= :: DefaultViewAssociation -> DefaultViewAssociation -> Bool
/= :: DefaultViewAssociation -> DefaultViewAssociation -> Bool
Prelude.Eq, Int -> DefaultViewAssociation -> ShowS
[DefaultViewAssociation] -> ShowS
DefaultViewAssociation -> String
(Int -> DefaultViewAssociation -> ShowS)
-> (DefaultViewAssociation -> String)
-> ([DefaultViewAssociation] -> ShowS)
-> Show DefaultViewAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DefaultViewAssociation -> ShowS
showsPrec :: Int -> DefaultViewAssociation -> ShowS
$cshow :: DefaultViewAssociation -> String
show :: DefaultViewAssociation -> String
$cshowList :: [DefaultViewAssociation] -> ShowS
showList :: [DefaultViewAssociation] -> ShowS
Prelude.Show)
mkDefaultViewAssociation ::
Value Prelude.Text -> DefaultViewAssociation
mkDefaultViewAssociation :: Value Text -> DefaultViewAssociation
mkDefaultViewAssociation Value Text
viewArn
= DefaultViewAssociation
{haddock_workaround_ :: ()
haddock_workaround_ = (), viewArn :: Value Text
viewArn = Value Text
viewArn}
instance ToResourceProperties DefaultViewAssociation where
toResourceProperties :: DefaultViewAssociation -> ResourceProperties
toResourceProperties DefaultViewAssociation {()
Value Text
haddock_workaround_ :: DefaultViewAssociation -> ()
viewArn :: DefaultViewAssociation -> Value Text
haddock_workaround_ :: ()
viewArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ResourceExplorer2::DefaultViewAssociation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"ViewArn" 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
viewArn]}
instance JSON.ToJSON DefaultViewAssociation where
toJSON :: DefaultViewAssociation -> Value
toJSON DefaultViewAssociation {()
Value Text
haddock_workaround_ :: DefaultViewAssociation -> ()
viewArn :: DefaultViewAssociation -> Value Text
haddock_workaround_ :: ()
viewArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"ViewArn" 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
viewArn]
instance Property "ViewArn" DefaultViewAssociation where
type PropertyType "ViewArn" DefaultViewAssociation = Value Prelude.Text
set :: PropertyType "ViewArn" DefaultViewAssociation
-> DefaultViewAssociation -> DefaultViewAssociation
set PropertyType "ViewArn" DefaultViewAssociation
newValue DefaultViewAssociation {()
Value Text
haddock_workaround_ :: DefaultViewAssociation -> ()
viewArn :: DefaultViewAssociation -> Value Text
haddock_workaround_ :: ()
viewArn :: Value Text
..}
= DefaultViewAssociation {viewArn :: Value Text
viewArn = PropertyType "ViewArn" DefaultViewAssociation
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}