@aws-sdk/client-elastic-load-balancing-v2 3.1092.0 → 3.1094.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.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1091.0";
72
+ var version = "3.1093.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -25,12 +25,12 @@ declare const CreateRuleCommand_base: {
25
25
  };
26
26
  /**
27
27
  * <p>Creates a rule for the specified listener. The listener must be associated with an
28
- * Application Load Balancer.</p>
29
- * <p>Each rule consists of a priority, one or more actions, one or more conditions, and
30
- * up to two optional transforms. Rules are evaluated in priority order, from the lowest value
31
- * to the highest value. When the conditions for a rule are met, its actions are performed.
32
- * If the conditions for no rules are met, the actions for the default rule are performed.
33
- * For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules">Listener rules</a> in the <i>Application Load Balancers Guide</i>.</p>
28
+ * Application Load Balancer or a dual-stack Network Load Balancer.</p>
29
+ * <p>Each rule consists of a priority, one or more actions, and one or more conditions. Rules
30
+ * are evaluated in priority order, from the lowest value to the highest value. When the
31
+ * conditions for a rule are met, its actions are performed. If the conditions for no rules are
32
+ * met, the actions for the default rule are performed. For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules">Listener rules</a> in the <i>Application Load Balancers Guide</i> or
33
+ * <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-listeners.html#listener-rules">Listener rules</a> in the <i>Network Load Balancers Guide</i>.</p>
34
34
  * @example
35
35
  * Use a bare-bones client and the command you need to make an API call.
36
36
  * ```javascript
@@ -450,6 +450,56 @@ declare const CreateRuleCommand_base: {
450
450
  * *\/
451
451
  * ```
452
452
  *
453
+ * @example To create a listener rule that routes IPv4 traffic on a Network Load Balancer
454
+ * ```javascript
455
+ * // This example creates a rule on a dual-stack Network Load Balancer that routes IPv4 source traffic to an IPv4 target group.
456
+ * const input = {
457
+ * Actions: [
458
+ * {
459
+ * TargetGroupArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv4-targets/1234567890abcdef",
460
+ * Type: "forward"
461
+ * }
462
+ * ],
463
+ * Conditions: [
464
+ * {
465
+ * Field: "source-ip",
466
+ * SourceIpConfig: {
467
+ * IpAddressType: "ipv4"
468
+ * }
469
+ * }
470
+ * ],
471
+ * ListenerArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/net/my-nlb/1234567890abcdef/1234567890abcdef",
472
+ * Priority: 10
473
+ * };
474
+ * const command = new CreateRuleCommand(input);
475
+ * const response = await client.send(command);
476
+ * /* response is
477
+ * {
478
+ * Rules: [
479
+ * {
480
+ * Actions: [
481
+ * {
482
+ * TargetGroupArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv4-targets/1234567890abcdef",
483
+ * Type: "forward"
484
+ * }
485
+ * ],
486
+ * Conditions: [
487
+ * {
488
+ * Field: "source-ip",
489
+ * SourceIpConfig: {
490
+ * IpAddressType: "ipv4"
491
+ * }
492
+ * }
493
+ * ],
494
+ * IsDefault: false,
495
+ * Priority: "10",
496
+ * RuleArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/1234567890abcdef"
497
+ * }
498
+ * ]
499
+ * }
500
+ * *\/
501
+ * ```
502
+ *
453
503
  * @public
454
504
  */
