aws-sdk-elasticloadbalancingv2 1.154.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7aa66ac06dd1d01cb58e8ffde1ac9cf572700ce5b8383f4ad7d345040e2522aa
4
- data.tar.gz: 774c32d895a53c3b0acf17b5111854c699b0d643b47fa8482e85a98d46a313d8
3
+ metadata.gz: 63dd36fa9cdec665b5a4a6867a1af637ac41d41a6585ebbf5a4b764b4c805063
4
+ data.tar.gz: 2c624bd54dd2b23af0fee06e9b52b11c87b6d5ba61de9c8cdcc354155024305c
5
5
  SHA512:
6
- metadata.gz: b70fdec5afbf27f52fd7d08875d13acc6d0025a91f50ad2689bda81692b285ebccd19aa3061fc0de3a413cc3b68b02318168dd064576b6a23b2657cb55c2a3bc
7
- data.tar.gz: db1279a11ed68972568841c87cba3cc3deabfb12425d7233a420d13f7a73659b85218e780366ad7715c52a4fef8340f8c8bd5cdacac2f70d464ab50ae94a0c70
6
+ metadata.gz: 643aaeef50a867b3b2710e2a457bc18c893d5baff8a4f02b5994e51912c8d3302bb3910cdbcbe0909c9004a4ec63e6ff47c0c5e7601f7a0a7bf61be8cf309323
7
+ data.tar.gz: fb9c61a1ba7193176531587bd978205b17b378b9e38557ce9e9d3f28c574f8babe43f3823f3f5d21099ef8e7076ffb0d21f32974379692b9976e1fa54dd1d06a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.155.0 (2026-07-15)
10
+ ------------------
11
+
12
+ * Feature - This release adds support 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.
13
+
4
14
  1.154.0 (2026-07-09)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.154.0
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, and up to two optional transforms. Rules are evaluated in
1280
- # priority order, from the lowest value to the highest value. When the
1281
- # conditions for a rule are met, its actions are performed. If the
1282
- # conditions for no rules are met, the actions for the default rule are
1283
- # performed. For more information, see [Listener rules][1] in the
1284
- # *Application Load Balancers Guide*.
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({
@@ -1395,6 +1446,7 @@ module Aws::ElasticLoadBalancingV2
1395
1446
  # },
1396
1447
  # source_ip_config: {
1397
1448
  # values: ["StringValue"],
1449
+ # ip_address_type: "ipv4", # accepts ipv4, ipv6
1398
1450
  # },
1399
1451
  # regex_values: ["StringValue"],
1400
1452
  # },
@@ -1529,6 +1581,7 @@ module Aws::ElasticLoadBalancingV2
1529
1581
  # resp.rules[0].conditions[0].http_request_method_config.values[0] #=> String
1530
1582
  # resp.rules[0].conditions[0].source_ip_config.values #=> Array
1531
1583
  # resp.rules[0].conditions[0].source_ip_config.values[0] #=> String
1584
+ # resp.rules[0].conditions[0].source_ip_config.ip_address_type #=> String, one of "ipv4", "ipv6"
1532
1585
  # resp.rules[0].conditions[0].regex_values #=> Array
1533
1586
  # resp.rules[0].conditions[0].regex_values[0] #=> String
1534
1587
  # resp.rules[0].actions #=> Array
@@ -2795,6 +2848,72 @@ module Aws::ElasticLoadBalancingV2
2795
2848
  # ],
2796
2849
  # }
2797
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
+ #
2798
2917
  # @example Request syntax with placeholder values
2799
2918
  #
2800
2919
  # resp = client.describe_rules({
@@ -2833,6 +2952,7 @@ module Aws::ElasticLoadBalancingV2
2833
2952
  # resp.rules[0].conditions[0].http_request_method_config.values[0] #=> String
2834
2953
  # resp.rules[0].conditions[0].source_ip_config.values #=> Array
2835
2954
  # resp.rules[0].conditions[0].source_ip_config.values[0] #=> String
2955
+ # resp.rules[0].conditions[0].source_ip_config.ip_address_type #=> String, one of "ipv4", "ipv6"
2836
2956
  # resp.rules[0].conditions[0].regex_values #=> Array
2837
2957
  # resp.rules[0].conditions[0].regex_values[0] #=> String
2838
2958
  # resp.rules[0].actions #=> Array
@@ -4387,6 +4507,45 @@ module Aws::ElasticLoadBalancingV2
4387
4507
  # ],
4388
4508
  # }
4389
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
+ #
4390
4549
  # @example Request syntax with placeholder values
4391
4550
  #
4392
4551
  # resp = client.modify_rule({
@@ -4421,6 +4580,7 @@ module Aws::ElasticLoadBalancingV2
4421
4580
  # },
4422
4581
  # source_ip_config: {
4423
4582
  # values: ["StringValue"],
4583
+ # ip_address_type: "ipv4", # accepts ipv4, ipv6
4424
4584
  # },
4425
4585
  # regex_values: ["StringValue"],
4426
4586
  # },
@@ -4549,6 +4709,7 @@ module Aws::ElasticLoadBalancingV2
4549
4709
  # resp.rules[0].conditions[0].http_request_method_config.values[0] #=> String
4550
4710
  # resp.rules[0].conditions[0].source_ip_config.values #=> Array
4551
4711
  # resp.rules[0].conditions[0].source_ip_config.values[0] #=> String
4712
+ # resp.rules[0].conditions[0].source_ip_config.ip_address_type #=> String, one of "ipv4", "ipv6"
4552
4713
  # resp.rules[0].conditions[0].regex_values #=> Array
4553
4714
  # resp.rules[0].conditions[0].regex_values[0] #=> String
4554
4715
  # resp.rules[0].actions #=> Array
@@ -5226,6 +5387,7 @@ module Aws::ElasticLoadBalancingV2
5226
5387
  # resp.rules[0].conditions[0].http_request_method_config.values[0] #=> String
5227
5388
  # resp.rules[0].conditions[0].source_ip_config.values #=> Array
5228
5389
  # resp.rules[0].conditions[0].source_ip_config.values[0] #=> String
5390
+ # resp.rules[0].conditions[0].source_ip_config.ip_address_type #=> String, one of "ipv4", "ipv6"
5229
5391
  # resp.rules[0].conditions[0].regex_values #=> Array
5230
5392
  # resp.rules[0].conditions[0].regex_values[0] #=> String
5231
5393
  # resp.rules[0].actions #=> Array
@@ -5528,7 +5690,7 @@ module Aws::ElasticLoadBalancingV2
5528
5690
  tracer: tracer
5529
5691
  )
5530
5692
  context[:gem_name] = 'aws-sdk-elasticloadbalancingv2'
5531
- context[:gem_version] = '1.154.0'
5693
+ context[:gem_version] = '1.156.0'
5532
5694
  Seahorse::Client::Request.new(handlers, context)
5533
5695
  end
5534
5696
 
@@ -338,6 +338,7 @@ module Aws::ElasticLoadBalancingV2
338
338
  SetSecurityGroupsOutput = Shapes::StructureShape.new(name: 'SetSecurityGroupsOutput')
339
339
  SetSubnetsInput = Shapes::StructureShape.new(name: 'SetSubnetsInput')
340
340
  SetSubnetsOutput = Shapes::StructureShape.new(name: 'SetSubnetsOutput')
341
+ SourceIpAddressTypeEnum = Shapes::StringShape.new(name: 'SourceIpAddressTypeEnum')
341
342
  SourceIpConditionConfig = Shapes::StructureShape.new(name: 'SourceIpConditionConfig')
342
343
  SourceNatIpv6Prefix = Shapes::StringShape.new(name: 'SourceNatIpv6Prefix')
343
344
  SourceNatIpv6Prefixes = Shapes::ListShape.new(name: 'SourceNatIpv6Prefixes')
@@ -1233,6 +1234,7 @@ module Aws::ElasticLoadBalancingV2
1233
1234
  SetSubnetsOutput.struct_class = Types::SetSubnetsOutput
1234
1235
 
1235
1236
  SourceIpConditionConfig.add_member(:values, Shapes::ShapeRef.new(shape: ListOfString, location_name: "Values"))
1237
+ SourceIpConditionConfig.add_member(:ip_address_type, Shapes::ShapeRef.new(shape: SourceIpAddressTypeEnum, location_name: "IpAddressType"))
1236
1238
  SourceIpConditionConfig.struct_class = Types::SourceIpConditionConfig
1237
1239
 
1238
1240
  SourceNatIpv6Prefixes.member = Shapes::ShapeRef.new(shape: SourceNatIpv6Prefix)
@@ -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 field in the HTTP request. The following are the possible
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.
@@ -4141,10 +4152,21 @@ module Aws::ElasticLoadBalancingV2
4141
4152
  # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#http-header-conditions
4142
4153
  # @return [Array<String>]
4143
4154
  #
4155
+ # @!attribute [rw] ip_address_type
4156
+ # The IP address type for Network Load Balancers.
4157
+ #
4158
+ # The valid values are:
4159
+ #
4160
+ # * `ipv4` – IPv4 addresses only.
4161
+ #
4162
+ # * `ipv6` – IPv6 addresses only.
4163
+ # @return [String]
4164
+ #
4144
4165
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SourceIpConditionConfig AWS API Documentation
4145
4166
  #
4146
4167
  class SourceIpConditionConfig < Struct.new(
4147
- :values)
4168
+ :values,
4169
+ :ip_address_type)
4148
4170
  SENSITIVE = []
