module Stratosphere.EC2.IPAMPool.ProvisionedCidrProperty (
        ProvisionedCidrProperty(..), mkProvisionedCidrProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProvisionedCidrProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ipampool-provisionedcidr.html>
    ProvisionedCidrProperty {ProvisionedCidrProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ipampool-provisionedcidr.html#cfn-ec2-ipampool-provisionedcidr-cidr>
                             ProvisionedCidrProperty -> Value Text
cidr :: (Value Prelude.Text)}
  deriving stock (ProvisionedCidrProperty -> ProvisionedCidrProperty -> Bool
(ProvisionedCidrProperty -> ProvisionedCidrProperty -> Bool)
-> (ProvisionedCidrProperty -> ProvisionedCidrProperty -> Bool)
-> Eq ProvisionedCidrProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProvisionedCidrProperty -> ProvisionedCidrProperty -> Bool
== :: ProvisionedCidrProperty -> ProvisionedCidrProperty -> Bool
$c/= :: ProvisionedCidrProperty -> ProvisionedCidrProperty -> Bool
/= :: ProvisionedCidrProperty -> ProvisionedCidrProperty -> Bool
Prelude.Eq, Int -> ProvisionedCidrProperty -> ShowS
[ProvisionedCidrProperty] -> ShowS
ProvisionedCidrProperty -> String
(Int -> ProvisionedCidrProperty -> ShowS)
-> (ProvisionedCidrProperty -> String)
-> ([ProvisionedCidrProperty] -> ShowS)
-> Show ProvisionedCidrProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProvisionedCidrProperty -> ShowS
showsPrec :: Int -> ProvisionedCidrProperty -> ShowS
$cshow :: ProvisionedCidrProperty -> String
show :: ProvisionedCidrProperty -> String
$cshowList :: [ProvisionedCidrProperty] -> ShowS
showList :: [ProvisionedCidrProperty] -> ShowS
Prelude.Show)
mkProvisionedCidrProperty ::
  Value Prelude.Text -> ProvisionedCidrProperty
mkProvisionedCidrProperty :: Value Text -> ProvisionedCidrProperty
mkProvisionedCidrProperty Value Text
cidr
  = ProvisionedCidrProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), cidr :: Value Text
cidr = Value Text
cidr}
instance ToResourceProperties ProvisionedCidrProperty where
  toResourceProperties :: ProvisionedCidrProperty -> ResourceProperties
toResourceProperties ProvisionedCidrProperty {()
Value Text
haddock_workaround_ :: ProvisionedCidrProperty -> ()
cidr :: ProvisionedCidrProperty -> Value Text
haddock_workaround_ :: ()
cidr :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::IPAMPool.ProvisionedCidr",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Cidr" 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
cidr]}
instance JSON.ToJSON ProvisionedCidrProperty where
  toJSON :: ProvisionedCidrProperty -> Value
toJSON ProvisionedCidrProperty {()
Value Text
haddock_workaround_ :: ProvisionedCidrProperty -> ()
cidr :: ProvisionedCidrProperty -> Value Text
haddock_workaround_ :: ()
cidr :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Cidr" 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
cidr]
instance Property "Cidr" ProvisionedCidrProperty where
  type PropertyType "Cidr" ProvisionedCidrProperty = Value Prelude.Text
  set :: PropertyType "Cidr" ProvisionedCidrProperty
-> ProvisionedCidrProperty -> ProvisionedCidrProperty
set PropertyType "Cidr" ProvisionedCidrProperty
newValue ProvisionedCidrProperty {()
Value Text
haddock_workaround_ :: ProvisionedCidrProperty -> ()
cidr :: ProvisionedCidrProperty -> Value Text
haddock_workaround_ :: ()
cidr :: Value Text
..}
    = ProvisionedCidrProperty {cidr :: Value Text
cidr = PropertyType "Cidr" ProvisionedCidrProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}