module Stratosphere.Bedrock.DataSource.WebSourceConfigurationProperty (
module Exports, WebSourceConfigurationProperty(..),
mkWebSourceConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.UrlConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data WebSourceConfigurationProperty
=
WebSourceConfigurationProperty {WebSourceConfigurationProperty -> ()
haddock_workaround_ :: (),
WebSourceConfigurationProperty -> UrlConfigurationProperty
urlConfiguration :: UrlConfigurationProperty}
deriving stock (WebSourceConfigurationProperty
-> WebSourceConfigurationProperty -> Bool
(WebSourceConfigurationProperty
-> WebSourceConfigurationProperty -> Bool)
-> (WebSourceConfigurationProperty
-> WebSourceConfigurationProperty -> Bool)
-> Eq WebSourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WebSourceConfigurationProperty
-> WebSourceConfigurationProperty -> Bool
== :: WebSourceConfigurationProperty
-> WebSourceConfigurationProperty -> Bool
$c/= :: WebSourceConfigurationProperty
-> WebSourceConfigurationProperty -> Bool
/= :: WebSourceConfigurationProperty
-> WebSourceConfigurationProperty -> Bool
Prelude.Eq, Int -> WebSourceConfigurationProperty -> ShowS
[WebSourceConfigurationProperty] -> ShowS
WebSourceConfigurationProperty -> String
(Int -> WebSourceConfigurationProperty -> ShowS)
-> (WebSourceConfigurationProperty -> String)
-> ([WebSourceConfigurationProperty] -> ShowS)
-> Show WebSourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WebSourceConfigurationProperty -> ShowS
showsPrec :: Int -> WebSourceConfigurationProperty -> ShowS
$cshow :: WebSourceConfigurationProperty -> String
show :: WebSourceConfigurationProperty -> String
$cshowList :: [WebSourceConfigurationProperty] -> ShowS
showList :: [WebSourceConfigurationProperty] -> ShowS
Prelude.Show)
mkWebSourceConfigurationProperty ::
UrlConfigurationProperty -> WebSourceConfigurationProperty
mkWebSourceConfigurationProperty :: UrlConfigurationProperty -> WebSourceConfigurationProperty
mkWebSourceConfigurationProperty UrlConfigurationProperty
urlConfiguration
= WebSourceConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), urlConfiguration :: UrlConfigurationProperty
urlConfiguration = UrlConfigurationProperty
urlConfiguration}
instance ToResourceProperties WebSourceConfigurationProperty where
toResourceProperties :: WebSourceConfigurationProperty -> ResourceProperties
toResourceProperties WebSourceConfigurationProperty {()
UrlConfigurationProperty
haddock_workaround_ :: WebSourceConfigurationProperty -> ()
urlConfiguration :: WebSourceConfigurationProperty -> UrlConfigurationProperty
haddock_workaround_ :: ()
urlConfiguration :: UrlConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource.WebSourceConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"UrlConfiguration" Key -> UrlConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= UrlConfigurationProperty
urlConfiguration]}
instance JSON.ToJSON WebSourceConfigurationProperty where
toJSON :: WebSourceConfigurationProperty -> Value
toJSON WebSourceConfigurationProperty {()
UrlConfigurationProperty
haddock_workaround_ :: WebSourceConfigurationProperty -> ()
urlConfiguration :: WebSourceConfigurationProperty -> UrlConfigurationProperty
haddock_workaround_ :: ()
urlConfiguration :: UrlConfigurationProperty
..}
= [(Key, Value)] -> Value
JSON.object [Key
"UrlConfiguration" Key -> UrlConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= UrlConfigurationProperty
urlConfiguration]
instance Property "UrlConfiguration" WebSourceConfigurationProperty where
type PropertyType "UrlConfiguration" WebSourceConfigurationProperty = UrlConfigurationProperty
set :: PropertyType "UrlConfiguration" WebSourceConfigurationProperty
-> WebSourceConfigurationProperty -> WebSourceConfigurationProperty
set PropertyType "UrlConfiguration" WebSourceConfigurationProperty
newValue WebSourceConfigurationProperty {()
UrlConfigurationProperty
haddock_workaround_ :: WebSourceConfigurationProperty -> ()
urlConfiguration :: WebSourceConfigurationProperty -> UrlConfigurationProperty
haddock_workaround_ :: ()
urlConfiguration :: UrlConfigurationProperty
..}
= WebSourceConfigurationProperty {urlConfiguration :: UrlConfigurationProperty
urlConfiguration = PropertyType "UrlConfiguration" WebSourceConfigurationProperty
UrlConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}