module Stratosphere.Transfer.Server.IdentityProviderDetailsProperty (
        IdentityProviderDetailsProperty(..),
        mkIdentityProviderDetailsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IdentityProviderDetailsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-identityproviderdetails.html>
    IdentityProviderDetailsProperty {IdentityProviderDetailsProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-identityproviderdetails.html#cfn-transfer-server-identityproviderdetails-directoryid>
                                     IdentityProviderDetailsProperty -> Maybe (Value Text)
directoryId :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-identityproviderdetails.html#cfn-transfer-server-identityproviderdetails-function>
                                     IdentityProviderDetailsProperty -> Maybe (Value Text)
function :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-identityproviderdetails.html#cfn-transfer-server-identityproviderdetails-invocationrole>
                                     IdentityProviderDetailsProperty -> Maybe (Value Text)
invocationRole :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-identityproviderdetails.html#cfn-transfer-server-identityproviderdetails-sftpauthenticationmethods>
                                     IdentityProviderDetailsProperty -> Maybe (Value Text)
sftpAuthenticationMethods :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-transfer-server-identityproviderdetails.html#cfn-transfer-server-identityproviderdetails-url>
                                     IdentityProviderDetailsProperty -> Maybe (Value Text)
url :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty -> Bool
(IdentityProviderDetailsProperty
 -> IdentityProviderDetailsProperty -> Bool)
-> (IdentityProviderDetailsProperty
    -> IdentityProviderDetailsProperty -> Bool)
-> Eq IdentityProviderDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty -> Bool
== :: IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty -> Bool
$c/= :: IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty -> Bool
/= :: IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty -> Bool
Prelude.Eq, Int -> IdentityProviderDetailsProperty -> ShowS
[IdentityProviderDetailsProperty] -> ShowS
IdentityProviderDetailsProperty -> String
(Int -> IdentityProviderDetailsProperty -> ShowS)
-> (IdentityProviderDetailsProperty -> String)
-> ([IdentityProviderDetailsProperty] -> ShowS)
-> Show IdentityProviderDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IdentityProviderDetailsProperty -> ShowS
showsPrec :: Int -> IdentityProviderDetailsProperty -> ShowS
$cshow :: IdentityProviderDetailsProperty -> String
show :: IdentityProviderDetailsProperty -> String
$cshowList :: [IdentityProviderDetailsProperty] -> ShowS
showList :: [IdentityProviderDetailsProperty] -> ShowS
Prelude.Show)
mkIdentityProviderDetailsProperty ::
  IdentityProviderDetailsProperty
mkIdentityProviderDetailsProperty :: IdentityProviderDetailsProperty
mkIdentityProviderDetailsProperty
  = IdentityProviderDetailsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), directoryId :: Maybe (Value Text)
directoryId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       function :: Maybe (Value Text)
function = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, invocationRole :: Maybe (Value Text)
invocationRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       sftpAuthenticationMethods :: Maybe (Value Text)
sftpAuthenticationMethods = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, url :: Maybe (Value Text)
url = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IdentityProviderDetailsProperty where
  toResourceProperties :: IdentityProviderDetailsProperty -> ResourceProperties
toResourceProperties IdentityProviderDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityProviderDetailsProperty -> ()
directoryId :: IdentityProviderDetailsProperty -> Maybe (Value Text)
function :: IdentityProviderDetailsProperty -> Maybe (Value Text)
invocationRole :: IdentityProviderDetailsProperty -> Maybe (Value Text)
sftpAuthenticationMethods :: IdentityProviderDetailsProperty -> Maybe (Value Text)
url :: IdentityProviderDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Transfer::Server.IdentityProviderDetails",
         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
"DirectoryId" (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)
directoryId,
                            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
"Function" (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)
function,
                            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
"InvocationRole" (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)
invocationRole,
                            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
"SftpAuthenticationMethods"
                              (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)
sftpAuthenticationMethods,
                            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
"Url" (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)
url])}
instance JSON.ToJSON IdentityProviderDetailsProperty where
  toJSON :: IdentityProviderDetailsProperty -> Value
toJSON IdentityProviderDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityProviderDetailsProperty -> ()
directoryId :: IdentityProviderDetailsProperty -> Maybe (Value Text)
function :: IdentityProviderDetailsProperty -> Maybe (Value Text)
invocationRole :: IdentityProviderDetailsProperty -> Maybe (Value Text)
sftpAuthenticationMethods :: IdentityProviderDetailsProperty -> Maybe (Value Text)
url :: IdentityProviderDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: 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
"DirectoryId" (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)
directoryId,
               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
"Function" (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)
function,
               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
"InvocationRole" (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)
invocationRole,
               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
"SftpAuthenticationMethods"
                 (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)
sftpAuthenticationMethods,
               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
