stratosphere-0.4.0: library-gen/Stratosphere/ResourceProperties/ApiGatewayRestApiS3Location.hs
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-restapi-bodys3location.html
module Stratosphere.ResourceProperties.ApiGatewayRestApiS3Location 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 ApiGatewayRestApiS3Location. See
-- | 'apiGatewayRestApiS3Location' for a more convenient constructor.
data ApiGatewayRestApiS3Location =
ApiGatewayRestApiS3Location
{ _apiGatewayRestApiS3LocationBucket :: Maybe (Val Text)
, _apiGatewayRestApiS3LocationETag :: Maybe (Val Text)
, _apiGatewayRestApiS3LocationKey :: Maybe (Val Text)
, _apiGatewayRestApiS3LocationVersion :: Maybe (Val Text)
} deriving (Show, Eq, 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 }
-- | Constructor for 'ApiGatewayRestApiS3Location' containing required fields
-- | as arguments.
apiGatewayRestApiS3Location
:: ApiGatewayRestApiS3Location
apiGatewayRestApiS3Location =
ApiGatewayRestApiS3Location
{ _apiGatewayRestApiS3LocationBucket = Nothing
, _apiGatewayRestApiS3LocationETag = Nothing
, _apiGatewayRestApiS3LocationKey = Nothing
, _apiGatewayRestApiS3LocationVersion = Nothing
}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-restapi-bodys3location.html#cfn-apigateway-restapi-s3location-bucket
agraslBucket :: Lens' ApiGatewayRestApiS3Location (Maybe (Val Text))
agraslBucket = lens _apiGatewayRestApiS3LocationBucket (\s a -> s { _apiGatewayRestApiS3LocationBucket = a })
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-restapi-bodys3location.html#cfn-apigateway-restapi-s3location-etag
agraslETag :: Lens' ApiGatewayRestApiS3Location (Maybe (Val Text))
agraslETag = lens _apiGatewayRestApiS3LocationETag (\s a -> s { _apiGatewayRestApiS3LocationETag = a })
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-restapi-bodys3location.html#cfn-apigateway-restapi-s3location-key
agraslKey :: Lens' ApiGatewayRestApiS3Location (Maybe (Val Text))
agraslKey = lens _apiGatewayRestApiS3LocationKey (\s a -> s { _apiGatewayRestApiS3LocationKey = a })
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-restapi-bodys3location.html#cfn-apigateway-restapi-s3location-version
agraslVersion :: Lens' ApiGatewayRestApiS3Location (Maybe (Val Text))
agraslVersion = lens _apiGatewayRestApiS3LocationVersion (\s a -> s { _apiGatewayRestApiS3LocationVersion = a })