module Stratosphere.IAM.ServiceLinkedRole (
ServiceLinkedRole(..), mkServiceLinkedRole
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceLinkedRole
=
ServiceLinkedRole {ServiceLinkedRole -> ()
haddock_workaround_ :: (),
ServiceLinkedRole -> Maybe (Value Text)
aWSServiceName :: (Prelude.Maybe (Value Prelude.Text)),
ServiceLinkedRole -> Maybe (Value Text)
customSuffix :: (Prelude.Maybe (Value Prelude.Text)),
ServiceLinkedRole -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ServiceLinkedRole -> ServiceLinkedRole -> Bool
(ServiceLinkedRole -> ServiceLinkedRole -> Bool)
-> (ServiceLinkedRole -> ServiceLinkedRole -> Bool)
-> Eq ServiceLinkedRole
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceLinkedRole -> ServiceLinkedRole -> Bool
== :: ServiceLinkedRole -> ServiceLinkedRole -> Bool
$c/= :: ServiceLinkedRole -> ServiceLinkedRole -> Bool
/= :: ServiceLinkedRole -> ServiceLinkedRole -> Bool
Prelude.Eq, Int -> ServiceLinkedRole -> ShowS
[ServiceLinkedRole] -> ShowS
ServiceLinkedRole -> String
(Int -> ServiceLinkedRole -> ShowS)
-> (ServiceLinkedRole -> String)
-> ([ServiceLinkedRole] -> ShowS)
-> Show ServiceLinkedRole
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceLinkedRole -> ShowS
showsPrec :: Int -> ServiceLinkedRole -> ShowS
$cshow :: ServiceLinkedRole -> String
show :: ServiceLinkedRole -> String
$cshowList :: [ServiceLinkedRole] -> ShowS
showList :: [ServiceLinkedRole] -> ShowS
Prelude.Show)
mkServiceLinkedRole :: ServiceLinkedRole
mkServiceLinkedRole :: ServiceLinkedRole
mkServiceLinkedRole
= ServiceLinkedRole
{haddock_workaround_ :: ()
haddock_workaround_ = (), aWSServiceName :: Maybe (Value Text)
aWSServiceName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
customSuffix :: Maybe (Value Text)
customSuffix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceLinkedRole where
toResourceProperties :: ServiceLinkedRole -> ResourceProperties
toResourceProperties ServiceLinkedRole {Maybe (Value Text)
()
haddock_workaround_ :: ServiceLinkedRole -> ()
aWSServiceName :: ServiceLinkedRole -> Maybe (Value Text)
customSuffix :: ServiceLinkedRole -> Maybe (Value Text)
description :: ServiceLinkedRole -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
customSuffix :: Maybe (Value Text)
description :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IAM::ServiceLinkedRole",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AWSServiceName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
aWSServiceName,
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..=) Key
"CustomSuffix" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
customSuffix,
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..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description])}
instance JSON.ToJSON ServiceLinkedRole where
toJSON :: ServiceLinkedRole -> Value
toJSON ServiceLinkedRole {Maybe (Value Text)
()
haddock_workaround_ :: ServiceLinkedRole -> ()
aWSServiceName :: ServiceLinkedRole -> Maybe (Value Text)
customSuffix :: ServiceLinkedRole -> Maybe (Value Text)
description :: ServiceLinkedRole -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
customSuffix :: Maybe (Value Text)
description :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AWSServiceName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
aWSServiceName,
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..=) Key
"CustomSuffix" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
customSuffix,
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..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description]))
instance Property "AWSServiceName" ServiceLinkedRole where
type PropertyType "AWSServiceName" ServiceLinkedRole = Value Prelude.Text
set :: PropertyType "AWSServiceName" ServiceLinkedRole
-> ServiceLinkedRole -> ServiceLinkedRole
set PropertyType "AWSServiceName" ServiceLinkedRole
newValue ServiceLinkedRole {Maybe (Value Text)
()
haddock_workaround_ :: ServiceLinkedRole -> ()
aWSServiceName :: ServiceLinkedRole -> Maybe (Value Text)
customSuffix :: ServiceLinkedRole -> Maybe (Value Text)
description :: ServiceLinkedRole -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
customSuffix :: Maybe (Value Text)
description :: Maybe (Value Text)
..}
= ServiceLinkedRole {aWSServiceName :: Maybe (Value Text)
aWSServiceName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AWSServiceName" ServiceLinkedRole
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
customSuffix :: Maybe (Value Text)
description :: Maybe (Value Text)
haddock_workaround_ :: ()
customSuffix :: Maybe (Value Text)
description :: Maybe (Value Text)
..}
instance Property "CustomSuffix" ServiceLinkedRole where
type PropertyType "CustomSuffix" ServiceLinkedRole = Value Prelude.Text
set :: PropertyType "CustomSuffix" ServiceLinkedRole
-> ServiceLinkedRole -> ServiceLinkedRole
set PropertyType "CustomSuffix" ServiceLinkedRole
newValue ServiceLinkedRole {Maybe (Value Text)
()
haddock_workaround_ :: ServiceLinkedRole -> ()
aWSServiceName :: ServiceLinkedRole -> Maybe (Value Text)
customSuffix :: ServiceLinkedRole -> Maybe (Value Text)
description :: ServiceLinkedRole -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
customSuffix :: Maybe (Value Text)
description :: Maybe (Value Text)
..}
= ServiceLinkedRole {customSuffix :: Maybe (Value Text)
customSuffix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomSuffix" ServiceLinkedRole
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
description :: Maybe (Value Text)
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
description :: Maybe (Value Text)
..}
instance Property "Description" ServiceLinkedRole where
type PropertyType "Description" ServiceLinkedRole = Value Prelude.Text
set :: PropertyType "Description" ServiceLinkedRole
-> ServiceLinkedRole -> ServiceLinkedRole
set PropertyType "Description" ServiceLinkedRole
newValue ServiceLinkedRole {Maybe (Value Text)
()
haddock_workaround_ :: ServiceLinkedRole -> ()
aWSServiceName :: ServiceLinkedRole -> Maybe (Value Text)
customSuffix :: ServiceLinkedRole -> Maybe (Value Text)
description :: ServiceLinkedRole -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
customSuffix :: Maybe (Value Text)
description :: Maybe (Value Text)
..}
= ServiceLinkedRole {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" ServiceLinkedRole
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
customSuffix :: Maybe (Value Text)
haddock_workaround_ :: ()
aWSServiceName :: Maybe (Value Text)
customSuffix :: Maybe (Value Text)
..}