module Stratosphere.Kendra.DataSource.WebCrawlerBasicAuthenticationProperty (
        WebCrawlerBasicAuthenticationProperty(..),
        mkWebCrawlerBasicAuthenticationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WebCrawlerBasicAuthenticationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-webcrawlerbasicauthentication.html>
    WebCrawlerBasicAuthenticationProperty {WebCrawlerBasicAuthenticationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-webcrawlerbasicauthentication.html#cfn-kendra-datasource-webcrawlerbasicauthentication-credentials>
                                           WebCrawlerBasicAuthenticationProperty -> Value Text
credentials :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-webcrawlerbasicauthentication.html#cfn-kendra-datasource-webcrawlerbasicauthentication-host>
                                           WebCrawlerBasicAuthenticationProperty -> Value Text
host :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-webcrawlerbasicauthentication.html#cfn-kendra-datasource-webcrawlerbasicauthentication-port>
                                           WebCrawlerBasicAuthenticationProperty -> Value Integer
port :: (Value Prelude.Integer)}
  deriving stock (WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty -> Bool
(WebCrawlerBasicAuthenticationProperty
 -> WebCrawlerBasicAuthenticationProperty -> Bool)
-> (WebCrawlerBasicAuthenticationProperty
    -> WebCrawlerBasicAuthenticationProperty -> Bool)
-> Eq WebCrawlerBasicAuthenticationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty -> Bool
== :: WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty -> Bool
$c/= :: WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty -> Bool
/= :: WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty -> Bool
Prelude.Eq, Int -> WebCrawlerBasicAuthenticationProperty -> ShowS
[WebCrawlerBasicAuthenticationProperty] -> ShowS
WebCrawlerBasicAuthenticationProperty -> String
(Int -> WebCrawlerBasicAuthenticationProperty -> ShowS)
-> (WebCrawlerBasicAuthenticationProperty -> String)
-> ([WebCrawlerBasicAuthenticationProperty] -> ShowS)
-> Show WebCrawlerBasicAuthenticationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WebCrawlerBasicAuthenticationProperty -> ShowS
showsPrec :: Int -> WebCrawlerBasicAuthenticationProperty -> ShowS
$cshow :: WebCrawlerBasicAuthenticationProperty -> String
show :: WebCrawlerBasicAuthenticationProperty -> String
$cshowList :: [WebCrawlerBasicAuthenticationProperty] -> ShowS
showList :: [WebCrawlerBasicAuthenticationProperty] -> ShowS
Prelude.Show)
mkWebCrawlerBasicAuthenticationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Integer -> WebCrawlerBasicAuthenticationProperty
mkWebCrawlerBasicAuthenticationProperty :: Value Text
-> Value Text
-> Value Integer
-> WebCrawlerBasicAuthenticationProperty
mkWebCrawlerBasicAuthenticationProperty Value Text
credentials Value Text
host Value Integer
port
  = WebCrawlerBasicAuthenticationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), credentials :: Value Text
credentials = Value Text
credentials, host :: Value Text
host = Value Text
host,
       port :: Value Integer
port = Value Integer
port}
instance ToResourceProperties WebCrawlerBasicAuthenticationProperty where
  toResourceProperties :: WebCrawlerBasicAuthenticationProperty -> ResourceProperties
toResourceProperties WebCrawlerBasicAuthenticationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WebCrawlerBasicAuthenticationProperty -> ()
credentials :: WebCrawlerBasicAuthenticationProperty -> Value Text
host :: WebCrawlerBasicAuthenticationProperty -> Value Text
port :: WebCrawlerBasicAuthenticationProperty -> Value Integer
haddock_workaround_ :: ()
credentials :: Value Text
host :: Value Text
port :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.WebCrawlerBasicAuthentication",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Credentials" 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
credentials,
                       Key
"Host" 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
host, Key
"Port" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
port]}
instance JSON.ToJSON WebCrawlerBasicAuthenticationProperty where
  toJSON :: WebCrawlerBasicAuthenticationProperty -> Value
toJSON WebCrawlerBasicAuthenticationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WebCrawlerBasicAuthenticationProperty -> ()
credentials :: WebCrawlerBasicAuthenticationProperty -> Value Text
host :: WebCrawlerBasicAuthenticationProperty -> Value Text
port :: WebCrawlerBasicAuthenticationProperty -> Value Integer
haddock_workaround_ :: ()
credentials :: Value Text
host :: Value Text
port :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Credentials" 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
credentials, Key
"Host" 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
host,
         Key
"Port" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
port]
instance Property "Credentials" WebCrawlerBasicAuthenticationProperty where
  type PropertyType "Credentials" WebCrawlerBasicAuthenticationProperty = Value Prelude.Text
  set :: PropertyType "Credentials" WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty
set PropertyType "Credentials" WebCrawlerBasicAuthenticationProperty
newValue WebCrawlerBasicAuthenticationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WebCrawlerBasicAuthenticationProperty -> ()
credentials :: WebCrawlerBasicAuthenticationProperty -> Value Text
host :: WebCrawlerBasicAuthenticationProperty -> Value Text
port :: WebCrawlerBasicAuthenticationProperty -> Value Integer
haddock_workaround_ :: ()
credentials :: Value Text
host :: Value Text
port :: Value Integer
..}
    = WebCrawlerBasicAuthenticationProperty
        {credentials :: Value Text
credentials = PropertyType "Credentials" WebCrawlerBasicAuthenticationProperty
Value Text
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
host :: Value Text
port :: Value Integer
haddock_workaround_ :: ()
host :: Value Text
port :: Value Integer
..}
instance Property "Host" WebCrawlerBasicAuthenticationProperty where
  type PropertyType "Host" WebCrawlerBasicAuthenticationProperty = Value Prelude.Text
  set :: PropertyType "Host" WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty
set PropertyType "Host" WebCrawlerBasicAuthenticationProperty
newValue WebCrawlerBasicAuthenticationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WebCrawlerBasicAuthenticationProperty -> ()
credentials :: WebCrawlerBasicAuthenticationProperty -> Value Text
host :: WebCrawlerBasicAuthenticationProperty -> Value Text
port :: WebCrawlerBasicAuthenticationProperty -> Value Integer
haddock_workaround_ :: ()
credentials :: Value Text
host :: Value Text
port :: Value Integer
..}
    = WebCrawlerBasicAuthenticationProperty {host :: Value Text
host = PropertyType "Host" WebCrawlerBasicAuthenticationProperty
Value Text
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
credentials :: Value Text
port :: Value Integer
haddock_workaround_ :: ()
credentials :: Value Text
port :: Value Integer
..}
instance Property "Port" WebCrawlerBasicAuthenticationProperty where
  type PropertyType "Port" WebCrawlerBasicAuthenticationProperty = Value Prelude.Integer
  set :: PropertyType "Port" WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty
-> WebCrawlerBasicAuthenticationProperty
set PropertyType "Port" WebCrawlerBasicAuthenticationProperty
newValue WebCrawlerBasicAuthenticationProperty {()
Value Integer
Value Text
haddock_workaround_ :: WebCrawlerBasicAuthenticationProperty -> ()
credentials :: WebCrawlerBasicAuthenticationProperty -> Value Text
host :: WebCrawlerBasicAuthenticationProperty -> Value Text
port :: WebCrawlerBasicAuthenticationProperty -> Value Integer
haddock_workaround_ :: ()
credentials :: Value Text
host :: Value Text
port :: Value Integer
..}
    = WebCrawlerBasicAuthenticationProperty {port :: Value Integer
port = PropertyType "Port" WebCrawlerBasicAuthenticationProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
credentials :: Value Text
host :: Value Text
haddock_workaround_ :: ()
credentials :: Value Text
host :: Value Text
..}