@aws-sdk/client-elastic-load-balancing-v2 3.910.0 → 3.913.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/endpoint/ruleset.js +1 -1
- package/dist-cjs/index.js +264 -12
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_query.js +259 -12
- package/dist-types/commands/CreateRuleCommand.d.ts +67 -16
- package/dist-types/commands/DescribeRulesCommand.d.ts +31 -6
- package/dist-types/commands/ModifyRuleCommand.d.ts +63 -12
- package/dist-types/commands/SetRulePrioritiesCommand.d.ts +31 -6
- package/dist-types/commands/SetSubnetsCommand.d.ts +2 -5
- package/dist-types/models/models_0.d.ts +151 -72
- package/dist-types/ts3.4/models/models_0.d.ts +29 -0
- package/package.json +5 -5
|
@@ -2292,6 +2292,16 @@ const se_CreateRuleInput = (input, context) => {
|
|
|
2292
2292
|
entries[loc] = value;
|
|
2293
2293
|
});
|
|
2294
2294
|
}
|
|
2295
|
+
if (input[_Tr] != null) {
|
|
2296
|
+
const memberEntries = se_RuleTransformList(input[_Tr], context);
|
|
2297
|
+
if (input[_Tr]?.length === 0) {
|
|
2298
|
+
entries.Transforms = [];
|
|
2299
|
+
}
|
|
2300
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2301
|
+
const loc = `Transforms.${key}`;
|
|
2302
|
+
entries[loc] = value;
|
|
2303
|
+
});
|
|
2304
|
+
}
|
|
2295
2305
|
return entries;
|
|
2296
2306
|
};
|
|
2297
2307
|
const se_CreateTargetGroupInput = (input, context) => {
|
|
@@ -2808,6 +2818,30 @@ const se_HostHeaderConditionConfig = (input, context) => {
|
|
|
2808
2818
|
entries[loc] = value;
|
|
2809
2819
|
});
|
|
2810
2820
|
}
|
|
2821
|
+
if (input[_RV] != null) {
|
|
2822
|
+
const memberEntries = se_ListOfString(input[_RV], context);
|
|
2823
|
+
if (input[_RV]?.length === 0) {
|
|
2824
|
+
entries.RegexValues = [];
|
|
2825
|
+
}
|
|
2826
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2827
|
+
const loc = `RegexValues.${key}`;
|
|
2828
|
+
entries[loc] = value;
|
|
2829
|
+
});
|
|
2830
|
+
}
|
|
2831
|
+
return entries;
|
|
2832
|
+
};
|
|
2833
|
+
const se_HostHeaderRewriteConfig = (input, context) => {
|
|
2834
|
+
const entries = {};
|
|
2835
|
+
if (input[_R] != null) {
|
|
2836
|
+
const memberEntries = se_RewriteConfigList(input[_R], context);
|
|
2837
|
+
if (input[_R]?.length === 0) {
|
|
2838
|
+
entries.Rewrites = [];
|
|
2839
|
+
}
|
|
2840
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2841
|
+
const loc = `Rewrites.${key}`;
|
|
2842
|
+
entries[loc] = value;
|
|
2843
|
+
});
|
|
2844
|
+
}
|
|
2811
2845
|
return entries;
|
|
2812
2846
|
};
|
|
2813
2847
|
const se_HttpHeaderConditionConfig = (input, context) => {
|
|
@@ -2825,6 +2859,16 @@ const se_HttpHeaderConditionConfig = (input, context) => {
|
|
|
2825
2859
|
entries[loc] = value;
|
|
2826
2860
|
});
|
|
2827
2861
|
}
|
|
2862
|
+
if (input[_RV] != null) {
|
|
2863
|
+
const memberEntries = se_ListOfString(input[_RV], context);
|
|
2864
|
+
if (input[_RV]?.length === 0) {
|
|
2865
|
+
entries.RegexValues = [];
|
|
2866
|
+
}
|
|
2867
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2868
|
+
const loc = `RegexValues.${key}`;
|
|
2869
|
+
entries[loc] = value;
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2828
2872
|
return entries;
|
|
2829
2873
|
};
|
|
2830
2874
|
const se_HttpRequestMethodConditionConfig = (input, context) => {
|
|
@@ -3128,6 +3172,19 @@ const se_ModifyRuleInput = (input, context) => {
|
|
|
3128
3172
|
entries[loc] = value;
|
|
3129
3173
|
});
|
|
3130
3174
|
}
|
|
3175
|
+
if (input[_Tr] != null) {
|
|
3176
|
+
const memberEntries = se_RuleTransformList(input[_Tr], context);
|
|
3177
|
+
if (input[_Tr]?.length === 0) {
|
|
3178
|
+
entries.Transforms = [];
|
|
3179
|
+
}
|
|
3180
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3181
|
+
const loc = `Transforms.${key}`;
|
|
3182
|
+
entries[loc] = value;
|
|
3183
|
+
});
|
|
3184
|
+
}
|
|
3185
|
+
if (input[_RTes] != null) {
|
|
3186
|
+
entries[_RTes] = input[_RTes];
|
|
3187
|
+
}
|
|
3131
3188
|
return entries;
|
|
3132
3189
|
};
|
|
3133
3190
|
const se_ModifyTargetGroupAttributesInput = (input, context) => {
|
|
@@ -3232,6 +3289,16 @@ const se_PathPatternConditionConfig = (input, context) => {
|
|
|
3232
3289
|
entries[loc] = value;
|
|
3233
3290
|
});
|
|
3234
3291
|
}
|
|
3292
|
+
if (input[_RV] != null) {
|
|
3293
|
+
const memberEntries = se_ListOfString(input[_RV], context);
|
|
3294
|
+
if (input[_RV]?.length === 0) {
|
|
3295
|
+
entries.RegexValues = [];
|
|
3296
|
+
}
|
|
3297
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3298
|
+
const loc = `RegexValues.${key}`;
|
|
3299
|
+
entries[loc] = value;
|
|
3300
|
+
});
|
|
3301
|
+
}
|
|
3235
3302
|
return entries;
|
|
3236
3303
|
};
|
|
3237
3304
|
const se_QueryStringConditionConfig = (input, context) => {
|
|
@@ -3437,6 +3504,31 @@ const se_RevocationIds = (input, context) => {
|
|
|
3437
3504
|
}
|
|
3438
3505
|
return entries;
|
|
3439
3506
|
};
|
|
3507
|
+
const se_RewriteConfig = (input, context) => {
|
|
3508
|
+
const entries = {};
|
|
3509
|
+
if (input[_Re] != null) {
|
|
3510
|
+
entries[_Re] = input[_Re];
|
|
3511
|
+
}
|
|
3512
|
+
if (input[_Rep] != null) {
|
|
3513
|
+
entries[_Rep] = input[_Rep];
|
|
3514
|
+
}
|
|
3515
|
+
return entries;
|
|
3516
|
+
};
|
|
3517
|
+
const se_RewriteConfigList = (input, context) => {
|
|
3518
|
+
const entries = {};
|
|
3519
|
+
let counter = 1;
|
|
3520
|
+
for (const entry of input) {
|
|
3521
|
+
if (entry === null) {
|
|
3522
|
+
continue;
|
|
3523
|
+
}
|
|
3524
|
+
const memberEntries = se_RewriteConfig(entry, context);
|
|
3525
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3526
|
+
entries[`member.${counter}.${key}`] = value;
|
|
3527
|
+
});
|
|
3528
|
+
counter++;
|
|
3529
|
+
}
|
|
3530
|
+
return entries;
|
|
3531
|
+
};
|
|
3440
3532
|
const se_RuleArns = (input, context) => {
|
|
3441
3533
|
const entries = {};
|
|
3442
3534
|
let counter = 1;
|
|
@@ -3506,6 +3598,16 @@ const se_RuleCondition = (input, context) => {
|
|
|
3506
3598
|
entries[loc] = value;
|
|
3507
3599
|
});
|
|
3508
3600
|
}
|
|
3601
|
+
if (input[_RV] != null) {
|
|
3602
|
+
const memberEntries = se_ListOfString(input[_RV], context);
|
|
3603
|
+
if (input[_RV]?.length === 0) {
|
|
3604
|
+
entries.RegexValues = [];
|
|
3605
|
+
}
|
|
3606
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3607
|
+
const loc = `RegexValues.${key}`;
|
|
3608
|
+
entries[loc] = value;
|
|
3609
|
+
});
|
|
3610
|
+
}
|
|
3509
3611
|
return entries;
|
|
3510
3612
|
};
|
|
3511
3613
|
const se_RuleConditionList = (input, context) => {
|
|
@@ -3548,6 +3650,42 @@ const se_RulePriorityPair = (input, context) => {
|
|
|
3548
3650
|
}
|
|
3549
3651
|
return entries;
|
|
3550
3652
|
};
|
|
3653
|
+
const se_RuleTransform = (input, context) => {
|
|
3654
|
+
const entries = {};
|
|
3655
|
+
if (input[_T] != null) {
|
|
3656
|
+
entries[_T] = input[_T];
|
|
3657
|
+
}
|
|
3658
|
+
if (input[_HHRC] != null) {
|
|
3659
|
+
const memberEntries = se_HostHeaderRewriteConfig(input[_HHRC], context);
|
|
3660
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3661
|
+
const loc = `HostHeaderRewriteConfig.${key}`;
|
|
3662
|
+
entries[loc] = value;
|
|
3663
|
+
});
|
|
3664
|
+
}
|
|
3665
|
+
if (input[_URC] != null) {
|
|
3666
|
+
const memberEntries = se_UrlRewriteConfig(input[_URC], context);
|
|
3667
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3668
|
+
const loc = `UrlRewriteConfig.${key}`;
|
|
3669
|
+
entries[loc] = value;
|
|
3670
|
+
});
|
|
3671
|
+
}
|
|
3672
|
+
return entries;
|
|
3673
|
+
};
|
|
3674
|
+
const se_RuleTransformList = (input, context) => {
|
|
3675
|
+
const entries = {};
|
|
3676
|
+
let counter = 1;
|
|
3677
|
+
for (const entry of input) {
|
|
3678
|
+
if (entry === null) {
|
|
3679
|
+
continue;
|
|
3680
|
+
}
|
|
3681
|
+
const memberEntries = se_RuleTransform(entry, context);
|
|
3682
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3683
|
+
entries[`member.${counter}.${key}`] = value;
|
|
3684
|
+
});
|
|
3685
|
+
counter++;
|
|
3686
|
+
}
|
|
3687
|
+
return entries;
|
|
3688
|
+
};
|
|
3551
3689
|
const se_SecurityGroups = (input, context) => {
|
|
3552
3690
|
const entries = {};
|
|
3553
3691
|
let counter = 1;
|
|
@@ -3882,6 +4020,20 @@ const se_TrustStoreNames = (input, context) => {
|
|
|
3882
4020
|
}
|
|
3883
4021
|
return entries;
|
|
3884
4022
|
};
|
|
4023
|
+
const se_UrlRewriteConfig = (input, context) => {
|
|
4024
|
+
const entries = {};
|
|
4025
|
+
if (input[_R] != null) {
|
|
4026
|
+
const memberEntries = se_RewriteConfigList(input[_R], context);
|
|
4027
|
+
if (input[_R]?.length === 0) {
|
|
4028
|
+
entries.Rewrites = [];
|
|
4029
|
+
}
|
|
4030
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4031
|
+
const loc = `Rewrites.${key}`;
|
|
4032
|
+
entries[loc] = value;
|
|
4033
|
+
});
|
|
4034
|
+
}
|
|
4035
|
+
return entries;
|
|
4036
|
+
};
|
|
3885
4037
|
const de_Action = (output, context) => {
|
|
3886
4038
|
const contents = {};
|
|
3887
4039
|
if (output[_T] != null) {
|
|
@@ -3946,8 +4098,8 @@ const de_AdministrativeOverride = (output, context) => {
|
|
|
3946
4098
|
if (output[_St] != null) {
|
|
3947
4099
|
contents[_St] = __expectString(output[_St]);
|
|
3948
4100
|
}
|
|
3949
|
-
if (output[
|
|
3950
|
-
contents[
|
|
4101
|
+
if (output[_Rea] != null) {
|
|
4102
|
+
contents[_Rea] = __expectString(output[_Rea]);
|
|
3951
4103
|
}
|
|
3952
4104
|
if (output[_D] != null) {
|
|
3953
4105
|
contents[_D] = __expectString(output[_D]);
|
|
@@ -3977,8 +4129,8 @@ const de_ALPNPolicyNotSupportedException = (output, context) => {
|
|
|
3977
4129
|
};
|
|
3978
4130
|
const de_AnomalyDetection = (output, context) => {
|
|
3979
4131
|
const contents = {};
|
|
3980
|
-
if (output[
|
|
3981
|
-
contents[
|
|
4132
|
+
if (output[_Res] != null) {
|
|
4133
|
+
contents[_Res] = __expectString(output[_Res]);
|
|
3982
4134
|
}
|
|
3983
4135
|
if (output[_MIE] != null) {
|
|
3984
4136
|
contents[_MIE] = __expectString(output[_MIE]);
|
|
@@ -4142,8 +4294,8 @@ const de_CapacityReservationStatus = (output, context) => {
|
|
|
4142
4294
|
if (output[_Cod] != null) {
|
|
4143
4295
|
contents[_Cod] = __expectString(output[_Cod]);
|
|
4144
4296
|
}
|
|
4145
|
-
if (output[
|
|
4146
|
-
contents[
|
|
4297
|
+
if (output[_Rea] != null) {
|
|
4298
|
+
contents[_Rea] = __expectString(output[_Rea]);
|
|
4147
4299
|
}
|
|
4148
4300
|
return contents;
|
|
4149
4301
|
};
|
|
@@ -4599,6 +4751,22 @@ const de_HostHeaderConditionConfig = (output, context) => {
|
|
|
4599
4751
|
else if (output[_Va] != null && output[_Va][_m] != null) {
|
|
4600
4752
|
contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context);
|
|
4601
4753
|
}
|
|
4754
|
+
if (String(output.RegexValues).trim() === "") {
|
|
4755
|
+
contents[_RV] = [];
|
|
4756
|
+
}
|
|
4757
|
+
else if (output[_RV] != null && output[_RV][_m] != null) {
|
|
4758
|
+
contents[_RV] = de_ListOfString(__getArrayIfSingleItem(output[_RV][_m]), context);
|
|
4759
|
+
}
|
|
4760
|
+
return contents;
|
|
4761
|
+
};
|
|
4762
|
+
const de_HostHeaderRewriteConfig = (output, context) => {
|
|
4763
|
+
const contents = {};
|
|
4764
|
+
if (String(output.Rewrites).trim() === "") {
|
|
4765
|
+
contents[_R] = [];
|
|
4766
|
+
}
|
|
4767
|
+
else if (output[_R] != null && output[_R][_m] != null) {
|
|
4768
|
+
contents[_R] = de_RewriteConfigList(__getArrayIfSingleItem(output[_R][_m]), context);
|
|
4769
|
+
}
|
|
4602
4770
|
return contents;
|
|
4603
4771
|
};
|
|
4604
4772
|
const de_HttpHeaderConditionConfig = (output, context) => {
|
|
@@ -4612,6 +4780,12 @@ const de_HttpHeaderConditionConfig = (output, context) => {
|
|
|
4612
4780
|
else if (output[_Va] != null && output[_Va][_m] != null) {
|
|
4613
4781
|
contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context);
|
|
4614
4782
|
}
|
|
4783
|
+
if (String(output.RegexValues).trim() === "") {
|
|
4784
|
+
contents[_RV] = [];
|
|
4785
|
+
}
|
|
4786
|
+
else if (output[_RV] != null && output[_RV][_m] != null) {
|
|
4787
|
+
contents[_RV] = de_ListOfString(__getArrayIfSingleItem(output[_RV][_m]), context);
|
|
4788
|
+
}
|
|
4615
4789
|
return contents;
|
|
4616
4790
|
};
|
|
4617
4791
|
const de_HttpRequestMethodConditionConfig = (output, context) => {
|
|
@@ -4920,8 +5094,8 @@ const de_LoadBalancerState = (output, context) => {
|
|
|
4920
5094
|
if (output[_Cod] != null) {
|
|
4921
5095
|
contents[_Cod] = __expectString(output[_Cod]);
|
|
4922
5096
|
}
|
|
4923
|
-
if (output[
|
|
4924
|
-
contents[
|
|
5097
|
+
if (output[_Rea] != null) {
|
|
5098
|
+
contents[_Rea] = __expectString(output[_Rea]);
|
|
4925
5099
|
}
|
|
4926
5100
|
return contents;
|
|
4927
5101
|
};
|
|
@@ -5072,6 +5246,12 @@ const de_PathPatternConditionConfig = (output, context) => {
|
|
|
5072
5246
|
else if (output[_Va] != null && output[_Va][_m] != null) {
|
|
5073
5247
|
contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context);
|
|
5074
5248
|
}
|
|
5249
|
+
if (String(output.RegexValues).trim() === "") {
|
|
5250
|
+
contents[_RV] = [];
|
|
5251
|
+
}
|
|
5252
|
+
else if (output[_RV] != null && output[_RV][_m] != null) {
|
|
5253
|
+
contents[_RV] = de_ListOfString(__getArrayIfSingleItem(output[_RV][_m]), context);
|
|
5254
|
+
}
|
|
5075
5255
|
return contents;
|
|
5076
5256
|
};
|
|
5077
5257
|
const de_PriorityInUseException = (output, context) => {
|
|
@@ -5181,6 +5361,23 @@ const de_RevocationIdNotFoundException = (output, context) => {
|
|
|
5181
5361
|
}
|
|
5182
5362
|
return contents;
|
|
5183
5363
|
};
|
|
5364
|
+
const de_RewriteConfig = (output, context) => {
|
|
5365
|
+
const contents = {};
|
|
5366
|
+
if (output[_Re] != null) {
|
|
5367
|
+
contents[_Re] = __expectString(output[_Re]);
|
|
5368
|
+
}
|
|
5369
|
+
if (output[_Rep] != null) {
|
|
5370
|
+
contents[_Rep] = __expectString(output[_Rep]);
|
|
5371
|
+
}
|
|
5372
|
+
return contents;
|
|
5373
|
+
};
|
|
5374
|
+
const de_RewriteConfigList = (output, context) => {
|
|
5375
|
+
return (output || [])
|
|
5376
|
+
.filter((e) => e != null)
|
|
5377
|
+
.map((entry) => {
|
|
5378
|
+
return de_RewriteConfig(entry, context);
|
|
5379
|
+
});
|
|
5380
|
+
};
|
|
5184
5381
|
const de_Rule = (output, context) => {
|
|
5185
5382
|
const contents = {};
|
|
5186
5383
|
if (output[_RAu] != null) {
|
|
@@ -5204,6 +5401,12 @@ const de_Rule = (output, context) => {
|
|
|
5204
5401
|
if (output[_ID] != null) {
|
|
5205
5402
|
contents[_ID] = __parseBoolean(output[_ID]);
|
|
5206
5403
|
}
|
|
5404
|
+
if (String(output.Transforms).trim() === "") {
|
|
5405
|
+
contents[_Tr] = [];
|
|
5406
|
+
}
|
|
5407
|
+
else if (output[_Tr] != null && output[_Tr][_m] != null) {
|
|
5408
|
+
contents[_Tr] = de_RuleTransformList(__getArrayIfSingleItem(output[_Tr][_m]), context);
|
|
5409
|
+
}
|
|
5207
5410
|
return contents;
|
|
5208
5411
|
};
|
|
5209
5412
|
const de_RuleCondition = (output, context) => {
|
|
@@ -5235,6 +5438,12 @@ const de_RuleCondition = (output, context) => {
|
|
|
5235
5438
|
if (output[_SIC] != null) {
|
|
5236
5439
|
contents[_SIC] = de_SourceIpConditionConfig(output[_SIC], context);
|
|
5237
5440
|
}
|
|
5441
|
+
if (String(output.RegexValues).trim() === "") {
|
|
5442
|
+
contents[_RV] = [];
|
|
5443
|
+
}
|
|
5444
|
+
else if (output[_RV] != null && output[_RV][_m] != null) {
|
|
5445
|
+
contents[_RV] = de_ListOfString(__getArrayIfSingleItem(output[_RV][_m]), context);
|
|
5446
|
+
}
|
|
5238
5447
|
return contents;
|
|
5239
5448
|
};
|
|
5240
5449
|
const de_RuleConditionList = (output, context) => {
|
|
@@ -5258,6 +5467,26 @@ const de_Rules = (output, context) => {
|
|
|
5258
5467
|
return de_Rule(entry, context);
|
|
5259
5468
|
});
|
|
5260
5469
|
};
|
|
5470
|
+
const de_RuleTransform = (output, context) => {
|
|
5471
|
+
const contents = {};
|
|
5472
|
+
if (output[_T] != null) {
|
|
5473
|
+
contents[_T] = __expectString(output[_T]);
|
|
5474
|
+
}
|
|
5475
|
+
if (output[_HHRC] != null) {
|
|
5476
|
+
contents[_HHRC] = de_HostHeaderRewriteConfig(output[_HHRC], context);
|
|
5477
|
+
}
|
|
5478
|
+
if (output[_URC] != null) {
|
|
5479
|
+
contents[_URC] = de_UrlRewriteConfig(output[_URC], context);
|
|
5480
|
+
}
|
|
5481
|
+
return contents;
|
|
5482
|
+
};
|
|
5483
|
+
const de_RuleTransformList = (output, context) => {
|
|
5484
|
+
return (output || [])
|
|
5485
|
+
.filter((e) => e != null)
|
|
5486
|
+
.map((entry) => {
|
|
5487
|
+
return de_RuleTransform(entry, context);
|
|
5488
|
+
});
|
|
5489
|
+
};
|
|
5261
5490
|
const de_SecurityGroups = (output, context) => {
|
|
5262
5491
|
return (output || [])
|
|
5263
5492
|
.filter((e) => e != null)
|
|
@@ -5562,8 +5791,8 @@ const de_TargetHealth = (output, context) => {
|
|
|
5562
5791
|
if (output[_St] != null) {
|
|
5563
5792
|
contents[_St] = __expectString(output[_St]);
|
|
5564
5793
|
}
|
|
5565
|
-
if (output[
|
|
5566
|
-
contents[
|
|
5794
|
+
if (output[_Rea] != null) {
|
|
5795
|
+
contents[_Rea] = __expectString(output[_Rea]);
|
|
5567
5796
|
}
|
|
5568
5797
|
if (output[_D] != null) {
|
|
5569
5798
|
contents[_D] = __expectString(output[_D]);
|
|
@@ -5778,6 +6007,16 @@ const de_UnsupportedProtocolException = (output, context) => {
|
|
|
5778
6007
|
}
|
|
5779
6008
|
return contents;
|
|
5780
6009
|
};
|
|
6010
|
+
const de_UrlRewriteConfig = (output, context) => {
|
|
6011
|
+
const contents = {};
|
|
6012
|
+
if (String(output.Rewrites).trim() === "") {
|
|
6013
|
+
contents[_R] = [];
|
|
6014
|
+
}
|
|
6015
|
+
else if (output[_R] != null && output[_R][_m] != null) {
|
|
6016
|
+
contents[_R] = de_RewriteConfigList(__getArrayIfSingleItem(output[_R][_m]), context);
|
|
6017
|
+
}
|
|
6018
|
+
return contents;
|
|
6019
|
+
};
|
|
5781
6020
|
const de_ZonalCapacityReservationState = (output, context) => {
|
|
5782
6021
|
const contents = {};
|
|
5783
6022
|
if (output[_St] != null) {
|
|
@@ -5916,6 +6155,7 @@ const _HCTS = "HealthCheckTimeoutSeconds";
|
|
|
5916
6155
|
const _HHC = "HostHeaderConfig";
|
|
5917
6156
|
const _HHCt = "HttpHeaderConfig";
|
|
5918
6157
|
const _HHN = "HttpHeaderName";
|
|
6158
|
+
const _HHRC = "HostHeaderRewriteConfig";
|
|
5919
6159
|
const _HRMC = "HttpRequestMethodConfig";
|
|
5920
6160
|
const _HTC = "HealthyThresholdCount";
|
|
5921
6161
|
const _I = "Issuer";
|
|
@@ -5978,7 +6218,7 @@ const _Pol = "Policy";
|
|
|
5978
6218
|
const _Pr = "Priority";
|
|
5979
6219
|
const _Q = "Query";
|
|
5980
6220
|
const _QSC = "QueryStringConfig";
|
|
5981
|
-
const _R = "
|
|
6221
|
+
const _R = "Rewrites";
|
|
5982
6222
|
const _RA = "ResourceArns";
|
|
5983
6223
|
const _RAe = "ResourceArn";
|
|
5984
6224
|
const _RAu = "RuleArn";
|
|
@@ -5994,8 +6234,13 @@ const _RP = "RulePriorities";
|
|
|
5994
6234
|
const _RT = "RegisterTargets";
|
|
5995
6235
|
const _RTSR = "RemoveTrustStoreRevocations";
|
|
5996
6236
|
const _RTe = "RemoveTags";
|
|
6237
|
+
const _RTes = "ResetTransforms";
|
|
5997
6238
|
const _RTev = "RevocationType";
|
|
5998
|
-
const
|
|
6239
|
+
const _RV = "RegexValues";
|
|
6240
|
+
const _Re = "Regex";
|
|
6241
|
+
const _Rea = "Reason";
|
|
6242
|
+
const _Rep = "Replace";
|
|
6243
|
+
const _Res = "Result";
|
|
5999
6244
|
const _Ru = "Rules";
|
|
6000
6245
|
const _S = "Scope";
|
|
6001
6246
|
const _SB = "S3Bucket";
|
|
@@ -6045,11 +6290,13 @@ const _TT = "TargetType";
|
|
|
6045
6290
|
const _Ta = "Tags";
|
|
6046
6291
|
const _Tar = "Targets";
|
|
6047
6292
|
const _Targ = "Target";
|
|
6293
|
+
const _Tr = "Transforms";
|
|
6048
6294
|
const _UECS = "UseExistingClientSecret";
|
|
6049
6295
|
const _UIE = "UserInfoEndpoint";
|
|
6050
6296
|
const _UPA = "UserPoolArn";
|
|
6051
6297
|
const _UPCI = "UserPoolClientId";
|
|
6052
6298
|
const _UPD = "UserPoolDomain";
|
|
6299
|
+
const _URC = "UrlRewriteConfig";
|
|
6053
6300
|
const _UTC = "UnhealthyThresholdCount";
|
|
6054
6301
|
const _V = "Version";
|
|
6055
6302
|
const _VI = "VpcId";
|
|
@@ -29,10 +29,11 @@ declare const CreateRuleCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Creates a rule for the specified listener. The listener must be associated with an
|
|
31
31
|
* Application Load Balancer.</p>
|
|
32
|
-
* <p>Each rule consists of a priority, one or more actions,
|
|
33
|
-
* are evaluated in priority order, from the lowest value
|
|
34
|
-
* conditions for a rule are met, its actions are performed.
|
|
35
|
-
*
|
|
32
|
+
* <p>Each rule consists of a priority, one or more actions, one or more conditions, and
|
|
33
|
+
* up to two optional transforms. Rules are evaluated in priority order, from the lowest value
|
|
34
|
+
* to the highest value. When the conditions for a rule are met, its actions are performed.
|
|
35
|
+
* If the conditions for no rules are met, the actions for the default rule are performed.
|
|
36
|
+
* 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>
|
|
36
37
|
* @example
|
|
37
38
|
* Use a bare-bones client and the command you need to make an API call.
|
|
38
39
|
* ```javascript
|
|
@@ -53,17 +54,22 @@ declare const CreateRuleCommand_base: {
|
|
|
53
54
|
* Values: [
|
|
54
55
|
* "STRING_VALUE",
|
|
55
56
|
* ],
|
|
57
|
+
* RegexValues: [
|
|
58
|
+
* "STRING_VALUE",
|
|
59
|
+
* ],
|
|
56
60
|
* },
|
|
57
61
|
* PathPatternConfig: { // PathPatternConditionConfig
|
|
58
62
|
* Values: [
|
|
59
63
|
* "STRING_VALUE",
|
|
60
64
|
* ],
|
|
65
|
+
* RegexValues: [
|
|
66
|
+
* "STRING_VALUE",
|
|
67
|
+
* ],
|
|
61
68
|
* },
|
|
62
69
|
* HttpHeaderConfig: { // HttpHeaderConditionConfig
|
|
63
70
|
* HttpHeaderName: "STRING_VALUE",
|
|
64
|
-
* Values:
|
|
65
|
-
*
|
|
66
|
-
* ],
|
|
71
|
+
* Values: "<ListOfString>",
|
|
72
|
+
* RegexValues: "<ListOfString>",
|
|
67
73
|
* },
|
|
68
74
|
* QueryStringConfig: { // QueryStringConditionConfig
|
|
69
75
|
* Values: [ // QueryStringKeyValuePairList
|
|
@@ -74,13 +80,12 @@ declare const CreateRuleCommand_base: {
|
|
|
74
80
|
* ],
|
|
75
81
|
* },
|
|
76
82
|
* HttpRequestMethodConfig: { // HttpRequestMethodConditionConfig
|
|
77
|
-
* Values:
|
|
78
|
-
* "STRING_VALUE",
|
|
79
|
-
* ],
|
|
83
|
+
* Values: "<ListOfString>",
|
|
80
84
|
* },
|
|
81
85
|
* SourceIpConfig: { // SourceIpConditionConfig
|
|
82
86
|
* Values: "<ListOfString>",
|
|
83
87
|
* },
|
|
88
|
+
* RegexValues: "<ListOfString>",
|
|
84
89
|
* },
|
|
85
90
|
* ],
|
|
86
91
|
* Priority: Number("int"), // required
|
|
@@ -150,6 +155,27 @@ declare const CreateRuleCommand_base: {
|
|
|
150
155
|
* Value: "STRING_VALUE",
|
|
151
156
|
* },
|
|
152
157
|
* ],
|
|
158
|
+
* Transforms: [ // RuleTransformList
|
|
159
|
+
* { // RuleTransform
|
|
160
|
+
* Type: "host-header-rewrite" || "url-rewrite", // required
|
|
161
|
+
* HostHeaderRewriteConfig: { // HostHeaderRewriteConfig
|
|
162
|
+
* Rewrites: [ // RewriteConfigList
|
|
163
|
+
* { // RewriteConfig
|
|
164
|
+
* Regex: "STRING_VALUE", // required
|
|
165
|
+
* Replace: "STRING_VALUE", // required
|
|
166
|
+
* },
|
|
167
|
+
* ],
|
|
168
|
+
* },
|
|
169
|
+
* UrlRewriteConfig: { // UrlRewriteConfig
|
|
170
|
+
* Rewrites: [
|
|
171
|
+
* {
|
|
172
|
+
* Regex: "STRING_VALUE", // required
|
|
173
|
+
* Replace: "STRING_VALUE", // required
|
|
174
|
+
* },
|
|
175
|
+
* ],
|
|
176
|
+
* },
|
|
177
|
+
* },
|
|
178
|
+
* ],
|
|
153
179
|
* };
|
|
154
180
|
* const command = new CreateRuleCommand(input);
|
|
155
181
|
* const response = await client.send(command);
|
|
@@ -168,17 +194,22 @@ declare const CreateRuleCommand_base: {
|
|
|
168
194
|
* // Values: [
|
|
169
195
|
* // "STRING_VALUE",
|
|
170
196
|
* // ],
|
|
197
|
+
* // RegexValues: [
|
|
198
|
+
* // "STRING_VALUE",
|
|
199
|
+
* // ],
|
|
171
200
|
* // },
|
|
172
201
|
* // PathPatternConfig: { // PathPatternConditionConfig
|
|
173
202
|
* // Values: [
|
|
174
203
|
* // "STRING_VALUE",
|
|
175
204
|
* // ],
|
|
205
|
+
* // RegexValues: [
|
|
206
|
+
* // "STRING_VALUE",
|
|
207
|
+
* // ],
|
|
176
208
|
* // },
|
|
177
209
|
* // HttpHeaderConfig: { // HttpHeaderConditionConfig
|
|
178
210
|
* // HttpHeaderName: "STRING_VALUE",
|
|
179
|
-
* // Values:
|
|
180
|
-
* //
|
|
181
|
-
* // ],
|
|
211
|
+
* // Values: "<ListOfString>",
|
|
212
|
+
* // RegexValues: "<ListOfString>",
|
|
182
213
|
* // },
|
|
183
214
|
* // QueryStringConfig: { // QueryStringConditionConfig
|
|
184
215
|
* // Values: [ // QueryStringKeyValuePairList
|
|
@@ -189,13 +220,12 @@ declare const CreateRuleCommand_base: {
|
|
|
189
220
|
* // ],
|
|
190
221
|
* // },
|
|
191
222
|
* // HttpRequestMethodConfig: { // HttpRequestMethodConditionConfig
|
|
192
|
-
* // Values:
|
|
193
|
-
* // "STRING_VALUE",
|
|
194
|
-
* // ],
|
|
223
|
+
* // Values: "<ListOfString>",
|
|
195
224
|
* // },
|
|
196
225
|
* // SourceIpConfig: { // SourceIpConditionConfig
|
|
197
226
|
* // Values: "<ListOfString>",
|
|
198
227
|
* // },
|
|
228
|
+
* // RegexValues: "<ListOfString>",
|
|
199
229
|
* // },
|
|
200
230
|
* // ],
|
|
201
231
|
* // Actions: [ // Actions
|
|
@@ -259,6 +289,27 @@ declare const CreateRuleCommand_base: {
|
|
|
259
289
|
* // },
|
|
260
290
|
* // ],
|
|
261
291
|
* // IsDefault: true || false,
|
|
292
|
+
* // Transforms: [ // RuleTransformList
|
|
293
|
+
* // { // RuleTransform
|
|
294
|
+
* // Type: "host-header-rewrite" || "url-rewrite", // required
|
|
295
|
+
* // HostHeaderRewriteConfig: { // HostHeaderRewriteConfig
|
|
296
|
+
* // Rewrites: [ // RewriteConfigList
|
|
297
|
+
* // { // RewriteConfig
|
|
298
|
+
* // Regex: "STRING_VALUE", // required
|
|
299
|
+
* // Replace: "STRING_VALUE", // required
|
|
300
|
+
* // },
|
|
301
|
+
* // ],
|
|
302
|
+
* // },
|
|
303
|
+
* // UrlRewriteConfig: { // UrlRewriteConfig
|
|
304
|
+
* // Rewrites: [
|
|
305
|
+
* // {
|
|
306
|
+
* // Regex: "STRING_VALUE", // required
|
|
307
|
+
* // Replace: "STRING_VALUE", // required
|
|
308
|
+
* // },
|
|
309
|
+
* // ],
|
|
310
|
+
* // },
|
|
311
|
+
* // },
|
|
312
|
+
* // ],
|
|
262
313
|
* // },
|
|
263
314
|
* // ],
|
|
264
315
|
* // };
|
|
@@ -62,17 +62,22 @@ declare const DescribeRulesCommand_base: {
|
|
|
62
62
|
* // Values: [
|
|
63
63
|
* // "STRING_VALUE",
|
|
64
64
|
* // ],
|
|
65
|
+
* // RegexValues: [
|
|
66
|
+
* // "STRING_VALUE",
|
|
67
|
+
* // ],
|
|
65
68
|
* // },
|
|
66
69
|
* // PathPatternConfig: { // PathPatternConditionConfig
|
|
67
70
|
* // Values: [
|
|
68
71
|
* // "STRING_VALUE",
|
|
69
72
|
* // ],
|
|
73
|
+
* // RegexValues: [
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
70
76
|
* // },
|
|
71
77
|
* // HttpHeaderConfig: { // HttpHeaderConditionConfig
|
|
72
78
|
* // HttpHeaderName: "STRING_VALUE",
|
|
73
|
-
* // Values:
|
|
74
|
-
* //
|
|
75
|
-
* // ],
|
|
79
|
+
* // Values: "<ListOfString>",
|
|
80
|
+
* // RegexValues: "<ListOfString>",
|
|
76
81
|
* // },
|
|
77
82
|
* // QueryStringConfig: { // QueryStringConditionConfig
|
|
78
83
|
* // Values: [ // QueryStringKeyValuePairList
|
|
@@ -83,13 +88,12 @@ declare const DescribeRulesCommand_base: {
|
|
|
83
88
|
* // ],
|
|
84
89
|
* // },
|
|
85
90
|
* // HttpRequestMethodConfig: { // HttpRequestMethodConditionConfig
|
|
86
|
-
* // Values:
|
|
87
|
-
* // "STRING_VALUE",
|
|
88
|
-
* // ],
|
|
91
|
+
* // Values: "<ListOfString>",
|
|
89
92
|
* // },
|
|
90
93
|
* // SourceIpConfig: { // SourceIpConditionConfig
|
|
91
94
|
* // Values: "<ListOfString>",
|
|
92
95
|
* // },
|
|
96
|
+
* // RegexValues: "<ListOfString>",
|
|
93
97
|
* // },
|
|
94
98
|
* // ],
|
|
95
99
|
* // Actions: [ // Actions
|
|
@@ -153,6 +157,27 @@ declare const DescribeRulesCommand_base: {
|
|
|
153
157
|
* // },
|
|
154
158
|
* // ],
|
|
155
159
|
* // IsDefault: true || false,
|
|
160
|
+
* // Transforms: [ // RuleTransformList
|
|
161
|
+
* // { // RuleTransform
|
|
162
|
+
* // Type: "host-header-rewrite" || "url-rewrite", // required
|
|
163
|
+
* // HostHeaderRewriteConfig: { // HostHeaderRewriteConfig
|
|
164
|
+
* // Rewrites: [ // RewriteConfigList
|
|
165
|
+
* // { // RewriteConfig
|
|
166
|
+
* // Regex: "STRING_VALUE", // required
|
|
167
|
+
* // Replace: "STRING_VALUE", // required
|
|
168
|
+
* // },
|
|
169
|
+
* // ],
|
|
170
|
+
* // },
|
|
171
|
+
* // UrlRewriteConfig: { // UrlRewriteConfig
|
|
172
|
+
* // Rewrites: [
|
|
173
|
+
* // {
|
|
174
|
+
* // Regex: "STRING_VALUE", // required
|
|
175
|
+
* // Replace: "STRING_VALUE", // required
|
|
176
|
+
* // },
|
|
177
|
+
* // ],
|
|
178
|
+
* // },
|
|
179
|
+
* // },
|
|
180
|
+
* // ],
|
|
156
181
|
* // },
|
|
157
182
|
* // ],
|
|
158
183
|
* // NextMarker: "STRING_VALUE",
|