packages feed

stratosphere-ec2-1.0.0: gen/Stratosphere/EC2/LaunchTemplate/Ipv6PrefixSpecificationProperty.hs

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 {haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6prefixspecification.html#cfn-ec2-launchtemplate-ipv6prefixspecification-ipv6prefix>
                                     ipv6Prefix :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkIpv6PrefixSpecificationProperty ::
  Ipv6PrefixSpecificationProperty
mkIpv6PrefixSpecificationProperty
  = Ipv6PrefixSpecificationProperty
      {haddock_workaround_ = (), ipv6Prefix = Prelude.Nothing}
instance ToResourceProperties Ipv6PrefixSpecificationProperty where
  toResourceProperties Ipv6PrefixSpecificationProperty {..}
    = ResourceProperties
        {awsType = "AWS::EC2::LaunchTemplate.Ipv6PrefixSpecification",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "Ipv6Prefix" Prelude.<$> ipv6Prefix])}
instance JSON.ToJSON Ipv6PrefixSpecificationProperty where
  toJSON Ipv6PrefixSpecificationProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "Ipv6Prefix" Prelude.<$> ipv6Prefix]))
instance Property "Ipv6Prefix" Ipv6PrefixSpecificationProperty where
  type PropertyType "Ipv6Prefix" Ipv6PrefixSpecificationProperty = Value Prelude.Text
  set newValue Ipv6PrefixSpecificationProperty {..}
    = Ipv6PrefixSpecificationProperty
        {ipv6Prefix = Prelude.pure newValue, ..}