@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.
@@ -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 s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [v]: "Region" }, n = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsFIPS"] }] }, o = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsDualStack"] }] }, p = [j], q = [k], r = [m];
3
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [n, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [t]: f, [u]: [m, "af-south-1"] }], endpoint: { url: "https://wafv2.af-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-east-1"] }], endpoint: { url: "https://wafv2.ap-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-1"] }], endpoint: { url: "https://wafv2.ap-northeast-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-2"] }], endpoint: { url: "https://wafv2.ap-northeast-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-3"] }], endpoint: { url: "https://wafv2.ap-northeast-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-south-1"] }], endpoint: { url: "https://wafv2.ap-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-1"] }], endpoint: { url: "https://wafv2.ap-southeast-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-2"] }], endpoint: { url: "https://wafv2.ap-southeast-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-3"] }], endpoint: { url: "https://wafv2.ap-southeast-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ca-central-1"] }], endpoint: { url: "https://wafv2.ca-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-central-1"] }], endpoint: { url: "https://wafv2.eu-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-north-1"] }], endpoint: { url: "https://wafv2.eu-north-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-south-1"] }], endpoint: { url: "https://wafv2.eu-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-1"] }], endpoint: { url: "https://wafv2.eu-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-2"] }], endpoint: { url: "https://wafv2.eu-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-3"] }], endpoint: { url: "https://wafv2.eu-west-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "me-south-1"] }], endpoint: { url: "https://wafv2.me-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "sa-east-1"] }], endpoint: { url: "https://wafv2.sa-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-east-1"] }], endpoint: { url: "https://wafv2.us-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-east-2"] }], endpoint: { url: "https://wafv2.us-east-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-west-1"] }], endpoint: { url: "https://wafv2.us-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-west-2"] }], endpoint: { url: "https://wafv2.us-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "cn-north-1"] }], endpoint: { url: "https://wafv2.cn-north-1.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "cn-northwest-1"] }], endpoint: { url: "https://wafv2.cn-northwest-1.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-gov-east-1"] }], endpoint: { url: "https://wafv2.us-gov-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-gov-west-1"] }], endpoint: { url: "https://wafv2.us-gov-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
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;