module Stratosphere.Timestream.InfluxDBInstance.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-timestream-influxdbinstance-s3configuration.html>
    S3ConfigurationProperty {S3ConfigurationProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-influxdbinstance-s3configuration.html#cfn-timestream-influxdbinstance-s3configuration-bucketname>
                             S3ConfigurationProperty -> Value Text
bucketName :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-influxdbinstance-s3configuration.html#cfn-timestream-influxdbinstance-s3configuration-enabled>
                             S3ConfigurationProperty -> Value Bool
enabled :: (Value Prelude.Bool)}
  deriving stock (S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
(S3ConfigurationProperty -> S3ConfigurationProperty -> Bool)
-> (S3ConfigurationProperty -> S3ConfigurationProperty -> Bool)
-> Eq S3ConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
== :: S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
$c/= :: S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
/= :: S3ConfigurationProperty -> S3ConfigurationProperty -> Bool
Prelude.Eq, Int -> S3ConfigurationProperty -> ShowS
[S3ConfigurationProperty] -> ShowS
S3ConfigurationProperty -> String
(Int -> S3ConfigurationProperty -> ShowS)
-> (S3ConfigurationProperty -> String)
-> ([S3ConfigurationProperty] -> ShowS)
-> Show S3ConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3ConfigurationProperty -> ShowS
showsPrec :: Int -> S3ConfigurationProperty -> ShowS
$cshow :: S3ConfigurationProperty -> String
show :: S3ConfigurationProperty -> String
$cshowList :: [S3ConfigurationProperty] -> ShowS
showList :: [S3ConfigurationProperty] -> ShowS
Prelude.Show)
mkS3ConfigurationProperty ::
  Value Prelude.Text -> Value Prelude.Bool -> S3ConfigurationProperty
mkS3ConfigurationProperty :: Value Text -> Value Bool -> S3ConfigurationProperty
mkS3ConfigurationProperty Value Text
bucketName Value Bool
enabled
  = S3ConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucketName :: Value Text
bucketName = Value Text
bucketName,
       enabled :: Value Bool
enabled = Value Bool
enabled}
instance ToResourceProperties S3ConfigurationProperty where
  toResourceProperties :: S3ConfigurationProperty -> ResourceProperties
toResourceProperties S3ConfigurationProperty {()
Value Bool
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
enabled :: S3ConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
bucketName :: Value Text
enabled :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Timestream::InfluxDBInstance.S3Configuration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"BucketName" 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
bucketName,
                       Key
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]}
instance JSON.ToJSON S3ConfigurationProperty where
  toJSON :: S3ConfigurationProperty -> Value
toJSON S3ConfigurationProperty {()
Value Bool
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
enabled :: S3ConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
bucketName :: Value Text
enabled :: Value Bool
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"BucketName" 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
bucketName, Key
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
instance Property "BucketName" S3ConfigurationProperty where
  type PropertyType "BucketName" S3ConfigurationProperty = Value Prelude.Text
  set :: PropertyType "BucketName" S3ConfigurationProperty
-> S3ConfigurationProperty -> S3ConfigurationProperty
set PropertyType "BucketName" S3ConfigurationProperty
newValue S3ConfigurationProperty {()
Value Bool
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
enabled :: S3ConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
bucketName :: Value Text
enabled :: Value Bool
..}
    = S3ConfigurationProperty {bucketName :: Value Text
bucketName = PropertyType "BucketName" S3ConfigurationProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
instance Property "Enabled" S3ConfigurationProperty where
  type PropertyType "Enabled" S3ConfigurationProperty = Value Prelude.Bool
  set :: PropertyType "Enabled" S3ConfigurationProperty
-> S3ConfigurationProperty -> S3ConfigurationProperty
set PropertyType "Enabled" S3ConfigurationProperty
newValue S3ConfigurationProperty {()
Value Bool
Value Text
haddock_workaround_ :: S3ConfigurationProperty -> ()
bucketName :: S3ConfigurationProperty -> Value Text
enabled :: S3ConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
bucketName :: Value Text
enabled :: Value Bool
..}
    = S3ConfigurationProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" S3ConfigurationProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}