module Stratosphere.ARCRegionSwitch.Plan.ServiceProperty (
ServiceProperty(..), mkServiceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceProperty
=
ServiceProperty {ServiceProperty -> ()
haddock_workaround_ :: (),
ServiceProperty -> Maybe (Value Text)
clusterArn :: (Prelude.Maybe (Value Prelude.Text)),
ServiceProperty -> Maybe (Value Text)
crossAccountRole :: (Prelude.Maybe (Value Prelude.Text)),
ServiceProperty -> Maybe (Value Text)
externalId :: (Prelude.Maybe (Value Prelude.Text)),
ServiceProperty -> Maybe (Value Text)
serviceArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ServiceProperty -> ServiceProperty -> Bool
(ServiceProperty -> ServiceProperty -> Bool)
-> (ServiceProperty -> ServiceProperty -> Bool)
-> Eq ServiceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceProperty -> ServiceProperty -> Bool
== :: ServiceProperty -> ServiceProperty -> Bool
$c/= :: ServiceProperty -> ServiceProperty -> Bool
/= :: ServiceProperty -> ServiceProperty -> Bool
Prelude.Eq, Int -> ServiceProperty -> ShowS
[ServiceProperty] -> ShowS
ServiceProperty -> String
(Int -> ServiceProperty -> ShowS)
-> (ServiceProperty -> String)
-> ([ServiceProperty] -> ShowS)
-> Show ServiceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceProperty -> ShowS
showsPrec :: Int -> ServiceProperty -> ShowS
$cshow :: ServiceProperty -> String
show :: ServiceProperty -> String
$cshowList :: [ServiceProperty] -> ShowS
showList :: [ServiceProperty] -> ShowS
Prelude.Show)
mkServiceProperty :: ServiceProperty
mkServiceProperty :: ServiceProperty
mkServiceProperty
= ServiceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), clusterArn :: Maybe (Value Text)
clusterArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
crossAccountRole :: Maybe (Value Text)
crossAccountRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, externalId :: Maybe (Value Text)
externalId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
serviceArn :: Maybe (Value Text)
serviceArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceProperty where
toResourceProperties :: ServiceProperty -> ResourceProperties
toResourceProperties ServiceProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceProperty -> ()
clusterArn :: ServiceProperty -> Maybe (Value Text)
crossAccountRole :: ServiceProperty -> Maybe (Value Text)
externalId :: ServiceProperty -> Maybe (Value Text)
serviceArn :: ServiceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ARCRegionSwitch::Plan.Service",
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
"ClusterArn" (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)
clusterArn,
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
"CrossAccountRole" (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)
crossAccountRole,
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
"ExternalId" (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)
externalId,
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
"ServiceArn" (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)
serviceArn])}
instance JSON.ToJSON ServiceProperty where
toJSON :: ServiceProperty -> Value
toJSON ServiceProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceProperty -> ()
clusterArn :: ServiceProperty -> Maybe (Value Text)
crossAccountRole :: ServiceProperty -> Maybe (Value Text)
externalId :: ServiceProperty -> Maybe (Value Text)
serviceArn :: ServiceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: 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
"ClusterArn" (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)
clusterArn,
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
"CrossAccountRole" (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)
crossAccountRole,
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
"ExternalId" (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)
externalId,
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
"ServiceArn" (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)
serviceArn]))
instance Property "ClusterArn" ServiceProperty where
type PropertyType "ClusterArn" ServiceProperty = Value Prelude.Text
set :: PropertyType "ClusterArn" ServiceProperty
-> ServiceProperty -> ServiceProperty
set PropertyType "ClusterArn" ServiceProperty
newValue ServiceProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceProperty -> ()
clusterArn :: ServiceProperty -> Maybe (Value Text)
crossAccountRole :: ServiceProperty -> Maybe (Value Text)
externalId :: ServiceProperty -> Maybe (Value Text)
serviceArn :: ServiceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
..}
= ServiceProperty {clusterArn :: Maybe (Value Text)
clusterArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ClusterArn" ServiceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
haddock_workaround_ :: ()
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
..}
instance Property "CrossAccountRole" ServiceProperty where
type PropertyType "CrossAccountRole" ServiceProperty = Value Prelude.Text
set :: PropertyType "CrossAccountRole" ServiceProperty
-> ServiceProperty -> ServiceProperty
set PropertyType "CrossAccountRole" ServiceProperty
newValue ServiceProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceProperty -> ()
clusterArn :: ServiceProperty -> Maybe (Value Text)
crossAccountRole :: ServiceProperty -> Maybe (Value Text)
externalId :: ServiceProperty -> Maybe (Value Text)
serviceArn :: ServiceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
..}
= ServiceProperty {crossAccountRole :: Maybe (Value Text)
crossAccountRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CrossAccountRole" ServiceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
..}
instance Property "ExternalId" ServiceProperty where
type PropertyType "ExternalId" ServiceProperty = Value Prelude.Text
set :: PropertyType "ExternalId" ServiceProperty
-> ServiceProperty -> ServiceProperty
set PropertyType "ExternalId" ServiceProperty
newValue ServiceProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceProperty -> ()
clusterArn :: ServiceProperty -> Maybe (Value Text)
crossAccountRole :: ServiceProperty -> Maybe (Value Text)
externalId :: ServiceProperty -> Maybe (Value Text)
serviceArn :: ServiceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
..}
= ServiceProperty {externalId :: Maybe (Value Text)
externalId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExternalId" ServiceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
..}
instance Property "ServiceArn" ServiceProperty where
type PropertyType "ServiceArn" ServiceProperty = Value Prelude.Text
set :: PropertyType "ServiceArn" ServiceProperty
-> ServiceProperty -> ServiceProperty
set PropertyType "ServiceArn" ServiceProperty
newValue ServiceProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceProperty -> ()
clusterArn :: ServiceProperty -> Maybe (Value Text)
crossAccountRole :: ServiceProperty -> Maybe (Value Text)
externalId :: ServiceProperty -> Maybe (Value Text)
serviceArn :: ServiceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
serviceArn :: Maybe (Value Text)
..}
= ServiceProperty {serviceArn :: Maybe (Value Text)
serviceArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServiceArn" ServiceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
haddock_workaround_ :: ()
clusterArn :: Maybe (Value Text)
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}