module Stratosphere.NetworkManager.ConnectAttachment.ConnectAttachmentOptionsProperty (
ConnectAttachmentOptionsProperty(..),
mkConnectAttachmentOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConnectAttachmentOptionsProperty
=
ConnectAttachmentOptionsProperty {ConnectAttachmentOptionsProperty -> ()
haddock_workaround_ :: (),
ConnectAttachmentOptionsProperty -> Maybe (Value Text)
protocol :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty -> Bool
(ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty -> Bool)
-> (ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty -> Bool)
-> Eq ConnectAttachmentOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty -> Bool
== :: ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty -> Bool
$c/= :: ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty -> Bool
/= :: ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty -> Bool
Prelude.Eq, Int -> ConnectAttachmentOptionsProperty -> ShowS
[ConnectAttachmentOptionsProperty] -> ShowS
ConnectAttachmentOptionsProperty -> String
(Int -> ConnectAttachmentOptionsProperty -> ShowS)
-> (ConnectAttachmentOptionsProperty -> String)
-> ([ConnectAttachmentOptionsProperty] -> ShowS)
-> Show ConnectAttachmentOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConnectAttachmentOptionsProperty -> ShowS
showsPrec :: Int -> ConnectAttachmentOptionsProperty -> ShowS
$cshow :: ConnectAttachmentOptionsProperty -> String
show :: ConnectAttachmentOptionsProperty -> String
$cshowList :: [ConnectAttachmentOptionsProperty] -> ShowS
showList :: [ConnectAttachmentOptionsProperty] -> ShowS
Prelude.Show)
mkConnectAttachmentOptionsProperty ::
ConnectAttachmentOptionsProperty
mkConnectAttachmentOptionsProperty :: ConnectAttachmentOptionsProperty
mkConnectAttachmentOptionsProperty
= ConnectAttachmentOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), protocol :: Maybe (Value Text)
protocol = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConnectAttachmentOptionsProperty where
toResourceProperties :: ConnectAttachmentOptionsProperty -> ResourceProperties
toResourceProperties ConnectAttachmentOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectAttachmentOptionsProperty -> ()
protocol :: ConnectAttachmentOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
protocol :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::NetworkManager::ConnectAttachment.ConnectAttachmentOptions",
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
"Protocol" (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)
protocol])}
instance JSON.ToJSON ConnectAttachmentOptionsProperty where
toJSON :: ConnectAttachmentOptionsProperty -> Value
toJSON ConnectAttachmentOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectAttachmentOptionsProperty -> ()
protocol :: ConnectAttachmentOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
protocol :: 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
"Protocol" (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)
protocol]))
instance Property "Protocol" ConnectAttachmentOptionsProperty where
type PropertyType "Protocol" ConnectAttachmentOptionsProperty = Value Prelude.Text
set :: PropertyType "Protocol" ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty
-> ConnectAttachmentOptionsProperty
set PropertyType "Protocol" ConnectAttachmentOptionsProperty
newValue ConnectAttachmentOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ConnectAttachmentOptionsProperty -> ()
protocol :: ConnectAttachmentOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
protocol :: Maybe (Value Text)
..}
= ConnectAttachmentOptionsProperty
{protocol :: Maybe (Value Text)
protocol = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Protocol" ConnectAttachmentOptionsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}