content: module Stratosphere.EC2.NetworkInterface.PrivateIpAddressSpecificationProperty (
          PrivateIpAddressSpecificationProperty(..),
          mkPrivateIpAddressSpecificationProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data PrivateIpAddressSpecificationProperty
    = PrivateIpAddressSpecificationProperty {primary :: (Value Prelude.Bool),
                                             privateIpAddress :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkPrivateIpAddressSpecificationProperty ::
    Value Prelude.Bool
    -> Value Prelude.Text -> PrivateIpAddressSpecificationProperty
  mkPrivateIpAddressSpecificationProperty primary privateIpAddress
    = PrivateIpAddressSpecificationProperty
        {primary = primary, privateIpAddress = privateIpAddress}
  instance ToResourceProperties PrivateIpAddressSpecificationProperty where
    toResourceProperties PrivateIpAddressSpecificationProperty {..}
      = ResourceProperties
          {awsType = "AWS::EC2::NetworkInterface.PrivateIpAddressSpecification",
           supportsTags = Prelude.False,
           properties = ["Primary" JSON..= primary,
                         "PrivateIpAddress" JSON..= privateIpAddress]}
  instance JSON.ToJSON PrivateIpAddressSpecificationProperty where
    toJSON PrivateIpAddressSpecificationProperty {..}
      = JSON.object
          ["Primary" JSON..= primary,
           "PrivateIpAddress" JSON..= privateIpAddress]
  instance Property "Primary" PrivateIpAddressSpecificationProperty where
    type PropertyType "Primary" PrivateIpAddressSpecificationProperty = Value Prelude.Bool
    set newValue PrivateIpAddressSpecificationProperty {..}
      = PrivateIpAddressSpecificationProperty {primary = newValue, ..}
  instance Property "PrivateIpAddress" PrivateIpAddressSpecificationProperty where
    type PropertyType "PrivateIpAddress" PrivateIpAddressSpecificationProperty = Value Prelude.Text
    set newValue PrivateIpAddressSpecificationProperty {..}
      = PrivateIpAddressSpecificationProperty
          {privateIpAddress = newValue, ..}