module Stratosphere.CustomerProfiles.Domain.S3ExportingConfigProperty (
        S3ExportingConfigProperty(..), mkS3ExportingConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3ExportingConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-s3exportingconfig.html>
    S3ExportingConfigProperty {S3ExportingConfigProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-s3exportingconfig.html#cfn-customerprofiles-domain-s3exportingconfig-s3bucketname>
                               S3ExportingConfigProperty -> Value Text
s3BucketName :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-s3exportingconfig.html#cfn-customerprofiles-domain-s3exportingconfig-s3keyname>
                               S3ExportingConfigProperty -> Maybe (Value Text)
s3KeyName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (S3ExportingConfigProperty -> S3ExportingConfigProperty -> Bool
(S3ExportingConfigProperty -> S3ExportingConfigProperty -> Bool)
-> (S3ExportingConfigProperty -> S3ExportingConfigProperty -> Bool)
-> Eq S3ExportingConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3ExportingConfigProperty -> S3ExportingConfigProperty -> Bool
== :: S3ExportingConfigProperty -> S3ExportingConfigProperty -> Bool
$c/= :: S3ExportingConfigProperty -> S3ExportingConfigProperty -> Bool
/= :: S3ExportingConfigProperty -> S3ExportingConfigProperty -> Bool
Prelude.Eq, Int -> S3ExportingConfigProperty -> ShowS
[S3ExportingConfigProperty] -> ShowS
S3ExportingConfigProperty -> String
(Int -> S3ExportingConfigProperty -> ShowS)
-> (S3ExportingConfigProperty -> String)
-> ([S3ExportingConfigProperty] -> ShowS)
-> Show S3ExportingConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3ExportingConfigProperty -> ShowS
showsPrec :: Int -> S3ExportingConfigProperty -> ShowS
$cshow :: S3ExportingConfigProperty -> String
show :: S3ExportingConfigProperty -> String
$cshowList :: [S3ExportingConfigProperty] -> ShowS
showList :: [S3ExportingConfigProperty] -> ShowS
Prelude.Show)
mkS3ExportingConfigProperty ::
  Value Prelude.Text -> S3ExportingConfigProperty
mkS3ExportingConfigProperty :: Value Text -> S3ExportingConfigProperty
mkS3ExportingConfigProperty Value Text
s3BucketName
  = S3ExportingConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), s3BucketName :: Value Text
s3BucketName = Value Text
s3BucketName,
       s3KeyName :: Maybe (Value Text)
s3KeyName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3ExportingConfigProperty where
  toResourceProperties :: S3ExportingConfigProperty -> ResourceProperties
toResourceProperties S3ExportingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ExportingConfigProperty -> ()
s3BucketName :: S3ExportingConfigProperty -> Value Text
s3KeyName :: S3ExportingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3BucketName :: Value Text
s3KeyName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::Domain.S3ExportingConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"S3BucketName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
s3BucketName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3KeyName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
s3KeyName]))}
instance JSON.ToJSON S3ExportingConfigProperty where
  toJSON :: S3ExportingConfigProperty -> Value
toJSON S3ExportingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ExportingConfigProperty -> ()
s3BucketName :: S3ExportingConfigProperty -> Value Text
s3KeyName :: S3ExportingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3BucketName :: Value Text
s3KeyName :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"S3BucketName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
s3BucketName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3KeyName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
s3KeyName])))
instance Property "S3BucketName" S3ExportingConfigProperty where
  type PropertyType "S3BucketName" S3ExportingConfigProperty = Value Prelude.Text
  set :: PropertyType "S3BucketName" S3ExportingConfigProperty
-> S3ExportingConfigProperty -> S3ExportingConfigProperty
set PropertyType "S3BucketName" S3ExportingConfigProperty
newValue S3ExportingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ExportingConfigProperty -> ()
s3BucketName :: S3ExportingConfigProperty -> Value Text
s3KeyName :: S3ExportingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3BucketName :: Value Text
s3KeyName :: Maybe (Value Text)
..}
    = S3ExportingConfigProperty {s3BucketName :: Value Text
s3BucketName = PropertyType "S3BucketName" S3ExportingConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
s3KeyName :: Maybe (Value Text)
haddock_workaround_ :: ()
s3KeyName :: Maybe (Value Text)
..}
instance Property "S3KeyName" S3ExportingConfigProperty where
  type PropertyType "S3KeyName" S3ExportingConfigProperty = Value Prelude.Text
  set :: PropertyType "S3KeyName" S3ExportingConfigProperty
-> S3ExportingConfigProperty -> S3ExportingConfigProperty
set PropertyType "S3KeyName" S3ExportingConfigProperty
newValue S3ExportingConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3ExportingConfigProperty -> ()
s3BucketName :: S3ExportingConfigProperty -> Value Text
s3KeyName :: S3ExportingConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3BucketName :: Value Text
s3KeyName :: Maybe (Value Text)
..}
    = S3ExportingConfigProperty {s3KeyName :: Maybe (Value Text)
s3KeyName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3KeyName" S3ExportingConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
s3BucketName :: Value Text
haddock_workaround_ :: ()
s3BucketName :: Value Text
..}