stratosphere-cognito-1.0.0: gen/Stratosphere/Cognito/LogDeliveryConfiguration/S3ConfigurationProperty.hs
module Stratosphere.Cognito.LogDeliveryConfiguration.S3ConfigurationProperty (
S3ConfigurationProperty(..), mkS3ConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3ConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-s3configuration.html>
S3ConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-logdeliveryconfiguration-s3configuration.html#cfn-cognito-logdeliveryconfiguration-s3configuration-bucketarn>
bucketArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkS3ConfigurationProperty :: S3ConfigurationProperty
mkS3ConfigurationProperty
= S3ConfigurationProperty
{haddock_workaround_ = (), bucketArn = Prelude.Nothing}
instance ToResourceProperties S3ConfigurationProperty where
toResourceProperties S3ConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Cognito::LogDeliveryConfiguration.S3Configuration",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes [(JSON..=) "BucketArn" Prelude.<$> bucketArn])}
instance JSON.ToJSON S3ConfigurationProperty where
toJSON S3ConfigurationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes [(JSON..=) "BucketArn" Prelude.<$> bucketArn]))
instance Property "BucketArn" S3ConfigurationProperty where
type PropertyType "BucketArn" S3ConfigurationProperty = Value Prelude.Text
set newValue S3ConfigurationProperty {..}
= S3ConfigurationProperty {bucketArn = Prelude.pure newValue, ..}