{-# 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.AwsElbv2LoadBalancerDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AvailabilityZone
import Amazonka.SecurityHub.Types.AwsElbv2LoadBalancerAttribute
import Amazonka.SecurityHub.Types.LoadBalancerState
data AwsElbv2LoadBalancerDetails = AwsElbv2LoadBalancerDetails'
{
AwsElbv2LoadBalancerDetails -> Maybe LoadBalancerState
state :: Prelude.Maybe LoadBalancerState,
AwsElbv2LoadBalancerDetails -> Maybe [Text]
securityGroups :: Prelude.Maybe [Prelude.Text],
AwsElbv2LoadBalancerDetails
-> Maybe [AwsElbv2LoadBalancerAttribute]
loadBalancerAttributes :: Prelude.Maybe [AwsElbv2LoadBalancerAttribute],
AwsElbv2LoadBalancerDetails -> Maybe Text
createdTime :: Prelude.Maybe Prelude.Text,
AwsElbv2LoadBalancerDetails -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
AwsElbv2LoadBalancerDetails -> Maybe Text
canonicalHostedZoneId :: Prelude.Maybe Prelude.Text,
AwsElbv2LoadBalancerDetails -> Maybe [AvailabilityZone]
availabilityZones :: Prelude.Maybe [AvailabilityZone],
AwsElbv2LoadBalancerDetails -> Maybe Text
ipAddressType :: Prelude.Maybe Prelude.Text,
AwsElbv2LoadBalancerDetails -> Maybe Text
scheme :: Prelude.Maybe Prelude.Text,
AwsElbv2LoadBalancerDetails -> Maybe Text
type' :: Prelude.Maybe Prelude.Text,
AwsElbv2LoadBalancerDetails -> Maybe Text
dNSName :: Prelude.Maybe Prelude.Text
}
deriving (AwsElbv2LoadBalancerDetails -> AwsElbv2LoadBalancerDetails -> Bool
(AwsElbv2LoadBalancerDetails
-> AwsElbv2LoadBalancerDetails -> Bool)
-> (AwsElbv2LoadBalancerDetails
-> AwsElbv2LoadBalancerDetails -> Bool)
-> Eq AwsElbv2LoadBalancerDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsElbv2LoadBalancerDetails -> AwsElbv2LoadBalancerDetails -> Bool
$c/= :: AwsElbv2LoadBalancerDetails -> AwsElbv2LoadBalancerDetails -> Bool
== :: AwsElbv2LoadBalancerDetails -> AwsElbv2LoadBalancerDetails -> Bool
$c== :: AwsElbv2LoadBalancerDetails -> AwsElbv2LoadBalancerDetails -> Bool
Prelude.Eq, ReadPrec [AwsElbv2LoadBalancerDetails]
ReadPrec AwsElbv2LoadBalancerDetails
Int -> ReadS AwsElbv2LoadBalancerDetails
ReadS [AwsElbv2LoadBalancerDetails]
(Int -> ReadS AwsElbv2LoadBalancerDetails)
-> ReadS [AwsElbv2LoadBalancerDetails]
-> ReadPrec AwsElbv2LoadBalancerDetails
-> ReadPrec [AwsElbv2LoadBalancerDetails]
-> Read AwsElbv2LoadBalancerDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsElbv2LoadBalancerDetails]
$creadListPrec :: ReadPrec [AwsElbv2LoadBalancerDetails]
readPrec :: ReadPrec AwsElbv2LoadBalancerDetails
$creadPrec :: ReadPrec AwsElbv2LoadBalancerDetails
readList :: ReadS [AwsElbv2LoadBalancerDetails]
$creadList :: ReadS [AwsElbv2LoadBalancerDetails]
readsPrec :: Int -> ReadS AwsElbv2LoadBalancerDetails
$creadsPrec :: Int -> ReadS AwsElbv2LoadBalancerDetails
Prelude.Read, Int -> AwsElbv2LoadBalancerDetails -> ShowS
[AwsElbv2LoadBalancerDetails] -> ShowS
AwsElbv2LoadBalancerDetails -> String
(Int -> AwsElbv2LoadBalancerDetails -> ShowS)
-> (AwsElbv2LoadBalancerDetails -> String)
-> ([AwsElbv2LoadBalancerDetails] -> ShowS)
-> Show AwsElbv2LoadBalancerDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsElbv2LoadBalancerDetails] -> ShowS
$cshowList :: [AwsElbv2LoadBalancerDetails] -> ShowS
show :: AwsElbv2LoadBalancerDetails -> String
$cshow :: AwsElbv2LoadBalancerDetails -> String
showsPrec :: Int -> AwsElbv2LoadBalancerDetails -> ShowS
$cshowsPrec :: Int -> AwsElbv2LoadBalancerDetails -> ShowS
Prelude.Show, (forall x.
AwsElbv2LoadBalancerDetails -> Rep AwsElbv2LoadBalancerDetails x)
-> (forall x.
Rep AwsElbv2LoadBalancerDetails x -> AwsElbv2LoadBalancerDetails)
-> Generic AwsElbv2LoadBalancerDetails
forall x.
Rep AwsElbv2LoadBalancerDetails x -> AwsElbv2LoadBalancerDetails
forall x.
AwsElbv2LoadBalancerDetails -> Rep AwsElbv2LoadBalancerDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsElbv2LoadBalancerDetails x -> AwsElbv2LoadBalancerDetails
$cfrom :: forall x.
AwsElbv2LoadBalancerDetails -> Rep AwsElbv2LoadBalancerDetails x
Prelude.Generic)
newAwsElbv2LoadBalancerDetails ::
AwsElbv2LoadBalancerDetails
newAwsElbv2LoadBalancerDetails :: AwsElbv2LoadBalancerDetails
newAwsElbv2LoadBalancerDetails =
AwsElbv2LoadBalancerDetails' :: Maybe LoadBalancerState
-> Maybe [Text]
-> Maybe [AwsElbv2LoadBalancerAttribute]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails'
{ $sel:state:AwsElbv2LoadBalancerDetails' :: Maybe LoadBalancerState
state =
Maybe LoadBalancerState
forall a. Maybe a
Prelude.Nothing,
$sel:securityGroups:AwsElbv2LoadBalancerDetails' :: Maybe [Text]
securityGroups = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:loadBalancerAttributes:AwsElbv2LoadBalancerDetails' :: Maybe [AwsElbv2LoadBalancerAttribute]
loadBalancerAttributes = Maybe [AwsElbv2LoadBalancerAttribute]
forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:AwsElbv2LoadBalancerDetails' :: Maybe Text
createdTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:AwsElbv2LoadBalancerDetails' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:canonicalHostedZoneId:AwsElbv2LoadBalancerDetails' :: Maybe Text
canonicalHostedZoneId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZones:AwsElbv2LoadBalancerDetails' :: Maybe [AvailabilityZone]
availabilityZones = Maybe [AvailabilityZone]
forall a. Maybe a
Prelude.Nothing,
$sel:ipAddressType:AwsElbv2LoadBalancerDetails' :: Maybe Text
ipAddressType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:scheme:AwsElbv2LoadBalancerDetails' :: Maybe Text
scheme = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':AwsElbv2LoadBalancerDetails' :: Maybe Text
type' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dNSName:AwsElbv2LoadBalancerDetails' :: Maybe Text
dNSName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsElbv2LoadBalancerDetails_state :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe LoadBalancerState)
awsElbv2LoadBalancerDetails_state :: (Maybe LoadBalancerState -> f (Maybe LoadBalancerState))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_state = (AwsElbv2LoadBalancerDetails -> Maybe LoadBalancerState)
-> (AwsElbv2LoadBalancerDetails
-> Maybe LoadBalancerState -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe LoadBalancerState)
(Maybe LoadBalancerState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe LoadBalancerState
state :: Maybe LoadBalancerState
$sel:state:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe LoadBalancerState
state} -> Maybe LoadBalancerState
state) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe LoadBalancerState
a -> AwsElbv2LoadBalancerDetails
s {$sel:state:AwsElbv2LoadBalancerDetails' :: Maybe LoadBalancerState
state = Maybe LoadBalancerState
a} :: AwsElbv2LoadBalancerDetails)
awsElbv2LoadBalancerDetails_securityGroups :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe [Prelude.Text])
awsElbv2LoadBalancerDetails_securityGroups :: (Maybe [Text] -> f (Maybe [Text]))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_securityGroups = (AwsElbv2LoadBalancerDetails -> Maybe [Text])
-> (AwsElbv2LoadBalancerDetails
-> Maybe [Text] -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe [Text]
securityGroups :: Maybe [Text]
$sel:securityGroups:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe [Text]
securityGroups} -> Maybe [Text]
securityGroups) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe [Text]
a -> AwsElbv2LoadBalancerDetails
s {$sel:securityGroups:AwsElbv2LoadBalancerDetails' :: Maybe [Text]
securityGroups = Maybe [Text]
a} :: AwsElbv2LoadBalancerDetails) ((Maybe [Text] -> f (Maybe [Text]))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> AwsElbv2LoadBalancerDetails
-> f AwsElbv2LoadBalancerDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
awsElbv2LoadBalancerDetails_loadBalancerAttributes :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe [AwsElbv2LoadBalancerAttribute])
awsElbv2LoadBalancerDetails_loadBalancerAttributes :: (Maybe [AwsElbv2LoadBalancerAttribute]
-> f (Maybe [AwsElbv2LoadBalancerAttribute]))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_loadBalancerAttributes = (AwsElbv2LoadBalancerDetails
-> Maybe [AwsElbv2LoadBalancerAttribute])
-> (AwsElbv2LoadBalancerDetails
-> Maybe [AwsElbv2LoadBalancerAttribute]
-> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe [AwsElbv2LoadBalancerAttribute])
(Maybe [AwsElbv2LoadBalancerAttribute])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe [AwsElbv2LoadBalancerAttribute]
loadBalancerAttributes :: Maybe [AwsElbv2LoadBalancerAttribute]
$sel:loadBalancerAttributes:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails
-> Maybe [AwsElbv2LoadBalancerAttribute]
loadBalancerAttributes} -> Maybe [AwsElbv2LoadBalancerAttribute]
loadBalancerAttributes) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe [AwsElbv2LoadBalancerAttribute]
a -> AwsElbv2LoadBalancerDetails
s {$sel:loadBalancerAttributes:AwsElbv2LoadBalancerDetails' :: Maybe [AwsElbv2LoadBalancerAttribute]
loadBalancerAttributes = Maybe [AwsElbv2LoadBalancerAttribute]
a} :: AwsElbv2LoadBalancerDetails) ((Maybe [AwsElbv2LoadBalancerAttribute]
-> f (Maybe [AwsElbv2LoadBalancerAttribute]))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails)
-> ((Maybe [AwsElbv2LoadBalancerAttribute]
-> f (Maybe [AwsElbv2LoadBalancerAttribute]))
-> Maybe [AwsElbv2LoadBalancerAttribute]
-> f (Maybe [AwsElbv2LoadBalancerAttribute]))
-> (Maybe [AwsElbv2LoadBalancerAttribute]
-> f (Maybe [AwsElbv2LoadBalancerAttribute]))
-> AwsElbv2LoadBalancerDetails
-> f AwsElbv2LoadBalancerDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AwsElbv2LoadBalancerAttribute]
[AwsElbv2LoadBalancerAttribute]
[AwsElbv2LoadBalancerAttribute]
[AwsElbv2LoadBalancerAttribute]
-> Iso
(Maybe [AwsElbv2LoadBalancerAttribute])
(Maybe [AwsElbv2LoadBalancerAttribute])
(Maybe [AwsElbv2LoadBalancerAttribute])
(Maybe [AwsElbv2LoadBalancerAttribute])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[AwsElbv2LoadBalancerAttribute]
[AwsElbv2LoadBalancerAttribute]
[AwsElbv2LoadBalancerAttribute]
[AwsElbv2LoadBalancerAttribute]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
awsElbv2LoadBalancerDetails_createdTime :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe Prelude.Text)
awsElbv2LoadBalancerDetails_createdTime :: (Maybe Text -> f (Maybe Text))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_createdTime = (AwsElbv2LoadBalancerDetails -> Maybe Text)
-> (AwsElbv2LoadBalancerDetails
-> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe Text
createdTime :: Maybe Text
$sel:createdTime:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
createdTime} -> Maybe Text
createdTime) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe Text
a -> AwsElbv2LoadBalancerDetails
s {$sel:createdTime:AwsElbv2LoadBalancerDetails' :: Maybe Text
createdTime = Maybe Text
a} :: AwsElbv2LoadBalancerDetails)
awsElbv2LoadBalancerDetails_vpcId :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe Prelude.Text)
awsElbv2LoadBalancerDetails_vpcId :: (Maybe Text -> f (Maybe Text))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_vpcId = (AwsElbv2LoadBalancerDetails -> Maybe Text)
-> (AwsElbv2LoadBalancerDetails
-> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe Text
a -> AwsElbv2LoadBalancerDetails
s {$sel:vpcId:AwsElbv2LoadBalancerDetails' :: Maybe Text
vpcId = Maybe Text
a} :: AwsElbv2LoadBalancerDetails)
awsElbv2LoadBalancerDetails_canonicalHostedZoneId :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe Prelude.Text)
awsElbv2LoadBalancerDetails_canonicalHostedZoneId :: (Maybe Text -> f (Maybe Text))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_canonicalHostedZoneId = (AwsElbv2LoadBalancerDetails -> Maybe Text)
-> (AwsElbv2LoadBalancerDetails
-> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe Text
canonicalHostedZoneId :: Maybe Text
$sel:canonicalHostedZoneId:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
canonicalHostedZoneId} -> Maybe Text
canonicalHostedZoneId) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe Text
a -> AwsElbv2LoadBalancerDetails
s {$sel:canonicalHostedZoneId:AwsElbv2LoadBalancerDetails' :: Maybe Text
canonicalHostedZoneId = Maybe Text
a} :: AwsElbv2LoadBalancerDetails)
awsElbv2LoadBalancerDetails_availabilityZones :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe [AvailabilityZone])
awsElbv2LoadBalancerDetails_availabilityZones :: (Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_availabilityZones = (AwsElbv2LoadBalancerDetails -> Maybe [AvailabilityZone])
-> (AwsElbv2LoadBalancerDetails
-> Maybe [AvailabilityZone] -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe [AvailabilityZone])
(Maybe [AvailabilityZone])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe [AvailabilityZone]
availabilityZones :: Maybe [AvailabilityZone]
$sel:availabilityZones:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe [AvailabilityZone]
availabilityZones} -> Maybe [AvailabilityZone]
availabilityZones) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe [AvailabilityZone]
a -> AwsElbv2LoadBalancerDetails
s {$sel:availabilityZones:AwsElbv2LoadBalancerDetails' :: Maybe [AvailabilityZone]
availabilityZones = Maybe [AvailabilityZone]
a} :: AwsElbv2LoadBalancerDetails) ((Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails)
-> ((Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
-> Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
-> (Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
-> AwsElbv2LoadBalancerDetails
-> f AwsElbv2LoadBalancerDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AvailabilityZone]
[AvailabilityZone]
[AvailabilityZone]
[AvailabilityZone]
-> Iso
(Maybe [AvailabilityZone])
(Maybe [AvailabilityZone])
(Maybe [AvailabilityZone])
(Maybe [AvailabilityZone])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[AvailabilityZone]
[AvailabilityZone]
[AvailabilityZone]
[AvailabilityZone]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
awsElbv2LoadBalancerDetails_ipAddressType :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe Prelude.Text)
awsElbv2LoadBalancerDetails_ipAddressType :: (Maybe Text -> f (Maybe Text))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_ipAddressType = (AwsElbv2LoadBalancerDetails -> Maybe Text)
-> (AwsElbv2LoadBalancerDetails
-> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe Text
ipAddressType :: Maybe Text
$sel:ipAddressType:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
ipAddressType} -> Maybe Text
ipAddressType) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe Text
a -> AwsElbv2LoadBalancerDetails
s {$sel:ipAddressType:AwsElbv2LoadBalancerDetails' :: Maybe Text
ipAddressType = Maybe Text
a} :: AwsElbv2LoadBalancerDetails)
awsElbv2LoadBalancerDetails_scheme :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe Prelude.Text)
awsElbv2LoadBalancerDetails_scheme :: (Maybe Text -> f (Maybe Text))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_scheme = (AwsElbv2LoadBalancerDetails -> Maybe Text)
-> (AwsElbv2LoadBalancerDetails
-> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe Text
scheme :: Maybe Text
$sel:scheme:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
scheme} -> Maybe Text
scheme) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe Text
a -> AwsElbv2LoadBalancerDetails
s {$sel:scheme:AwsElbv2LoadBalancerDetails' :: Maybe Text
scheme = Maybe Text
a} :: AwsElbv2LoadBalancerDetails)
awsElbv2LoadBalancerDetails_type :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe Prelude.Text)
awsElbv2LoadBalancerDetails_type :: (Maybe Text -> f (Maybe Text))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_type = (AwsElbv2LoadBalancerDetails -> Maybe Text)
-> (AwsElbv2LoadBalancerDetails
-> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe Text
type' :: Maybe Text
$sel:type':AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
type'} -> Maybe Text
type') (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe Text
a -> AwsElbv2LoadBalancerDetails
s {$sel:type':AwsElbv2LoadBalancerDetails' :: Maybe Text
type' = Maybe Text
a} :: AwsElbv2LoadBalancerDetails)
awsElbv2LoadBalancerDetails_dNSName :: Lens.Lens' AwsElbv2LoadBalancerDetails (Prelude.Maybe Prelude.Text)
awsElbv2LoadBalancerDetails_dNSName :: (Maybe Text -> f (Maybe Text))
-> AwsElbv2LoadBalancerDetails -> f AwsElbv2LoadBalancerDetails
awsElbv2LoadBalancerDetails_dNSName = (AwsElbv2LoadBalancerDetails -> Maybe Text)
-> (AwsElbv2LoadBalancerDetails
-> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Lens
AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsElbv2LoadBalancerDetails' {Maybe Text
dNSName :: Maybe Text
$sel:dNSName:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
dNSName} -> Maybe Text
dNSName) (\s :: AwsElbv2LoadBalancerDetails
s@AwsElbv2LoadBalancerDetails' {} Maybe Text
a -> AwsElbv2LoadBalancerDetails
s {$sel:dNSName:AwsElbv2LoadBalancerDetails' :: Maybe Text
dNSName = Maybe Text
a} :: AwsElbv2LoadBalancerDetails)
instance Core.FromJSON AwsElbv2LoadBalancerDetails where
parseJSON :: Value -> Parser AwsElbv2LoadBalancerDetails
parseJSON =
String
-> (Object -> Parser AwsElbv2LoadBalancerDetails)
-> Value
-> Parser AwsElbv2LoadBalancerDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsElbv2LoadBalancerDetails"
( \Object
x ->
Maybe LoadBalancerState
-> Maybe [Text]
-> Maybe [AwsElbv2LoadBalancerAttribute]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails
AwsElbv2LoadBalancerDetails'
(Maybe LoadBalancerState
-> Maybe [Text]
-> Maybe [AwsElbv2LoadBalancerAttribute]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe LoadBalancerState)
-> Parser
(Maybe [Text]
-> Maybe [AwsElbv2LoadBalancerAttribute]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe LoadBalancerState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"State")
Parser
(Maybe [Text]
-> Maybe [AwsElbv2LoadBalancerAttribute]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe [Text])
-> Parser
(Maybe [AwsElbv2LoadBalancerAttribute]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SecurityGroups" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe [AwsElbv2LoadBalancerAttribute]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe [AwsElbv2LoadBalancerAttribute])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Parser (Maybe (Maybe [AwsElbv2LoadBalancerAttribute]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LoadBalancerAttributes"
Parser (Maybe (Maybe [AwsElbv2LoadBalancerAttribute]))
-> Maybe [AwsElbv2LoadBalancerAttribute]
-> Parser (Maybe [AwsElbv2LoadBalancerAttribute])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AwsElbv2LoadBalancerAttribute]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => 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
"CreatedTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => 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
"VpcId")
Parser
(Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => 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
"CanonicalHostedZoneId")
Parser
(Maybe [AvailabilityZone]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe [AvailabilityZone])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [AvailabilityZone]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AvailabilityZones"
Parser (Maybe (Maybe [AvailabilityZone]))
-> Maybe [AvailabilityZone] -> Parser (Maybe [AvailabilityZone])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AvailabilityZone]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => 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
"IpAddressType")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => 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
"Scheme")
Parser (Maybe Text -> Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> AwsElbv2LoadBalancerDetails)
forall (f :: * -> *) a b. Applicative f => 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
"Type")
Parser (Maybe Text -> AwsElbv2LoadBalancerDetails)
-> Parser (Maybe Text) -> Parser AwsElbv2LoadBalancerDetails
forall (f :: * -> *) a b. Applicative f => 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
"DNSName")
)
instance Prelude.Hashable AwsElbv2LoadBalancerDetails
instance Prelude.NFData AwsElbv2LoadBalancerDetails
instance Core.ToJSON AwsElbv2LoadBalancerDetails where
toJSON :: AwsElbv2LoadBalancerDetails -> Value
toJSON AwsElbv2LoadBalancerDetails' {Maybe [Text]
Maybe [AvailabilityZone]
Maybe [AwsElbv2LoadBalancerAttribute]
Maybe Text
Maybe LoadBalancerState
dNSName :: Maybe Text
type' :: Maybe Text
scheme :: Maybe Text
ipAddressType :: Maybe Text
availabilityZones :: Maybe [AvailabilityZone]
canonicalHostedZoneId :: Maybe Text
vpcId :: Maybe Text
createdTime :: Maybe Text
loadBalancerAttributes :: Maybe [AwsElbv2LoadBalancerAttribute]
securityGroups :: Maybe [Text]
state :: Maybe LoadBalancerState
$sel:dNSName:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
$sel:type':AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
$sel:scheme:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
$sel:ipAddressType:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
$sel:availabilityZones:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe [AvailabilityZone]
$sel:canonicalHostedZoneId:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
$sel:vpcId:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
$sel:createdTime:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe Text
$sel:loadBalancerAttributes:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails
-> Maybe [AwsElbv2LoadBalancerAttribute]
$sel:securityGroups:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe [Text]
$sel:state:AwsElbv2LoadBalancerDetails' :: AwsElbv2LoadBalancerDetails -> Maybe LoadBalancerState
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"State" Text -> LoadBalancerState -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (LoadBalancerState -> Pair)
-> Maybe LoadBalancerState -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoadBalancerState
state,
(Text
"SecurityGroups" 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]
securityGroups,
(Text
"LoadBalancerAttributes" Text -> [AwsElbv2LoadBalancerAttribute] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([AwsElbv2LoadBalancerAttribute] -> Pair)
-> Maybe [AwsElbv2LoadBalancerAttribute] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AwsElbv2LoadBalancerAttribute]
loadBalancerAttributes,
(Text
"CreatedTime" 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
createdTime,
(Text
"VpcId" 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
vpcId,
(Text
"CanonicalHostedZoneId" 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
canonicalHostedZoneId,
(Text
"AvailabilityZones" Text -> [AvailabilityZone] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([AvailabilityZone] -> Pair)
-> Maybe [AvailabilityZone] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AvailabilityZone]
availabilityZones,
(Text
"IpAddressType" 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
ipAddressType,
(Text
"Scheme" 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
scheme,
(Text
"Type" 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
type',
(Text
"DNSName" 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
dNSName
]
)