module Stratosphere.RolesAnywhere.TrustAnchor.SourceProperty (
module Exports, SourceProperty(..), mkSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.RolesAnywhere.TrustAnchor.SourceDataProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SourceProperty
=
SourceProperty {SourceProperty -> ()
haddock_workaround_ :: (),
SourceProperty -> SourceDataProperty
sourceData :: SourceDataProperty,
SourceProperty -> Value Text
sourceType :: (Value Prelude.Text)}
deriving stock (SourceProperty -> SourceProperty -> Bool
(SourceProperty -> SourceProperty -> Bool)
-> (SourceProperty -> SourceProperty -> Bool) -> Eq SourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SourceProperty -> SourceProperty -> Bool
== :: SourceProperty -> SourceProperty -> Bool
$c/= :: SourceProperty -> SourceProperty -> Bool
/= :: SourceProperty -> SourceProperty -> Bool
Prelude.Eq, Int -> SourceProperty -> ShowS
[SourceProperty] -> ShowS
SourceProperty -> String
(Int -> SourceProperty -> ShowS)
-> (SourceProperty -> String)
-> ([SourceProperty] -> ShowS)
-> Show SourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SourceProperty -> ShowS
showsPrec :: Int -> SourceProperty -> ShowS
$cshow :: SourceProperty -> String
show :: SourceProperty -> String
$cshowList :: [SourceProperty] -> ShowS
showList :: [SourceProperty] -> ShowS
Prelude.Show)
mkSourceProperty ::
SourceDataProperty -> Value Prelude.Text -> SourceProperty
mkSourceProperty :: SourceDataProperty -> Value Text -> SourceProperty
mkSourceProperty SourceDataProperty
sourceData Value Text
sourceType
= SourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), sourceData :: SourceDataProperty
sourceData = SourceDataProperty
sourceData,
sourceType :: Value Text
sourceType = Value Text
sourceType}
instance ToResourceProperties SourceProperty where
toResourceProperties :: SourceProperty -> ResourceProperties
toResourceProperties SourceProperty {()
Value Text
SourceDataProperty
haddock_workaround_ :: SourceProperty -> ()
sourceData :: SourceProperty -> SourceDataProperty
sourceType :: SourceProperty -> Value Text
haddock_workaround_ :: ()
sourceData :: SourceDataProperty
sourceType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::RolesAnywhere::TrustAnchor.Source",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"SourceData" Key -> SourceDataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SourceDataProperty
sourceData,
Key
"SourceType" 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
sourceType]}
instance JSON.ToJSON SourceProperty where
toJSON :: SourceProperty -> Value
toJSON SourceProperty {()
Value Text
SourceDataProperty
haddock_workaround_ :: SourceProperty -> ()
sourceData :: SourceProperty -> SourceDataProperty
sourceType :: SourceProperty -> Value Text
haddock_workaround_ :: ()
sourceData :: SourceDataProperty
sourceType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"SourceData" Key -> SourceDataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SourceDataProperty
sourceData, Key
"SourceType" 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
sourceType]
instance Property "SourceData" SourceProperty where
type PropertyType "SourceData" SourceProperty = SourceDataProperty
set :: PropertyType "SourceData" SourceProperty
-> SourceProperty -> SourceProperty
set PropertyType "SourceData" SourceProperty
newValue SourceProperty {()
Value Text
SourceDataProperty
haddock_workaround_ :: SourceProperty -> ()
sourceData :: SourceProperty -> SourceDataProperty
sourceType :: SourceProperty -> Value Text
haddock_workaround_ :: ()
sourceData :: SourceDataProperty
sourceType :: Value Text
..}
= SourceProperty {sourceData :: SourceDataProperty
sourceData = PropertyType "SourceData" SourceProperty
SourceDataProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
sourceType :: Value Text
haddock_workaround_ :: ()
sourceType :: Value Text
..}
instance Property "SourceType" SourceProperty where
type PropertyType "SourceType" SourceProperty = Value Prelude.Text
set :: PropertyType "SourceType" SourceProperty
-> SourceProperty -> SourceProperty
set PropertyType "SourceType" SourceProperty
newValue SourceProperty {()
Value Text
SourceDataProperty
haddock_workaround_ :: SourceProperty -> ()
sourceData :: SourceProperty -> SourceDataProperty
sourceType :: SourceProperty -> Value Text
haddock_workaround_ :: ()
sourceData :: SourceDataProperty
sourceType :: Value Text
..}
= SourceProperty {sourceType :: Value Text
sourceType = PropertyType "SourceType" SourceProperty
Value Text
newValue, ()
SourceDataProperty
haddock_workaround_ :: ()
sourceData :: SourceDataProperty
haddock_workaround_ :: ()
sourceData :: SourceDataProperty
..}