{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ELBV2.CreateTargetGroup
(
CreateTargetGroup (..),
newCreateTargetGroup,
createTargetGroup_protocolVersion,
createTargetGroup_matcher,
createTargetGroup_healthCheckPath,
createTargetGroup_healthCheckEnabled,
createTargetGroup_unhealthyThresholdCount,
createTargetGroup_vpcId,
createTargetGroup_protocol,
createTargetGroup_healthCheckIntervalSeconds,
createTargetGroup_targetType,
createTargetGroup_healthyThresholdCount,
createTargetGroup_healthCheckProtocol,
createTargetGroup_ipAddressType,
createTargetGroup_healthCheckTimeoutSeconds,
createTargetGroup_healthCheckPort,
createTargetGroup_tags,
createTargetGroup_port,
createTargetGroup_name,
CreateTargetGroupResponse (..),
newCreateTargetGroupResponse,
createTargetGroupResponse_targetGroups,
createTargetGroupResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ELBV2.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateTargetGroup = CreateTargetGroup'
{
CreateTargetGroup -> Maybe Text
protocolVersion :: Prelude.Maybe Prelude.Text,
CreateTargetGroup -> Maybe Matcher
matcher :: Prelude.Maybe Matcher,
CreateTargetGroup -> Maybe Text
healthCheckPath :: Prelude.Maybe Prelude.Text,
CreateTargetGroup -> Maybe Bool
healthCheckEnabled :: Prelude.Maybe Prelude.Bool,
CreateTargetGroup -> Maybe Natural
unhealthyThresholdCount :: Prelude.Maybe Prelude.Natural,
CreateTargetGroup -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
CreateTargetGroup -> Maybe ProtocolEnum
protocol :: Prelude.Maybe ProtocolEnum,
CreateTargetGroup -> Maybe Natural
healthCheckIntervalSeconds :: Prelude.Maybe Prelude.Natural,
CreateTargetGroup -> Maybe TargetTypeEnum
targetType :: Prelude.Maybe TargetTypeEnum,
CreateTargetGroup -> Maybe Natural
healthyThresholdCount :: Prelude.Maybe Prelude.Natural,
CreateTargetGroup -> Maybe ProtocolEnum
healthCheckProtocol :: Prelude.Maybe ProtocolEnum,
CreateTargetGroup -> Maybe TargetGroupIpAddressTypeEnum
ipAddressType :: Prelude.Maybe TargetGroupIpAddressTypeEnum,
CreateTargetGroup -> Maybe Natural
healthCheckTimeoutSeconds :: Prelude.Maybe Prelude.Natural,
CreateTargetGroup -> Maybe Text
healthCheckPort :: Prelude.Maybe Prelude.Text,
CreateTargetGroup -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
CreateTargetGroup -> Maybe Natural
port :: Prelude.Maybe Prelude.Natural,
CreateTargetGroup -> Text
name :: Prelude.Text
}
deriving (CreateTargetGroup -> CreateTargetGroup -> Bool
(CreateTargetGroup -> CreateTargetGroup -> Bool)
-> (CreateTargetGroup -> CreateTargetGroup -> Bool)
-> Eq CreateTargetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateTargetGroup -> CreateTargetGroup -> Bool
$c/= :: CreateTargetGroup -> CreateTargetGroup -> Bool
== :: CreateTargetGroup -> CreateTargetGroup -> Bool
$c== :: CreateTargetGroup -> CreateTargetGroup -> Bool
Prelude.Eq, ReadPrec [CreateTargetGroup]
ReadPrec CreateTargetGroup
Int -> ReadS CreateTargetGroup
ReadS [CreateTargetGroup]
(Int -> ReadS CreateTargetGroup)
-> ReadS [CreateTargetGroup]
-> ReadPrec CreateTargetGroup
-> ReadPrec [CreateTargetGroup]
-> Read CreateTargetGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateTargetGroup]
$creadListPrec :: ReadPrec [CreateTargetGroup]
readPrec :: ReadPrec CreateTargetGroup
$creadPrec :: ReadPrec CreateTargetGroup
readList :: ReadS [CreateTargetGroup]
$creadList :: ReadS [CreateTargetGroup]
readsPrec :: Int -> ReadS CreateTargetGroup
$creadsPrec :: Int -> ReadS CreateTargetGroup
Prelude.Read, Int -> CreateTargetGroup -> ShowS
[CreateTargetGroup] -> ShowS
CreateTargetGroup -> String
(Int -> CreateTargetGroup -> ShowS)
-> (CreateTargetGroup -> String)
-> ([CreateTargetGroup] -> ShowS)
-> Show CreateTargetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateTargetGroup] -> ShowS
$cshowList :: [CreateTargetGroup] -> ShowS
show :: CreateTargetGroup -> String
$cshow :: CreateTargetGroup -> String
showsPrec :: Int -> CreateTargetGroup -> ShowS
$cshowsPrec :: Int -> CreateTargetGroup -> ShowS
Prelude.Show, (forall x. CreateTargetGroup -> Rep CreateTargetGroup x)
-> (forall x. Rep CreateTargetGroup x -> CreateTargetGroup)
-> Generic CreateTargetGroup
forall x. Rep CreateTargetGroup x -> CreateTargetGroup
forall x. CreateTargetGroup -> Rep CreateTargetGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateTargetGroup x -> CreateTargetGroup
$cfrom :: forall x. CreateTargetGroup -> Rep CreateTargetGroup x
Prelude.Generic)
newCreateTargetGroup ::
Prelude.Text ->
CreateTargetGroup
newCreateTargetGroup :: Text -> CreateTargetGroup
newCreateTargetGroup Text
pName_ =
CreateTargetGroup' :: Maybe Text
-> Maybe Matcher
-> Maybe Text
-> Maybe Bool
-> Maybe Natural
-> Maybe Text
-> Maybe ProtocolEnum
-> Maybe Natural
-> Maybe TargetTypeEnum
-> Maybe Natural
-> Maybe ProtocolEnum
-> Maybe TargetGroupIpAddressTypeEnum
-> Maybe Natural
-> Maybe Text
-> Maybe (NonEmpty Tag)
-> Maybe Natural
-> Text
-> CreateTargetGroup
CreateTargetGroup'
{ $sel:protocolVersion:CreateTargetGroup' :: Maybe Text
protocolVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:matcher:CreateTargetGroup' :: Maybe Matcher
matcher = Maybe Matcher
forall a. Maybe a
Prelude.Nothing,
$sel:healthCheckPath:CreateTargetGroup' :: Maybe Text
healthCheckPath = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:healthCheckEnabled:CreateTargetGroup' :: Maybe Bool
healthCheckEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:unhealthyThresholdCount:CreateTargetGroup' :: Maybe Natural
unhealthyThresholdCount = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:CreateTargetGroup' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:protocol:CreateTargetGroup' :: Maybe ProtocolEnum
protocol = Maybe ProtocolEnum
forall a. Maybe a
Prelude.Nothing,
$sel:healthCheckIntervalSeconds:CreateTargetGroup' :: Maybe Natural
healthCheckIntervalSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:targetType:CreateTargetGroup' :: Maybe TargetTypeEnum
targetType = Maybe TargetTypeEnum
forall a. Maybe a
Prelude.Nothing,
$sel:healthyThresholdCount:CreateTargetGroup' :: Maybe Natural
healthyThresholdCount = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:healthCheckProtocol:CreateTargetGroup' :: Maybe ProtocolEnum
healthCheckProtocol = Maybe ProtocolEnum
forall a. Maybe a
Prelude.Nothing,
$sel:ipAddressType:CreateTargetGroup' :: Maybe TargetGroupIpAddressTypeEnum
ipAddressType = Maybe TargetGroupIpAddressTypeEnum
forall a. Maybe a
Prelude.Nothing,
$sel:healthCheckTimeoutSeconds:CreateTargetGroup' :: Maybe Natural
healthCheckTimeoutSeconds = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:healthCheckPort:CreateTargetGroup' :: Maybe Text
healthCheckPort = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateTargetGroup' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
forall a. Maybe a
Prelude.Nothing,
$sel:port:CreateTargetGroup' :: Maybe Natural
port = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateTargetGroup' :: Text
name = Text
pName_
}
createTargetGroup_protocolVersion :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Text)
createTargetGroup_protocolVersion :: (Maybe Text -> f (Maybe Text))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_protocolVersion = (CreateTargetGroup -> Maybe Text)
-> (CreateTargetGroup -> Maybe Text -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Text
protocolVersion :: Maybe Text
$sel:protocolVersion:CreateTargetGroup' :: CreateTargetGroup -> Maybe Text
protocolVersion} -> Maybe Text
protocolVersion) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Text
a -> CreateTargetGroup
s {$sel:protocolVersion:CreateTargetGroup' :: Maybe Text
protocolVersion = Maybe Text
a} :: CreateTargetGroup)
createTargetGroup_matcher :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Matcher)
createTargetGroup_matcher :: (Maybe Matcher -> f (Maybe Matcher))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_matcher = (CreateTargetGroup -> Maybe Matcher)
-> (CreateTargetGroup -> Maybe Matcher -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Matcher) (Maybe Matcher)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Matcher
matcher :: Maybe Matcher
$sel:matcher:CreateTargetGroup' :: CreateTargetGroup -> Maybe Matcher
matcher} -> Maybe Matcher
matcher) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Matcher
a -> CreateTargetGroup
s {$sel:matcher:CreateTargetGroup' :: Maybe Matcher
matcher = Maybe Matcher
a} :: CreateTargetGroup)
createTargetGroup_healthCheckPath :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Text)
createTargetGroup_healthCheckPath :: (Maybe Text -> f (Maybe Text))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_healthCheckPath = (CreateTargetGroup -> Maybe Text)
-> (CreateTargetGroup -> Maybe Text -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Text
healthCheckPath :: Maybe Text
$sel:healthCheckPath:CreateTargetGroup' :: CreateTargetGroup -> Maybe Text
healthCheckPath} -> Maybe Text
healthCheckPath) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Text
a -> CreateTargetGroup
s {$sel:healthCheckPath:CreateTargetGroup' :: Maybe Text
healthCheckPath = Maybe Text
a} :: CreateTargetGroup)
createTargetGroup_healthCheckEnabled :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Bool)
createTargetGroup_healthCheckEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_healthCheckEnabled = (CreateTargetGroup -> Maybe Bool)
-> (CreateTargetGroup -> Maybe Bool -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Bool
healthCheckEnabled :: Maybe Bool
$sel:healthCheckEnabled:CreateTargetGroup' :: CreateTargetGroup -> Maybe Bool
healthCheckEnabled} -> Maybe Bool
healthCheckEnabled) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Bool
a -> CreateTargetGroup
s {$sel:healthCheckEnabled:CreateTargetGroup' :: Maybe Bool
healthCheckEnabled = Maybe Bool
a} :: CreateTargetGroup)
createTargetGroup_unhealthyThresholdCount :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Natural)
createTargetGroup_unhealthyThresholdCount :: (Maybe Natural -> f (Maybe Natural))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_unhealthyThresholdCount = (CreateTargetGroup -> Maybe Natural)
-> (CreateTargetGroup -> Maybe Natural -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Natural
unhealthyThresholdCount :: Maybe Natural
$sel:unhealthyThresholdCount:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
unhealthyThresholdCount} -> Maybe Natural
unhealthyThresholdCount) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Natural
a -> CreateTargetGroup
s {$sel:unhealthyThresholdCount:CreateTargetGroup' :: Maybe Natural
unhealthyThresholdCount = Maybe Natural
a} :: CreateTargetGroup)
createTargetGroup_vpcId :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Text)
createTargetGroup_vpcId :: (Maybe Text -> f (Maybe Text))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_vpcId = (CreateTargetGroup -> Maybe Text)
-> (CreateTargetGroup -> Maybe Text -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:CreateTargetGroup' :: CreateTargetGroup -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Text
a -> CreateTargetGroup
s {$sel:vpcId:CreateTargetGroup' :: Maybe Text
vpcId = Maybe Text
a} :: CreateTargetGroup)
createTargetGroup_protocol :: Lens.Lens' CreateTargetGroup (Prelude.Maybe ProtocolEnum)
createTargetGroup_protocol :: (Maybe ProtocolEnum -> f (Maybe ProtocolEnum))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_protocol = (CreateTargetGroup -> Maybe ProtocolEnum)
-> (CreateTargetGroup -> Maybe ProtocolEnum -> CreateTargetGroup)
-> Lens
CreateTargetGroup
CreateTargetGroup
(Maybe ProtocolEnum)
(Maybe ProtocolEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe ProtocolEnum
protocol :: Maybe ProtocolEnum
$sel:protocol:CreateTargetGroup' :: CreateTargetGroup -> Maybe ProtocolEnum
protocol} -> Maybe ProtocolEnum
protocol) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe ProtocolEnum
a -> CreateTargetGroup
s {$sel:protocol:CreateTargetGroup' :: Maybe ProtocolEnum
protocol = Maybe ProtocolEnum
a} :: CreateTargetGroup)
createTargetGroup_healthCheckIntervalSeconds :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Natural)
createTargetGroup_healthCheckIntervalSeconds :: (Maybe Natural -> f (Maybe Natural))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_healthCheckIntervalSeconds = (CreateTargetGroup -> Maybe Natural)
-> (CreateTargetGroup -> Maybe Natural -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Natural
healthCheckIntervalSeconds :: Maybe Natural
$sel:healthCheckIntervalSeconds:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
healthCheckIntervalSeconds} -> Maybe Natural
healthCheckIntervalSeconds) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Natural
a -> CreateTargetGroup
s {$sel:healthCheckIntervalSeconds:CreateTargetGroup' :: Maybe Natural
healthCheckIntervalSeconds = Maybe Natural
a} :: CreateTargetGroup)
createTargetGroup_targetType :: Lens.Lens' CreateTargetGroup (Prelude.Maybe TargetTypeEnum)
createTargetGroup_targetType :: (Maybe TargetTypeEnum -> f (Maybe TargetTypeEnum))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_targetType = (CreateTargetGroup -> Maybe TargetTypeEnum)
-> (CreateTargetGroup -> Maybe TargetTypeEnum -> CreateTargetGroup)
-> Lens
CreateTargetGroup
CreateTargetGroup
(Maybe TargetTypeEnum)
(Maybe TargetTypeEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe TargetTypeEnum
targetType :: Maybe TargetTypeEnum
$sel:targetType:CreateTargetGroup' :: CreateTargetGroup -> Maybe TargetTypeEnum
targetType} -> Maybe TargetTypeEnum
targetType) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe TargetTypeEnum
a -> CreateTargetGroup
s {$sel:targetType:CreateTargetGroup' :: Maybe TargetTypeEnum
targetType = Maybe TargetTypeEnum
a} :: CreateTargetGroup)
createTargetGroup_healthyThresholdCount :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Natural)
createTargetGroup_healthyThresholdCount :: (Maybe Natural -> f (Maybe Natural))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_healthyThresholdCount = (CreateTargetGroup -> Maybe Natural)
-> (CreateTargetGroup -> Maybe Natural -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Natural
healthyThresholdCount :: Maybe Natural
$sel:healthyThresholdCount:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
healthyThresholdCount} -> Maybe Natural
healthyThresholdCount) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Natural
a -> CreateTargetGroup
s {$sel:healthyThresholdCount:CreateTargetGroup' :: Maybe Natural
healthyThresholdCount = Maybe Natural
a} :: CreateTargetGroup)
createTargetGroup_healthCheckProtocol :: Lens.Lens' CreateTargetGroup (Prelude.Maybe ProtocolEnum)
createTargetGroup_healthCheckProtocol :: (Maybe ProtocolEnum -> f (Maybe ProtocolEnum))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_healthCheckProtocol = (CreateTargetGroup -> Maybe ProtocolEnum)
-> (CreateTargetGroup -> Maybe ProtocolEnum -> CreateTargetGroup)
-> Lens
CreateTargetGroup
CreateTargetGroup
(Maybe ProtocolEnum)
(Maybe ProtocolEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe ProtocolEnum
healthCheckProtocol :: Maybe ProtocolEnum
$sel:healthCheckProtocol:CreateTargetGroup' :: CreateTargetGroup -> Maybe ProtocolEnum
healthCheckProtocol} -> Maybe ProtocolEnum
healthCheckProtocol) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe ProtocolEnum
a -> CreateTargetGroup
s {$sel:healthCheckProtocol:CreateTargetGroup' :: Maybe ProtocolEnum
healthCheckProtocol = Maybe ProtocolEnum
a} :: CreateTargetGroup)
createTargetGroup_ipAddressType :: Lens.Lens' CreateTargetGroup (Prelude.Maybe TargetGroupIpAddressTypeEnum)
createTargetGroup_ipAddressType :: (Maybe TargetGroupIpAddressTypeEnum
-> f (Maybe TargetGroupIpAddressTypeEnum))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_ipAddressType = (CreateTargetGroup -> Maybe TargetGroupIpAddressTypeEnum)
-> (CreateTargetGroup
-> Maybe TargetGroupIpAddressTypeEnum -> CreateTargetGroup)
-> Lens
CreateTargetGroup
CreateTargetGroup
(Maybe TargetGroupIpAddressTypeEnum)
(Maybe TargetGroupIpAddressTypeEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe TargetGroupIpAddressTypeEnum
ipAddressType :: Maybe TargetGroupIpAddressTypeEnum
$sel:ipAddressType:CreateTargetGroup' :: CreateTargetGroup -> Maybe TargetGroupIpAddressTypeEnum
ipAddressType} -> Maybe TargetGroupIpAddressTypeEnum
ipAddressType) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe TargetGroupIpAddressTypeEnum
a -> CreateTargetGroup
s {$sel:ipAddressType:CreateTargetGroup' :: Maybe TargetGroupIpAddressTypeEnum
ipAddressType = Maybe TargetGroupIpAddressTypeEnum
a} :: CreateTargetGroup)
createTargetGroup_healthCheckTimeoutSeconds :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Natural)
createTargetGroup_healthCheckTimeoutSeconds :: (Maybe Natural -> f (Maybe Natural))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_healthCheckTimeoutSeconds = (CreateTargetGroup -> Maybe Natural)
-> (CreateTargetGroup -> Maybe Natural -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Natural
healthCheckTimeoutSeconds :: Maybe Natural
$sel:healthCheckTimeoutSeconds:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
healthCheckTimeoutSeconds} -> Maybe Natural
healthCheckTimeoutSeconds) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Natural
a -> CreateTargetGroup
s {$sel:healthCheckTimeoutSeconds:CreateTargetGroup' :: Maybe Natural
healthCheckTimeoutSeconds = Maybe Natural
a} :: CreateTargetGroup)
createTargetGroup_healthCheckPort :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Text)
createTargetGroup_healthCheckPort :: (Maybe Text -> f (Maybe Text))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_healthCheckPort = (CreateTargetGroup -> Maybe Text)
-> (CreateTargetGroup -> Maybe Text -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Text
healthCheckPort :: Maybe Text
$sel:healthCheckPort:CreateTargetGroup' :: CreateTargetGroup -> Maybe Text
healthCheckPort} -> Maybe Text
healthCheckPort) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Text
a -> CreateTargetGroup
s {$sel:healthCheckPort:CreateTargetGroup' :: Maybe Text
healthCheckPort = Maybe Text
a} :: CreateTargetGroup)
createTargetGroup_tags :: Lens.Lens' CreateTargetGroup (Prelude.Maybe (Prelude.NonEmpty Tag))
createTargetGroup_tags :: (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_tags = (CreateTargetGroup -> Maybe (NonEmpty Tag))
-> (CreateTargetGroup -> Maybe (NonEmpty Tag) -> CreateTargetGroup)
-> Lens
CreateTargetGroup
CreateTargetGroup
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:CreateTargetGroup' :: CreateTargetGroup -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe (NonEmpty Tag)
a -> CreateTargetGroup
s {$sel:tags:CreateTargetGroup' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: CreateTargetGroup) ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateTargetGroup -> f CreateTargetGroup)
-> ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateTargetGroup
-> f CreateTargetGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
-> Iso
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
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 (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createTargetGroup_port :: Lens.Lens' CreateTargetGroup (Prelude.Maybe Prelude.Natural)
createTargetGroup_port :: (Maybe Natural -> f (Maybe Natural))
-> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_port = (CreateTargetGroup -> Maybe Natural)
-> (CreateTargetGroup -> Maybe Natural -> CreateTargetGroup)
-> Lens
CreateTargetGroup CreateTargetGroup (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Maybe Natural
port :: Maybe Natural
$sel:port:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
port} -> Maybe Natural
port) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Maybe Natural
a -> CreateTargetGroup
s {$sel:port:CreateTargetGroup' :: Maybe Natural
port = Maybe Natural
a} :: CreateTargetGroup)
createTargetGroup_name :: Lens.Lens' CreateTargetGroup Prelude.Text
createTargetGroup_name :: (Text -> f Text) -> CreateTargetGroup -> f CreateTargetGroup
createTargetGroup_name = (CreateTargetGroup -> Text)
-> (CreateTargetGroup -> Text -> CreateTargetGroup)
-> Lens CreateTargetGroup CreateTargetGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroup' {Text
name :: Text
$sel:name:CreateTargetGroup' :: CreateTargetGroup -> Text
name} -> Text
name) (\s :: CreateTargetGroup
s@CreateTargetGroup' {} Text
a -> CreateTargetGroup
s {$sel:name:CreateTargetGroup' :: Text
name = Text
a} :: CreateTargetGroup)
instance Core.AWSRequest CreateTargetGroup where
type
AWSResponse CreateTargetGroup =
CreateTargetGroupResponse
request :: CreateTargetGroup -> Request CreateTargetGroup
request = Service -> CreateTargetGroup -> Request CreateTargetGroup
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateTargetGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateTargetGroup)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateTargetGroup))
-> Logger
-> Service
-> Proxy CreateTargetGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateTargetGroup)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"CreateTargetGroupResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [TargetGroup] -> Int -> CreateTargetGroupResponse
CreateTargetGroupResponse'
(Maybe [TargetGroup] -> Int -> CreateTargetGroupResponse)
-> Either String (Maybe [TargetGroup])
-> Either String (Int -> CreateTargetGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TargetGroups" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [TargetGroup]))
-> Either String (Maybe [TargetGroup])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [TargetGroup])
-> [Node] -> Either String (Maybe [TargetGroup])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [TargetGroup]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Int -> CreateTargetGroupResponse)
-> Either String Int -> Either String CreateTargetGroupResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateTargetGroup
instance Prelude.NFData CreateTargetGroup
instance Core.ToHeaders CreateTargetGroup where
toHeaders :: CreateTargetGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateTargetGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateTargetGroup where
toPath :: CreateTargetGroup -> ByteString
toPath = ByteString -> CreateTargetGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateTargetGroup where
toQuery :: CreateTargetGroup -> QueryString
toQuery CreateTargetGroup' {Maybe Bool
Maybe Natural
Maybe (NonEmpty Tag)
Maybe Text
Maybe Matcher
Maybe ProtocolEnum
Maybe TargetGroupIpAddressTypeEnum
Maybe TargetTypeEnum
Text
name :: Text
port :: Maybe Natural
tags :: Maybe (NonEmpty Tag)
healthCheckPort :: Maybe Text
healthCheckTimeoutSeconds :: Maybe Natural
ipAddressType :: Maybe TargetGroupIpAddressTypeEnum
healthCheckProtocol :: Maybe ProtocolEnum
healthyThresholdCount :: Maybe Natural
targetType :: Maybe TargetTypeEnum
healthCheckIntervalSeconds :: Maybe Natural
protocol :: Maybe ProtocolEnum
vpcId :: Maybe Text
unhealthyThresholdCount :: Maybe Natural
healthCheckEnabled :: Maybe Bool
healthCheckPath :: Maybe Text
matcher :: Maybe Matcher
protocolVersion :: Maybe Text
$sel:name:CreateTargetGroup' :: CreateTargetGroup -> Text
$sel:port:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
$sel:tags:CreateTargetGroup' :: CreateTargetGroup -> Maybe (NonEmpty Tag)
$sel:healthCheckPort:CreateTargetGroup' :: CreateTargetGroup -> Maybe Text
$sel:healthCheckTimeoutSeconds:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
$sel:ipAddressType:CreateTargetGroup' :: CreateTargetGroup -> Maybe TargetGroupIpAddressTypeEnum
$sel:healthCheckProtocol:CreateTargetGroup' :: CreateTargetGroup -> Maybe ProtocolEnum
$sel:healthyThresholdCount:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
$sel:targetType:CreateTargetGroup' :: CreateTargetGroup -> Maybe TargetTypeEnum
$sel:healthCheckIntervalSeconds:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
$sel:protocol:CreateTargetGroup' :: CreateTargetGroup -> Maybe ProtocolEnum
$sel:vpcId:CreateTargetGroup' :: CreateTargetGroup -> Maybe Text
$sel:unhealthyThresholdCount:CreateTargetGroup' :: CreateTargetGroup -> Maybe Natural
$sel:healthCheckEnabled:CreateTargetGroup' :: CreateTargetGroup -> Maybe Bool
$sel:healthCheckPath:CreateTargetGroup' :: CreateTargetGroup -> Maybe Text
$sel:matcher:CreateTargetGroup' :: CreateTargetGroup -> Maybe Matcher
$sel:protocolVersion:CreateTargetGroup' :: CreateTargetGroup -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CreateTargetGroup" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2015-12-01" :: Prelude.ByteString),
ByteString
"ProtocolVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
protocolVersion,
ByteString
"Matcher" ByteString -> Maybe Matcher -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Matcher
matcher,
ByteString
"HealthCheckPath" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
healthCheckPath,
ByteString
"HealthCheckEnabled" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
healthCheckEnabled,
ByteString
"UnhealthyThresholdCount"
ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
unhealthyThresholdCount,
ByteString
"VpcId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
vpcId,
ByteString
"Protocol" ByteString -> Maybe ProtocolEnum -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe ProtocolEnum
protocol,
ByteString
"HealthCheckIntervalSeconds"
ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
healthCheckIntervalSeconds,
ByteString
"TargetType" ByteString -> Maybe TargetTypeEnum -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe TargetTypeEnum
targetType,
ByteString
"HealthyThresholdCount"
ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
healthyThresholdCount,
ByteString
"HealthCheckProtocol" ByteString -> Maybe ProtocolEnum -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe ProtocolEnum
healthCheckProtocol,
ByteString
"IpAddressType" ByteString -> Maybe TargetGroupIpAddressTypeEnum -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe TargetGroupIpAddressTypeEnum
ipAddressType,
ByteString
"HealthCheckTimeoutSeconds"
ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
healthCheckTimeoutSeconds,
ByteString
"HealthCheckPort" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
healthCheckPort,
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> NonEmpty Tag -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" (NonEmpty Tag -> QueryString)
-> Maybe (NonEmpty Tag) -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Tag)
tags),
ByteString
"Port" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
port,
ByteString
"Name" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
name
]
data CreateTargetGroupResponse = CreateTargetGroupResponse'
{
CreateTargetGroupResponse -> Maybe [TargetGroup]
targetGroups :: Prelude.Maybe [TargetGroup],
CreateTargetGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateTargetGroupResponse -> CreateTargetGroupResponse -> Bool
(CreateTargetGroupResponse -> CreateTargetGroupResponse -> Bool)
-> (CreateTargetGroupResponse -> CreateTargetGroupResponse -> Bool)
-> Eq CreateTargetGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateTargetGroupResponse -> CreateTargetGroupResponse -> Bool
$c/= :: CreateTargetGroupResponse -> CreateTargetGroupResponse -> Bool
== :: CreateTargetGroupResponse -> CreateTargetGroupResponse -> Bool
$c== :: CreateTargetGroupResponse -> CreateTargetGroupResponse -> Bool
Prelude.Eq, ReadPrec [CreateTargetGroupResponse]
ReadPrec CreateTargetGroupResponse
Int -> ReadS CreateTargetGroupResponse
ReadS [CreateTargetGroupResponse]
(Int -> ReadS CreateTargetGroupResponse)
-> ReadS [CreateTargetGroupResponse]
-> ReadPrec CreateTargetGroupResponse
-> ReadPrec [CreateTargetGroupResponse]
-> Read CreateTargetGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateTargetGroupResponse]
$creadListPrec :: ReadPrec [CreateTargetGroupResponse]
readPrec :: ReadPrec CreateTargetGroupResponse
$creadPrec :: ReadPrec CreateTargetGroupResponse
readList :: ReadS [CreateTargetGroupResponse]
$creadList :: ReadS [CreateTargetGroupResponse]
readsPrec :: Int -> ReadS CreateTargetGroupResponse
$creadsPrec :: Int -> ReadS CreateTargetGroupResponse
Prelude.Read, Int -> CreateTargetGroupResponse -> ShowS
[CreateTargetGroupResponse] -> ShowS
CreateTargetGroupResponse -> String
(Int -> CreateTargetGroupResponse -> ShowS)
-> (CreateTargetGroupResponse -> String)
-> ([CreateTargetGroupResponse] -> ShowS)
-> Show CreateTargetGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateTargetGroupResponse] -> ShowS
$cshowList :: [CreateTargetGroupResponse] -> ShowS
show :: CreateTargetGroupResponse -> String
$cshow :: CreateTargetGroupResponse -> String
showsPrec :: Int -> CreateTargetGroupResponse -> ShowS
$cshowsPrec :: Int -> CreateTargetGroupResponse -> ShowS
Prelude.Show, (forall x.
CreateTargetGroupResponse -> Rep CreateTargetGroupResponse x)
-> (forall x.
Rep CreateTargetGroupResponse x -> CreateTargetGroupResponse)
-> Generic CreateTargetGroupResponse
forall x.
Rep CreateTargetGroupResponse x -> CreateTargetGroupResponse
forall x.
CreateTargetGroupResponse -> Rep CreateTargetGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateTargetGroupResponse x -> CreateTargetGroupResponse
$cfrom :: forall x.
CreateTargetGroupResponse -> Rep CreateTargetGroupResponse x
Prelude.Generic)
newCreateTargetGroupResponse ::
Prelude.Int ->
CreateTargetGroupResponse
newCreateTargetGroupResponse :: Int -> CreateTargetGroupResponse
newCreateTargetGroupResponse Int
pHttpStatus_ =
CreateTargetGroupResponse' :: Maybe [TargetGroup] -> Int -> CreateTargetGroupResponse
CreateTargetGroupResponse'
{ $sel:targetGroups:CreateTargetGroupResponse' :: Maybe [TargetGroup]
targetGroups =
Maybe [TargetGroup]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateTargetGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createTargetGroupResponse_targetGroups :: Lens.Lens' CreateTargetGroupResponse (Prelude.Maybe [TargetGroup])
createTargetGroupResponse_targetGroups :: (Maybe [TargetGroup] -> f (Maybe [TargetGroup]))
-> CreateTargetGroupResponse -> f CreateTargetGroupResponse
createTargetGroupResponse_targetGroups = (CreateTargetGroupResponse -> Maybe [TargetGroup])
-> (CreateTargetGroupResponse
-> Maybe [TargetGroup] -> CreateTargetGroupResponse)
-> Lens
CreateTargetGroupResponse
CreateTargetGroupResponse
(Maybe [TargetGroup])
(Maybe [TargetGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroupResponse' {Maybe [TargetGroup]
targetGroups :: Maybe [TargetGroup]
$sel:targetGroups:CreateTargetGroupResponse' :: CreateTargetGroupResponse -> Maybe [TargetGroup]
targetGroups} -> Maybe [TargetGroup]
targetGroups) (\s :: CreateTargetGroupResponse
s@CreateTargetGroupResponse' {} Maybe [TargetGroup]
a -> CreateTargetGroupResponse
s {$sel:targetGroups:CreateTargetGroupResponse' :: Maybe [TargetGroup]
targetGroups = Maybe [TargetGroup]
a} :: CreateTargetGroupResponse) ((Maybe [TargetGroup] -> f (Maybe [TargetGroup]))
-> CreateTargetGroupResponse -> f CreateTargetGroupResponse)
-> ((Maybe [TargetGroup] -> f (Maybe [TargetGroup]))
-> Maybe [TargetGroup] -> f (Maybe [TargetGroup]))
-> (Maybe [TargetGroup] -> f (Maybe [TargetGroup]))
-> CreateTargetGroupResponse
-> f CreateTargetGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [TargetGroup] [TargetGroup] [TargetGroup] [TargetGroup]
-> Iso
(Maybe [TargetGroup])
(Maybe [TargetGroup])
(Maybe [TargetGroup])
(Maybe [TargetGroup])
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 [TargetGroup] [TargetGroup] [TargetGroup] [TargetGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createTargetGroupResponse_httpStatus :: Lens.Lens' CreateTargetGroupResponse Prelude.Int
createTargetGroupResponse_httpStatus :: (Int -> f Int)
-> CreateTargetGroupResponse -> f CreateTargetGroupResponse
createTargetGroupResponse_httpStatus = (CreateTargetGroupResponse -> Int)
-> (CreateTargetGroupResponse -> Int -> CreateTargetGroupResponse)
-> Lens CreateTargetGroupResponse CreateTargetGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTargetGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateTargetGroupResponse' :: CreateTargetGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateTargetGroupResponse
s@CreateTargetGroupResponse' {} Int
a -> CreateTargetGroupResponse
s {$sel:httpStatus:CreateTargetGroupResponse' :: Int
httpStatus = Int
a} :: CreateTargetGroupResponse)
instance Prelude.NFData CreateTargetGroupResponse