module Stratosphere.Kendra.DataSource.AclConfigurationProperty (
AclConfigurationProperty(..), mkAclConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AclConfigurationProperty
=
AclConfigurationProperty {AclConfigurationProperty -> ()
haddock_workaround_ :: (),
AclConfigurationProperty -> Value Text
allowedGroupsColumnName :: (Value Prelude.Text)}
deriving stock (AclConfigurationProperty -> AclConfigurationProperty -> Bool
(AclConfigurationProperty -> AclConfigurationProperty -> Bool)
-> (AclConfigurationProperty -> AclConfigurationProperty -> Bool)
-> Eq AclConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AclConfigurationProperty -> AclConfigurationProperty -> Bool
== :: AclConfigurationProperty -> AclConfigurationProperty -> Bool
$c/= :: AclConfigurationProperty -> AclConfigurationProperty -> Bool
/= :: AclConfigurationProperty -> AclConfigurationProperty -> Bool
Prelude.Eq, Int -> AclConfigurationProperty -> ShowS
[AclConfigurationProperty] -> ShowS
AclConfigurationProperty -> String
(Int -> AclConfigurationProperty -> ShowS)
-> (AclConfigurationProperty -> String)
-> ([AclConfigurationProperty] -> ShowS)
-> Show AclConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AclConfigurationProperty -> ShowS
showsPrec :: Int -> AclConfigurationProperty -> ShowS
$cshow :: AclConfigurationProperty -> String
show :: AclConfigurationProperty -> String
$cshowList :: [AclConfigurationProperty] -> ShowS
showList :: [AclConfigurationProperty] -> ShowS
Prelude.Show)
mkAclConfigurationProperty ::
Value Prelude.Text -> AclConfigurationProperty
mkAclConfigurationProperty :: Value Text -> AclConfigurationProperty
mkAclConfigurationProperty Value Text
allowedGroupsColumnName
= AclConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
allowedGroupsColumnName :: Value Text
allowedGroupsColumnName = Value Text
allowedGroupsColumnName}
instance ToResourceProperties AclConfigurationProperty where
toResourceProperties :: AclConfigurationProperty -> ResourceProperties
toResourceProperties AclConfigurationProperty {()
Value Text
haddock_workaround_ :: AclConfigurationProperty -> ()
allowedGroupsColumnName :: AclConfigurationProperty -> Value Text
haddock_workaround_ :: ()
allowedGroupsColumnName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.AclConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"AllowedGroupsColumnName"
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..= Value Text
allowedGroupsColumnName]}
instance JSON.ToJSON AclConfigurationProperty where
toJSON :: AclConfigurationProperty -> Value
toJSON AclConfigurationProperty {()
Value Text
haddock_workaround_ :: AclConfigurationProperty -> ()
allowedGroupsColumnName :: AclConfigurationProperty -> Value Text
haddock_workaround_ :: ()
allowedGroupsColumnName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"AllowedGroupsColumnName" 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..= Value Text
allowedGroupsColumnName]
instance Property "AllowedGroupsColumnName" AclConfigurationProperty where
type PropertyType "AllowedGroupsColumnName" AclConfigurationProperty = Value Prelude.Text
set :: PropertyType "AllowedGroupsColumnName" AclConfigurationProperty
-> AclConfigurationProperty -> AclConfigurationProperty
set PropertyType "AllowedGroupsColumnName" AclConfigurationProperty
newValue AclConfigurationProperty {()
Value Text
haddock_workaround_ :: AclConfigurationProperty -> ()
allowedGroupsColumnName :: AclConfigurationProperty -> Value Text
haddock_workaround_ :: ()
allowedGroupsColumnName :: Value Text
..}
= AclConfigurationProperty {allowedGroupsColumnName :: Value Text
allowedGroupsColumnName = PropertyType "AllowedGroupsColumnName" AclConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}