module Stratosphere.ResourceProperties.EC2SsmAssociationParameters where
import Control.Lens
import Data.Aeson
import Data.Aeson.Types
import Data.Text
import GHC.Generics
import Stratosphere.Values
data EC2SsmAssociationParameters =
EC2SsmAssociationParameters
{ _eC2SsmAssociationParametersKey :: Val Text
, _eC2SsmAssociationParametersValue :: [Val Text]
} deriving (Show, Generic)
instance ToJSON EC2SsmAssociationParameters where
toJSON = genericToJSON defaultOptions { fieldLabelModifier = Prelude.drop 28, omitNothingFields = True }
instance FromJSON EC2SsmAssociationParameters where
parseJSON = genericParseJSON defaultOptions { fieldLabelModifier = Prelude.drop 28, omitNothingFields = True }
ec2SsmAssociationParameters
:: Val Text
-> [Val Text]
-> EC2SsmAssociationParameters
ec2SsmAssociationParameters keyarg valuearg =
EC2SsmAssociationParameters
{ _eC2SsmAssociationParametersKey = keyarg
, _eC2SsmAssociationParametersValue = valuearg
}
ecsapKey :: Lens' EC2SsmAssociationParameters (Val Text)
ecsapKey = lens _eC2SsmAssociationParametersKey (\s a -> s { _eC2SsmAssociationParametersKey = a })
ecsapValue :: Lens' EC2SsmAssociationParameters [Val Text]
ecsapValue = lens _eC2SsmAssociationParametersValue (\s a -> s { _eC2SsmAssociationParametersValue = a })