module Stratosphere.PCS.Cluster.EndpointProperty (
EndpointProperty(..), mkEndpointProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EndpointProperty
=
EndpointProperty {EndpointProperty -> ()
haddock_workaround_ :: (),
EndpointProperty -> Maybe (Value Text)
ipv6Address :: (Prelude.Maybe (Value Prelude.Text)),
EndpointProperty -> Value Text
port :: (Value Prelude.Text),
EndpointProperty -> Value Text
privateIpAddress :: (Value Prelude.Text),
EndpointProperty -> Maybe (Value Text)
publicIpAddress :: (Prelude.Maybe (Value Prelude.Text)),
EndpointProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (EndpointProperty -> EndpointProperty -> Bool
(EndpointProperty -> EndpointProperty -> Bool)
-> (EndpointProperty -> EndpointProperty -> Bool)
-> Eq EndpointProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EndpointProperty -> EndpointProperty -> Bool
== :: EndpointProperty -> EndpointProperty -> Bool
$c/= :: EndpointProperty -> EndpointProperty -> Bool
/= :: EndpointProperty -> EndpointProperty -> Bool
Prelude.Eq, Int -> EndpointProperty -> ShowS
[EndpointProperty] -> ShowS
EndpointProperty -> String
(Int -> EndpointProperty -> ShowS)
-> (EndpointProperty -> String)
-> ([EndpointProperty] -> ShowS)
-> Show EndpointProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EndpointProperty -> ShowS
showsPrec :: Int -> EndpointProperty -> ShowS
$cshow :: EndpointProperty -> String
show :: EndpointProperty -> String
$cshowList :: [EndpointProperty] -> ShowS
showList :: [EndpointProperty] -> ShowS
Prelude.Show)
mkEndpointProperty ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> EndpointProperty
mkEndpointProperty :: Value Text -> Value Text -> Value Text -> EndpointProperty
mkEndpointProperty Value Text
port Value Text
privateIpAddress Value Text
type'
= EndpointProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), port :: Value Text
port = Value Text
port,
privateIpAddress :: Value Text
privateIpAddress = Value Text
privateIpAddress, type' :: Value Text
type' = Value Text
type',
ipv6Address :: Maybe (Value Text)
ipv6Address = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, publicIpAddress :: Maybe (Value Text)
publicIpAddress = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EndpointProperty where
toResourceProperties :: EndpointProperty -> ResourceProperties
toResourceProperties EndpointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointProperty -> ()
ipv6Address :: EndpointProperty -> Maybe (Value Text)
port :: EndpointProperty -> Value Text
privateIpAddress :: EndpointProperty -> Value Text
publicIpAddress :: EndpointProperty -> Maybe (Value Text)
type' :: EndpointProperty -> Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PCS::Cluster.Endpoint",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Port" 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
port, Key
"PrivateIpAddress" 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
privateIpAddress,
Key
"Type" 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
type']
([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
"Ipv6Address" (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)
ipv6Address,
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
"PublicIpAddress" (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)
publicIpAddress]))}
instance JSON.ToJSON EndpointProperty where
toJSON :: EndpointProperty -> Value
toJSON EndpointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointProperty -> ()
ipv6Address :: EndpointProperty -> Maybe (Value Text)
port :: EndpointProperty -> Value Text
privateIpAddress :: EndpointProperty -> Value Text
publicIpAddress :: EndpointProperty -> Maybe (Value Text)
type' :: EndpointProperty -> Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Port" 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
port, Key
"PrivateIpAddress" 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
privateIpAddress,
Key
"Type" 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
type']
([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
"Ipv6Address" (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)
ipv6Address,
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
"PublicIpAddress" (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)
publicIpAddress])))
instance Property "Ipv6Address" EndpointProperty where
type PropertyType "Ipv6Address" EndpointProperty = Value Prelude.Text
set :: PropertyType "Ipv6Address" EndpointProperty
-> EndpointProperty -> EndpointProperty
set PropertyType "Ipv6Address" EndpointProperty
newValue EndpointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointProperty -> ()
ipv6Address :: EndpointProperty -> Maybe (Value Text)
port :: EndpointProperty -> Value Text
privateIpAddress :: EndpointProperty -> Value Text
publicIpAddress :: EndpointProperty -> Maybe (Value Text)
type' :: EndpointProperty -> Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
= EndpointProperty {ipv6Address :: Maybe (Value Text)
ipv6Address = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6Address" EndpointProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Port" EndpointProperty where
type PropertyType "Port" EndpointProperty = Value Prelude.Text
set :: PropertyType "Port" EndpointProperty
-> EndpointProperty -> EndpointProperty
set PropertyType "Port" EndpointProperty
newValue EndpointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointProperty -> ()
ipv6Address :: EndpointProperty -> Maybe (Value Text)
port :: EndpointProperty -> Value Text
privateIpAddress :: EndpointProperty -> Value Text
publicIpAddress :: EndpointProperty -> Maybe (Value Text)
type' :: EndpointProperty -> Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
= EndpointProperty {port :: Value Text
port = PropertyType "Port" EndpointProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "PrivateIpAddress" EndpointProperty where
type PropertyType "PrivateIpAddress" EndpointProperty = Value Prelude.Text
set :: PropertyType "PrivateIpAddress" EndpointProperty
-> EndpointProperty -> EndpointProperty
set PropertyType "PrivateIpAddress" EndpointProperty
newValue EndpointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointProperty -> ()
ipv6Address :: EndpointProperty -> Maybe (Value Text)
port :: EndpointProperty -> Value Text
privateIpAddress :: EndpointProperty -> Value Text
publicIpAddress :: EndpointProperty -> Maybe (Value Text)
type' :: EndpointProperty -> Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
= EndpointProperty {privateIpAddress :: Value Text
privateIpAddress = PropertyType "PrivateIpAddress" EndpointProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "PublicIpAddress" EndpointProperty where
type PropertyType "PublicIpAddress" EndpointProperty = Value Prelude.Text
set :: PropertyType "PublicIpAddress" EndpointProperty
-> EndpointProperty -> EndpointProperty
set PropertyType "PublicIpAddress" EndpointProperty
newValue EndpointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointProperty -> ()
ipv6Address :: EndpointProperty -> Maybe (Value Text)
port :: EndpointProperty -> Value Text
privateIpAddress :: EndpointProperty -> Value Text
publicIpAddress :: EndpointProperty -> Maybe (Value Text)
type' :: EndpointProperty -> Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
= EndpointProperty {publicIpAddress :: Maybe (Value Text)
publicIpAddress = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PublicIpAddress" EndpointProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
type' :: Value Text
..}
instance Property "Type" EndpointProperty where
type PropertyType "Type" EndpointProperty = Value Prelude.Text
set :: PropertyType "Type" EndpointProperty
-> EndpointProperty -> EndpointProperty
set PropertyType "Type" EndpointProperty
newValue EndpointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointProperty -> ()
ipv6Address :: EndpointProperty -> Maybe (Value Text)
port :: EndpointProperty -> Value Text
privateIpAddress :: EndpointProperty -> Value Text
publicIpAddress :: EndpointProperty -> Maybe (Value Text)
type' :: EndpointProperty -> Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
type' :: Value Text
..}
= EndpointProperty {type' :: Value Text
type' = PropertyType "Type" EndpointProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
haddock_workaround_ :: ()
ipv6Address :: Maybe (Value Text)
port :: Value Text
privateIpAddress :: Value Text
publicIpAddress :: Maybe (Value Text)
..}