@aws-sdk/client-wafv2 3.301.0 → 3.305.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/README.md +1 -1
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +464 -479
- package/dist-cjs/protocols/Aws_json1_1.js +47 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +463 -478
- package/dist-es/protocols/Aws_json1_1.js +47 -0
- package/dist-types/WAFV2.d.ts +13 -11
- package/dist-types/WAFV2Client.d.ts +1 -1
- package/dist-types/commands/AssociateWebACLCommand.d.ts +2 -2
- package/dist-types/commands/CheckCapacityCommand.d.ts +2 -2
- package/dist-types/commands/CreateWebACLCommand.d.ts +8 -1
- package/dist-types/commands/DeleteWebACLCommand.d.ts +4 -2
- package/dist-types/commands/DisassociateWebACLCommand.d.ts +2 -2
- package/dist-types/commands/PutPermissionPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWebACLCommand.d.ts +8 -1
- package/dist-types/models/models_0.d.ts +822 -594
- package/dist-types/ts3.4/models/models_0.d.ts +518 -453
- package/package.json +34 -34
|
@@ -2963,6 +2963,11 @@ const serializeAws_json1_1AssociateWebACLRequest = (input, context) => {
|
|
|
2963
2963
|
...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
|
|
2964
2964
|
};
|
|
2965
2965
|
};
|
|
2966
|
+
const serializeAws_json1_1AssociationConfig = (input, context) => {
|
|
2967
|
+
return {
|
|
2968
|
+
...(input.RequestBody != null && { RequestBody: serializeAws_json1_1RequestBody(input.RequestBody, context) }),
|
|
2969
|
+
};
|
|
2970
|
+
};
|
|
2966
2971
|
const serializeAws_json1_1AWSManagedRulesATPRuleSet = (input, context) => {
|
|
2967
2972
|
return {
|
|
2968
2973
|
...(input.LoginPath != null && { LoginPath: input.LoginPath }),
|
|
@@ -3132,6 +3137,9 @@ const serializeAws_json1_1CreateRuleGroupRequest = (input, context) => {
|
|
|
3132
3137
|
};
|
|
3133
3138
|
const serializeAws_json1_1CreateWebACLRequest = (input, context) => {
|
|
3134
3139
|
return {
|
|
3140
|
+
...(input.AssociationConfig != null && {
|
|
3141
|
+
AssociationConfig: serializeAws_json1_1AssociationConfig(input.AssociationConfig, context),
|
|
3142
|
+
}),
|
|
3135
3143
|
...(input.CaptchaConfig != null && {
|
|
3136
3144
|
CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
|
|
3137
3145
|
}),
|
|
@@ -3761,6 +3769,20 @@ const serializeAws_json1_1RegularExpressionList = (input, context) => {
|
|
|
3761
3769
|
return serializeAws_json1_1Regex(entry, context);
|
|
3762
3770
|
});
|
|
3763
3771
|
};
|
|
3772
|
+
const serializeAws_json1_1RequestBody = (input, context) => {
|
|
3773
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3774
|
+
if (value === null) {
|
|
3775
|
+
return acc;
|
|
3776
|
+
}
|
|
3777
|
+
acc[key] = serializeAws_json1_1RequestBodyAssociatedResourceTypeConfig(value, context);
|
|
3778
|
+
return acc;
|
|
3779
|
+
}, {});
|
|
3780
|
+
};
|
|
3781
|
+
const serializeAws_json1_1RequestBodyAssociatedResourceTypeConfig = (input, context) => {
|
|
3782
|
+
return {
|
|
3783
|
+
...(input.DefaultSizeInspectionLimit != null && { DefaultSizeInspectionLimit: input.DefaultSizeInspectionLimit }),
|
|
3784
|
+
};
|
|
3785
|
+
};
|
|
3764
3786
|
const serializeAws_json1_1RequestInspection = (input, context) => {
|
|
3765
3787
|
return {
|
|
3766
3788
|
...(input.PasswordField != null && {
|
|
@@ -4130,6 +4152,9 @@ const serializeAws_json1_1UpdateRuleGroupRequest = (input, context) => {
|
|
|
4130
4152
|
};
|
|
4131
4153
|
const serializeAws_json1_1UpdateWebACLRequest = (input, context) => {
|
|
4132
4154
|
return {
|
|
4155
|
+
...(input.AssociationConfig != null && {
|
|
4156
|
+
AssociationConfig: serializeAws_json1_1AssociationConfig(input.AssociationConfig, context),
|
|
4157
|
+
}),
|
|
4133
4158
|
...(input.CaptchaConfig != null && {
|
|
4134
4159
|
CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
|
|
4135
4160
|
}),
|
|
@@ -4218,6 +4243,11 @@ const deserializeAws_json1_1AndStatement = (output, context) => {
|
|
|
4218
4243
|
const deserializeAws_json1_1AssociateWebACLResponse = (output, context) => {
|
|
4219
4244
|
return {};
|
|
4220
4245
|
};
|
|
4246
|
+
const deserializeAws_json1_1AssociationConfig = (output, context) => {
|
|
4247
|
+
return {
|
|
4248
|
+
RequestBody: output.RequestBody != null ? deserializeAws_json1_1RequestBody(output.RequestBody, context) : undefined,
|
|
4249
|
+
};
|
|
4250
|
+
};
|
|
4221
4251
|
const deserializeAws_json1_1AWSManagedRulesATPRuleSet = (output, context) => {
|
|
4222
4252
|
return {
|
|
4223
4253
|
LoginPath: (0, smithy_client_1.expectString)(output.LoginPath),
|
|
@@ -5258,6 +5288,20 @@ const deserializeAws_json1_1ReleaseSummary = (output, context) => {
|
|
|
5258
5288
|
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
5259
5289
|
};
|
|
5260
5290
|
};
|
|
5291
|
+
const deserializeAws_json1_1RequestBody = (output, context) => {
|
|
5292
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
5293
|
+
if (value === null) {
|
|
5294
|
+
return acc;
|
|
5295
|
+
}
|
|
5296
|
+
acc[key] = deserializeAws_json1_1RequestBodyAssociatedResourceTypeConfig(value, context);
|
|
5297
|
+
return acc;
|
|
5298
|
+
}, {});
|
|
5299
|
+
};
|
|
5300
|
+
const deserializeAws_json1_1RequestBodyAssociatedResourceTypeConfig = (output, context) => {
|
|
5301
|
+
return {
|
|
5302
|
+
DefaultSizeInspectionLimit: (0, smithy_client_1.expectString)(output.DefaultSizeInspectionLimit),
|
|
5303
|
+
};
|
|
5304
|
+
};
|
|
5261
5305
|
const deserializeAws_json1_1RequestInspection = (output, context) => {
|
|
5262
5306
|
return {
|
|
5263
5307
|
PasswordField: output.PasswordField != null ? deserializeAws_json1_1PasswordField(output.PasswordField, context) : undefined,
|
|
@@ -5857,6 +5901,9 @@ const deserializeAws_json1_1WAFUnavailableEntityException = (output, context) =>
|
|
|
5857
5901
|
const deserializeAws_json1_1WebACL = (output, context) => {
|
|
5858
5902
|
return {
|
|
5859
5903
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
5904
|
+
AssociationConfig: output.AssociationConfig != null
|
|
5905
|
+
? deserializeAws_json1_1AssociationConfig(output.AssociationConfig, context)
|
|
5906
|
+
: undefined,
|
|
5860
5907
|
Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
|
|
5861
5908
|
CaptchaConfig: output.CaptchaConfig != null ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context) : undefined,
|
|
5862
5909
|
ChallengeConfig: output.ChallengeConfig != null
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|