module Stratosphere.DataSync.Task.TaskReportConfigProperty (
module Exports, TaskReportConfigProperty(..),
mkTaskReportConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataSync.Task.DestinationProperty as Exports
import {-# SOURCE #-} Stratosphere.DataSync.Task.OverridesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TaskReportConfigProperty
=
TaskReportConfigProperty {TaskReportConfigProperty -> ()
haddock_workaround_ :: (),
TaskReportConfigProperty -> DestinationProperty
destination :: DestinationProperty,
TaskReportConfigProperty -> Maybe (Value Text)
objectVersionIds :: (Prelude.Maybe (Value Prelude.Text)),
TaskReportConfigProperty -> Value Text
outputType :: (Value Prelude.Text),
TaskReportConfigProperty -> Maybe OverridesProperty
overrides :: (Prelude.Maybe OverridesProperty),
TaskReportConfigProperty -> Maybe (Value Text)
reportLevel :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TaskReportConfigProperty -> TaskReportConfigProperty -> Bool
(TaskReportConfigProperty -> TaskReportConfigProperty -> Bool)
-> (TaskReportConfigProperty -> TaskReportConfigProperty -> Bool)
-> Eq TaskReportConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TaskReportConfigProperty -> TaskReportConfigProperty -> Bool
== :: TaskReportConfigProperty -> TaskReportConfigProperty -> Bool
$c/= :: TaskReportConfigProperty -> TaskReportConfigProperty -> Bool
/= :: TaskReportConfigProperty -> TaskReportConfigProperty -> Bool
Prelude.Eq, Int -> TaskReportConfigProperty -> ShowS
[TaskReportConfigProperty] -> ShowS
TaskReportConfigProperty -> String
(Int -> TaskReportConfigProperty -> ShowS)
-> (TaskReportConfigProperty -> String)
-> ([TaskReportConfigProperty] -> ShowS)
-> Show TaskReportConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TaskReportConfigProperty -> ShowS
showsPrec :: Int -> TaskReportConfigProperty -> ShowS
$cshow :: TaskReportConfigProperty -> String
show :: TaskReportConfigProperty -> String
$cshowList :: [TaskReportConfigProperty] -> ShowS
showList :: [TaskReportConfigProperty] -> ShowS
Prelude.Show)
mkTaskReportConfigProperty ::
DestinationProperty
-> Value Prelude.Text -> TaskReportConfigProperty
mkTaskReportConfigProperty :: DestinationProperty -> Value Text -> TaskReportConfigProperty
mkTaskReportConfigProperty DestinationProperty
destination Value Text
outputType
= TaskReportConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destination :: DestinationProperty
destination = DestinationProperty
destination,
outputType :: Value Text
outputType = Value Text
outputType, objectVersionIds :: Maybe (Value Text)
objectVersionIds = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
overrides :: Maybe OverridesProperty
overrides = Maybe OverridesProperty
forall a. Maybe a
Prelude.Nothing, reportLevel :: Maybe (Value Text)
reportLevel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TaskReportConfigProperty where
toResourceProperties :: TaskReportConfigProperty -> ResourceProperties
toResourceProperties TaskReportConfigProperty {Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: TaskReportConfigProperty -> ()
destination :: TaskReportConfigProperty -> DestinationProperty
objectVersionIds :: TaskReportConfigProperty -> Maybe (Value Text)
outputType :: TaskReportConfigProperty -> Value Text
overrides :: TaskReportConfigProperty -> Maybe OverridesProperty
reportLevel :: TaskReportConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataSync::Task.TaskReportConfig",
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
"Destination" Key -> DestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DestinationProperty
destination,
Key
"OutputType" 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
outputType]
([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
"ObjectVersionIds" (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)
objectVersionIds,
Key -> OverridesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Overrides" (OverridesProperty -> (Key, Value))
-> Maybe OverridesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OverridesProperty
overrides,
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
"ReportLevel" (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)
reportLevel]))}
instance JSON.ToJSON TaskReportConfigProperty where
toJSON :: TaskReportConfigProperty -> Value
toJSON TaskReportConfigProperty {Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: TaskReportConfigProperty -> ()
destination :: TaskReportConfigProperty -> DestinationProperty
objectVersionIds :: TaskReportConfigProperty -> Maybe (Value Text)
outputType :: TaskReportConfigProperty -> Value Text
overrides :: TaskReportConfigProperty -> Maybe OverridesProperty
reportLevel :: TaskReportConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: 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
"Destination" Key -> DestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DestinationProperty
destination,
Key
"OutputType" 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
outputType]
([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
"ObjectVersionIds" (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)
objectVersionIds,
Key -> OverridesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Overrides" (OverridesProperty -> (Key, Value))
-> Maybe OverridesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OverridesProperty
overrides,
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
"ReportLevel" (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)
reportLevel])))
instance Property "Destination" TaskReportConfigProperty where
type PropertyType "Destination" TaskReportConfigProperty = DestinationProperty
set :: PropertyType "Destination" TaskReportConfigProperty
-> TaskReportConfigProperty -> TaskReportConfigProperty
set PropertyType "Destination" TaskReportConfigProperty
newValue TaskReportConfigProperty {Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: TaskReportConfigProperty -> ()
destination :: TaskReportConfigProperty -> DestinationProperty
objectVersionIds :: TaskReportConfigProperty -> Maybe (Value Text)
outputType :: TaskReportConfigProperty -> Value Text
overrides :: TaskReportConfigProperty -> Maybe OverridesProperty
reportLevel :: TaskReportConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
= TaskReportConfigProperty {destination :: DestinationProperty
destination = PropertyType "Destination" TaskReportConfigProperty
DestinationProperty
newValue, Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
haddock_workaround_ :: ()
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
haddock_workaround_ :: ()
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
instance Property "ObjectVersionIds" TaskReportConfigProperty where
type PropertyType "ObjectVersionIds" TaskReportConfigProperty = Value Prelude.Text
set :: PropertyType "ObjectVersionIds" TaskReportConfigProperty
-> TaskReportConfigProperty -> TaskReportConfigProperty
set PropertyType "ObjectVersionIds" TaskReportConfigProperty
newValue TaskReportConfigProperty {Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: TaskReportConfigProperty -> ()
destination :: TaskReportConfigProperty -> DestinationProperty
objectVersionIds :: TaskReportConfigProperty -> Maybe (Value Text)
outputType :: TaskReportConfigProperty -> Value Text
overrides :: TaskReportConfigProperty -> Maybe OverridesProperty
reportLevel :: TaskReportConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
= TaskReportConfigProperty
{objectVersionIds :: Maybe (Value Text)
objectVersionIds = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ObjectVersionIds" TaskReportConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: ()
destination :: DestinationProperty
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
instance Property "OutputType" TaskReportConfigProperty where
type PropertyType "OutputType" TaskReportConfigProperty = Value Prelude.Text
set :: PropertyType "OutputType" TaskReportConfigProperty
-> TaskReportConfigProperty -> TaskReportConfigProperty
set PropertyType "OutputType" TaskReportConfigProperty
newValue TaskReportConfigProperty {Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: TaskReportConfigProperty -> ()
destination :: TaskReportConfigProperty -> DestinationProperty
objectVersionIds :: TaskReportConfigProperty -> Maybe (Value Text)
outputType :: TaskReportConfigProperty -> Value Text
overrides :: TaskReportConfigProperty -> Maybe OverridesProperty
reportLevel :: TaskReportConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
= TaskReportConfigProperty {outputType :: Value Text
outputType = PropertyType "OutputType" TaskReportConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe OverridesProperty
()
DestinationProperty
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
instance Property "Overrides" TaskReportConfigProperty where
type PropertyType "Overrides" TaskReportConfigProperty = OverridesProperty
set :: PropertyType "Overrides" TaskReportConfigProperty
-> TaskReportConfigProperty -> TaskReportConfigProperty
set PropertyType "Overrides" TaskReportConfigProperty
newValue TaskReportConfigProperty {Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: TaskReportConfigProperty -> ()
destination :: TaskReportConfigProperty -> DestinationProperty
objectVersionIds :: TaskReportConfigProperty -> Maybe (Value Text)
outputType :: TaskReportConfigProperty -> Value Text
overrides :: TaskReportConfigProperty -> Maybe OverridesProperty
reportLevel :: TaskReportConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
= TaskReportConfigProperty {overrides :: Maybe OverridesProperty
overrides = OverridesProperty -> Maybe OverridesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Overrides" TaskReportConfigProperty
OverridesProperty
newValue, Maybe (Value Text)
()
Value Text
DestinationProperty
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
reportLevel :: Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
reportLevel :: Maybe (Value Text)
..}
instance Property "ReportLevel" TaskReportConfigProperty where
type PropertyType "ReportLevel" TaskReportConfigProperty = Value Prelude.Text
set :: PropertyType "ReportLevel" TaskReportConfigProperty
-> TaskReportConfigProperty -> TaskReportConfigProperty
set PropertyType "ReportLevel" TaskReportConfigProperty
newValue TaskReportConfigProperty {Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: TaskReportConfigProperty -> ()
destination :: TaskReportConfigProperty -> DestinationProperty
objectVersionIds :: TaskReportConfigProperty -> Maybe (Value Text)
outputType :: TaskReportConfigProperty -> Value Text
overrides :: TaskReportConfigProperty -> Maybe OverridesProperty
reportLevel :: TaskReportConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
reportLevel :: Maybe (Value Text)
..}
= TaskReportConfigProperty
{reportLevel :: Maybe (Value Text)
reportLevel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReportLevel" TaskReportConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe OverridesProperty
()
Value Text
DestinationProperty
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
haddock_workaround_ :: ()
destination :: DestinationProperty
objectVersionIds :: Maybe (Value Text)
outputType :: Value Text
overrides :: Maybe OverridesProperty
..}