module Stratosphere.Kendra.DataSource.OneDriveUsersProperty (
        module Exports, OneDriveUsersProperty(..), mkOneDriveUsersProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Kendra.DataSource.S3PathProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OneDriveUsersProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-onedriveusers.html>
    OneDriveUsersProperty {OneDriveUsersProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-onedriveusers.html#cfn-kendra-datasource-onedriveusers-onedriveuserlist>
                           OneDriveUsersProperty -> Maybe (ValueList Text)
oneDriveUserList :: (Prelude.Maybe (ValueList Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-onedriveusers.html#cfn-kendra-datasource-onedriveusers-onedriveusers3path>
                           OneDriveUsersProperty -> Maybe S3PathProperty
oneDriveUserS3Path :: (Prelude.Maybe S3PathProperty)}
  deriving stock (OneDriveUsersProperty -> OneDriveUsersProperty -> Bool
(OneDriveUsersProperty -> OneDriveUsersProperty -> Bool)
-> (OneDriveUsersProperty -> OneDriveUsersProperty -> Bool)
-> Eq OneDriveUsersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OneDriveUsersProperty -> OneDriveUsersProperty -> Bool
== :: OneDriveUsersProperty -> OneDriveUsersProperty -> Bool
$c/= :: OneDriveUsersProperty -> OneDriveUsersProperty -> Bool
/= :: OneDriveUsersProperty -> OneDriveUsersProperty -> Bool
Prelude.Eq, Int -> OneDriveUsersProperty -> ShowS
[OneDriveUsersProperty] -> ShowS
OneDriveUsersProperty -> String
(Int -> OneDriveUsersProperty -> ShowS)
-> (OneDriveUsersProperty -> String)
-> ([OneDriveUsersProperty] -> ShowS)
-> Show OneDriveUsersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OneDriveUsersProperty -> ShowS
showsPrec :: Int -> OneDriveUsersProperty -> ShowS
$cshow :: OneDriveUsersProperty -> String
show :: OneDriveUsersProperty -> String
$cshowList :: [OneDriveUsersProperty] -> ShowS
showList :: [OneDriveUsersProperty] -> ShowS
Prelude.Show)
mkOneDriveUsersProperty :: OneDriveUsersProperty
mkOneDriveUsersProperty :: OneDriveUsersProperty
mkOneDriveUsersProperty
  = OneDriveUsersProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), oneDriveUserList :: Maybe (ValueList Text)
oneDriveUserList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       oneDriveUserS3Path :: Maybe S3PathProperty
oneDriveUserS3Path = Maybe S3PathProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OneDriveUsersProperty where
  toResourceProperties :: OneDriveUsersProperty -> ResourceProperties
toResourceProperties OneDriveUsersProperty {Maybe (ValueList Text)
Maybe S3PathProperty
()
haddock_workaround_ :: OneDriveUsersProperty -> ()
oneDriveUserList :: OneDriveUsersProperty -> Maybe (ValueList Text)
oneDriveUserS3Path :: OneDriveUsersProperty -> Maybe S3PathProperty
haddock_workaround_ :: ()
oneDriveUserList :: Maybe (ValueList Text)
oneDriveUserS3Path :: Maybe S3PathProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.OneDriveUsers",
         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
"OneDriveUserList" (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)
oneDriveUserList,
                            Key -> S3PathProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OneDriveUserS3Path" (S3PathProperty -> (Key, Value))
-> Maybe S3PathProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3PathProperty
oneDriveUserS3Path])}
instance JSON.ToJSON OneDriveUsersProperty where
  toJSON :: OneDriveUsersProperty -> Value
toJSON OneDriveUsersProperty {Maybe (ValueList Text)
Maybe S3PathProperty
()
haddock_workaround_ :: OneDriveUsersProperty -> ()
oneDriveUserList :: OneDriveUsersProperty -> Maybe (ValueList Text)
oneDriveUserS3Path :: OneDriveUsersProperty -> Maybe S3PathProperty
haddock_workaround_ :: ()
oneDriveUserList :: Maybe (ValueList Text)
oneDriveUserS3Path :: Maybe S3PathProperty
..}
    = [(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
"OneDriveUserList" (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)
oneDriveUserList,
               Key -> S3PathProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OneDriveUserS3Path" (S3PathProperty -> (Key, Value))
-> Maybe S3PathProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3PathProperty
oneDriveUserS3Path]))
instance Property "OneDriveUserList" OneDriveUsersProperty where
  type PropertyType "OneDriveUserList" OneDriveUsersProperty = ValueList Prelude.Text
  set :: PropertyType "OneDriveUserList" OneDriveUsersProperty
-> OneDriveUsersProperty -> OneDriveUsersProperty
set PropertyType "OneDriveUserList" OneDriveUsersProperty
newValue OneDriveUsersProperty {Maybe (ValueList Text)
Maybe S3PathProperty
()
haddock_workaround_ :: OneDriveUsersProperty -> ()
oneDriveUserList :: OneDriveUsersProperty -> Maybe (ValueList Text)
oneDriveUserS3Path :: OneDriveUsersProperty -> Maybe S3PathProperty
haddock_workaround_ :: ()
oneDriveUserList :: Maybe (ValueList Text)
oneDriveUserS3Path :: Maybe S3PathProperty
..}
    = OneDriveUsersProperty
        {oneDriveUserList :: Maybe (ValueList Text)
oneDriveUserList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OneDriveUserList" OneDriveUsersProperty
ValueList Text
newValue, Maybe S3PathProperty
()
haddock_workaround_ :: ()
oneDriveUserS3Path :: Maybe S3PathProperty
haddock_workaround_ :: ()
oneDriveUserS3Path :: Maybe S3PathProperty
..}
instance Property "OneDriveUserS3Path" OneDriveUsersProperty where
  type PropertyType "OneDriveUserS3Path" OneDriveUsersProperty = S3PathProperty
  set :: PropertyType "OneDriveUserS3Path" OneDriveUsersProperty
-> OneDriveUsersProperty -> OneDriveUsersProperty
set PropertyType "OneDriveUserS3Path" OneDriveUsersProperty
newValue OneDriveUsersProperty {Maybe (ValueList Text)
Maybe S3PathProperty
()
haddock_workaround_ :: OneDriveUsersProperty -> ()
oneDriveUserList :: OneDriveUsersProperty -> Maybe (ValueList Text)
oneDriveUserS3Path :: OneDriveUsersProperty -> Maybe S3PathProperty
haddock_workaround_ :: ()
oneDriveUserList :: Maybe (ValueList Text)
oneDriveUserS3Path :: Maybe S3PathProperty
..}
    = OneDriveUsersProperty
        {oneDriveUserS3Path :: Maybe S3PathProperty
oneDriveUserS3Path = S3PathProperty -> Maybe S3PathProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OneDriveUserS3Path" OneDriveUsersProperty
S3PathProperty
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
oneDriveUserList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
oneDriveUserList :: Maybe (ValueList Text)
..}