packages feed

stratosphere-0.4.0: library-gen/Stratosphere/ResourceProperties/EC2InstanceInstanceIpv6Address.hs

{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}

-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-instanceipv6address.html

module Stratosphere.ResourceProperties.EC2InstanceInstanceIpv6Address where

import Control.Lens
import Data.Aeson
import Data.Aeson.Types
import Data.Text
import GHC.Generics

import Stratosphere.Values


-- | Full data type definition for EC2InstanceInstanceIpv6Address. See
-- | 'ec2InstanceInstanceIpv6Address' for a more convenient constructor.
data EC2InstanceInstanceIpv6Address =
  EC2InstanceInstanceIpv6Address
  { _eC2InstanceInstanceIpv6AddressIpv6Address :: Val Text
  } deriving (Show, Eq, Generic)

instance ToJSON EC2InstanceInstanceIpv6Address where
  toJSON = genericToJSON defaultOptions { fieldLabelModifier = Prelude.drop 31, omitNothingFields = True }

instance FromJSON EC2InstanceInstanceIpv6Address where
  parseJSON = genericParseJSON defaultOptions { fieldLabelModifier = Prelude.drop 31, omitNothingFields = True }

-- | Constructor for 'EC2InstanceInstanceIpv6Address' containing required
-- | fields as arguments.
ec2InstanceInstanceIpv6Address
  :: Val Text -- ^ 'eciiiaIpv6Address'
  -> EC2InstanceInstanceIpv6Address
ec2InstanceInstanceIpv6Address ipv6Addressarg =
  EC2InstanceInstanceIpv6Address
  { _eC2InstanceInstanceIpv6AddressIpv6Address = ipv6Addressarg
  }

-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-instanceipv6address.html#cfn-ec2-instance-instanceipv6address-ipv6address
eciiiaIpv6Address :: Lens' EC2InstanceInstanceIpv6Address (Val Text)
eciiiaIpv6Address = lens _eC2InstanceInstanceIpv6AddressIpv6Address (\s a -> s { _eC2InstanceInstanceIpv6AddressIpv6Address = a })