module Stratosphere.Transfer.Server.ProtocolDetailsProperty (
        ProtocolDetailsProperty(..), mkProtocolDetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProtocolDetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-protocoldetails.html>
    ProtocolDetailsProperty {ProtocolDetailsProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-protocoldetails.html#cfn-transfer-server-protocoldetails-as2transports>
                             ProtocolDetailsProperty -> Maybe (ValueList Text)
as2Transports :: (Prelude.Maybe (ValueList Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-protocoldetails.html#cfn-transfer-server-protocoldetails-passiveip>
                             ProtocolDetailsProperty -> Maybe (Value Text)
passiveIp :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-protocoldetails.html#cfn-transfer-server-protocoldetails-setstatoption>
                             ProtocolDetailsProperty -> Maybe (Value Text)
setStatOption :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-protocoldetails.html#cfn-transfer-server-protocoldetails-tlssessionresumptionmode>
                             ProtocolDetailsProperty -> Maybe (Value Text)
tlsSessionResumptionMode :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ProtocolDetailsProperty -> ProtocolDetailsProperty -> Bool
(ProtocolDetailsProperty -> ProtocolDetailsProperty -> Bool)
-> (ProtocolDetailsProperty -> ProtocolDetailsProperty -> Bool)
-> Eq ProtocolDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProtocolDetailsProperty -> ProtocolDetailsProperty -> Bool
== :: ProtocolDetailsProperty -> ProtocolDetailsProperty -> Bool
$c/= :: ProtocolDetailsProperty -> ProtocolDetailsProperty -> Bool
/= :: ProtocolDetailsProperty -> ProtocolDetailsProperty -> Bool
Prelude.Eq, Int -> ProtocolDetailsProperty -> ShowS
[ProtocolDetailsProperty] -> ShowS
ProtocolDetailsProperty -> String
(Int -> ProtocolDetailsProperty -> ShowS)
-> (ProtocolDetailsProperty -> String)
-> ([ProtocolDetailsProperty] -> ShowS)
-> Show ProtocolDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProtocolDetailsProperty -> ShowS
showsPrec :: Int -> ProtocolDetailsProperty -> ShowS
$cshow :: ProtocolDetailsProperty -> String
show :: ProtocolDetailsProperty -> String
$cshowList :: [ProtocolDetailsProperty] -> ShowS
showList :: [ProtocolDetailsProperty] -> ShowS
Prelude.Show)
mkProtocolDetailsProperty :: ProtocolDetailsProperty
mkProtocolDetailsProperty :: ProtocolDetailsProperty
mkProtocolDetailsProperty
  = ProtocolDetailsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), as2Transports :: Maybe (ValueList Text)
as2Transports = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       passiveIp :: Maybe (Value Text)
passiveIp = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, setStatOption :: Maybe (Value Text)
setStatOption = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tlsSessionResumptionMode :: Maybe (Value Text)
tlsSessionResumptionMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProtocolDetailsProperty where
  toResourceProperties :: ProtocolDetailsProperty -> ResourceProperties
toResourceProperties ProtocolDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ProtocolDetailsProperty -> ()
as2Transports :: ProtocolDetailsProperty -> Maybe (ValueList Text)
passiveIp :: ProtocolDetailsProperty -> Maybe (Value Text)
setStatOption :: ProtocolDetailsProperty -> Maybe (Value Text)
tlsSessionResumptionMode :: ProtocolDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Transfer::Server.ProtocolDetails",
         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 -> 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
"As2Transports" (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)
as2Transports,
                            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
"PassiveIp" (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)
passiveIp,
                            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
"SetStatOption" (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)
setStatOption,
                            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
"TlsSessionResumptionMode"
                              (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)
tlsSessionResumptionMode])}
instance JSON.ToJSON ProtocolDetailsProperty where
  toJSON :: ProtocolDetailsProperty -> Value
toJSON ProtocolDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ProtocolDetailsProperty -> ()
as2Transports :: ProtocolDetailsProperty -> Maybe (ValueList Text)
passiveIp :: ProtocolDetailsProperty -> Maybe (Value Text)
setStatOption :: ProtocolDetailsProperty -> Maybe (Value Text)
tlsSessionResumptionMode :: ProtocolDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: 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 -> 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
"As2Transports" (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)
as2Transports,
               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
