aws-sdk-elasticloadbalancingv2 1.155.0 → 1.156.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-elasticloadbalancingv2/client.rb +165 -9
- data/lib/aws-sdk-elasticloadbalancingv2/types.rb +19 -8
- data/lib/aws-sdk-elasticloadbalancingv2.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63dd36fa9cdec665b5a4a6867a1af637ac41d41a6585ebbf5a4b764b4c805063
|
|
4
|
+
data.tar.gz: 2c624bd54dd2b23af0fee06e9b52b11c87b6d5ba61de9c8cdcc354155024305c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 643aaeef50a867b3b2710e2a457bc18c893d5baff8a4f02b5994e51912c8d3302bb3910cdbcbe0909c9004a4ec63e6ff47c0c5e7601f7a0a7bf61be8cf309323
|
|
7
|
+
data.tar.gz: fb9c61a1ba7193176531587bd978205b17b378b9e38557ce9e9d3f28c574f8babe43f3823f3f5d21099ef8e7076ffb0d21f32974379692b9976e1fa54dd1d06a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.156.0 (2026-07-22)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This adds CLI examples for the IpAddressType field on SourceIpConfig, enabling Network Load Balancer listener rules to match traffic based on whether the source IP is IPv4 or IPv6.
|
|
8
|
+
|
|
4
9
|
1.155.0 (2026-07-15)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.156.0
|
|
@@ -1273,19 +1273,21 @@ module Aws::ElasticLoadBalancingV2
|
|
|
1273
1273
|
end
|
|
1274
1274
|
|
|
1275
1275
|
# Creates a rule for the specified listener. The listener must be
|
|
1276
|
-
# associated with an Application Load Balancer
|
|
1276
|
+
# associated with an Application Load Balancer or a dual-stack Network
|
|
1277
|
+
# Load Balancer.
|
|
1277
1278
|
#
|
|
1278
|
-
# Each rule consists of a priority, one or more actions, one or more
|
|
1279
|
-
# conditions
|
|
1280
|
-
#
|
|
1281
|
-
#
|
|
1282
|
-
#
|
|
1283
|
-
#
|
|
1284
|
-
# *
|
|
1279
|
+
# Each rule consists of a priority, one or more actions, and one or more
|
|
1280
|
+
# conditions. Rules are evaluated in priority order, from the lowest
|
|
1281
|
+
# value to the highest value. When the conditions for a rule are met,
|
|
1282
|
+
# its actions are performed. If the conditions for no rules are met, the
|
|
1283
|
+
# actions for the default rule are performed. For more information, see
|
|
1284
|
+
# [Listener rules][1] in the *Application Load Balancers Guide* or
|
|
1285
|
+
# [Listener rules][2] in the *Network Load Balancers Guide*.
|
|
1285
1286
|
#
|
|
1286
1287
|
#
|
|
1287
1288
|
#
|
|
1288
1289
|
# [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules
|
|
1290
|
+
# [2]: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-listeners.html#listener-rules
|
|
1289
1291
|
#
|
|
1290
1292
|
# @option params [required, String] :listener_arn
|
|
1291
1293
|
# The Amazon Resource Name (ARN) of the listener.
|
|
@@ -1361,6 +1363,55 @@ module Aws::ElasticLoadBalancingV2
|
|
|
1361
1363
|
# ],
|
|
1362
1364
|
# }
|
|
1363
1365
|
#
|
|
1366
|
+
# @example Example: To create a listener rule that routes IPv4 traffic on a Network Load Balancer
|
|
1367
|
+
#
|
|
1368
|
+
# # This example creates a rule on a dual-stack Network Load Balancer that routes IPv4 source traffic to an IPv4 target
|
|
1369
|
+
# # group.
|
|
1370
|
+
#
|
|
1371
|
+
# resp = client.create_rule({
|
|
1372
|
+
# actions: [
|
|
1373
|
+
# {
|
|
1374
|
+
# target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv4-targets/1234567890abcdef",
|
|
1375
|
+
# type: "forward",
|
|
1376
|
+
# },
|
|
1377
|
+
# ],
|
|
1378
|
+
# conditions: [
|
|
1379
|
+
# {
|
|
1380
|
+
# field: "source-ip",
|
|
1381
|
+
# source_ip_config: {
|
|
1382
|
+
# ip_address_type: "ipv4",
|
|
1383
|
+
# },
|
|
1384
|
+
# },
|
|
1385
|
+
# ],
|
|
1386
|
+
# listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/net/my-nlb/1234567890abcdef/1234567890abcdef",
|
|
1387
|
+
# priority: 10,
|
|
1388
|
+
# })
|
|
1389
|
+
#
|
|
1390
|
+
# resp.to_h outputs the following:
|
|
1391
|
+
# {
|
|
1392
|
+
# rules: [
|
|
1393
|
+
# {
|
|
1394
|
+
# actions: [
|
|
1395
|
+
# {
|
|
1396
|
+
# target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv4-targets/1234567890abcdef",
|
|
1397
|
+
# type: "forward",
|
|
1398
|
+
# },
|
|
1399
|
+
# ],
|
|
1400
|
+
# conditions: [
|
|
1401
|
+
# {
|
|
1402
|
+
# field: "source-ip",
|
|
1403
|
+
# source_ip_config: {
|
|
1404
|
+
# ip_address_type: "ipv4",
|
|
1405
|
+
# },
|
|
1406
|
+
# },
|
|
1407
|
+
# ],
|
|
1408
|
+
# is_default: false,
|
|
1409
|
+
# priority: "10",
|
|
1410
|
+
# rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/1234567890abcdef",
|
|
1411
|
+
# },
|
|
1412
|
+
# ],
|
|
1413
|
+
# }
|
|
1414
|
+
#
|
|
1364
1415
|
# @example Request syntax with placeholder values
|
|
1365
1416
|
#
|
|
1366
1417
|
# resp = client.create_rule({
|
|
@@ -2797,6 +2848,72 @@ module Aws::ElasticLoadBalancingV2
|
|
|
2797
2848
|
# ],
|
|
2798
2849
|
# }
|
|
2799
2850
|
#
|
|
2851
|
+
# @example Example: To describe rules for a Network Load Balancer listener
|
|
2852
|
+
#
|
|
2853
|
+
# # This example describes the rules for the specified Network Load Balancer listener, including rules that route based on
|
|
2854
|
+
# # source IP address type.
|
|
2855
|
+
#
|
|
2856
|
+
# resp = client.describe_rules({
|
|
2857
|
+
# listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/net/my-nlb/1234567890abcdef/1234567890abcdef",
|
|
2858
|
+
# })
|
|
2859
|
+
#
|
|
2860
|
+
# resp.to_h outputs the following:
|
|
2861
|
+
# {
|
|
2862
|
+
# rules: [
|
|
2863
|
+
# {
|
|
2864
|
+
# actions: [
|
|
2865
|
+
# {
|
|
2866
|
+
# target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv4-targets/1234567890abcdef",
|
|
2867
|
+
# type: "forward",
|
|
2868
|
+
# },
|
|
2869
|
+
# ],
|
|
2870
|
+
# conditions: [
|
|
2871
|
+
# {
|
|
2872
|
+
# field: "source-ip",
|
|
2873
|
+
# source_ip_config: {
|
|
2874
|
+
# ip_address_type: "ipv4",
|
|
2875
|
+
# },
|
|
2876
|
+
# },
|
|
2877
|
+
# ],
|
|
2878
|
+
# is_default: false,
|
|
2879
|
+
# priority: "10",
|
|
2880
|
+
# rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/aabbccdd11223344",
|
|
2881
|
+
# },
|
|
2882
|
+
# {
|
|
2883
|
+
# actions: [
|
|
2884
|
+
# {
|
|
2885
|
+
# target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv6-targets/abcdef1234567890",
|
|
2886
|
+
# type: "forward",
|
|
2887
|
+
# },
|
|
2888
|
+
# ],
|
|
2889
|
+
# conditions: [
|
|
2890
|
+
# {
|
|
2891
|
+
# field: "source-ip",
|
|
2892
|
+
# source_ip_config: {
|
|
2893
|
+
# ip_address_type: "ipv6",
|
|
2894
|
+
# },
|
|
2895
|
+
# },
|
|
2896
|
+
# ],
|
|
2897
|
+
# is_default: false,
|
|
2898
|
+
# priority: "20",
|
|
2899
|
+
# rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/eeff00112233aabb",
|
|
2900
|
+
# },
|
|
2901
|
+
# {
|
|
2902
|
+
# actions: [
|
|
2903
|
+
# {
|
|
2904
|
+
# target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv4-targets/1234567890abcdef",
|
|
2905
|
+
# type: "forward",
|
|
2906
|
+
# },
|
|
2907
|
+
# ],
|
|
2908
|
+
# conditions: [
|
|
2909
|
+
# ],
|
|
2910
|
+
# is_default: true,
|
|
2911
|
+
# priority: "default",
|
|
2912
|
+
# rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/default",
|
|
2913
|
+
# },
|
|
2914
|
+
# ],
|
|
2915
|
+
# }
|
|
2916
|
+
#
|
|
2800
2917
|
# @example Request syntax with placeholder values
|
|
2801
2918
|
#
|
|
2802
2919
|
# resp = client.describe_rules({
|
|
@@ -4390,6 +4507,45 @@ module Aws::ElasticLoadBalancingV2
|
|
|
4390
4507
|
# ],
|
|
4391
4508
|
# }
|
|
4392
4509
|
#
|
|
4510
|
+
# @example Example: To modify a Network Load Balancer listener rule
|
|
4511
|
+
#
|
|
4512
|
+
# # This example modifies an NLB listener rule to forward traffic to a different target group.
|
|
4513
|
+
#
|
|
4514
|
+
# resp = client.modify_rule({
|
|
4515
|
+
# actions: [
|
|
4516
|
+
# {
|
|
4517
|
+
# target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-ipv4-targets/1234567890abcdef",
|
|
4518
|
+
# type: "forward",
|
|
4519
|
+
# },
|
|
4520
|
+
# ],
|
|
4521
|
+
# rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/1234567890abcdef",
|
|
4522
|
+
# })
|
|
4523
|
+
#
|
|
4524
|
+
# resp.to_h outputs the following:
|
|
4525
|
+
# {
|
|
4526
|
+
# rules: [
|
|
4527
|
+
# {
|
|
4528
|
+
# actions: [
|
|
4529
|
+
# {
|
|
4530
|
+
# target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-ipv4-targets/1234567890abcdef",
|
|
4531
|
+
# type: "forward",
|
|
4532
|
+
# },
|
|
4533
|
+
# ],
|
|
4534
|
+
# conditions: [
|
|
4535
|
+
# {
|
|
4536
|
+
# field: "source-ip",
|
|
4537
|
+
# source_ip_config: {
|
|
4538
|
+
# ip_address_type: "ipv4",
|
|
4539
|
+
# },
|
|
4540
|
+
# },
|
|
4541
|
+
# ],
|
|
4542
|
+
# is_default: false,
|
|
4543
|
+
# priority: "10",
|
|
4544
|
+
# rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/1234567890abcdef",
|
|
4545
|
+
# },
|
|
4546
|
+
# ],
|
|
4547
|
+
# }
|
|
4548
|
+
#
|
|
4393
4549
|
# @example Request syntax with placeholder values
|
|
4394
4550
|
#
|
|
4395
4551
|
# resp = client.modify_rule({
|
|
@@ -5534,7 +5690,7 @@ module Aws::ElasticLoadBalancingV2
|
|
|
5534
5690
|
tracer: tracer
|
|
5535
5691
|
)
|
|
5536
5692
|
context[:gem_name] = 'aws-sdk-elasticloadbalancingv2'
|
|
5537
|
-
context[:gem_version] = '1.
|
|
5693
|
+
context[:gem_version] = '1.156.0'
|
|
5538
5694
|
Seahorse::Client::Request.new(handlers, context)
|
|
5539
5695
|
end
|
|
5540
5696
|
|
|
@@ -3722,6 +3722,10 @@ module Aws::ElasticLoadBalancingV2
|
|
|
3722
3722
|
# of the following conditions: `http-header` and `query-string`. Note
|
|
3723
3723
|
# that the value for a condition can't be empty.
|
|
3724
3724
|
#
|
|
3725
|
+
# For Network Load Balancer listener rules, the only supported condition
|
|
3726
|
+
# is `source-ip`. Use `SourceIpConfig` with `IpAddressType` to match on
|
|
3727
|
+
# the IP address type of the source traffic (`ipv4` or `ipv6`).
|
|
3728
|
+
#
|
|
3725
3729
|
# For more information, see [Quotas for your Application Load
|
|
3726
3730
|
# Balancers][1].
|
|
3727
3731
|
#
|
|
@@ -3730,20 +3734,23 @@ module Aws::ElasticLoadBalancingV2
|
|
|
3730
3734
|
# [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html
|
|
3731
3735
|
#
|
|
3732
3736
|
# @!attribute [rw] field
|
|
3733
|
-
# The
|
|
3734
|
-
# values:
|
|
3737
|
+
# The name of the field. The possible values are:
|
|
3735
3738
|
#
|
|
3736
|
-
# * `http-header`
|
|
3739
|
+
# * `http-header` – \[ALB\] Matches on an HTTP header field.
|
|
3737
3740
|
#
|
|
3738
|
-
# * `http-request-method`
|
|
3741
|
+
# * `http-request-method` – \[ALB\] Matches on the HTTP request
|
|
3742
|
+
# method.
|
|
3739
3743
|
#
|
|
3740
|
-
# * `host-header`
|
|
3744
|
+
# * `host-header` – \[ALB\] Matches on the host header.
|
|
3741
3745
|
#
|
|
3742
|
-
# * `path-pattern`
|
|
3746
|
+
# * `path-pattern` – \[ALB\] Matches on the URL path of the request.
|
|
3743
3747
|
#
|
|
3744
|
-
# * `query-string`
|
|
3748
|
+
# * `query-string` – \[ALB\] Matches on a query string parameter.
|
|
3745
3749
|
#
|
|
3746
|
-
# * `source-ip`
|
|
3750
|
+
# * `source-ip` – \[ALB, NLB\] Matches on the source IP address. For
|
|
3751
|
+
# ALB, use `SourceIpConfig` with `Values` to specify CIDR ranges.
|
|
3752
|
+
# For NLB, use `SourceIpConfig` with `IpAddressType` to match the IP
|
|
3753
|
+
# address type (`ipv4` or `ipv6`).
|
|
3747
3754
|
# @return [String]
|
|
3748
3755
|
#
|
|
3749
3756
|
# @!attribute [rw] values
|
|
@@ -4124,6 +4131,10 @@ module Aws::ElasticLoadBalancingV2
|
|
|
4124
4131
|
# proxy, this is the IP address of the proxy not the IP address of the
|
|
4125
4132
|
# client.
|
|
4126
4133
|
#
|
|
4134
|
+
# For Application Load Balancers, use `Values` to specify CIDR ranges.
|
|
4135
|
+
# For Network Load Balancers, use `IpAddressType` to match on the IP
|
|
4136
|
+
# address type of the source traffic.
|
|
4137
|
+
#
|
|
4127
4138
|
# @!attribute [rw] values
|
|
4128
4139
|
# The source IP addresses, in CIDR format. You can use both IPv4 and
|
|
4129
4140
|
# IPv6 addresses. Wildcards are not supported.
|