{-# 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.DataExchange.Types.RedshiftDataShareAsset where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data RedshiftDataShareAsset = RedshiftDataShareAsset'
{
RedshiftDataShareAsset -> Text
arn :: Prelude.Text
}
deriving (RedshiftDataShareAsset -> RedshiftDataShareAsset -> Bool
(RedshiftDataShareAsset -> RedshiftDataShareAsset -> Bool)
-> (RedshiftDataShareAsset -> RedshiftDataShareAsset -> Bool)
-> Eq RedshiftDataShareAsset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RedshiftDataShareAsset -> RedshiftDataShareAsset -> Bool
$c/= :: RedshiftDataShareAsset -> RedshiftDataShareAsset -> Bool
== :: RedshiftDataShareAsset -> RedshiftDataShareAsset -> Bool
$c== :: RedshiftDataShareAsset -> RedshiftDataShareAsset -> Bool
Prelude.Eq, ReadPrec [RedshiftDataShareAsset]
ReadPrec RedshiftDataShareAsset
Int -> ReadS RedshiftDataShareAsset
ReadS [RedshiftDataShareAsset]
(Int -> ReadS RedshiftDataShareAsset)
-> ReadS [RedshiftDataShareAsset]
-> ReadPrec RedshiftDataShareAsset
-> ReadPrec [RedshiftDataShareAsset]
-> Read RedshiftDataShareAsset
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RedshiftDataShareAsset]
$creadListPrec :: ReadPrec [RedshiftDataShareAsset]
readPrec :: ReadPrec RedshiftDataShareAsset
$creadPrec :: ReadPrec RedshiftDataShareAsset
readList :: ReadS [RedshiftDataShareAsset]
$creadList :: ReadS [RedshiftDataShareAsset]
readsPrec :: Int -> ReadS RedshiftDataShareAsset
$creadsPrec :: Int -> ReadS RedshiftDataShareAsset
Prelude.Read, Int -> RedshiftDataShareAsset -> ShowS
[RedshiftDataShareAsset] -> ShowS
RedshiftDataShareAsset -> String
(Int -> RedshiftDataShareAsset -> ShowS)
-> (RedshiftDataShareAsset -> String)
-> ([RedshiftDataShareAsset] -> ShowS)
-> Show RedshiftDataShareAsset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RedshiftDataShareAsset] -> ShowS
$cshowList :: [RedshiftDataShareAsset] -> ShowS
show :: RedshiftDataShareAsset -> String
$cshow :: RedshiftDataShareAsset -> String
showsPrec :: Int -> RedshiftDataShareAsset -> ShowS
$cshowsPrec :: Int -> RedshiftDataShareAsset -> ShowS
Prelude.Show, (forall x. RedshiftDataShareAsset -> Rep RedshiftDataShareAsset x)
-> (forall x.
Rep RedshiftDataShareAsset x -> RedshiftDataShareAsset)
-> Generic RedshiftDataShareAsset
forall x. Rep RedshiftDataShareAsset x -> RedshiftDataShareAsset
forall x. RedshiftDataShareAsset -> Rep RedshiftDataShareAsset x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RedshiftDataShareAsset x -> RedshiftDataShareAsset
$cfrom :: forall x. RedshiftDataShareAsset -> Rep RedshiftDataShareAsset x
Prelude.Generic)
newRedshiftDataShareAsset ::
Prelude.Text ->
RedshiftDataShareAsset
newRedshiftDataShareAsset :: Text -> RedshiftDataShareAsset
newRedshiftDataShareAsset Text
pArn_ =
RedshiftDataShareAsset' :: Text -> RedshiftDataShareAsset
RedshiftDataShareAsset' {$sel:arn:RedshiftDataShareAsset' :: Text
arn = Text
pArn_}
redshiftDataShareAsset_arn :: Lens.Lens' RedshiftDataShareAsset Prelude.Text
redshiftDataShareAsset_arn :: (Text -> f Text)
-> RedshiftDataShareAsset -> f RedshiftDataShareAsset
redshiftDataShareAsset_arn = (RedshiftDataShareAsset -> Text)
-> (RedshiftDataShareAsset -> Text -> RedshiftDataShareAsset)
-> Lens RedshiftDataShareAsset RedshiftDataShareAsset Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RedshiftDataShareAsset' {Text
arn :: Text
$sel:arn:RedshiftDataShareAsset' :: RedshiftDataShareAsset -> Text
arn} -> Text
arn) (\s :: RedshiftDataShareAsset
s@RedshiftDataShareAsset' {} Text
a -> RedshiftDataShareAsset
s {$sel:arn:RedshiftDataShareAsset' :: Text
arn = Text
a} :: RedshiftDataShareAsset)
instance Core.FromJSON RedshiftDataShareAsset where
parseJSON :: Value -> Parser RedshiftDataShareAsset
parseJSON =
String
-> (Object -> Parser RedshiftDataShareAsset)
-> Value
-> Parser RedshiftDataShareAsset
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"RedshiftDataShareAsset"
( \Object
x ->
Text -> RedshiftDataShareAsset
RedshiftDataShareAsset'
(Text -> RedshiftDataShareAsset)
-> Parser Text -> Parser RedshiftDataShareAsset
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Arn")
)
instance Prelude.Hashable RedshiftDataShareAsset
instance Prelude.NFData RedshiftDataShareAsset