Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- createTargetGroup :: Text -> ProtocolEnum -> Natural -> Text -> CreateTargetGroup
- data CreateTargetGroup
- ctgMatcher :: Lens' CreateTargetGroup (Maybe Matcher)
- ctgHealthCheckPath :: Lens' CreateTargetGroup (Maybe Text)
- ctgUnhealthyThresholdCount :: Lens' CreateTargetGroup (Maybe Natural)
- ctgHealthCheckIntervalSeconds :: Lens' CreateTargetGroup (Maybe Natural)
- ctgHealthyThresholdCount :: Lens' CreateTargetGroup (Maybe Natural)
- ctgHealthCheckProtocol :: Lens' CreateTargetGroup (Maybe ProtocolEnum)
- ctgHealthCheckTimeoutSeconds :: Lens' CreateTargetGroup (Maybe Natural)
- ctgHealthCheckPort :: Lens' CreateTargetGroup (Maybe Text)
- ctgName :: Lens' CreateTargetGroup Text
- ctgProtocol :: Lens' CreateTargetGroup ProtocolEnum
- ctgPort :: Lens' CreateTargetGroup Natural
- ctgVPCId :: Lens' CreateTargetGroup Text
- createTargetGroupResponse :: Int -> CreateTargetGroupResponse
- data CreateTargetGroupResponse
- ctgrsTargetGroups :: Lens' CreateTargetGroupResponse [TargetGroup]
- ctgrsResponseStatus :: Lens' CreateTargetGroupResponse Int
Creating a Request
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:
data CreateTargetGroup Source #
Contains the parameters for CreateTargetGroup.
See: createTargetGroup
smart constructor.
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.
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.
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.
Response Lenses
ctgrsTargetGroups :: Lens' CreateTargetGroupResponse [TargetGroup] Source #
Information about the target group.
ctgrsResponseStatus :: Lens' CreateTargetGroupResponse Int Source #
The response status code.