amazonka-elbv2-1.4.5: Amazon Elastic Load Balancing SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ELBv2.CreateTargetGroup

Contents

Description

Creates a target group.

To register targets with the target group, use RegisterTargets . To update the health check settings for the target group, use ModifyTargetGroup . To monitor the health of targets in the target group, use DescribeTargetHealth .

To route traffic to the targets in a target group, specify the target group in an action using CreateListener or CreateRule .

To delete a target group, use DeleteTargetGroup .

For more information, see Target Groups for Your Application Load Balancers in the Application Load Balancers Guide .

Synopsis

Creating a Request

createTargetGroup Source #

Creates a value of CreateTargetGroup with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ctgMatcher - The HTTP codes to use when checking for a successful response from a target. The default is 200.
  • ctgHealthCheckPath - The ping path that is the destination on the targets for health checks. The default is /.
  • ctgUnhealthyThresholdCount - The number of consecutive health check failures required before considering a target unhealthy. The default is 2.
  • ctgHealthCheckIntervalSeconds - The approximate amount of time, in seconds, between health checks of an individual target. The default is 30 seconds.
  • ctgHealthyThresholdCount - The number of consecutive health checks successes required before considering an unhealthy target healthy. The default is 5.
  • ctgHealthCheckProtocol - The protocol the load balancer uses when performing health checks on targets. The default is the HTTP protocol.
  • ctgHealthCheckTimeoutSeconds - The amount of time, in seconds, during which no response from a target means a failed health check. The default is 5 seconds.
  • ctgHealthCheckPort - The port the load balancer uses when performing health checks on targets. The default is traffic-port , which indicates the port on which each target receives traffic from the load balancer.
  • ctgName - The name of the target group.
  • ctgProtocol - The protocol to use for routing traffic to the targets.
  • ctgPort - The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target.
  • ctgVPCId - The identifier of the virtual private cloud (VPC).

data CreateTargetGroup Source #

Contains the parameters for CreateTargetGroup.

See: createTargetGroup smart constructor.

Instances

Eq CreateTargetGroup Source # 
Data CreateTargetGroup Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTargetGroup -> c CreateTargetGroup #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateTargetGroup #

toConstr :: CreateTargetGroup -> Constr #

dataTypeOf :: CreateTargetGroup -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateTargetGroup) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateTargetGroup) #

gmapT :: (forall b. Data b => b -> b) -> CreateTargetGroup -> CreateTargetGroup #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTargetGroup -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTargetGroup -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTargetGroup -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTargetGroup -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTargetGroup -> m CreateTargetGroup #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTargetGroup -> m CreateTargetGroup #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTargetGroup -> m CreateTargetGroup #

Read CreateTargetGroup Source # 
Show CreateTargetGroup Source # 
Generic CreateTargetGroup Source # 
Hashable CreateTargetGroup Source # 
NFData CreateTargetGroup Source # 

Methods

rnf :: CreateTargetGroup -> () #