"PassiveIp" (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)
passiveIp,
               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
"SetStatOption" (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)
setStatOption,
               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
"TlsSessionResumptionMode"
                 (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)
tlsSessionResumptionMode]))
instance Property "As2Transports" ProtocolDetailsProperty where
  type PropertyType "As2Transports" ProtocolDetailsProperty = ValueList Prelude.Text
  set :: PropertyType "As2Transports" ProtocolDetailsProperty
-> ProtocolDetailsProperty -> ProtocolDetailsProperty
set PropertyType "As2Transports" ProtocolDetailsProperty
newValue ProtocolDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ProtocolDetailsProperty -> ()
as2Transports :: ProtocolDetailsProperty -> Maybe (ValueList Text)
passiveIp :: ProtocolDetailsProperty -> Maybe (Value Text)
setStatOption :: ProtocolDetailsProperty -> Maybe (Value Text)
tlsSessionResumptionMode :: ProtocolDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
..}
    = ProtocolDetailsProperty
        {as2Transports :: Maybe (ValueList Text)
as2Transports = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "As2Transports" ProtocolDetailsProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
haddock_workaround_ :: ()
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
..}
instance Property "PassiveIp" ProtocolDetailsProperty where
  type PropertyType "PassiveIp" ProtocolDetailsProperty = Value Prelude.Text
  set :: PropertyType "PassiveIp" ProtocolDetailsProperty
-> ProtocolDetailsProperty -> ProtocolDetailsProperty
set PropertyType "PassiveIp" ProtocolDetailsProperty
newValue ProtocolDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ProtocolDetailsProperty -> ()
as2Transports :: ProtocolDetailsProperty -> Maybe (ValueList Text)
passiveIp :: ProtocolDetailsProperty -> Maybe (Value Text)
setStatOption :: ProtocolDetailsProperty -> Maybe (Value Text)
tlsSessionResumptionMode :: ProtocolDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
..}
    = ProtocolDetailsProperty {passiveIp :: Maybe (Value Text)
passiveIp = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PassiveIp" ProtocolDetailsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
..}
instance Property "SetStatOption" ProtocolDetailsProperty where
  type PropertyType "SetStatOption" ProtocolDetailsProperty = Value Prelude.Text
  set :: PropertyType "SetStatOption" ProtocolDetailsProperty
-> ProtocolDetailsProperty -> ProtocolDetailsProperty
set PropertyType "SetStatOption" ProtocolDetailsProperty
newValue ProtocolDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ProtocolDetailsProperty -> ()
as2Transports :: ProtocolDetailsProperty -> Maybe (ValueList Text)
passiveIp :: ProtocolDetailsProperty -> Maybe (Value Text)
setStatOption :: ProtocolDetailsProperty -> Maybe (Value Text)
tlsSessionResumptionMode :: ProtocolDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
..}
    = ProtocolDetailsProperty
        {setStatOption :: Maybe (Value Text)
setStatOption = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SetStatOption" ProtocolDetailsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
..}
instance Property "TlsSessionResumptionMode" ProtocolDetailsProperty where
  type PropertyType "TlsSessionResumptionMode" ProtocolDetailsProperty = Value Prelude.Text
  set :: PropertyType "TlsSessionResumptionMode" ProtocolDetailsProperty
-> ProtocolDetailsProperty -> ProtocolDetailsProperty
set PropertyType "TlsSessionResumptionMode" ProtocolDetailsProperty
newValue ProtocolDetailsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ProtocolDetailsProperty -> ()
as2Transports :: ProtocolDetailsProperty -> Maybe (ValueList Text)
passiveIp :: ProtocolDetailsProperty -> Maybe (Value Text)
setStatOption :: ProtocolDetailsProperty -> Maybe (Value Text)
tlsSessionResumptionMode :: ProtocolDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
tlsSessionResumptionMode :: Maybe (Value Text)
..}
    = ProtocolDetailsProperty
        {tlsSessionResumptionMode :: Maybe (Value Text)
tlsSessionResumptionMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TlsSessionResumptionMode" ProtocolDetailsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
haddock_workaround_ :: ()
as2Transports :: Maybe (ValueList Text)
passiveIp :: Maybe (Value Text)
setStatOption :: Maybe (Value Text)
..}