module Stratosphere.LookoutEquipment.InferenceScheduler.S3OutputConfigurationProperty (
        S3OutputConfigurationProperty(..), mkS3OutputConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3OutputConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-s3outputconfiguration.html>
    S3OutputConfigurationProperty {S3OutputConfigurationProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-s3outputconfiguration.html#cfn-lookoutequipment-inferencescheduler-s3outputconfiguration-bucket>
                                   S3OutputConfigurationProperty -> Value Text
bucket :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-s3outputconfiguration.html#cfn-lookoutequipment-inferencescheduler-s3outputconfiguration-prefix>
                                   S3OutputConfigurationProperty -> Maybe (Value Text)
prefix :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (S3OutputConfigurationProperty
-> S3OutputConfigurationProperty -> Bool
(S3OutputConfigurationProperty
 -> S3OutputConfigurationProperty -> Bool)
-> (S3OutputConfigurationProperty
    -> S3OutputConfigurationProperty -> Bool)
-> Eq S3OutputConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3OutputConfigurationProperty
-> S3OutputConfigurationProperty -> Bool
== :: S3OutputConfigurationProperty
-> S3OutputConfigurationProperty -> Bool
$c/= :: S3OutputConfigurationProperty
-> S3OutputConfigurationProperty -> Bool
/= :: S3OutputConfigurationProperty
-> S3OutputConfigurationProperty -> Bool
Prelude.Eq, Int -> S3OutputConfigurationProperty -> ShowS
[S3OutputConfigurationProperty] -> ShowS
S3OutputConfigurationProperty -> String
(Int -> S3OutputConfigurationProperty -> ShowS)
-> (S3OutputConfigurationProperty -> String)
-> ([S3OutputConfigurationProperty] -> ShowS)
-> Show S3OutputConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3OutputConfigurationProperty -> ShowS
showsPrec :: Int -> S3OutputConfigurationProperty -> ShowS
$cshow :: S3OutputConfigurationProperty -> String
show :: S3OutputConfigurationProperty -> String
$cshowList :: [S3OutputConfigurationProperty] -> ShowS
showList :: [S3OutputConfigurationProperty] -> ShowS
Prelude.Show)
mkS3OutputConfigurationProperty ::
  Value Prelude.Text -> S3OutputConfigurationProperty
mkS3OutputConfigurationProperty :: Value Text -> S3OutputConfigurationProperty
mkS3OutputConfigurationProperty Value Text
bucket
  = S3OutputConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucket :: Value Text
bucket = Value Text
bucket,
       prefix :: Maybe (Value Text)
prefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3OutputConfigurationProperty where
  toResourceProperties :: S3OutputConfigurationProperty -> ResourceProperties
toResourceProperties S3OutputConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3OutputConfigurationProperty -> ()
bucket :: S3OutputConfigurationProperty -> Value Text
prefix :: S3OutputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
prefix :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::LookoutEquipment::InferenceScheduler.S3OutputConfiguration",
         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
"Bucket" 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
bucket]
                           ([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
"Prefix" (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)
prefix]))}
instance JSON.ToJSON S3OutputConfigurationProperty where
  toJSON :: S3OutputConfigurationProperty -> Value
toJSON S3OutputConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3OutputConfigurationProperty -> ()
bucket :: S3OutputConfigurationProperty -> Value Text
prefix :: S3OutputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
prefix :: 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
"Bucket" 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
bucket]
              ([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
"Prefix" (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)
prefix])))
instance Property "Bucket" S3OutputConfigurationProperty where
  type PropertyType "Bucket" S3OutputConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Bucket" S3OutputConfigurationProperty
-> S3OutputConfigurationProperty -> S3OutputConfigurationProperty
set PropertyType "Bucket" S3OutputConfigurationProperty
newValue S3OutputConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3OutputConfigurationProperty -> ()
bucket :: S3OutputConfigurationProperty -> Value Text
prefix :: S3OutputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
prefix :: Maybe (Value Text)
..}
    = S3OutputConfigurationProperty {bucket :: Value Text
bucket = PropertyType "Bucket" S3OutputConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
..}
instance Property "Prefix" S3OutputConfigurationProperty where
  type PropertyType "Prefix" S3OutputConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Prefix" S3OutputConfigurationProperty
-> S3OutputConfigurationProperty -> S3OutputConfigurationProperty
set PropertyType "Prefix" S3OutputConfigurationProperty
newValue S3OutputConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3OutputConfigurationProperty -> ()
bucket :: S3OutputConfigurationProperty -> Value Text
prefix :: S3OutputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
prefix :: Maybe (Value Text)
..}
    = S3OutputConfigurationProperty
        {prefix :: Maybe (Value Text)
prefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Prefix" S3OutputConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
haddock_workaround_ :: ()
bucket :: Value Text
..}