module Stratosphere.Resources.InternetGateway where
import Control.Lens
import Data.Aeson
import Data.Aeson.Types
import Data.Text
import GHC.Generics
import Stratosphere.Values
import Stratosphere.ResourceProperties.ResourceTag
data InternetGateway =
InternetGateway
{ _internetGatewayTags :: Maybe [ResourceTag]
} deriving (Show, Generic)
instance ToJSON InternetGateway where
toJSON = genericToJSON defaultOptions { fieldLabelModifier = Prelude.drop 16, omitNothingFields = True }
instance FromJSON InternetGateway where
parseJSON = genericParseJSON defaultOptions { fieldLabelModifier = Prelude.drop 16, omitNothingFields = True }
internetGateway
:: InternetGateway
internetGateway =
InternetGateway
{ _internetGatewayTags = Nothing
}
igTags :: Lens' InternetGateway (Maybe [ResourceTag])
igTags = lens _internetGatewayTags (\s a -> s { _internetGatewayTags = a })