module Stratosphere.EC2.LaunchTemplate.Ipv6PrefixSpecificationProperty (
        Ipv6PrefixSpecificationProperty(..),
        mkIpv6PrefixSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Ipv6PrefixSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6prefixspecification.html>
    Ipv6PrefixSpecificationProperty {Ipv6PrefixSpecificationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6prefixspecification.html#cfn-ec2-launchtemplate-ipv6prefixspecification-ipv6prefix>
                                     Ipv6PrefixSpecificationProperty -> Maybe (Value Text)
ipv6Prefix :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Ipv6PrefixSpecificationProperty
-> Ipv6PrefixSpecificationProperty -> Bool
(Ipv6PrefixSpecificationProperty
 -> Ipv6PrefixSpecificationProperty -> Bool)
-> (Ipv6PrefixSpecificationProperty
    -> Ipv6PrefixSpecificationProperty -> Bool)
-> Eq Ipv6PrefixSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Ipv6PrefixSpecificationProperty
-> Ipv6PrefixSpecificationProperty -> Bool
== :: Ipv6PrefixSpecificationProperty
-> Ipv6PrefixSpecificationProperty -> Bool
$c/= :: Ipv6PrefixSpecificationProperty
-> Ipv6PrefixSpecificationProperty -> Bool
/= :: Ipv6PrefixSpecificationProperty
-> Ipv6PrefixSpecificationProperty -> Bool
Prelude.Eq, Int -> Ipv6PrefixSpecificationProperty -> ShowS
[Ipv6PrefixSpecificationProperty] -> ShowS
Ipv6PrefixSpecificationProperty -> String
(Int -> Ipv6PrefixSpecificationProperty -> ShowS)
-> (Ipv6PrefixSpecificationProperty -> String)
-> ([Ipv6PrefixSpecificationProperty] -> ShowS)
-> Show Ipv6PrefixSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Ipv6PrefixSpecificationProperty -> ShowS
showsPrec :: Int -> Ipv6PrefixSpecificationProperty -> ShowS
$cshow :: Ipv6PrefixSpecificationProperty -> String
show :: Ipv6PrefixSpecificationProperty -> String
$cshowList :: [Ipv6PrefixSpecificationProperty] -> ShowS
showList :: [Ipv6PrefixSpecificationProperty] -> ShowS
Prelude.Show)
mkIpv6PrefixSpecificationProperty ::
  Ipv6PrefixSpecificationProperty
mkIpv6PrefixSpecificationProperty :: Ipv6PrefixSpecificationProperty
mkIpv6PrefixSpecificationProperty
  = Ipv6PrefixSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), ipv6Prefix :: Maybe (Value Text)
ipv6Prefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Ipv6PrefixSpecificationProperty where
  toResourceProperties :: Ipv6PrefixSpecificationProperty -> ResourceProperties
toResourceProperties Ipv6PrefixSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: Ipv6PrefixSpecificationProperty -> ()
ipv6Prefix :: Ipv6PrefixSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6Prefix :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::LaunchTemplate.Ipv6PrefixSpecification",
         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
"Ipv6Prefix" (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)
ipv6Prefix])}
instance JSON.ToJSON Ipv6PrefixSpecificationProperty where
  toJSON :: Ipv6PrefixSpecificationProperty -> Value
toJSON Ipv6PrefixSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: Ipv6PrefixSpecificationProperty -> ()
ipv6Prefix :: Ipv6PrefixSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6Prefix :: 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
"Ipv6Prefix" (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)
ipv6Prefix]))
instance Property "Ipv6Prefix" Ipv6PrefixSpecificationProperty where
  type PropertyType "Ipv6Prefix" Ipv6PrefixSpecificationProperty = Value Prelude.Text
  set :: PropertyType "Ipv6Prefix" Ipv6PrefixSpecificationProperty
-> Ipv6PrefixSpecificationProperty
-> Ipv6PrefixSpecificationProperty
set PropertyType "Ipv6Prefix" Ipv6PrefixSpecificationProperty
newValue Ipv6PrefixSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: Ipv6PrefixSpecificationProperty -> ()
ipv6Prefix :: Ipv6PrefixSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ipv6Prefix :: Maybe (Value Text)
..}
    = Ipv6PrefixSpecificationProperty
        {ipv6Prefix :: Maybe (Value Text)
ipv6Prefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6Prefix" Ipv6PrefixSpecificationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}