module Stratosphere.Bedrock.KnowledgeBase.SupplementalDataStorageLocationProperty (
module Exports, SupplementalDataStorageLocationProperty(..),
mkSupplementalDataStorageLocationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.KnowledgeBase.S3LocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SupplementalDataStorageLocationProperty
=
SupplementalDataStorageLocationProperty {SupplementalDataStorageLocationProperty -> ()
haddock_workaround_ :: (),
SupplementalDataStorageLocationProperty -> Maybe S3LocationProperty
s3Location :: (Prelude.Maybe S3LocationProperty),
SupplementalDataStorageLocationProperty -> Value Text
supplementalDataStorageLocationType :: (Value Prelude.Text)}
deriving stock (SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty -> Bool
(SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty -> Bool)
-> (SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty -> Bool)
-> Eq SupplementalDataStorageLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty -> Bool
== :: SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty -> Bool
$c/= :: SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty -> Bool
/= :: SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty -> Bool
Prelude.Eq, Int -> SupplementalDataStorageLocationProperty -> ShowS
[SupplementalDataStorageLocationProperty] -> ShowS
SupplementalDataStorageLocationProperty -> String
(Int -> SupplementalDataStorageLocationProperty -> ShowS)
-> (SupplementalDataStorageLocationProperty -> String)
-> ([SupplementalDataStorageLocationProperty] -> ShowS)
-> Show SupplementalDataStorageLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SupplementalDataStorageLocationProperty -> ShowS
showsPrec :: Int -> SupplementalDataStorageLocationProperty -> ShowS
$cshow :: SupplementalDataStorageLocationProperty -> String
show :: SupplementalDataStorageLocationProperty -> String
$cshowList :: [SupplementalDataStorageLocationProperty] -> ShowS
showList :: [SupplementalDataStorageLocationProperty] -> ShowS
Prelude.Show)
mkSupplementalDataStorageLocationProperty ::
Value Prelude.Text -> SupplementalDataStorageLocationProperty
mkSupplementalDataStorageLocationProperty :: Value Text -> SupplementalDataStorageLocationProperty
mkSupplementalDataStorageLocationProperty
Value Text
supplementalDataStorageLocationType
= SupplementalDataStorageLocationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
supplementalDataStorageLocationType :: Value Text
supplementalDataStorageLocationType = Value Text
supplementalDataStorageLocationType,
s3Location :: Maybe S3LocationProperty
s3Location = Maybe S3LocationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SupplementalDataStorageLocationProperty where
toResourceProperties :: SupplementalDataStorageLocationProperty -> ResourceProperties
toResourceProperties SupplementalDataStorageLocationProperty {Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: SupplementalDataStorageLocationProperty -> ()
s3Location :: SupplementalDataStorageLocationProperty -> Maybe S3LocationProperty
supplementalDataStorageLocationType :: SupplementalDataStorageLocationProperty -> Value Text
haddock_workaround_ :: ()
s3Location :: Maybe S3LocationProperty
supplementalDataStorageLocationType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::KnowledgeBase.SupplementalDataStorageLocation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"SupplementalDataStorageLocationType"
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
supplementalDataStorageLocationType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Location" (S3LocationProperty -> (Key, Value))
-> Maybe S3LocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3LocationProperty
s3Location]))}
instance JSON.ToJSON SupplementalDataStorageLocationProperty where
toJSON :: SupplementalDataStorageLocationProperty -> Value
toJSON SupplementalDataStorageLocationProperty {Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: SupplementalDataStorageLocationProperty -> ()
s3Location :: SupplementalDataStorageLocationProperty -> Maybe S3LocationProperty
supplementalDataStorageLocationType :: SupplementalDataStorageLocationProperty -> Value Text
haddock_workaround_ :: ()
s3Location :: Maybe S3LocationProperty
supplementalDataStorageLocationType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"SupplementalDataStorageLocationType"
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
supplementalDataStorageLocationType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Location" (S3LocationProperty -> (Key, Value))
-> Maybe S3LocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3LocationProperty
s3Location])))
instance Property "S3Location" SupplementalDataStorageLocationProperty where
type PropertyType "S3Location" SupplementalDataStorageLocationProperty = S3LocationProperty
set :: PropertyType "S3Location" SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty
set PropertyType "S3Location" SupplementalDataStorageLocationProperty
newValue SupplementalDataStorageLocationProperty {Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: SupplementalDataStorageLocationProperty -> ()
s3Location :: SupplementalDataStorageLocationProperty -> Maybe S3LocationProperty
supplementalDataStorageLocationType :: SupplementalDataStorageLocationProperty -> Value Text
haddock_workaround_ :: ()
s3Location :: Maybe S3LocationProperty
supplementalDataStorageLocationType :: Value Text
..}
= SupplementalDataStorageLocationProperty
{s3Location :: Maybe S3LocationProperty
s3Location = S3LocationProperty -> Maybe S3LocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Location" SupplementalDataStorageLocationProperty
S3LocationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
supplementalDataStorageLocationType :: Value Text
haddock_workaround_ :: ()
supplementalDataStorageLocationType :: Value Text
..}
instance Property "SupplementalDataStorageLocationType" SupplementalDataStorageLocationProperty where
type PropertyType "SupplementalDataStorageLocationType" SupplementalDataStorageLocationProperty = Value Prelude.Text
set :: PropertyType
"SupplementalDataStorageLocationType"
SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty
-> SupplementalDataStorageLocationProperty
set PropertyType
"SupplementalDataStorageLocationType"
SupplementalDataStorageLocationProperty
newValue SupplementalDataStorageLocationProperty {Maybe S3LocationProperty
()
Value Text
haddock_workaround_ :: SupplementalDataStorageLocationProperty -> ()
s3Location :: SupplementalDataStorageLocationProperty -> Maybe S3LocationProperty
supplementalDataStorageLocationType :: SupplementalDataStorageLocationProperty -> Value Text
haddock_workaround_ :: ()
s3Location :: Maybe S3LocationProperty
supplementalDataStorageLocationType :: Value Text
..}
= SupplementalDataStorageLocationProperty
{supplementalDataStorageLocationType :: Value Text
supplementalDataStorageLocationType = PropertyType
"SupplementalDataStorageLocationType"
SupplementalDataStorageLocationProperty
Value Text
newValue, Maybe S3LocationProperty
()
haddock_workaround_ :: ()
s3Location :: Maybe S3LocationProperty
haddock_workaround_ :: ()
s3Location :: Maybe S3LocationProperty
..}