{-# 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.SecurityHub.Types.AwsRdsDbSubnetGroupSubnetAvailabilityZone where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsRdsDbSubnetGroupSubnetAvailabilityZone = AwsRdsDbSubnetGroupSubnetAvailabilityZone'
{
AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Maybe Text
name :: Prelude.Maybe Prelude.Text
}
deriving (AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Bool
(AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Bool)
-> (AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Bool)
-> Eq AwsRdsDbSubnetGroupSubnetAvailabilityZone
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Bool
$c/= :: AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Bool
== :: AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Bool
$c== :: AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Bool
Prelude.Eq, ReadPrec [AwsRdsDbSubnetGroupSubnetAvailabilityZone]
ReadPrec AwsRdsDbSubnetGroupSubnetAvailabilityZone
Int -> ReadS AwsRdsDbSubnetGroupSubnetAvailabilityZone
ReadS [AwsRdsDbSubnetGroupSubnetAvailabilityZone]
(Int -> ReadS AwsRdsDbSubnetGroupSubnetAvailabilityZone)
-> ReadS [AwsRdsDbSubnetGroupSubnetAvailabilityZone]
-> ReadPrec AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> ReadPrec [AwsRdsDbSubnetGroupSubnetAvailabilityZone]
-> Read AwsRdsDbSubnetGroupSubnetAvailabilityZone
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsRdsDbSubnetGroupSubnetAvailabilityZone]
$creadListPrec :: ReadPrec [AwsRdsDbSubnetGroupSubnetAvailabilityZone]
readPrec :: ReadPrec AwsRdsDbSubnetGroupSubnetAvailabilityZone
$creadPrec :: ReadPrec AwsRdsDbSubnetGroupSubnetAvailabilityZone
readList :: ReadS [AwsRdsDbSubnetGroupSubnetAvailabilityZone]
$creadList :: ReadS [AwsRdsDbSubnetGroupSubnetAvailabilityZone]
readsPrec :: Int -> ReadS AwsRdsDbSubnetGroupSubnetAvailabilityZone
$creadsPrec :: Int -> ReadS AwsRdsDbSubnetGroupSubnetAvailabilityZone
Prelude.Read, Int -> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> ShowS
[AwsRdsDbSubnetGroupSubnetAvailabilityZone] -> ShowS
AwsRdsDbSubnetGroupSubnetAvailabilityZone -> String
(Int -> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> ShowS)
-> (AwsRdsDbSubnetGroupSubnetAvailabilityZone -> String)
-> ([AwsRdsDbSubnetGroupSubnetAvailabilityZone] -> ShowS)
-> Show AwsRdsDbSubnetGroupSubnetAvailabilityZone
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsRdsDbSubnetGroupSubnetAvailabilityZone] -> ShowS
$cshowList :: [AwsRdsDbSubnetGroupSubnetAvailabilityZone] -> ShowS
show :: AwsRdsDbSubnetGroupSubnetAvailabilityZone -> String
$cshow :: AwsRdsDbSubnetGroupSubnetAvailabilityZone -> String
showsPrec :: Int -> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> ShowS
$cshowsPrec :: Int -> AwsRdsDbSubnetGroupSubnetAvailabilityZone -> ShowS
Prelude.Show, (forall x.
AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> Rep AwsRdsDbSubnetGroupSubnetAvailabilityZone x)
-> (forall x.
Rep AwsRdsDbSubnetGroupSubnetAvailabilityZone x
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone)
-> Generic AwsRdsDbSubnetGroupSubnetAvailabilityZone
forall x.
Rep AwsRdsDbSubnetGroupSubnetAvailabilityZone x
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone
forall x.
AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> Rep AwsRdsDbSubnetGroupSubnetAvailabilityZone x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsRdsDbSubnetGroupSubnetAvailabilityZone x
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone
$cfrom :: forall x.
AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> Rep AwsRdsDbSubnetGroupSubnetAvailabilityZone x
Prelude.Generic)
newAwsRdsDbSubnetGroupSubnetAvailabilityZone ::
AwsRdsDbSubnetGroupSubnetAvailabilityZone
newAwsRdsDbSubnetGroupSubnetAvailabilityZone :: AwsRdsDbSubnetGroupSubnetAvailabilityZone
newAwsRdsDbSubnetGroupSubnetAvailabilityZone =
AwsRdsDbSubnetGroupSubnetAvailabilityZone' :: Maybe Text -> AwsRdsDbSubnetGroupSubnetAvailabilityZone
AwsRdsDbSubnetGroupSubnetAvailabilityZone'
{ $sel:name:AwsRdsDbSubnetGroupSubnetAvailabilityZone' :: Maybe Text
name =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsRdsDbSubnetGroupSubnetAvailabilityZone_name :: Lens.Lens' AwsRdsDbSubnetGroupSubnetAvailabilityZone (Prelude.Maybe Prelude.Text)
awsRdsDbSubnetGroupSubnetAvailabilityZone_name :: (Maybe Text -> f (Maybe Text))
-> AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> f AwsRdsDbSubnetGroupSubnetAvailabilityZone
awsRdsDbSubnetGroupSubnetAvailabilityZone_name = (AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Maybe Text)
-> (AwsRdsDbSubnetGroupSubnetAvailabilityZone
-> Maybe Text -> AwsRdsDbSubnetGroupSubnetAvailabilityZone)
-> Lens
AwsRdsDbSubnetGroupSubnetAvailabilityZone
AwsRdsDbSubnetGroupSubnetAvailabilityZone
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsRdsDbSubnetGroupSubnetAvailabilityZone' {Maybe Text
name :: Maybe Text
$sel:name:AwsRdsDbSubnetGroupSubnetAvailabilityZone' :: AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Maybe Text
name} -> Maybe Text
name) (\s :: AwsRdsDbSubnetGroupSubnetAvailabilityZone
s@AwsRdsDbSubnetGroupSubnetAvailabilityZone' {} Maybe Text
a -> AwsRdsDbSubnetGroupSubnetAvailabilityZone
s {$sel:name:AwsRdsDbSubnetGroupSubnetAvailabilityZone' :: Maybe Text
name = Maybe Text
a} :: AwsRdsDbSubnetGroupSubnetAvailabilityZone)
instance
Core.FromJSON
AwsRdsDbSubnetGroupSubnetAvailabilityZone
where
parseJSON :: Value -> Parser AwsRdsDbSubnetGroupSubnetAvailabilityZone
parseJSON =
String
-> (Object -> Parser AwsRdsDbSubnetGroupSubnetAvailabilityZone)
-> Value
-> Parser AwsRdsDbSubnetGroupSubnetAvailabilityZone
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsRdsDbSubnetGroupSubnetAvailabilityZone"
( \Object
x ->
Maybe Text -> AwsRdsDbSubnetGroupSubnetAvailabilityZone
AwsRdsDbSubnetGroupSubnetAvailabilityZone'
(Maybe Text -> AwsRdsDbSubnetGroupSubnetAvailabilityZone)
-> Parser (Maybe Text)
-> Parser AwsRdsDbSubnetGroupSubnetAvailabilityZone
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
)
instance
Prelude.Hashable
AwsRdsDbSubnetGroupSubnetAvailabilityZone
instance
Prelude.NFData
AwsRdsDbSubnetGroupSubnetAvailabilityZone
instance
Core.ToJSON
AwsRdsDbSubnetGroupSubnetAvailabilityZone
where
toJSON :: AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Value
toJSON AwsRdsDbSubnetGroupSubnetAvailabilityZone' {Maybe Text
name :: Maybe Text
$sel:name:AwsRdsDbSubnetGroupSubnetAvailabilityZone' :: AwsRdsDbSubnetGroupSubnetAvailabilityZone -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name]
)