AWSRequest CreateTargetGroup Source # 
ToPath CreateTargetGroup Source # 
ToHeaders CreateTargetGroup Source # 
ToQuery CreateTargetGroup Source # 
type Rep CreateTargetGroup Source # 
type Rep CreateTargetGroup = D1 (MetaData "CreateTargetGroup" "Network.AWS.ELBv2.CreateTargetGroup" "amazonka-elbv2-1.4.5-J8ZeSE6X9TjH6Y7FrPuIXa" False) (C1 (MetaCons "CreateTargetGroup'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ctgMatcher") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Matcher))) ((:*:) (S1 (MetaSel (Just Symbol "_ctgHealthCheckPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ctgUnhealthyThresholdCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))) ((:*:) (S1 (MetaSel (Just Symbol "_ctgHealthCheckIntervalSeconds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) ((:*:) (S1 (MetaSel (Just Symbol "_ctgHealthyThresholdCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_ctgHealthCheckProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ProtocolEnum)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ctgHealthCheckTimeoutSeconds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) ((:*:) (S1 (MetaSel (Just Symbol "_ctgHealthCheckPort") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ctgName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ctgProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ProtocolEnum)) ((:*:) (S1 (MetaSel (Just Symbol "_ctgPort") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat)) (S1 (MetaSel (Just Symbol "_ctgVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))))
type Rs CreateTargetGroup Source # 

Request Lenses

ctgMatcher :: Lens' CreateTargetGroup (Maybe Matcher) Source #

The HTTP codes to use when checking for a successful response from a target. The default is 200.

ctgHealthCheckPath :: Lens' CreateTargetGroup (Maybe Text) Source #

The ping path that is the destination on the targets for health checks. The default is /.

ctgUnhealthyThresholdCount :: Lens' CreateTargetGroup (Maybe Natural) Source #

The number of consecutive health check failures required before considering a target unhealthy. The default is 2.

ctgHealthCheckIntervalSeconds :: Lens' CreateTargetGroup (Maybe Natural) Source #

The approximate amount of time, in seconds, between health checks of an individual target. The default is 30 seconds.

ctgHealthyThresholdCount :: Lens' CreateTargetGroup (Maybe Natural) Source #

The number of consecutive health checks successes required before considering an unhealthy target healthy. The default is 5.

ctgHealthCheckProtocol :: Lens' CreateTargetGroup (Maybe ProtocolEnum) Source #

The protocol the load balancer uses when performing health checks on targets. The default is the HTTP protocol.

ctgHealthCheckTimeoutSeconds :: Lens' CreateTargetGroup (Maybe Natural) Source #

The amount of time, in seconds, during which no response from a target means a failed health check. The default is 5 seconds.

ctgHealthCheckPort :: Lens' CreateTargetGroup (Maybe Text) Source #

The port the load balancer uses when performing health checks on targets. The default is traffic-port , which indicates the port on which each target receives traffic from the load balancer.

ctgName :: Lens' CreateTargetGroup Text Source #

The name of the target group.

ctgProtocol :: Lens' CreateTargetGroup ProtocolEnum Source #

The protocol to use for routing traffic to the targets.

ctgPort :: Lens' CreateTargetGroup Natural Source #

The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target.

ctgVPCId :: Lens' CreateTargetGroup Text Source #

The identifier of the virtual private cloud (VPC).

Destructuring the Response

createTargetGroupResponse Source #

Creates a value of CreateTargetGroupResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateTargetGroupResponse Source #

Contains the output of CreateTargetGroup.

See: createTargetGroupResponse smart constructor.

Instances

Eq CreateTargetGroupResponse Source # 
Data CreateTargetGroupResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTargetGroupResponse -> c CreateTargetGroupResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateTargetGroupResponse #

toConstr :: CreateTargetGroupResponse -> Constr #

dataTypeOf :: CreateTargetGroupResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateTargetGroupResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateTargetGroupResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateTargetGroupResponse -> CreateTargetGroupResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTargetGroupResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTargetGroupResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTargetGroupResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTargetGroupResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTargetGroupResponse -> m CreateTargetGroupResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTargetGroupResponse -> m CreateTargetGroupResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTargetGroupResponse -> m CreateTargetGroupResponse #

Read CreateTargetGroupResponse Source # 
Show CreateTargetGroupResponse Source # 
Generic CreateTargetGroupResponse Source # 
NFData CreateTargetGroupResponse Source # 
type Rep CreateTargetGroupResponse Source # 
type Rep CreateTargetGroupResponse = D1 (MetaData "CreateTargetGroupResponse" "Network.AWS.ELBv2.CreateTargetGroup" "amazonka-elbv2-1.4.5-J8ZeSE6X9TjH6Y7FrPuIXa" False) (C1 (MetaCons "CreateTargetGroupResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ctgrsTargetGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TargetGroup]))) (S1 (MetaSel (Just Symbol "_ctgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

ctgrsTargetGroups :: Lens' CreateTargetGroupResponse [TargetGroup] Source #

Information about the target group.