module Stratosphere.DataSync.LocationHDFS.QopConfigurationProperty (
QopConfigurationProperty(..), mkQopConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data QopConfigurationProperty
=
QopConfigurationProperty {QopConfigurationProperty -> ()
haddock_workaround_ :: (),
QopConfigurationProperty -> Maybe (Value Text)
dataTransferProtection :: (Prelude.Maybe (Value Prelude.Text)),
QopConfigurationProperty -> Maybe (Value Text)
rpcProtection :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (QopConfigurationProperty -> QopConfigurationProperty -> Bool
(QopConfigurationProperty -> QopConfigurationProperty -> Bool)
-> (QopConfigurationProperty -> QopConfigurationProperty -> Bool)
-> Eq QopConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: QopConfigurationProperty -> QopConfigurationProperty -> Bool
== :: QopConfigurationProperty -> QopConfigurationProperty -> Bool
$c/= :: QopConfigurationProperty -> QopConfigurationProperty -> Bool
/= :: QopConfigurationProperty -> QopConfigurationProperty -> Bool
Prelude.Eq, Int -> QopConfigurationProperty -> ShowS
[QopConfigurationProperty] -> ShowS
QopConfigurationProperty -> String
(Int -> QopConfigurationProperty -> ShowS)
-> (QopConfigurationProperty -> String)
-> ([QopConfigurationProperty] -> ShowS)
-> Show QopConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QopConfigurationProperty -> ShowS
showsPrec :: Int -> QopConfigurationProperty -> ShowS
$cshow :: QopConfigurationProperty -> String
show :: QopConfigurationProperty -> String
$cshowList :: [QopConfigurationProperty] -> ShowS
showList :: [QopConfigurationProperty] -> ShowS
Prelude.Show)
mkQopConfigurationProperty :: QopConfigurationProperty
mkQopConfigurationProperty :: QopConfigurationProperty
mkQopConfigurationProperty
= QopConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
dataTransferProtection :: Maybe (Value Text)
dataTransferProtection = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
rpcProtection :: Maybe (Value Text)
rpcProtection = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties QopConfigurationProperty where
toResourceProperties :: QopConfigurationProperty -> ResourceProperties
toResourceProperties QopConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: QopConfigurationProperty -> ()
dataTransferProtection :: QopConfigurationProperty -> Maybe (Value Text)
rpcProtection :: QopConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferProtection :: Maybe (Value Text)
rpcProtection :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataSync::LocationHDFS.QopConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"DataTransferProtection"
(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)
dataTransferProtection,
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
"RpcProtection" (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)
rpcProtection])}
instance JSON.ToJSON QopConfigurationProperty where
toJSON :: QopConfigurationProperty -> Value
toJSON QopConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: QopConfigurationProperty -> ()
dataTransferProtection :: QopConfigurationProperty -> Maybe (Value Text)
rpcProtection :: QopConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferProtection :: Maybe (Value Text)
rpcProtection :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"DataTransferProtection"
(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)
dataTransferProtection,
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
"RpcProtection" (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)
rpcProtection]))
instance Property "DataTransferProtection" QopConfigurationProperty where
type PropertyType "DataTransferProtection" QopConfigurationProperty = Value Prelude.Text
set :: PropertyType "DataTransferProtection" QopConfigurationProperty
-> QopConfigurationProperty -> QopConfigurationProperty
set PropertyType "DataTransferProtection" QopConfigurationProperty
newValue QopConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: QopConfigurationProperty -> ()
dataTransferProtection :: QopConfigurationProperty -> Maybe (Value Text)
rpcProtection :: QopConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferProtection :: Maybe (Value Text)
rpcProtection :: Maybe (Value Text)
..}
= QopConfigurationProperty
{dataTransferProtection :: Maybe (Value Text)
dataTransferProtection = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataTransferProtection" QopConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
rpcProtection :: Maybe (Value Text)
haddock_workaround_ :: ()
rpcProtection :: Maybe (Value Text)
..}
instance Property "RpcProtection" QopConfigurationProperty where
type PropertyType "RpcProtection" QopConfigurationProperty = Value Prelude.Text
set :: PropertyType "RpcProtection" QopConfigurationProperty
-> QopConfigurationProperty -> QopConfigurationProperty
set PropertyType "RpcProtection" QopConfigurationProperty
newValue QopConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: QopConfigurationProperty -> ()
dataTransferProtection :: QopConfigurationProperty -> Maybe (Value Text)
rpcProtection :: QopConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferProtection :: Maybe (Value Text)
rpcProtection :: Maybe (Value Text)
..}
= QopConfigurationProperty
{rpcProtection :: Maybe (Value Text)
rpcProtection = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RpcProtection" QopConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
dataTransferProtection :: Maybe (Value Text)
haddock_workaround_ :: ()
dataTransferProtection :: Maybe (Value Text)
..}