module Stratosphere.Transfer.Connector.SftpConfigProperty (
SftpConfigProperty(..), mkSftpConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SftpConfigProperty
=
SftpConfigProperty {SftpConfigProperty -> ()
haddock_workaround_ :: (),
SftpConfigProperty -> Maybe (Value Integer)
maxConcurrentConnections :: (Prelude.Maybe (Value Prelude.Integer)),
SftpConfigProperty -> Maybe (ValueList Text)
trustedHostKeys :: (Prelude.Maybe (ValueList Prelude.Text)),
SftpConfigProperty -> Maybe (Value Text)
userSecretId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SftpConfigProperty -> SftpConfigProperty -> Bool
(SftpConfigProperty -> SftpConfigProperty -> Bool)
-> (SftpConfigProperty -> SftpConfigProperty -> Bool)
-> Eq SftpConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SftpConfigProperty -> SftpConfigProperty -> Bool
== :: SftpConfigProperty -> SftpConfigProperty -> Bool
$c/= :: SftpConfigProperty -> SftpConfigProperty -> Bool
/= :: SftpConfigProperty -> SftpConfigProperty -> Bool
Prelude.Eq, Int -> SftpConfigProperty -> ShowS
[SftpConfigProperty] -> ShowS
SftpConfigProperty -> String
(Int -> SftpConfigProperty -> ShowS)
-> (SftpConfigProperty -> String)
-> ([SftpConfigProperty] -> ShowS)
-> Show SftpConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SftpConfigProperty -> ShowS
showsPrec :: Int -> SftpConfigProperty -> ShowS
$cshow :: SftpConfigProperty -> String
show :: SftpConfigProperty -> String
$cshowList :: [SftpConfigProperty] -> ShowS
showList :: [SftpConfigProperty] -> ShowS
Prelude.Show)
mkSftpConfigProperty :: SftpConfigProperty
mkSftpConfigProperty :: SftpConfigProperty
mkSftpConfigProperty
= SftpConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
maxConcurrentConnections :: Maybe (Value Integer)
maxConcurrentConnections = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
trustedHostKeys :: Maybe (ValueList Text)
trustedHostKeys = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, userSecretId :: Maybe (Value Text)
userSecretId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SftpConfigProperty where
toResourceProperties :: SftpConfigProperty -> ResourceProperties
toResourceProperties SftpConfigProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: SftpConfigProperty -> ()
maxConcurrentConnections :: SftpConfigProperty -> Maybe (Value Integer)
trustedHostKeys :: SftpConfigProperty -> Maybe (ValueList Text)
userSecretId :: SftpConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
trustedHostKeys :: Maybe (ValueList Text)
userSecretId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Transfer::Connector.SftpConfig",
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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxConcurrentConnections"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxConcurrentConnections,
Key -> ValueList 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
"TrustedHostKeys" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
trustedHostKeys,
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
"UserSecretId" (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)
userSecretId])}
instance JSON.ToJSON SftpConfigProperty where
toJSON :: SftpConfigProperty -> Value
toJSON SftpConfigProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: SftpConfigProperty -> ()
maxConcurrentConnections :: SftpConfigProperty -> Maybe (Value Integer)
trustedHostKeys :: SftpConfigProperty -> Maybe (ValueList Text)
userSecretId :: SftpConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
trustedHostKeys :: Maybe (ValueList Text)
userSecretId :: 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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxConcurrentConnections"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxConcurrentConnections,
Key -> ValueList 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
"TrustedHostKeys" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
trustedHostKeys,
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
"UserSecretId" (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)
userSecretId]))
instance Property "MaxConcurrentConnections" SftpConfigProperty where
type PropertyType "MaxConcurrentConnections" SftpConfigProperty = Value Prelude.Integer
set :: PropertyType "MaxConcurrentConnections" SftpConfigProperty
-> SftpConfigProperty -> SftpConfigProperty
set PropertyType "MaxConcurrentConnections" SftpConfigProperty
newValue SftpConfigProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: SftpConfigProperty -> ()
maxConcurrentConnections :: SftpConfigProperty -> Maybe (Value Integer)
trustedHostKeys :: SftpConfigProperty -> Maybe (ValueList Text)
userSecretId :: SftpConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
trustedHostKeys :: Maybe (ValueList Text)
userSecretId :: Maybe (Value Text)
..}
= SftpConfigProperty
{maxConcurrentConnections :: Maybe (Value Integer)
maxConcurrentConnections = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxConcurrentConnections" SftpConfigProperty
Value Integer
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
trustedHostKeys :: Maybe (ValueList Text)
userSecretId :: Maybe (Value Text)
haddock_workaround_ :: ()
trustedHostKeys :: Maybe (ValueList Text)
userSecretId :: Maybe (Value Text)
..}
instance Property "TrustedHostKeys" SftpConfigProperty where
type PropertyType "TrustedHostKeys" SftpConfigProperty = ValueList Prelude.Text
set :: PropertyType "TrustedHostKeys" SftpConfigProperty
-> SftpConfigProperty -> SftpConfigProperty
set PropertyType "TrustedHostKeys" SftpConfigProperty
newValue SftpConfigProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: SftpConfigProperty -> ()
maxConcurrentConnections :: SftpConfigProperty -> Maybe (Value Integer)
trustedHostKeys :: SftpConfigProperty -> Maybe (ValueList Text)
userSecretId :: SftpConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
trustedHostKeys :: Maybe (ValueList Text)
userSecretId :: Maybe (Value Text)
..}
= SftpConfigProperty {trustedHostKeys :: Maybe (ValueList Text)
trustedHostKeys = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TrustedHostKeys" SftpConfigProperty
ValueList Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
userSecretId :: Maybe (Value Text)
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
userSecretId :: Maybe (Value Text)
..}
instance Property "UserSecretId" SftpConfigProperty where
type PropertyType "UserSecretId" SftpConfigProperty = Value Prelude.Text
set :: PropertyType "UserSecretId" SftpConfigProperty
-> SftpConfigProperty -> SftpConfigProperty
set PropertyType "UserSecretId" SftpConfigProperty
newValue SftpConfigProperty {Maybe (ValueList Text)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: SftpConfigProperty -> ()
maxConcurrentConnections :: SftpConfigProperty -> Maybe (Value Integer)
trustedHostKeys :: SftpConfigProperty -> Maybe (ValueList Text)
userSecretId :: SftpConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
trustedHostKeys :: Maybe (ValueList Text)
userSecretId :: Maybe (Value Text)
..}
= SftpConfigProperty {userSecretId :: Maybe (Value Text)
userSecretId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserSecretId" SftpConfigProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
trustedHostKeys :: Maybe (ValueList Text)
haddock_workaround_ :: ()
maxConcurrentConnections :: Maybe (Value Integer)
trustedHostKeys :: Maybe (ValueList Text)
..}