ElasticLoadBalancingv2 class

A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.

Constructors

ElasticLoadBalancingv2({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shapes Map<String, Shape>
final

Methods

addListenerCertificates({required List<Certificate> certificates, required String listenerArn}) Future<AddListenerCertificatesOutput>
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
addTags({required List<String> resourceArns, required List<Tag> tags}) Future<void>
Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, and rules.
close() → void
Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
createListener({required List<Action> defaultActions, required String loadBalancerArn, List<String>? alpnPolicy, List<Certificate>? certificates, int? port, ProtocolEnum? protocol, String? sslPolicy, List<Tag>? tags}) Future<CreateListenerOutput>
Creates a listener for the specified Application Load Balancer, Network Load Balancer. or Gateway Load Balancer.
createLoadBalancer({required String name, String? customerOwnedIpv4Pool, IpAddressType? ipAddressType, LoadBalancerSchemeEnum? scheme, List<String>? securityGroups, List<SubnetMapping>? subnetMappings, List<String>? subnets, List<Tag>? tags, LoadBalancerTypeEnum? type}) Future<CreateLoadBalancerOutput>
Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
createRule({required List<Action> actions, required List<RuleCondition> conditions, required String listenerArn, required int priority, List<Tag>? tags}) Future<CreateRuleOutput>
Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.
createTargetGroup({required String name, bool? healthCheckEnabled, int? healthCheckIntervalSeconds, String? healthCheckPath, String? healthCheckPort, ProtocolEnum? healthCheckProtocol, int? healthCheckTimeoutSeconds, int? healthyThresholdCount, Matcher? matcher, int? port, ProtocolEnum? protocol, String? protocolVersion, List<Tag>? tags, TargetTypeEnum? targetType, int? unhealthyThresholdCount, String? vpcId}) Future<CreateTargetGroupOutput>
Creates a target group.
deleteListener({required String listenerArn}) Future<void>
Deletes the specified listener.
deleteLoadBalancer({required String loadBalancerArn}) Future<void>
Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. Deleting a load balancer also deletes its listeners.
deleteRule({required String ruleArn}) Future<void>
Deletes the specified rule.
deleteTargetGroup({required String targetGroupArn}) Future<void>
Deletes the specified target group.
deregisterTargets({required String targetGroupArn, required List<TargetDescription> targets}) Future<void>
Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.
describeAccountLimits({String? marker, int? pageSize}) Future<DescribeAccountLimitsOutput>
Describes the current Elastic Load Balancing resource limits for your AWS account.
describeListenerCertificates({required String listenerArn, String? marker, int? pageSize}) Future<DescribeListenerCertificatesOutput>
Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.
describeListeners({List<String>? listenerArns, String? loadBalancerArn, String? marker, int? pageSize}) Future<DescribeListenersOutput>
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. You must specify either a load balancer or one or more listeners.
describeLoadBalancerAttributes({required String loadBalancerArn}) Future<DescribeLoadBalancerAttributesOutput>
Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
describeLoadBalancers({List<String>? loadBalancerArns, String? marker, List<String>? names, int? pageSize}) Future<DescribeLoadBalancersOutput>
Describes the specified load balancers or all of your load balancers.
describeRules({String? listenerArn, String? marker, int? pageSize, List<String>? ruleArns}) Future<DescribeRulesOutput>
Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules.
describeSSLPolicies({String? marker, List<String>? names, int? pageSize}) Future<DescribeSSLPoliciesOutput>
Describes the specified policies or all policies used for SSL negotiation.
describeTags({required List<String> resourceArns}) Future<DescribeTagsOutput>
Describes the tags for the specified Elastic Load Balancing resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
describeTargetGroupAttributes({required String targetGroupArn}) Future<DescribeTargetGroupAttributesOutput>
Describes the attributes for the specified target group.
describeTargetGroups({String? loadBalancerArn, String? marker, List<String>? names, int? pageSize, List<String>? targetGroupArns}) Future<DescribeTargetGroupsOutput>
Describes the specified target groups or all of your target groups. By default, all target groups are described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer, the names of one or more target groups, or the ARNs of one or more target groups.
describeTargetHealth({required String targetGroupArn, List<TargetDescription>? targets}) Future<DescribeTargetHealthOutput>
Describes the health of the specified targets or all of your targets.
modifyListener({required String listenerArn, List<String>? alpnPolicy, List<Certificate>? certificates, List<Action>? defaultActions, int? port, ProtocolEnum? protocol, String? sslPolicy}) Future<ModifyListenerOutput>
Replaces the specified properties of the specified listener. Any properties that you do not specify remain unchanged.
modifyLoadBalancerAttributes({required List<LoadBalancerAttribute> attributes, required String loadBalancerArn}) Future<ModifyLoadBalancerAttributesOutput>
Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
modifyRule({required String ruleArn, List<Action>? actions, List<RuleCondition>? conditions}) Future<ModifyRuleOutput>
Replaces the specified properties of the specified rule. Any properties that you do not specify are unchanged.
modifyTargetGroup({required String targetGroupArn, bool? healthCheckEnabled, int? healthCheckIntervalSeconds, String? healthCheckPath, String? healthCheckPort, ProtocolEnum? healthCheckProtocol, int? healthCheckTimeoutSeconds, int? healthyThresholdCount, Matcher? matcher, int? unhealthyThresholdCount}) Future<ModifyTargetGroupOutput>
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
modifyTargetGroupAttributes({required List<TargetGroupAttribute> attributes, required String targetGroupArn}) Future<ModifyTargetGroupAttributesOutput>
Modifies the specified attributes of the specified target group.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerTargets({required String targetGroupArn, required List<TargetDescription> targets}) Future<void>
Registers the specified targets with the specified target group.
removeListenerCertificates({required List<Certificate> certificates, required String listenerArn}) Future<void>
Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.
removeTags({required List<String> resourceArns, required List<String> tagKeys}) Future<void>
Removes the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
setIpAddressType({required IpAddressType ipAddressType, required String loadBalancerArn}) Future<SetIpAddressTypeOutput>
Sets the type of IP addresses used by the subnets of the specified Application Load Balancer or Network Load Balancer.
setRulePriorities({required List<RulePriorityPair> rulePriorities}) Future<SetRulePrioritiesOutput>
Sets the priorities of the specified rules.
setSecurityGroups({required String loadBalancerArn, required List<String> securityGroups}) Future<SetSecurityGroupsOutput>
Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.
setSubnets({required String loadBalancerArn, IpAddressType? ipAddressType, List<SubnetMapping>? subnetMappings, List<String>? subnets}) Future<SetSubnetsOutput>
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or Network Load Balancer. The specified subnets replace the previously enabled subnets.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited