{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AppFlow.Types.SnowflakeConnectorProfileProperties where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data SnowflakeConnectorProfileProperties = SnowflakeConnectorProfileProperties'
{
SnowflakeConnectorProfileProperties -> Maybe Text
accountName :: Prelude.Maybe Prelude.Text,
SnowflakeConnectorProfileProperties -> Maybe Text
bucketPrefix :: Prelude.Maybe Prelude.Text,
SnowflakeConnectorProfileProperties -> Maybe Text
privateLinkServiceName :: Prelude.Maybe Prelude.Text,
SnowflakeConnectorProfileProperties -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
SnowflakeConnectorProfileProperties -> Text
warehouse :: Prelude.Text,
SnowflakeConnectorProfileProperties -> Text
stage :: Prelude.Text,
SnowflakeConnectorProfileProperties -> Text
bucketName :: Prelude.Text
}
deriving (SnowflakeConnectorProfileProperties
-> SnowflakeConnectorProfileProperties -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SnowflakeConnectorProfileProperties
-> SnowflakeConnectorProfileProperties -> Bool
$c/= :: SnowflakeConnectorProfileProperties
-> SnowflakeConnectorProfileProperties -> Bool
== :: SnowflakeConnectorProfileProperties
-> SnowflakeConnectorProfileProperties -> Bool
$c== :: SnowflakeConnectorProfileProperties
-> SnowflakeConnectorProfileProperties -> Bool
Prelude.Eq, ReadPrec [SnowflakeConnectorProfileProperties]
ReadPrec SnowflakeConnectorProfileProperties
Int -> ReadS SnowflakeConnectorProfileProperties
ReadS [SnowflakeConnectorProfileProperties]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SnowflakeConnectorProfileProperties]
$creadListPrec :: ReadPrec [SnowflakeConnectorProfileProperties]
readPrec :: ReadPrec SnowflakeConnectorProfileProperties
$creadPrec :: ReadPrec SnowflakeConnectorProfileProperties
readList :: ReadS [SnowflakeConnectorProfileProperties]
$creadList :: ReadS [SnowflakeConnectorProfileProperties]
readsPrec :: Int -> ReadS SnowflakeConnectorProfileProperties
$creadsPrec :: Int -> ReadS SnowflakeConnectorProfileProperties
Prelude.Read, Int -> SnowflakeConnectorProfileProperties -> ShowS
[SnowflakeConnectorProfileProperties] -> ShowS
SnowflakeConnectorProfileProperties -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SnowflakeConnectorProfileProperties] -> ShowS
$cshowList :: [SnowflakeConnectorProfileProperties] -> ShowS
show :: SnowflakeConnectorProfileProperties -> String
$cshow :: SnowflakeConnectorProfileProperties -> String
showsPrec :: Int -> SnowflakeConnectorProfileProperties -> ShowS
$cshowsPrec :: Int -> SnowflakeConnectorProfileProperties -> ShowS
Prelude.Show, forall x.
Rep SnowflakeConnectorProfileProperties x
-> SnowflakeConnectorProfileProperties
forall x.
SnowflakeConnectorProfileProperties
-> Rep SnowflakeConnectorProfileProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SnowflakeConnectorProfileProperties x
-> SnowflakeConnectorProfileProperties
$cfrom :: forall x.
SnowflakeConnectorProfileProperties
-> Rep SnowflakeConnectorProfileProperties x
Prelude.Generic)
newSnowflakeConnectorProfileProperties ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
SnowflakeConnectorProfileProperties
newSnowflakeConnectorProfileProperties :: Text -> Text -> Text -> SnowflakeConnectorProfileProperties
newSnowflakeConnectorProfileProperties
Text
pWarehouse_
Text
pStage_
Text
pBucketName_ =
SnowflakeConnectorProfileProperties'
{ $sel:accountName:SnowflakeConnectorProfileProperties' :: Maybe Text
accountName =
forall a. Maybe a
Prelude.Nothing,
$sel:bucketPrefix:SnowflakeConnectorProfileProperties' :: Maybe Text
bucketPrefix = forall a. Maybe a
Prelude.Nothing,
$sel:privateLinkServiceName:SnowflakeConnectorProfileProperties' :: Maybe Text
privateLinkServiceName =
forall a. Maybe a
Prelude.Nothing,
$sel:region:SnowflakeConnectorProfileProperties' :: Maybe Text
region = forall a. Maybe a
Prelude.Nothing,
$sel:warehouse:SnowflakeConnectorProfileProperties' :: Text
warehouse = Text
pWarehouse_,
$sel:stage:SnowflakeConnectorProfileProperties' :: Text
stage = Text
pStage_,
$sel:bucketName:SnowflakeConnectorProfileProperties' :: Text
bucketName = Text
pBucketName_
}
snowflakeConnectorProfileProperties_accountName :: Lens.Lens' SnowflakeConnectorProfileProperties (Prelude.Maybe Prelude.Text)
snowflakeConnectorProfileProperties_accountName :: Lens' SnowflakeConnectorProfileProperties (Maybe Text)
snowflakeConnectorProfileProperties_accountName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SnowflakeConnectorProfileProperties' {Maybe Text
accountName :: Maybe Text
$sel:accountName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
accountName} -> Maybe Text
accountName) (\s :: SnowflakeConnectorProfileProperties
s@SnowflakeConnectorProfileProperties' {} Maybe Text
a -> SnowflakeConnectorProfileProperties
s {$sel:accountName:SnowflakeConnectorProfileProperties' :: Maybe Text
accountName = Maybe Text
a} :: SnowflakeConnectorProfileProperties)
snowflakeConnectorProfileProperties_bucketPrefix :: Lens.Lens' SnowflakeConnectorProfileProperties (Prelude.Maybe Prelude.Text)
snowflakeConnectorProfileProperties_bucketPrefix :: Lens' SnowflakeConnectorProfileProperties (Maybe Text)
snowflakeConnectorProfileProperties_bucketPrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SnowflakeConnectorProfileProperties' {Maybe Text
bucketPrefix :: Maybe Text
$sel:bucketPrefix:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
bucketPrefix} -> Maybe Text
bucketPrefix) (\s :: SnowflakeConnectorProfileProperties
s@SnowflakeConnectorProfileProperties' {} Maybe Text
a -> SnowflakeConnectorProfileProperties
s {$sel:bucketPrefix:SnowflakeConnectorProfileProperties' :: Maybe Text
bucketPrefix = Maybe Text
a} :: SnowflakeConnectorProfileProperties)
snowflakeConnectorProfileProperties_privateLinkServiceName :: Lens.Lens' SnowflakeConnectorProfileProperties (Prelude.Maybe Prelude.Text)
snowflakeConnectorProfileProperties_privateLinkServiceName :: Lens' SnowflakeConnectorProfileProperties (Maybe Text)
snowflakeConnectorProfileProperties_privateLinkServiceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SnowflakeConnectorProfileProperties' {Maybe Text
privateLinkServiceName :: Maybe Text
$sel:privateLinkServiceName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
privateLinkServiceName} -> Maybe Text
privateLinkServiceName) (\s :: SnowflakeConnectorProfileProperties
s@SnowflakeConnectorProfileProperties' {} Maybe Text
a -> SnowflakeConnectorProfileProperties
s {$sel:privateLinkServiceName:SnowflakeConnectorProfileProperties' :: Maybe Text
privateLinkServiceName = Maybe Text
a} :: SnowflakeConnectorProfileProperties)
snowflakeConnectorProfileProperties_region :: Lens.Lens' SnowflakeConnectorProfileProperties (Prelude.Maybe Prelude.Text)
snowflakeConnectorProfileProperties_region :: Lens' SnowflakeConnectorProfileProperties (Maybe Text)
snowflakeConnectorProfileProperties_region = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SnowflakeConnectorProfileProperties' {Maybe Text
region :: Maybe Text
$sel:region:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
region} -> Maybe Text
region) (\s :: SnowflakeConnectorProfileProperties
s@SnowflakeConnectorProfileProperties' {} Maybe Text
a -> SnowflakeConnectorProfileProperties
s {$sel:region:SnowflakeConnectorProfileProperties' :: Maybe Text
region = Maybe Text
a} :: SnowflakeConnectorProfileProperties)
snowflakeConnectorProfileProperties_warehouse :: Lens.Lens' SnowflakeConnectorProfileProperties Prelude.Text
snowflakeConnectorProfileProperties_warehouse :: Lens' SnowflakeConnectorProfileProperties Text
snowflakeConnectorProfileProperties_warehouse = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SnowflakeConnectorProfileProperties' {Text
warehouse :: Text
$sel:warehouse:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
warehouse} -> Text
warehouse) (\s :: SnowflakeConnectorProfileProperties
s@SnowflakeConnectorProfileProperties' {} Text
a -> SnowflakeConnectorProfileProperties
s {$sel:warehouse:SnowflakeConnectorProfileProperties' :: Text
warehouse = Text
a} :: SnowflakeConnectorProfileProperties)
snowflakeConnectorProfileProperties_stage :: Lens.Lens' SnowflakeConnectorProfileProperties Prelude.Text
snowflakeConnectorProfileProperties_stage :: Lens' SnowflakeConnectorProfileProperties Text
snowflakeConnectorProfileProperties_stage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SnowflakeConnectorProfileProperties' {Text
stage :: Text
$sel:stage:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
stage} -> Text
stage) (\s :: SnowflakeConnectorProfileProperties
s@SnowflakeConnectorProfileProperties' {} Text
a -> SnowflakeConnectorProfileProperties
s {$sel:stage:SnowflakeConnectorProfileProperties' :: Text
stage = Text
a} :: SnowflakeConnectorProfileProperties)
snowflakeConnectorProfileProperties_bucketName :: Lens.Lens' SnowflakeConnectorProfileProperties Prelude.Text
snowflakeConnectorProfileProperties_bucketName :: Lens' SnowflakeConnectorProfileProperties Text
snowflakeConnectorProfileProperties_bucketName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SnowflakeConnectorProfileProperties' {Text
bucketName :: Text
$sel:bucketName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
bucketName} -> Text
bucketName) (\s :: SnowflakeConnectorProfileProperties
s@SnowflakeConnectorProfileProperties' {} Text
a -> SnowflakeConnectorProfileProperties
s {$sel:bucketName:SnowflakeConnectorProfileProperties' :: Text
bucketName = Text
a} :: SnowflakeConnectorProfileProperties)
instance
Data.FromJSON
SnowflakeConnectorProfileProperties
where
parseJSON :: Value -> Parser SnowflakeConnectorProfileProperties
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"SnowflakeConnectorProfileProperties"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> SnowflakeConnectorProfileProperties
SnowflakeConnectorProfileProperties'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"accountName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"bucketPrefix")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"privateLinkServiceName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"region")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"warehouse")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"stage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"bucketName")
)
instance
Prelude.Hashable
SnowflakeConnectorProfileProperties
where
hashWithSalt :: Int -> SnowflakeConnectorProfileProperties -> Int
hashWithSalt
Int
_salt
SnowflakeConnectorProfileProperties' {Maybe Text
Text
bucketName :: Text
stage :: Text
warehouse :: Text
region :: Maybe Text
privateLinkServiceName :: Maybe Text
bucketPrefix :: Maybe Text
accountName :: Maybe Text
$sel:bucketName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:stage:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:warehouse:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:region:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:privateLinkServiceName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:bucketPrefix:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:accountName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
accountName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
bucketPrefix
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
privateLinkServiceName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
region
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
warehouse
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
stage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
bucketName
instance
Prelude.NFData
SnowflakeConnectorProfileProperties
where
rnf :: SnowflakeConnectorProfileProperties -> ()
rnf SnowflakeConnectorProfileProperties' {Maybe Text
Text
bucketName :: Text
stage :: Text
warehouse :: Text
region :: Maybe Text
privateLinkServiceName :: Maybe Text
bucketPrefix :: Maybe Text
accountName :: Maybe Text
$sel:bucketName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:stage:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:warehouse:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:region:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:privateLinkServiceName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:bucketPrefix:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:accountName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
accountName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
bucketPrefix
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
privateLinkServiceName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
region
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
warehouse
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
stage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
bucketName
instance
Data.ToJSON
SnowflakeConnectorProfileProperties
where
toJSON :: SnowflakeConnectorProfileProperties -> Value
toJSON SnowflakeConnectorProfileProperties' {Maybe Text
Text
bucketName :: Text
stage :: Text
warehouse :: Text
region :: Maybe Text
privateLinkServiceName :: Maybe Text
bucketPrefix :: Maybe Text
accountName :: Maybe Text
$sel:bucketName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:stage:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:warehouse:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Text
$sel:region:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:privateLinkServiceName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:bucketPrefix:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
$sel:accountName:SnowflakeConnectorProfileProperties' :: SnowflakeConnectorProfileProperties -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"accountName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
accountName,
(Key
"bucketPrefix" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
bucketPrefix,
(Key
"privateLinkServiceName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
privateLinkServiceName,
(Key
"region" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
region,
forall a. a -> Maybe a
Prelude.Just (Key
"warehouse" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
warehouse),
forall a. a -> Maybe a
Prelude.Just (Key
"stage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
stage),
forall a. a -> Maybe a
Prelude.Just (Key
"bucketName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
bucketName)
]
)