module Stratosphere.DataZone.Connection.AwsLocationProperty (
AwsLocationProperty(..), mkAwsLocationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AwsLocationProperty
=
AwsLocationProperty {AwsLocationProperty -> ()
haddock_workaround_ :: (),
AwsLocationProperty -> Maybe (Value Text)
accessRole :: (Prelude.Maybe (Value Prelude.Text)),
AwsLocationProperty -> Maybe (Value Text)
awsAccountId :: (Prelude.Maybe (Value Prelude.Text)),
AwsLocationProperty -> Maybe (Value Text)
awsRegion :: (Prelude.Maybe (Value Prelude.Text)),
AwsLocationProperty -> Maybe (Value Text)
iamConnectionId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AwsLocationProperty -> AwsLocationProperty -> Bool
(AwsLocationProperty -> AwsLocationProperty -> Bool)
-> (AwsLocationProperty -> AwsLocationProperty -> Bool)
-> Eq AwsLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AwsLocationProperty -> AwsLocationProperty -> Bool
== :: AwsLocationProperty -> AwsLocationProperty -> Bool
$c/= :: AwsLocationProperty -> AwsLocationProperty -> Bool
/= :: AwsLocationProperty -> AwsLocationProperty -> Bool
Prelude.Eq, Int -> AwsLocationProperty -> ShowS
[AwsLocationProperty] -> ShowS
AwsLocationProperty -> String
(Int -> AwsLocationProperty -> ShowS)
-> (AwsLocationProperty -> String)
-> ([AwsLocationProperty] -> ShowS)
-> Show AwsLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AwsLocationProperty -> ShowS
showsPrec :: Int -> AwsLocationProperty -> ShowS
$cshow :: AwsLocationProperty -> String
show :: AwsLocationProperty -> String
$cshowList :: [AwsLocationProperty] -> ShowS
showList :: [AwsLocationProperty] -> ShowS
Prelude.Show)
mkAwsLocationProperty :: AwsLocationProperty
mkAwsLocationProperty :: AwsLocationProperty
mkAwsLocationProperty
= AwsLocationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), accessRole :: Maybe (Value Text)
accessRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
awsAccountId :: Maybe (Value Text)
awsAccountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, awsRegion :: Maybe (Value Text)
awsRegion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
iamConnectionId :: Maybe (Value Text)
iamConnectionId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AwsLocationProperty where
toResourceProperties :: AwsLocationProperty -> ResourceProperties
toResourceProperties AwsLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsLocationProperty -> ()
accessRole :: AwsLocationProperty -> Maybe (Value Text)
awsAccountId :: AwsLocationProperty -> Maybe (Value Text)
awsRegion :: AwsLocationProperty -> Maybe (Value Text)
iamConnectionId :: AwsLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::Connection.AwsLocation",
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
"AccessRole" (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)
accessRole,
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
"AwsAccountId" (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)
awsAccountId,
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
"AwsRegion" (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)
awsRegion,
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
"IamConnectionId" (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)
iamConnectionId])}
instance JSON.ToJSON AwsLocationProperty where
toJSON :: AwsLocationProperty -> Value
toJSON AwsLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsLocationProperty -> ()
accessRole :: AwsLocationProperty -> Maybe (Value Text)
awsAccountId :: AwsLocationProperty -> Maybe (Value Text)
awsRegion :: AwsLocationProperty -> Maybe (Value Text)
iamConnectionId :: AwsLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: 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
"AccessRole" (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)
accessRole,
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
"AwsAccountId" (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)
awsAccountId,
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
"AwsRegion" (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)
awsRegion,
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
"IamConnectionId" (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)
iamConnectionId]))
instance Property "AccessRole" AwsLocationProperty where
type PropertyType "AccessRole" AwsLocationProperty = Value Prelude.Text
set :: PropertyType "AccessRole" AwsLocationProperty
-> AwsLocationProperty -> AwsLocationProperty
set PropertyType "AccessRole" AwsLocationProperty
newValue AwsLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsLocationProperty -> ()
accessRole :: AwsLocationProperty -> Maybe (Value Text)
awsAccountId :: AwsLocationProperty -> Maybe (Value Text)
awsRegion :: AwsLocationProperty -> Maybe (Value Text)
iamConnectionId :: AwsLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
..}
= AwsLocationProperty {accessRole :: Maybe (Value Text)
accessRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccessRole" AwsLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
haddock_workaround_ :: ()
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
..}
instance Property "AwsAccountId" AwsLocationProperty where
type PropertyType "AwsAccountId" AwsLocationProperty = Value Prelude.Text
set :: PropertyType "AwsAccountId" AwsLocationProperty
-> AwsLocationProperty -> AwsLocationProperty
set PropertyType "AwsAccountId" AwsLocationProperty
newValue AwsLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsLocationProperty -> ()
accessRole :: AwsLocationProperty -> Maybe (Value Text)
awsAccountId :: AwsLocationProperty -> Maybe (Value Text)
awsRegion :: AwsLocationProperty -> Maybe (Value Text)
iamConnectionId :: AwsLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
..}
= AwsLocationProperty {awsAccountId :: Maybe (Value Text)
awsAccountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AwsAccountId" AwsLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
..}
instance Property "AwsRegion" AwsLocationProperty where
type PropertyType "AwsRegion" AwsLocationProperty = Value Prelude.Text
set :: PropertyType "AwsRegion" AwsLocationProperty
-> AwsLocationProperty -> AwsLocationProperty
set PropertyType "AwsRegion" AwsLocationProperty
newValue AwsLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsLocationProperty -> ()
accessRole :: AwsLocationProperty -> Maybe (Value Text)
awsAccountId :: AwsLocationProperty -> Maybe (Value Text)
awsRegion :: AwsLocationProperty -> Maybe (Value Text)
iamConnectionId :: AwsLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
..}
= AwsLocationProperty {awsRegion :: Maybe (Value Text)
awsRegion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AwsRegion" AwsLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
..}
instance Property "IamConnectionId" AwsLocationProperty where
type PropertyType "IamConnectionId" AwsLocationProperty = Value Prelude.Text
set :: PropertyType "IamConnectionId" AwsLocationProperty
-> AwsLocationProperty -> AwsLocationProperty
set PropertyType "IamConnectionId" AwsLocationProperty
newValue AwsLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsLocationProperty -> ()
accessRole :: AwsLocationProperty -> Maybe (Value Text)
awsAccountId :: AwsLocationProperty -> Maybe (Value Text)
awsRegion :: AwsLocationProperty -> Maybe (Value Text)
iamConnectionId :: AwsLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
iamConnectionId :: Maybe (Value Text)
..}
= AwsLocationProperty {iamConnectionId :: Maybe (Value Text)
iamConnectionId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IamConnectionId" AwsLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
haddock_workaround_ :: ()
accessRole :: Maybe (Value Text)
awsAccountId :: Maybe (Value Text)
awsRegion :: Maybe (Value Text)
..}