455
505
  export declare class CreateRuleCommand extends CreateRuleCommand_base {
@@ -252,6 +252,72 @@ declare const DescribeRulesCommand_base: {
252
252
  * *\/
253
253
  * ```
254
254
  *
255
+ * @example To describe rules for a Network Load Balancer listener
256
+ * ```javascript
257
+ * // This example describes the rules for the specified Network Load Balancer listener, including rules that route based on source IP address type.
258
+ * const input = {
259
+ * ListenerArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/net/my-nlb/1234567890abcdef/1234567890abcdef"
260
+ * };
261
+ * const command = new DescribeRulesCommand(input);
262
+ * const response = await client.send(command);
263
+ * /* response is
264
+ * {
265
+ * Rules: [
266
+ * {
267
+ * Actions: [
268
+ * {
269
+ * TargetGroupArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv4-targets/1234567890abcdef",
270
+ * Type: "forward"
271
+ * }
272
+ * ],
273
+ * Conditions: [
274
+ * {
275
+ * Field: "source-ip",
276
+ * SourceIpConfig: {
277
+ * IpAddressType: "ipv4"
278
+ * }
279
+ * }
280
+ * ],
281
+ * IsDefault: false,
282
+ * Priority: "10",
283
+ * RuleArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/aabbccdd11223344"
284
+ * },
285
+ * {
286
+ * Actions: [
287
+ * {
288
+ * TargetGroupArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv6-targets/abcdef1234567890",
289
+ * Type: "forward"
290
+ * }
291
+ * ],
292
+ * Conditions: [
293
+ * {
294
+ * Field: "source-ip",
295
+ * SourceIpConfig: {
296
+ * IpAddressType: "ipv6"
297
+ * }
298
+ * }
299
+ * ],
300
+ * IsDefault: false,
301
+ * Priority: "20",
302
+ * RuleArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/eeff00112233aabb"
303
+ * },
304
+ * {
305
+ * Actions: [
306
+ * {
307
+ * TargetGroupArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-ipv4-targets/1234567890abcdef",
308
+ * Type: "forward"
309
+ * }
310
+ * ],
311
+ * Conditions: [],
312
+ * IsDefault: true,
313
+ * Priority: "default",
314
+ * RuleArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/default"
315
+ * }
316
+ * ]
317
+ * }
318
+ * *\/
319
+ * ```
320
+ *
255
321
  * @public
256
322
  */
257
323
  export declare class DescribeRulesCommand extends DescribeRulesCommand_base {
@@ -422,6 +422,47 @@ declare const ModifyRuleCommand_base: {
422
422
  * *\/
423
423
  * ```
424
424
  *
425
+ * @example To modify a Network Load Balancer listener rule
426
+ * ```javascript
427
+ * // This example modifies an NLB listener rule to forward traffic to a different target group.
428
+ * const input = {
429
+ * Actions: [
430
+ * {
431
+ * TargetGroupArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-ipv4-targets/1234567890abcdef",
432
+ * Type: "forward"
433
+ * }
434
+ * ],
435
+ * RuleArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/1234567890abcdef"
436
+ * };
437
+ * const command = new ModifyRuleCommand(input);
438
+ * const response = await client.send(command);
439
+ * /* response is
440
+ * {
441
+ * Rules: [
442
+ * {
443
+ * Actions: [
444
+ * {
445
+ * TargetGroupArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-ipv4-targets/1234567890abcdef",
446
+ * Type: "forward"
447
+ * }
448
+ * ],
449
+ * Conditions: [
450
+ * {
451
+ * Field: "source-ip",
452
+ * SourceIpConfig: {
453
+ * IpAddressType: "ipv4"
454
+ * }
455
+ * }
456
+ * ],
457
+ * IsDefault: false,
458
+ * Priority: "10",
459
+ * RuleArn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/net/my-nlb/1234567890abcdef/1234567890abcdef/1234567890abcdef"
460
+ * }
461
+ * ]
462
+ * }
463
+ * *\/
464
+ * ```
465
+ *
425
466
  * @public
426
467
  */
427
468
  export declare class ModifyRuleCommand extends ModifyRuleCommand_base {
@@ -1311,6 +1311,9 @@ export interface QueryStringConditionConfig {
1311
1311
  * <p>You can use this condition to route based on the IP address of the source that connects to
1312
1312
  * the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the
1313
1313
  * IP address of the client.</p>
1314
+ * <p>For Application Load Balancers, use <code>Values</code> to specify CIDR ranges. For
1315
+ * Network Load Balancers, use <code>IpAddressType</code> to match on the IP address type of
1316
+ * the source traffic.</p>
1314
1317
  * @public
1315
1318
  */
1316
1319
  export interface SourceIpConditionConfig {
@@ -1349,43 +1352,44 @@ export interface SourceIpConditionConfig {
1349
1352
  * <code>source-ip</code>. Each rule can also optionally include one or more of each of the
1350
1353
  * following conditions: <code>http-header</code> and <code>query-string</code>. Note that the
1351
1354
  * value for a condition can't be empty.</p>
1355
+ * <p>For Network Load Balancer listener rules, the only supported condition is
1356
+ * <code>source-ip</code>. Use <code>SourceIpConfig</code> with <code>IpAddressType</code> to
1357
+ * match on the IP address type of the source traffic (<code>ipv4</code> or
1358
+ * <code>ipv6</code>).</p>
1352
1359
  * <p>For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html">Quotas for your
1353
1360
  * Application Load Balancers</a>.</p>
1354
1361
  * @public
1355
1362
  */
1356
1363
  export interface RuleCondition {
1357
1364
  /**
1358
- * <p>The field in the HTTP request. The following are the possible values:</p>
1365
+ * <p>The name of the field. The possible values are:</p>
1359
1366
  * <ul>
1360
1367
  * <li>
1361
1368
  * <p>
1362
- * <code>http-header</code>
1363
- * </p>
1369
+ * <code>http-header</code> – [ALB] Matches on an HTTP header field.</p>
1364
1370
  * </li>
1365
1371
  * <li>
1366
1372
  * <p>
1367
- * <code>http-request-method</code>
1368
- * </p>
1373
+ * <code>http-request-method</code> – [ALB] Matches on the HTTP request method.</p>
1369
1374
  * </li>
1370
1375
  * <li>
1371
1376
  * <p>
1372
- * <code>host-header</code>
1373
- * </p>
1377
+ * <code>host-header</code> – [ALB] Matches on the host header.</p>
1374
1378
  * </li>
1375
1379
  * <li>
1376
1380
  * <p>
1377
- * <code>path-pattern</code>
1378
- * </p>
1381
+ * <code>path-pattern</code> – [ALB] Matches on the URL path of the request.</p>
1379
1382
  * </li>
1380
1383
  * <li>
1381
1384
  * <p>
1382
- * <code>query-string</code>
1383
- * </p>
1385
+ * <code>query-string</code> – [ALB] Matches on a query string parameter.</p>
1384
1386
  * </li>
1385
1387
  * <li>
1386
1388
  * <p>
1387
- * <code>source-ip</code>
1388
- * </p>
1389
+ * <code>source-ip</code> – [ALB, NLB] Matches on the source IP address. For ALB, use
1390
+ * <code>SourceIpConfig</code> with <code>Values</code> to specify CIDR ranges. For NLB,
1391
+ * use <code>SourceIpConfig</code> with <code>IpAddressType</code> to match the IP address
1392
+ * type (<code>ipv4</code> or <code>ipv6</code>).</p>
1389
1393
  * </li>
1390
1394
  * </ul>
1391
1395
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elastic-load-balancing-v2",
3
- "version": "3.1092.0",
3
+ "version": "3.1094.0",
4
4
  "description": "AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2",
6
6
  "license": "Apache-2.0",