stratosphere-0.4.0: library-gen/Stratosphere/ResourceProperties/OpsWorksStackStackConfigurationManager.hs
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-stackconfigmanager.html
module Stratosphere.ResourceProperties.OpsWorksStackStackConfigurationManager 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 OpsWorksStackStackConfigurationManager. See
-- | 'opsWorksStackStackConfigurationManager' for a more convenient
-- | constructor.
data OpsWorksStackStackConfigurationManager =
OpsWorksStackStackConfigurationManager
{ _opsWorksStackStackConfigurationManagerName :: Maybe (Val Text)
, _opsWorksStackStackConfigurationManagerVersion :: Maybe (Val Text)
} deriving (Show, Eq, Generic)
instance ToJSON OpsWorksStackStackConfigurationManager where
toJSON = genericToJSON defaultOptions { fieldLabelModifier = Prelude.drop 39, omitNothingFields = True }
instance FromJSON OpsWorksStackStackConfigurationManager where
parseJSON = genericParseJSON defaultOptions { fieldLabelModifier = Prelude.drop 39, omitNothingFields = True }
-- | Constructor for 'OpsWorksStackStackConfigurationManager' containing
-- | required fields as arguments.
opsWorksStackStackConfigurationManager
:: OpsWorksStackStackConfigurationManager
opsWorksStackStackConfigurationManager =
OpsWorksStackStackConfigurationManager
{ _opsWorksStackStackConfigurationManagerName = Nothing
, _opsWorksStackStackConfigurationManagerVersion = Nothing
}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-stackconfigmanager.html#cfn-opsworks-configmanager-name
owsscmName :: Lens' OpsWorksStackStackConfigurationManager (Maybe (Val Text))
owsscmName = lens _opsWorksStackStackConfigurationManagerName (\s a -> s { _opsWorksStackStackConfigurationManagerName = a })
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworks-stack-stackconfigmanager.html#cfn-opsworks-configmanager-version
owsscmVersion :: Lens' OpsWorksStackStackConfigurationManager (Maybe (Val Text))
owsscmVersion = lens _opsWorksStackStackConfigurationManagerVersion (\s a -> s { _opsWorksStackStackConfigurationManagerVersion = a })