module Stratosphere.ResourceProperties.ApiGatewayRestApiS3Location where
import Control.Lens
import Data.Aeson
import Data.Aeson.Types
import Data.Text
import GHC.Generics
import Stratosphere.Values
data ApiGatewayRestApiS3Location =
ApiGatewayRestApiS3Location
{ _apiGatewayRestApiS3LocationBucket :: Maybe (Val Text)
, _apiGatewayRestApiS3LocationETag :: Maybe (Val Text)
, _apiGatewayRestApiS3LocationKey :: Maybe (Val Text)
, _apiGatewayRestApiS3LocationVersion :: Maybe (Val Text)
} deriving (Show, Generic)
instance ToJSON ApiGatewayRestApiS3Location where
toJSON = genericToJSON defaultOptions { fieldLabelModifier = Prelude.drop 28, omitNothingFields = True }
instance FromJSON ApiGatewayRestApiS3Location where
parseJSON = genericParseJSON defaultOptions { fieldLabelModifier = Prelude.drop 28, omitNothingFields = True }
apiGatewayRestApiS3Location
:: ApiGatewayRestApiS3Location
apiGatewayRestApiS3Location =
ApiGatewayRestApiS3Location
{ _apiGatewayRestApiS3LocationBucket = Nothing
, _apiGatewayRestApiS3LocationETag = Nothing
, _apiGatewayRestApiS3LocationKey = Nothing
, _apiGatewayRestApiS3LocationVersion = Nothing
}
agraslBucket :: Lens' ApiGatewayRestApiS3Location (Maybe (Val Text))
agraslBucket = lens _apiGatewayRestApiS3LocationBucket (\s a -> s { _apiGatewayRestApiS3LocationBucket = a })
agraslETag :: Lens' ApiGatewayRestApiS3Location (Maybe (Val Text))
agraslETag = lens _apiGatewayRestApiS3LocationETag (\s a -> s { _apiGatewayRestApiS3LocationETag = a })
agraslKey :: Lens' ApiGatewayRestApiS3Location (Maybe (Val Text))
agraslKey = lens _apiGatewayRestApiS3LocationKey (\s a -> s { _apiGatewayRestApiS3LocationKey = a })
agraslVersion :: Lens' ApiGatewayRestApiS3Location (Maybe (Val Text))
agraslVersion = lens _apiGatewayRestApiS3LocationVersion (\s a -> s { _apiGatewayRestApiS3LocationVersion = a })