module Stratosphere.Resources.ApiGatewayAccount where
import Control.Lens
import Data.Aeson
import Data.Aeson.Types
import Data.Text
import GHC.Generics
import Stratosphere.Values
data ApiGatewayAccount =
ApiGatewayAccount
{ _apiGatewayAccountCloudWatchRoleArn :: Maybe (Val Text)
} deriving (Show, Generic)
instance ToJSON ApiGatewayAccount where
toJSON = genericToJSON defaultOptions { fieldLabelModifier = Prelude.drop 18, omitNothingFields = True }
instance FromJSON ApiGatewayAccount where
parseJSON = genericParseJSON defaultOptions { fieldLabelModifier = Prelude.drop 18, omitNothingFields = True }
apiGatewayAccount
:: ApiGatewayAccount
apiGatewayAccount =
ApiGatewayAccount
{ _apiGatewayAccountCloudWatchRoleArn = Nothing
}
agaCloudWatchRoleArn :: Lens' ApiGatewayAccount (Maybe (Val Text))
agaCloudWatchRoleArn = lens _apiGatewayAccountCloudWatchRoleArn (\s a -> s { _apiGatewayAccountCloudWatchRoleArn = a })