"Url" (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)
url]))
instance Property "DirectoryId" IdentityProviderDetailsProperty where
  type PropertyType "DirectoryId" IdentityProviderDetailsProperty = Value Prelude.Text
  set :: PropertyType "DirectoryId" IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
set PropertyType "DirectoryId" IdentityProviderDetailsProperty
newValue IdentityProviderDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityProviderDetailsProperty -> ()
directoryId :: IdentityProviderDetailsProperty -> Maybe (Value Text)
function :: IdentityProviderDetailsProperty -> Maybe (Value Text)
invocationRole :: IdentityProviderDetailsProperty -> Maybe (Value Text)
sftpAuthenticationMethods :: IdentityProviderDetailsProperty -> Maybe (Value Text)
url :: IdentityProviderDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
    = IdentityProviderDetailsProperty
        {directoryId :: Maybe (Value Text)
directoryId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DirectoryId" IdentityProviderDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
haddock_workaround_ :: ()
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
instance Property "Function" IdentityProviderDetailsProperty where
  type PropertyType "Function" IdentityProviderDetailsProperty = Value Prelude.Text
  set :: PropertyType "Function" IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
set PropertyType "Function" IdentityProviderDetailsProperty
newValue IdentityProviderDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityProviderDetailsProperty -> ()
directoryId :: IdentityProviderDetailsProperty -> Maybe (Value Text)
function :: IdentityProviderDetailsProperty -> Maybe (Value Text)
invocationRole :: IdentityProviderDetailsProperty -> Maybe (Value Text)
sftpAuthenticationMethods :: IdentityProviderDetailsProperty -> Maybe (Value Text)
url :: IdentityProviderDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
    = IdentityProviderDetailsProperty
        {function :: Maybe (Value Text)
function = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Function" IdentityProviderDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
instance Property "InvocationRole" IdentityProviderDetailsProperty where
  type PropertyType "InvocationRole" IdentityProviderDetailsProperty = Value Prelude.Text
  set :: PropertyType "InvocationRole" IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
set PropertyType "InvocationRole" IdentityProviderDetailsProperty
newValue IdentityProviderDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityProviderDetailsProperty -> ()
directoryId :: IdentityProviderDetailsProperty -> Maybe (Value Text)
function :: IdentityProviderDetailsProperty -> Maybe (Value Text)
invocationRole :: IdentityProviderDetailsProperty -> Maybe (Value Text)
sftpAuthenticationMethods :: IdentityProviderDetailsProperty -> Maybe (Value Text)
url :: IdentityProviderDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
    = IdentityProviderDetailsProperty
        {invocationRole :: Maybe (Value Text)
invocationRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InvocationRole" IdentityProviderDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
instance Property "SftpAuthenticationMethods" IdentityProviderDetailsProperty where
  type PropertyType "SftpAuthenticationMethods" IdentityProviderDetailsProperty = Value Prelude.Text
  set :: PropertyType
  "SftpAuthenticationMethods" IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
set PropertyType
  "SftpAuthenticationMethods" IdentityProviderDetailsProperty
newValue IdentityProviderDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityProviderDetailsProperty -> ()
directoryId :: IdentityProviderDetailsProperty -> Maybe (Value Text)
function :: IdentityProviderDetailsProperty -> Maybe (Value Text)
invocationRole :: IdentityProviderDetailsProperty -> Maybe (Value Text)
sftpAuthenticationMethods :: IdentityProviderDetailsProperty -> Maybe (Value Text)
url :: IdentityProviderDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
    = IdentityProviderDetailsProperty
        {sftpAuthenticationMethods :: Maybe (Value Text)
sftpAuthenticationMethods = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SftpAuthenticationMethods" IdentityProviderDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
url :: Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
instance Property "Url" IdentityProviderDetailsProperty where
  type PropertyType "Url" IdentityProviderDetailsProperty = Value Prelude.Text
  set :: PropertyType "Url" IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
-> IdentityProviderDetailsProperty
set PropertyType "Url" IdentityProviderDetailsProperty
newValue IdentityProviderDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: IdentityProviderDetailsProperty -> ()
directoryId :: IdentityProviderDetailsProperty -> Maybe (Value Text)
function :: IdentityProviderDetailsProperty -> Maybe (Value Text)
invocationRole :: IdentityProviderDetailsProperty -> Maybe (Value Text)
sftpAuthenticationMethods :: IdentityProviderDetailsProperty -> Maybe (Value Text)
url :: IdentityProviderDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
url :: Maybe (Value Text)
..}
    = IdentityProviderDetailsProperty {url :: Maybe (Value Text)
url = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Url" IdentityProviderDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
function :: Maybe (Value Text)
invocationRole :: Maybe (Value Text)
sftpAuthenticationMethods :: Maybe (Value Text)
..}