4149
4171
  include Aws::Structure
4150
4172
  end
@@ -55,7 +55,7 @@ module Aws::ElasticLoadBalancingV2
55
55
  autoload :EndpointProvider, 'aws-sdk-elasticloadbalancingv2/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-elasticloadbalancingv2/endpoints'
57
57
 
58
- GEM_VERSION = '1.154.0'
58
+ GEM_VERSION = '1.156.0'
59
59
 
60
60
  end
61
61
 
data/sig/params.rbs CHANGED
@@ -112,7 +112,8 @@ module Aws
112
112
  values: Array[::String]?
113
113
  }?,
114
114
  source_ip_config: {
115
- values: Array[::String]?
115
+ values: Array[::String]?,
116
+ ip_address_type: ("ipv4" | "ipv6")?
116
117
  }?,
117
118
  regex_values: Array[::String]?
118
119
  }
data/sig/types.rbs CHANGED
@@ -1049,6 +1049,7 @@ module Aws::ElasticLoadBalancingV2
1049
1049
 
1050
1050
  class SourceIpConditionConfig
1051
1051
  attr_accessor values: ::Array[::String]
1052
+ attr_accessor ip_address_type: ("ipv4" | "ipv6")
1052
1053
  SENSITIVE: []
1053
1054
  end
1054
1055
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-elasticloadbalancingv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.154.0
4
+ version: 1.156.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services