stratosphere-ec2-1.0.0: gen/Stratosphere/EC2/TransitGatewayConnect/TransitGatewayConnectOptionsProperty.hs
module Stratosphere.EC2.TransitGatewayConnect.TransitGatewayConnectOptionsProperty (
TransitGatewayConnectOptionsProperty(..),
mkTransitGatewayConnectOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransitGatewayConnectOptionsProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayconnect-transitgatewayconnectoptions.html>
TransitGatewayConnectOptionsProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayconnect-transitgatewayconnectoptions.html#cfn-ec2-transitgatewayconnect-transitgatewayconnectoptions-protocol>
protocol :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkTransitGatewayConnectOptionsProperty ::
TransitGatewayConnectOptionsProperty
mkTransitGatewayConnectOptionsProperty
= TransitGatewayConnectOptionsProperty
{haddock_workaround_ = (), protocol = Prelude.Nothing}
instance ToResourceProperties TransitGatewayConnectOptionsProperty where
toResourceProperties TransitGatewayConnectOptionsProperty {..}
= ResourceProperties
{awsType = "AWS::EC2::TransitGatewayConnect.TransitGatewayConnectOptions",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes [(JSON..=) "Protocol" Prelude.<$> protocol])}
instance JSON.ToJSON TransitGatewayConnectOptionsProperty where
toJSON TransitGatewayConnectOptionsProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes [(JSON..=) "Protocol" Prelude.<$> protocol]))
instance Property "Protocol" TransitGatewayConnectOptionsProperty where
type PropertyType "Protocol" TransitGatewayConnectOptionsProperty = Value Prelude.Text
set newValue TransitGatewayConnectOptionsProperty {..}
= TransitGatewayConnectOptionsProperty
{protocol = Prelude.pure newValue, ..}