@aws-sdk/client-wafv2 3.121.0 → 3.127.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.
@@ -3074,7 +3074,7 @@ const deserializeAws_json1_1WAFUnavailableEntityExceptionResponse = async (parse
3074
3074
  };
3075
3075
  const serializeAws_json1_1ActionCondition = (input, context) => {
3076
3076
  return {
3077
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
3077
+ ...(input.Action != null && { Action: input.Action }),
3078
3078
  };
3079
3079
  };
3080
3080
  const serializeAws_json1_1All = (input, context) => {
@@ -3082,8 +3082,7 @@ const serializeAws_json1_1All = (input, context) => {
3082
3082
  };
3083
3083
  const serializeAws_json1_1AllowAction = (input, context) => {
3084
3084
  return {
3085
- ...(input.CustomRequestHandling !== undefined &&
3086
- input.CustomRequestHandling !== null && {
3085
+ ...(input.CustomRequestHandling != null && {
3087
3086
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
3088
3087
  }),
3089
3088
  };
@@ -3093,75 +3092,63 @@ const serializeAws_json1_1AllQueryArguments = (input, context) => {
3093
3092
  };
3094
3093
  const serializeAws_json1_1AndStatement = (input, context) => {
3095
3094
  return {
3096
- ...(input.Statements !== undefined &&
3097
- input.Statements !== null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }),
3095
+ ...(input.Statements != null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }),
3098
3096
  };
3099
3097
  };
3100
3098
  const serializeAws_json1_1AssociateWebACLRequest = (input, context) => {
3101
3099
  return {
3102
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3103
- ...(input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn }),
3100
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3101
+ ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
3104
3102
  };
3105
3103
  };
3106
3104
  const serializeAws_json1_1BlockAction = (input, context) => {
3107
3105
  return {
3108
- ...(input.CustomResponse !== undefined &&
3109
- input.CustomResponse !== null && {
3106
+ ...(input.CustomResponse != null && {
3110
3107
  CustomResponse: serializeAws_json1_1CustomResponse(input.CustomResponse, context),
3111
3108
  }),
3112
3109
  };
3113
3110
  };
3114
3111
  const serializeAws_json1_1Body = (input, context) => {
3115
3112
  return {
3116
- ...(input.OversizeHandling !== undefined &&
3117
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }),
3113
+ ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3118
3114
  };
3119
3115
  };
3120
3116
  const serializeAws_json1_1ByteMatchStatement = (input, context) => {
3121
3117
  return {
3122
- ...(input.FieldToMatch !== undefined &&
3123
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3124
- ...(input.PositionalConstraint !== undefined &&
3125
- input.PositionalConstraint !== null && { PositionalConstraint: input.PositionalConstraint }),
3126
- ...(input.SearchString !== undefined &&
3127
- input.SearchString !== null && { SearchString: context.base64Encoder(input.SearchString) }),
3128
- ...(input.TextTransformations !== undefined &&
3129
- input.TextTransformations !== null && {
3118
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3119
+ ...(input.PositionalConstraint != null && { PositionalConstraint: input.PositionalConstraint }),
3120
+ ...(input.SearchString != null && { SearchString: context.base64Encoder(input.SearchString) }),
3121
+ ...(input.TextTransformations != null && {
3130
3122
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
3131
3123
  }),
3132
3124
  };
3133
3125
  };
3134
3126
  const serializeAws_json1_1CaptchaAction = (input, context) => {
3135
3127
  return {
3136
- ...(input.CustomRequestHandling !== undefined &&
3137
- input.CustomRequestHandling !== null && {
3128
+ ...(input.CustomRequestHandling != null && {
3138
3129
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
3139
3130
  }),
3140
3131
  };
3141
3132
  };
3142
3133
  const serializeAws_json1_1CaptchaConfig = (input, context) => {
3143
3134
  return {
3144
- ...(input.ImmunityTimeProperty !== undefined &&
3145
- input.ImmunityTimeProperty !== null && {
3135
+ ...(input.ImmunityTimeProperty != null && {
3146
3136
  ImmunityTimeProperty: serializeAws_json1_1ImmunityTimeProperty(input.ImmunityTimeProperty, context),
3147
3137
  }),
3148
3138
  };
3149
3139
  };
3150
3140
  const serializeAws_json1_1CheckCapacityRequest = (input, context) => {
3151
3141
  return {
3152
- ...(input.Rules !== undefined &&
3153
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3154
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3142
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3143
+ ...(input.Scope != null && { Scope: input.Scope }),
3155
3144
  };
3156
3145
  };
3157
3146
  const serializeAws_json1_1Condition = (input, context) => {
3158
3147
  return {
3159
- ...(input.ActionCondition !== undefined &&
3160
- input.ActionCondition !== null && {
3148
+ ...(input.ActionCondition != null && {
3161
3149
  ActionCondition: serializeAws_json1_1ActionCondition(input.ActionCondition, context),
3162
3150
  }),
3163
- ...(input.LabelNameCondition !== undefined &&
3164
- input.LabelNameCondition !== null && {
3151
+ ...(input.LabelNameCondition != null && {
3165
3152
  LabelNameCondition: serializeAws_json1_1LabelNameCondition(input.LabelNameCondition, context),
3166
3153
  }),
3167
3154
  };
@@ -3178,13 +3165,11 @@ const serializeAws_json1_1Conditions = (input, context) => {
3178
3165
  };
3179
3166
  const serializeAws_json1_1CookieMatchPattern = (input, context) => {
3180
3167
  return {
3181
- ...(input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) }),
3182
- ...(input.ExcludedCookies !== undefined &&
3183
- input.ExcludedCookies !== null && {
3168
+ ...(input.All != null && { All: serializeAws_json1_1All(input.All, context) }),
3169
+ ...(input.ExcludedCookies != null && {
3184
3170
  ExcludedCookies: serializeAws_json1_1CookieNames(input.ExcludedCookies, context),
3185
3171
  }),
3186
- ...(input.IncludedCookies !== undefined &&
3187
- input.IncludedCookies !== null && {
3172
+ ...(input.IncludedCookies != null && {
3188
3173
  IncludedCookies: serializeAws_json1_1CookieNames(input.IncludedCookies, context),
3189
3174
  }),
3190
3175
  };
@@ -3201,19 +3186,16 @@ const serializeAws_json1_1CookieNames = (input, context) => {
3201
3186
  };
3202
3187
  const serializeAws_json1_1Cookies = (input, context) => {
3203
3188
  return {
3204
- ...(input.MatchPattern !== undefined &&
3205
- input.MatchPattern !== null && {
3189
+ ...(input.MatchPattern != null && {
3206
3190
  MatchPattern: serializeAws_json1_1CookieMatchPattern(input.MatchPattern, context),
3207
3191
  }),
3208
- ...(input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope }),
3209
- ...(input.OversizeHandling !== undefined &&
3210
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }),
3192
+ ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
3193
+ ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3211
3194
  };
3212
3195
  };
3213
3196
  const serializeAws_json1_1CountAction = (input, context) => {
3214
3197
  return {
3215
- ...(input.CustomRequestHandling !== undefined &&
3216
- input.CustomRequestHandling !== null && {
3198
+ ...(input.CustomRequestHandling != null && {
3217
3199
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
3218
3200
  }),
3219
3201
  };
@@ -3230,77 +3212,66 @@ const serializeAws_json1_1CountryCodes = (input, context) => {
3230
3212
  };
3231
3213
  const serializeAws_json1_1CreateIPSetRequest = (input, context) => {
3232
3214
  return {
3233
- ...(input.Addresses !== undefined &&
3234
- input.Addresses !== null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) }),
3235
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3236
- ...(input.IPAddressVersion !== undefined &&
3237
- input.IPAddressVersion !== null && { IPAddressVersion: input.IPAddressVersion }),
3238
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3239
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3240
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3215
+ ...(input.Addresses != null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) }),
3216
+ ...(input.Description != null && { Description: input.Description }),
3217
+ ...(input.IPAddressVersion != null && { IPAddressVersion: input.IPAddressVersion }),
3218
+ ...(input.Name != null && { Name: input.Name }),
3219
+ ...(input.Scope != null && { Scope: input.Scope }),
3220
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3241
3221
  };
3242
3222
  };
3243
3223
  const serializeAws_json1_1CreateRegexPatternSetRequest = (input, context) => {
3244
3224
  return {
3245
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3246
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3247
- ...(input.RegularExpressionList !== undefined &&
3248
- input.RegularExpressionList !== null && {
3225
+ ...(input.Description != null && { Description: input.Description }),
3226
+ ...(input.Name != null && { Name: input.Name }),
3227
+ ...(input.RegularExpressionList != null && {
3249
3228
  RegularExpressionList: serializeAws_json1_1RegularExpressionList(input.RegularExpressionList, context),
3250
3229
  }),
3251
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3252
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3230
+ ...(input.Scope != null && { Scope: input.Scope }),
3231
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3253
3232
  };
3254
3233
  };
3255
3234
  const serializeAws_json1_1CreateRuleGroupRequest = (input, context) => {
3256
3235
  return {
3257
- ...(input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity }),
3258
- ...(input.CustomResponseBodies !== undefined &&
3259
- input.CustomResponseBodies !== null && {
3236
+ ...(input.Capacity != null && { Capacity: input.Capacity }),
3237
+ ...(input.CustomResponseBodies != null && {
3260
3238
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
3261
3239
  }),
3262
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3263
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3264
- ...(input.Rules !== undefined &&
3265
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3266
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3267
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3268
- ...(input.VisibilityConfig !== undefined &&
3269
- input.VisibilityConfig !== null && {
3240
+ ...(input.Description != null && { Description: input.Description }),
3241
+ ...(input.Name != null && { Name: input.Name }),
3242
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3243
+ ...(input.Scope != null && { Scope: input.Scope }),
3244
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3245
+ ...(input.VisibilityConfig != null && {
3270
3246
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
3271
3247
  }),
3272
3248
  };
3273
3249
  };
3274
3250
  const serializeAws_json1_1CreateWebACLRequest = (input, context) => {
3275
3251
  return {
3276
- ...(input.CaptchaConfig !== undefined &&
3277
- input.CaptchaConfig !== null && {
3252
+ ...(input.CaptchaConfig != null && {
3278
3253
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
3279
3254
  }),
3280
- ...(input.CustomResponseBodies !== undefined &&
3281
- input.CustomResponseBodies !== null && {
3255
+ ...(input.CustomResponseBodies != null && {
3282
3256
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
3283
3257
  }),
3284
- ...(input.DefaultAction !== undefined &&
3285
- input.DefaultAction !== null && {
3258
+ ...(input.DefaultAction != null && {
3286
3259
  DefaultAction: serializeAws_json1_1DefaultAction(input.DefaultAction, context),
3287
3260
  }),
3288
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3289
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3290
- ...(input.Rules !== undefined &&
3291
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3292
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3293
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3294
- ...(input.VisibilityConfig !== undefined &&
3295
- input.VisibilityConfig !== null && {
3261
+ ...(input.Description != null && { Description: input.Description }),
3262
+ ...(input.Name != null && { Name: input.Name }),
3263
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3264
+ ...(input.Scope != null && { Scope: input.Scope }),
3265
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3266
+ ...(input.VisibilityConfig != null && {
3296
3267
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
3297
3268
  }),
3298
3269
  };
3299
3270
  };
3300
3271
  const serializeAws_json1_1CustomHTTPHeader = (input, context) => {
3301
3272
  return {
3302
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3303
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
3273
+ ...(input.Name != null && { Name: input.Name }),
3274
+ ...(input.Value != null && { Value: input.Value }),
3304
3275
  };
3305
3276
  };
3306
3277
  const serializeAws_json1_1CustomHTTPHeaders = (input, context) => {
@@ -3315,19 +3286,16 @@ const serializeAws_json1_1CustomHTTPHeaders = (input, context) => {
3315
3286
  };
3316
3287
  const serializeAws_json1_1CustomRequestHandling = (input, context) => {
3317
3288
  return {
3318
- ...(input.InsertHeaders !== undefined &&
3319
- input.InsertHeaders !== null && {
3289
+ ...(input.InsertHeaders != null && {
3320
3290
  InsertHeaders: serializeAws_json1_1CustomHTTPHeaders(input.InsertHeaders, context),
3321
3291
  }),
3322
3292
  };
3323
3293
  };
3324
3294
  const serializeAws_json1_1CustomResponse = (input, context) => {
3325
3295
  return {
3326
- ...(input.CustomResponseBodyKey !== undefined &&
3327
- input.CustomResponseBodyKey !== null && { CustomResponseBodyKey: input.CustomResponseBodyKey }),
3328
- ...(input.ResponseCode !== undefined && input.ResponseCode !== null && { ResponseCode: input.ResponseCode }),
3329
- ...(input.ResponseHeaders !== undefined &&
3330
- input.ResponseHeaders !== null && {
3296
+ ...(input.CustomResponseBodyKey != null && { CustomResponseBodyKey: input.CustomResponseBodyKey }),
3297
+ ...(input.ResponseCode != null && { ResponseCode: input.ResponseCode }),
3298
+ ...(input.ResponseHeaders != null && {
3331
3299
  ResponseHeaders: serializeAws_json1_1CustomHTTPHeaders(input.ResponseHeaders, context),
3332
3300
  }),
3333
3301
  };
@@ -3345,83 +3313,80 @@ const serializeAws_json1_1CustomResponseBodies = (input, context) => {
3345
3313
  };
3346
3314
  const serializeAws_json1_1CustomResponseBody = (input, context) => {
3347
3315
  return {
3348
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
3349
- ...(input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }),
3316
+ ...(input.Content != null && { Content: input.Content }),
3317
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
3350
3318
  };
3351
3319
  };
3352
3320
  const serializeAws_json1_1DefaultAction = (input, context) => {
3353
3321
  return {
3354
- ...(input.Allow !== undefined &&
3355
- input.Allow !== null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
3356
- ...(input.Block !== undefined &&
3357
- input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
3322
+ ...(input.Allow != null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
3323
+ ...(input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
3358
3324
  };
3359
3325
  };
3360
3326
  const serializeAws_json1_1DeleteFirewallManagerRuleGroupsRequest = (input, context) => {
3361
3327
  return {
3362
- ...(input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn }),
3363
- ...(input.WebACLLockToken !== undefined &&
3364
- input.WebACLLockToken !== null && { WebACLLockToken: input.WebACLLockToken }),
3328
+ ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
3329
+ ...(input.WebACLLockToken != null && { WebACLLockToken: input.WebACLLockToken }),
3365
3330
  };
3366
3331
  };
3367
3332
  const serializeAws_json1_1DeleteIPSetRequest = (input, context) => {
3368
3333
  return {
3369
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3370
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3371
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3372
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3334
+ ...(input.Id != null && { Id: input.Id }),
3335
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3336
+ ...(input.Name != null && { Name: input.Name }),
3337
+ ...(input.Scope != null && { Scope: input.Scope }),
3373
3338
  };
3374
3339
  };
3375
3340
  const serializeAws_json1_1DeleteLoggingConfigurationRequest = (input, context) => {
3376
3341
  return {
3377
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3342
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3378
3343
  };
3379
3344
  };
3380
3345
  const serializeAws_json1_1DeletePermissionPolicyRequest = (input, context) => {
3381
3346
  return {
3382
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3347
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3383
3348
  };
3384
3349
  };
3385
3350
  const serializeAws_json1_1DeleteRegexPatternSetRequest = (input, context) => {
3386
3351
  return {
3387
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3388
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3389
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3390
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3352
+ ...(input.Id != null && { Id: input.Id }),
3353
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3354
+ ...(input.Name != null && { Name: input.Name }),
3355
+ ...(input.Scope != null && { Scope: input.Scope }),
3391
3356
  };
3392
3357
  };
3393
3358
  const serializeAws_json1_1DeleteRuleGroupRequest = (input, context) => {
3394
3359
  return {
3395
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3396
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3397
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3398
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3360
+ ...(input.Id != null && { Id: input.Id }),
3361
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3362
+ ...(input.Name != null && { Name: input.Name }),
3363
+ ...(input.Scope != null && { Scope: input.Scope }),
3399
3364
  };
3400
3365
  };
3401
3366
  const serializeAws_json1_1DeleteWebACLRequest = (input, context) => {
3402
3367
  return {
3403
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3404
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3405
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3406
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3368
+ ...(input.Id != null && { Id: input.Id }),
3369
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3370
+ ...(input.Name != null && { Name: input.Name }),
3371
+ ...(input.Scope != null && { Scope: input.Scope }),
3407
3372
  };
3408
3373
  };
3409
3374
  const serializeAws_json1_1DescribeManagedRuleGroupRequest = (input, context) => {
3410
3375
  return {
3411
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3412
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3413
- ...(input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }),
3414
- ...(input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }),
3376
+ ...(input.Name != null && { Name: input.Name }),
3377
+ ...(input.Scope != null && { Scope: input.Scope }),
3378
+ ...(input.VendorName != null && { VendorName: input.VendorName }),
3379
+ ...(input.VersionName != null && { VersionName: input.VersionName }),
3415
3380
  };
3416
3381
  };
3417
3382
  const serializeAws_json1_1DisassociateWebACLRequest = (input, context) => {
3418
3383
  return {
3419
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3384
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3420
3385
  };
3421
3386
  };
3422
3387
  const serializeAws_json1_1ExcludedRule = (input, context) => {
3423
3388
  return {
3424
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3389
+ ...(input.Name != null && { Name: input.Name }),
3425
3390
  };
3426
3391
  };
3427
3392
  const serializeAws_json1_1ExcludedRules = (input, context) => {
@@ -3436,37 +3401,27 @@ const serializeAws_json1_1ExcludedRules = (input, context) => {
3436
3401
  };
3437
3402
  const serializeAws_json1_1FieldToMatch = (input, context) => {
3438
3403
  return {
3439
- ...(input.AllQueryArguments !== undefined &&
3440
- input.AllQueryArguments !== null && {
3404
+ ...(input.AllQueryArguments != null && {
3441
3405
  AllQueryArguments: serializeAws_json1_1AllQueryArguments(input.AllQueryArguments, context),
3442
3406
  }),
3443
- ...(input.Body !== undefined && input.Body !== null && { Body: serializeAws_json1_1Body(input.Body, context) }),
3444
- ...(input.Cookies !== undefined &&
3445
- input.Cookies !== null && { Cookies: serializeAws_json1_1Cookies(input.Cookies, context) }),
3446
- ...(input.Headers !== undefined &&
3447
- input.Headers !== null && { Headers: serializeAws_json1_1Headers(input.Headers, context) }),
3448
- ...(input.JsonBody !== undefined &&
3449
- input.JsonBody !== null && { JsonBody: serializeAws_json1_1JsonBody(input.JsonBody, context) }),
3450
- ...(input.Method !== undefined &&
3451
- input.Method !== null && { Method: serializeAws_json1_1Method(input.Method, context) }),
3452
- ...(input.QueryString !== undefined &&
3453
- input.QueryString !== null && { QueryString: serializeAws_json1_1QueryString(input.QueryString, context) }),
3454
- ...(input.SingleHeader !== undefined &&
3455
- input.SingleHeader !== null && { SingleHeader: serializeAws_json1_1SingleHeader(input.SingleHeader, context) }),
3456
- ...(input.SingleQueryArgument !== undefined &&
3457
- input.SingleQueryArgument !== null && {
3407
+ ...(input.Body != null && { Body: serializeAws_json1_1Body(input.Body, context) }),
3408
+ ...(input.Cookies != null && { Cookies: serializeAws_json1_1Cookies(input.Cookies, context) }),
3409
+ ...(input.Headers != null && { Headers: serializeAws_json1_1Headers(input.Headers, context) }),
3410
+ ...(input.JsonBody != null && { JsonBody: serializeAws_json1_1JsonBody(input.JsonBody, context) }),
3411
+ ...(input.Method != null && { Method: serializeAws_json1_1Method(input.Method, context) }),
3412
+ ...(input.QueryString != null && { QueryString: serializeAws_json1_1QueryString(input.QueryString, context) }),
3413
+ ...(input.SingleHeader != null && { SingleHeader: serializeAws_json1_1SingleHeader(input.SingleHeader, context) }),
3414
+ ...(input.SingleQueryArgument != null && {
3458
3415
  SingleQueryArgument: serializeAws_json1_1SingleQueryArgument(input.SingleQueryArgument, context),
3459
3416
  }),
3460
- ...(input.UriPath !== undefined &&
3461
- input.UriPath !== null && { UriPath: serializeAws_json1_1UriPath(input.UriPath, context) }),
3417
+ ...(input.UriPath != null && { UriPath: serializeAws_json1_1UriPath(input.UriPath, context) }),
3462
3418
  };
3463
3419
  };
3464
3420
  const serializeAws_json1_1Filter = (input, context) => {
3465
3421
  return {
3466
- ...(input.Behavior !== undefined && input.Behavior !== null && { Behavior: input.Behavior }),
3467
- ...(input.Conditions !== undefined &&
3468
- input.Conditions !== null && { Conditions: serializeAws_json1_1Conditions(input.Conditions, context) }),
3469
- ...(input.Requirement !== undefined && input.Requirement !== null && { Requirement: input.Requirement }),
3422
+ ...(input.Behavior != null && { Behavior: input.Behavior }),
3423
+ ...(input.Conditions != null && { Conditions: serializeAws_json1_1Conditions(input.Conditions, context) }),
3424
+ ...(input.Requirement != null && { Requirement: input.Requirement }),
3470
3425
  };
3471
3426
  };
3472
3427
  const serializeAws_json1_1Filters = (input, context) => {
@@ -3481,116 +3436,106 @@ const serializeAws_json1_1Filters = (input, context) => {
3481
3436
  };
3482
3437
  const serializeAws_json1_1ForwardedIPConfig = (input, context) => {
3483
3438
  return {
3484
- ...(input.FallbackBehavior !== undefined &&
3485
- input.FallbackBehavior !== null && { FallbackBehavior: input.FallbackBehavior }),
3486
- ...(input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName }),
3439
+ ...(input.FallbackBehavior != null && { FallbackBehavior: input.FallbackBehavior }),
3440
+ ...(input.HeaderName != null && { HeaderName: input.HeaderName }),
3487
3441
  };
3488
3442
  };
3489
3443
  const serializeAws_json1_1GenerateMobileSdkReleaseUrlRequest = (input, context) => {
3490
3444
  return {
3491
- ...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
3492
- ...(input.ReleaseVersion !== undefined &&
3493
- input.ReleaseVersion !== null && { ReleaseVersion: input.ReleaseVersion }),
3445
+ ...(input.Platform != null && { Platform: input.Platform }),
3446
+ ...(input.ReleaseVersion != null && { ReleaseVersion: input.ReleaseVersion }),
3494
3447
  };
3495
3448
  };
3496
3449
  const serializeAws_json1_1GeoMatchStatement = (input, context) => {
3497
3450
  return {
3498
- ...(input.CountryCodes !== undefined &&
3499
- input.CountryCodes !== null && { CountryCodes: serializeAws_json1_1CountryCodes(input.CountryCodes, context) }),
3500
- ...(input.ForwardedIPConfig !== undefined &&
3501
- input.ForwardedIPConfig !== null && {
3451
+ ...(input.CountryCodes != null && { CountryCodes: serializeAws_json1_1CountryCodes(input.CountryCodes, context) }),
3452
+ ...(input.ForwardedIPConfig != null && {
3502
3453
  ForwardedIPConfig: serializeAws_json1_1ForwardedIPConfig(input.ForwardedIPConfig, context),
3503
3454
  }),
3504
3455
  };
3505
3456
  };
3506
3457
  const serializeAws_json1_1GetIPSetRequest = (input, context) => {
3507
3458
  return {
3508
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3509
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3510
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3459
+ ...(input.Id != null && { Id: input.Id }),
3460
+ ...(input.Name != null && { Name: input.Name }),
3461
+ ...(input.Scope != null && { Scope: input.Scope }),
3511
3462
  };
3512
3463
  };
3513
3464
  const serializeAws_json1_1GetLoggingConfigurationRequest = (input, context) => {
3514
3465
  return {
3515
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3466
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3516
3467
  };
3517
3468
  };
3518
3469
  const serializeAws_json1_1GetManagedRuleSetRequest = (input, context) => {
3519
3470
  return {
3520
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3521
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3522
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3471
+ ...(input.Id != null && { Id: input.Id }),
3472
+ ...(input.Name != null && { Name: input.Name }),
3473
+ ...(input.Scope != null && { Scope: input.Scope }),
3523
3474
  };
3524
3475
  };
3525
3476
  const serializeAws_json1_1GetMobileSdkReleaseRequest = (input, context) => {
3526
3477
  return {
3527
- ...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
3528
- ...(input.ReleaseVersion !== undefined &&
3529
- input.ReleaseVersion !== null && { ReleaseVersion: input.ReleaseVersion }),
3478
+ ...(input.Platform != null && { Platform: input.Platform }),
3479
+ ...(input.ReleaseVersion != null && { ReleaseVersion: input.ReleaseVersion }),
3530
3480
  };
3531
3481
  };
3532
3482
  const serializeAws_json1_1GetPermissionPolicyRequest = (input, context) => {
3533
3483
  return {
3534
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3484
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3535
3485
  };
3536
3486
  };
3537
3487
  const serializeAws_json1_1GetRateBasedStatementManagedKeysRequest = (input, context) => {
3538
3488
  return {
3539
- ...(input.RuleGroupRuleName !== undefined &&
3540
- input.RuleGroupRuleName !== null && { RuleGroupRuleName: input.RuleGroupRuleName }),
3541
- ...(input.RuleName !== undefined && input.RuleName !== null && { RuleName: input.RuleName }),
3542
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3543
- ...(input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId }),
3544
- ...(input.WebACLName !== undefined && input.WebACLName !== null && { WebACLName: input.WebACLName }),
3489
+ ...(input.RuleGroupRuleName != null && { RuleGroupRuleName: input.RuleGroupRuleName }),
3490
+ ...(input.RuleName != null && { RuleName: input.RuleName }),
3491
+ ...(input.Scope != null && { Scope: input.Scope }),
3492
+ ...(input.WebACLId != null && { WebACLId: input.WebACLId }),
3493
+ ...(input.WebACLName != null && { WebACLName: input.WebACLName }),
3545
3494
  };
3546
3495
  };
3547
3496
  const serializeAws_json1_1GetRegexPatternSetRequest = (input, context) => {
3548
3497
  return {
3549
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3550
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3551
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3498
+ ...(input.Id != null && { Id: input.Id }),
3499
+ ...(input.Name != null && { Name: input.Name }),
3500
+ ...(input.Scope != null && { Scope: input.Scope }),
3552
3501
  };
3553
3502
  };
3554
3503
  const serializeAws_json1_1GetRuleGroupRequest = (input, context) => {
3555
3504
  return {
3556
- ...(input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN }),
3557
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3558
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3559
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3505
+ ...(input.ARN != null && { ARN: input.ARN }),
3506
+ ...(input.Id != null && { Id: input.Id }),
3507
+ ...(input.Name != null && { Name: input.Name }),
3508
+ ...(input.Scope != null && { Scope: input.Scope }),
3560
3509
  };
3561
3510
  };
3562
3511
  const serializeAws_json1_1GetSampledRequestsRequest = (input, context) => {
3563
3512
  return {
3564
- ...(input.MaxItems !== undefined && input.MaxItems !== null && { MaxItems: input.MaxItems }),
3565
- ...(input.RuleMetricName !== undefined &&
3566
- input.RuleMetricName !== null && { RuleMetricName: input.RuleMetricName }),
3567
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3568
- ...(input.TimeWindow !== undefined &&
3569
- input.TimeWindow !== null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) }),
3570
- ...(input.WebAclArn !== undefined && input.WebAclArn !== null && { WebAclArn: input.WebAclArn }),
3513
+ ...(input.MaxItems != null && { MaxItems: input.MaxItems }),
3514
+ ...(input.RuleMetricName != null && { RuleMetricName: input.RuleMetricName }),
3515
+ ...(input.Scope != null && { Scope: input.Scope }),
3516
+ ...(input.TimeWindow != null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) }),
3517
+ ...(input.WebAclArn != null && { WebAclArn: input.WebAclArn }),
3571
3518
  };
3572
3519
  };
3573
3520
  const serializeAws_json1_1GetWebACLForResourceRequest = (input, context) => {
3574
3521
  return {
3575
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3522
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3576
3523
  };
3577
3524
  };
3578
3525
  const serializeAws_json1_1GetWebACLRequest = (input, context) => {
3579
3526
  return {
3580
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3581
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3582
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3527
+ ...(input.Id != null && { Id: input.Id }),
3528
+ ...(input.Name != null && { Name: input.Name }),
3529
+ ...(input.Scope != null && { Scope: input.Scope }),
3583
3530
  };
3584
3531
  };
3585
3532
  const serializeAws_json1_1HeaderMatchPattern = (input, context) => {
3586
3533
  return {
3587
- ...(input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) }),
3588
- ...(input.ExcludedHeaders !== undefined &&
3589
- input.ExcludedHeaders !== null && {
3534
+ ...(input.All != null && { All: serializeAws_json1_1All(input.All, context) }),
3535
+ ...(input.ExcludedHeaders != null && {
3590
3536
  ExcludedHeaders: serializeAws_json1_1HeaderNames(input.ExcludedHeaders, context),
3591
3537
  }),
3592
- ...(input.IncludedHeaders !== undefined &&
3593
- input.IncludedHeaders !== null && {
3538
+ ...(input.IncludedHeaders != null && {
3594
3539
  IncludedHeaders: serializeAws_json1_1HeaderNames(input.IncludedHeaders, context),
3595
3540
  }),
3596
3541
  };
@@ -3607,18 +3552,16 @@ const serializeAws_json1_1HeaderNames = (input, context) => {
3607
3552
  };
3608
3553
  const serializeAws_json1_1Headers = (input, context) => {
3609
3554
  return {
3610
- ...(input.MatchPattern !== undefined &&
3611
- input.MatchPattern !== null && {
3555
+ ...(input.MatchPattern != null && {
3612
3556
  MatchPattern: serializeAws_json1_1HeaderMatchPattern(input.MatchPattern, context),
3613
3557
  }),
3614
- ...(input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope }),
3615
- ...(input.OversizeHandling !== undefined &&
3616
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }),
3558
+ ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
3559
+ ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3617
3560
  };
3618
3561
  };
3619
3562
  const serializeAws_json1_1ImmunityTimeProperty = (input, context) => {
3620
3563
  return {
3621
- ...(input.ImmunityTime !== undefined && input.ImmunityTime !== null && { ImmunityTime: input.ImmunityTime }),
3564
+ ...(input.ImmunityTime != null && { ImmunityTime: input.ImmunityTime }),
3622
3565
  };
3623
3566
  };
3624
3567
  const serializeAws_json1_1IPAddresses = (input, context) => {
@@ -3633,39 +3576,33 @@ const serializeAws_json1_1IPAddresses = (input, context) => {
3633
3576
  };
3634
3577
  const serializeAws_json1_1IPSetForwardedIPConfig = (input, context) => {
3635
3578
  return {
3636
- ...(input.FallbackBehavior !== undefined &&
3637
- input.FallbackBehavior !== null && { FallbackBehavior: input.FallbackBehavior }),
3638
- ...(input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName }),
3639
- ...(input.Position !== undefined && input.Position !== null && { Position: input.Position }),
3579
+ ...(input.FallbackBehavior != null && { FallbackBehavior: input.FallbackBehavior }),
3580
+ ...(input.HeaderName != null && { HeaderName: input.HeaderName }),
3581
+ ...(input.Position != null && { Position: input.Position }),
3640
3582
  };
3641
3583
  };
3642
3584
  const serializeAws_json1_1IPSetReferenceStatement = (input, context) => {
3643
3585
  return {
3644
- ...(input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN }),
3645
- ...(input.IPSetForwardedIPConfig !== undefined &&
3646
- input.IPSetForwardedIPConfig !== null && {
3586
+ ...(input.ARN != null && { ARN: input.ARN }),
3587
+ ...(input.IPSetForwardedIPConfig != null && {
3647
3588
  IPSetForwardedIPConfig: serializeAws_json1_1IPSetForwardedIPConfig(input.IPSetForwardedIPConfig, context),
3648
3589
  }),
3649
3590
  };
3650
3591
  };
3651
3592
  const serializeAws_json1_1JsonBody = (input, context) => {
3652
3593
  return {
3653
- ...(input.InvalidFallbackBehavior !== undefined &&
3654
- input.InvalidFallbackBehavior !== null && { InvalidFallbackBehavior: input.InvalidFallbackBehavior }),
3655
- ...(input.MatchPattern !== undefined &&
3656
- input.MatchPattern !== null && {
3594
+ ...(input.InvalidFallbackBehavior != null && { InvalidFallbackBehavior: input.InvalidFallbackBehavior }),
3595
+ ...(input.MatchPattern != null && {
3657
3596
  MatchPattern: serializeAws_json1_1JsonMatchPattern(input.MatchPattern, context),
3658
3597
  }),
3659
- ...(input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope }),
3660
- ...(input.OversizeHandling !== undefined &&
3661
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }),
3598
+ ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
3599
+ ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3662
3600
  };
3663
3601
  };
3664
3602
  const serializeAws_json1_1JsonMatchPattern = (input, context) => {
3665
3603
  return {
3666
- ...(input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) }),
3667
- ...(input.IncludedPaths !== undefined &&
3668
- input.IncludedPaths !== null && {
3604
+ ...(input.All != null && { All: serializeAws_json1_1All(input.All, context) }),
3605
+ ...(input.IncludedPaths != null && {
3669
3606
  IncludedPaths: serializeAws_json1_1JsonPointerPaths(input.IncludedPaths, context),
3670
3607
  }),
3671
3608
  };
@@ -3682,18 +3619,18 @@ const serializeAws_json1_1JsonPointerPaths = (input, context) => {
3682
3619
  };
3683
3620
  const serializeAws_json1_1Label = (input, context) => {
3684
3621
  return {
3685
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3622
+ ...(input.Name != null && { Name: input.Name }),
3686
3623
  };
3687
3624
  };
3688
3625
  const serializeAws_json1_1LabelMatchStatement = (input, context) => {
3689
3626
  return {
3690
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
3691
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3627
+ ...(input.Key != null && { Key: input.Key }),
3628
+ ...(input.Scope != null && { Scope: input.Scope }),
3692
3629
  };
3693
3630
  };
3694
3631
  const serializeAws_json1_1LabelNameCondition = (input, context) => {
3695
3632
  return {
3696
- ...(input.LabelName !== undefined && input.LabelName !== null && { LabelName: input.LabelName }),
3633
+ ...(input.LabelName != null && { LabelName: input.LabelName }),
3697
3634
  };
3698
3635
  };
3699
3636
  const serializeAws_json1_1Labels = (input, context) => {
@@ -3708,80 +3645,80 @@ const serializeAws_json1_1Labels = (input, context) => {
3708
3645
  };
3709
3646
  const serializeAws_json1_1ListAvailableManagedRuleGroupsRequest = (input, context) => {
3710
3647
  return {
3711
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3712
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3713
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3648
+ ...(input.Limit != null && { Limit: input.Limit }),
3649
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3650
+ ...(input.Scope != null && { Scope: input.Scope }),
3714
3651
  };
3715
3652
  };
3716
3653
  const serializeAws_json1_1ListAvailableManagedRuleGroupVersionsRequest = (input, context) => {
3717
3654
  return {
3718
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3719
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3720
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3721
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3722
- ...(input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }),
3655
+ ...(input.Limit != null && { Limit: input.Limit }),
3656
+ ...(input.Name != null && { Name: input.Name }),
3657
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3658
+ ...(input.Scope != null && { Scope: input.Scope }),
3659
+ ...(input.VendorName != null && { VendorName: input.VendorName }),
3723
3660
  };
3724
3661
  };
3725
3662
  const serializeAws_json1_1ListIPSetsRequest = (input, context) => {
3726
3663
  return {
3727
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3728
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3729
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3664
+ ...(input.Limit != null && { Limit: input.Limit }),
3665
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3666
+ ...(input.Scope != null && { Scope: input.Scope }),
3730
3667
  };
3731
3668
  };
3732
3669
  const serializeAws_json1_1ListLoggingConfigurationsRequest = (input, context) => {
3733
3670
  return {
3734
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3735
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3736
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3671
+ ...(input.Limit != null && { Limit: input.Limit }),
3672
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3673
+ ...(input.Scope != null && { Scope: input.Scope }),
3737
3674
  };
3738
3675
  };
3739
3676
  const serializeAws_json1_1ListManagedRuleSetsRequest = (input, context) => {
3740
3677
  return {
3741
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3742
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3743
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3678
+ ...(input.Limit != null && { Limit: input.Limit }),
3679
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3680
+ ...(input.Scope != null && { Scope: input.Scope }),
3744
3681
  };
3745
3682
  };
3746
3683
  const serializeAws_json1_1ListMobileSdkReleasesRequest = (input, context) => {
3747
3684
  return {
3748
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3749
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3750
- ...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
3685
+ ...(input.Limit != null && { Limit: input.Limit }),
3686
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3687
+ ...(input.Platform != null && { Platform: input.Platform }),
3751
3688
  };
3752
3689
  };
3753
3690
  const serializeAws_json1_1ListRegexPatternSetsRequest = (input, context) => {
3754
3691
  return {
3755
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3756
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3757
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3692
+ ...(input.Limit != null && { Limit: input.Limit }),
3693
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3694
+ ...(input.Scope != null && { Scope: input.Scope }),
3758
3695
  };
3759
3696
  };
3760
3697
  const serializeAws_json1_1ListResourcesForWebACLRequest = (input, context) => {
3761
3698
  return {
3762
- ...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
3763
- ...(input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn }),
3699
+ ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
3700
+ ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
3764
3701
  };
3765
3702
  };
3766
3703
  const serializeAws_json1_1ListRuleGroupsRequest = (input, context) => {
3767
3704
  return {
3768
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3769
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3770
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3705
+ ...(input.Limit != null && { Limit: input.Limit }),
3706
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3707
+ ...(input.Scope != null && { Scope: input.Scope }),
3771
3708
  };
3772
3709
  };
3773
3710
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
3774
3711
  return {
3775
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3776
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3777
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
3712
+ ...(input.Limit != null && { Limit: input.Limit }),
3713
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3714
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3778
3715
  };
3779
3716
  };
3780
3717
  const serializeAws_json1_1ListWebACLsRequest = (input, context) => {
3781
3718
  return {
3782
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3783
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3784
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3719
+ ...(input.Limit != null && { Limit: input.Limit }),
3720
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3721
+ ...(input.Scope != null && { Scope: input.Scope }),
3785
3722
  };
3786
3723
  };
3787
3724
  const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
@@ -3796,41 +3733,33 @@ const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
3796
3733
  };
3797
3734
  const serializeAws_json1_1LoggingConfiguration = (input, context) => {
3798
3735
  return {
3799
- ...(input.LogDestinationConfigs !== undefined &&
3800
- input.LogDestinationConfigs !== null && {
3736
+ ...(input.LogDestinationConfigs != null && {
3801
3737
  LogDestinationConfigs: serializeAws_json1_1LogDestinationConfigs(input.LogDestinationConfigs, context),
3802
3738
  }),
3803
- ...(input.LoggingFilter !== undefined &&
3804
- input.LoggingFilter !== null && {
3739
+ ...(input.LoggingFilter != null && {
3805
3740
  LoggingFilter: serializeAws_json1_1LoggingFilter(input.LoggingFilter, context),
3806
3741
  }),
3807
- ...(input.ManagedByFirewallManager !== undefined &&
3808
- input.ManagedByFirewallManager !== null && { ManagedByFirewallManager: input.ManagedByFirewallManager }),
3809
- ...(input.RedactedFields !== undefined &&
3810
- input.RedactedFields !== null && {
3742
+ ...(input.ManagedByFirewallManager != null && { ManagedByFirewallManager: input.ManagedByFirewallManager }),
3743
+ ...(input.RedactedFields != null && {
3811
3744
  RedactedFields: serializeAws_json1_1RedactedFields(input.RedactedFields, context),
3812
3745
  }),
3813
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3746
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3814
3747
  };
3815
3748
  };
3816
3749
  const serializeAws_json1_1LoggingFilter = (input, context) => {
3817
3750
  return {
3818
- ...(input.DefaultBehavior !== undefined &&
3819
- input.DefaultBehavior !== null && { DefaultBehavior: input.DefaultBehavior }),
3820
- ...(input.Filters !== undefined &&
3821
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
3751
+ ...(input.DefaultBehavior != null && { DefaultBehavior: input.DefaultBehavior }),
3752
+ ...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
3822
3753
  };
3823
3754
  };
3824
3755
  const serializeAws_json1_1ManagedRuleGroupConfig = (input, context) => {
3825
3756
  return {
3826
- ...(input.LoginPath !== undefined && input.LoginPath !== null && { LoginPath: input.LoginPath }),
3827
- ...(input.PasswordField !== undefined &&
3828
- input.PasswordField !== null && {
3757
+ ...(input.LoginPath != null && { LoginPath: input.LoginPath }),
3758
+ ...(input.PasswordField != null && {
3829
3759
  PasswordField: serializeAws_json1_1PasswordField(input.PasswordField, context),
3830
3760
  }),
3831
- ...(input.PayloadType !== undefined && input.PayloadType !== null && { PayloadType: input.PayloadType }),
3832
- ...(input.UsernameField !== undefined &&
3833
- input.UsernameField !== null && {
3761
+ ...(input.PayloadType != null && { PayloadType: input.PayloadType }),
3762
+ ...(input.UsernameField != null && {
3834
3763
  UsernameField: serializeAws_json1_1UsernameField(input.UsernameField, context),
3835
3764
  }),
3836
3765
  };
@@ -3847,21 +3776,18 @@ const serializeAws_json1_1ManagedRuleGroupConfigs = (input, context) => {
3847
3776
  };
3848
3777
  const serializeAws_json1_1ManagedRuleGroupStatement = (input, context) => {
3849
3778
  return {
3850
- ...(input.ExcludedRules !== undefined &&
3851
- input.ExcludedRules !== null && {
3779
+ ...(input.ExcludedRules != null && {
3852
3780
  ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
3853
3781
  }),
3854
- ...(input.ManagedRuleGroupConfigs !== undefined &&
3855
- input.ManagedRuleGroupConfigs !== null && {
3782
+ ...(input.ManagedRuleGroupConfigs != null && {
3856
3783
  ManagedRuleGroupConfigs: serializeAws_json1_1ManagedRuleGroupConfigs(input.ManagedRuleGroupConfigs, context),
3857
3784
  }),
3858
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3859
- ...(input.ScopeDownStatement !== undefined &&
3860
- input.ScopeDownStatement !== null && {
3785
+ ...(input.Name != null && { Name: input.Name }),
3786
+ ...(input.ScopeDownStatement != null && {
3861
3787
  ScopeDownStatement: serializeAws_json1_1Statement(input.ScopeDownStatement, context),
3862
3788
  }),
3863
- ...(input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }),
3864
- ...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
3789
+ ...(input.VendorName != null && { VendorName: input.VendorName }),
3790
+ ...(input.Version != null && { Version: input.Version }),
3865
3791
  };
3866
3792
  };
3867
3793
  const serializeAws_json1_1Method = (input, context) => {
@@ -3872,55 +3798,48 @@ const serializeAws_json1_1NoneAction = (input, context) => {
3872
3798
  };
3873
3799
  const serializeAws_json1_1NotStatement = (input, context) => {
3874
3800
  return {
3875
- ...(input.Statement !== undefined &&
3876
- input.Statement !== null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }),
3801
+ ...(input.Statement != null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }),
3877
3802
  };
3878
3803
  };
3879
3804
  const serializeAws_json1_1OrStatement = (input, context) => {
3880
3805
  return {
3881
- ...(input.Statements !== undefined &&
3882
- input.Statements !== null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }),
3806
+ ...(input.Statements != null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }),
3883
3807
  };
3884
3808
  };
3885
3809
  const serializeAws_json1_1OverrideAction = (input, context) => {
3886
3810
  return {
3887
- ...(input.Count !== undefined &&
3888
- input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
3889
- ...(input.None !== undefined &&
3890
- input.None !== null && { None: serializeAws_json1_1NoneAction(input.None, context) }),
3811
+ ...(input.Count != null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
3812
+ ...(input.None != null && { None: serializeAws_json1_1NoneAction(input.None, context) }),
3891
3813
  };
3892
3814
  };
3893
3815
  const serializeAws_json1_1PasswordField = (input, context) => {
3894
3816
  return {
3895
- ...(input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }),
3817
+ ...(input.Identifier != null && { Identifier: input.Identifier }),
3896
3818
  };
3897
3819
  };
3898
3820
  const serializeAws_json1_1PutLoggingConfigurationRequest = (input, context) => {
3899
3821
  return {
3900
- ...(input.LoggingConfiguration !== undefined &&
3901
- input.LoggingConfiguration !== null && {
3822
+ ...(input.LoggingConfiguration != null && {
3902
3823
  LoggingConfiguration: serializeAws_json1_1LoggingConfiguration(input.LoggingConfiguration, context),
3903
3824
  }),
3904
3825
  };
3905
3826
  };
3906
3827
  const serializeAws_json1_1PutManagedRuleSetVersionsRequest = (input, context) => {
3907
3828
  return {
3908
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3909
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3910
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3911
- ...(input.RecommendedVersion !== undefined &&
3912
- input.RecommendedVersion !== null && { RecommendedVersion: input.RecommendedVersion }),
3913
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3914
- ...(input.VersionsToPublish !== undefined &&
3915
- input.VersionsToPublish !== null && {
3829
+ ...(input.Id != null && { Id: input.Id }),
3830
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3831
+ ...(input.Name != null && { Name: input.Name }),
3832
+ ...(input.RecommendedVersion != null && { RecommendedVersion: input.RecommendedVersion }),
3833
+ ...(input.Scope != null && { Scope: input.Scope }),
3834
+ ...(input.VersionsToPublish != null && {
3916
3835
  VersionsToPublish: serializeAws_json1_1VersionsToPublish(input.VersionsToPublish, context),
3917
3836
  }),
3918
3837
  };
3919
3838
  };
3920
3839
  const serializeAws_json1_1PutPermissionPolicyRequest = (input, context) => {
3921
3840
  return {
3922
- ...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
3923
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3841
+ ...(input.Policy != null && { Policy: input.Policy }),
3842
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3924
3843
  };
3925
3844
  };
3926
3845
  const serializeAws_json1_1QueryString = (input, context) => {
@@ -3928,15 +3847,12 @@ const serializeAws_json1_1QueryString = (input, context) => {
3928
3847
  };
3929
3848
  const serializeAws_json1_1RateBasedStatement = (input, context) => {
3930
3849
  return {
3931
- ...(input.AggregateKeyType !== undefined &&
3932
- input.AggregateKeyType !== null && { AggregateKeyType: input.AggregateKeyType }),
3933
- ...(input.ForwardedIPConfig !== undefined &&
3934
- input.ForwardedIPConfig !== null && {
3850
+ ...(input.AggregateKeyType != null && { AggregateKeyType: input.AggregateKeyType }),
3851
+ ...(input.ForwardedIPConfig != null && {
3935
3852
  ForwardedIPConfig: serializeAws_json1_1ForwardedIPConfig(input.ForwardedIPConfig, context),
3936
3853
  }),
3937
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3938
- ...(input.ScopeDownStatement !== undefined &&
3939
- input.ScopeDownStatement !== null && {
3854
+ ...(input.Limit != null && { Limit: input.Limit }),
3855
+ ...(input.ScopeDownStatement != null && {
3940
3856
  ScopeDownStatement: serializeAws_json1_1Statement(input.ScopeDownStatement, context),
3941
3857
  }),
3942
3858
  };
@@ -3953,27 +3869,23 @@ const serializeAws_json1_1RedactedFields = (input, context) => {
3953
3869
  };
3954
3870
  const serializeAws_json1_1Regex = (input, context) => {
3955
3871
  return {
3956
- ...(input.RegexString !== undefined && input.RegexString !== null && { RegexString: input.RegexString }),
3872
+ ...(input.RegexString != null && { RegexString: input.RegexString }),
3957
3873
  };
3958
3874
  };
3959
3875
  const serializeAws_json1_1RegexMatchStatement = (input, context) => {
3960
3876
  return {
3961
- ...(input.FieldToMatch !== undefined &&
3962
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3963
- ...(input.RegexString !== undefined && input.RegexString !== null && { RegexString: input.RegexString }),
3964
- ...(input.TextTransformations !== undefined &&
3965
- input.TextTransformations !== null && {
3877
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3878
+ ...(input.RegexString != null && { RegexString: input.RegexString }),
3879
+ ...(input.TextTransformations != null && {
3966
3880
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
3967
3881
  }),
3968
3882
  };
3969
3883
  };
3970
3884
  const serializeAws_json1_1RegexPatternSetReferenceStatement = (input, context) => {
3971
3885
  return {
3972
- ...(input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN }),
3973
- ...(input.FieldToMatch !== undefined &&
3974
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3975
- ...(input.TextTransformations !== undefined &&
3976
- input.TextTransformations !== null && {
3886
+ ...(input.ARN != null && { ARN: input.ARN }),
3887
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3888
+ ...(input.TextTransformations != null && {
3977
3889
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
3978
3890
  }),
3979
3891
  };
@@ -3990,45 +3902,34 @@ const serializeAws_json1_1RegularExpressionList = (input, context) => {
3990
3902
  };
3991
3903
  const serializeAws_json1_1Rule = (input, context) => {
3992
3904
  return {
3993
- ...(input.Action !== undefined &&
3994
- input.Action !== null && { Action: serializeAws_json1_1RuleAction(input.Action, context) }),
3995
- ...(input.CaptchaConfig !== undefined &&
3996
- input.CaptchaConfig !== null && {
3905
+ ...(input.Action != null && { Action: serializeAws_json1_1RuleAction(input.Action, context) }),
3906
+ ...(input.CaptchaConfig != null && {
3997
3907
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
3998
3908
  }),
3999
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4000
- ...(input.OverrideAction !== undefined &&
4001
- input.OverrideAction !== null && {
3909
+ ...(input.Name != null && { Name: input.Name }),
3910
+ ...(input.OverrideAction != null && {
4002
3911
  OverrideAction: serializeAws_json1_1OverrideAction(input.OverrideAction, context),
4003
3912
  }),
4004
- ...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
4005
- ...(input.RuleLabels !== undefined &&
4006
- input.RuleLabels !== null && { RuleLabels: serializeAws_json1_1Labels(input.RuleLabels, context) }),
4007
- ...(input.Statement !== undefined &&
4008
- input.Statement !== null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }),
4009
- ...(input.VisibilityConfig !== undefined &&
4010
- input.VisibilityConfig !== null && {
3913
+ ...(input.Priority != null && { Priority: input.Priority }),
3914
+ ...(input.RuleLabels != null && { RuleLabels: serializeAws_json1_1Labels(input.RuleLabels, context) }),
3915
+ ...(input.Statement != null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }),
3916
+ ...(input.VisibilityConfig != null && {
4011
3917
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4012
3918
  }),
4013
3919
  };
4014
3920
  };
4015
3921
  const serializeAws_json1_1RuleAction = (input, context) => {
4016
3922
  return {
4017
- ...(input.Allow !== undefined &&
4018
- input.Allow !== null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
4019
- ...(input.Block !== undefined &&
4020
- input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
4021
- ...(input.Captcha !== undefined &&
4022
- input.Captcha !== null && { Captcha: serializeAws_json1_1CaptchaAction(input.Captcha, context) }),
4023
- ...(input.Count !== undefined &&
4024
- input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
3923
+ ...(input.Allow != null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
3924
+ ...(input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
3925
+ ...(input.Captcha != null && { Captcha: serializeAws_json1_1CaptchaAction(input.Captcha, context) }),
3926
+ ...(input.Count != null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
4025
3927
  };
4026
3928
  };
4027
3929
  const serializeAws_json1_1RuleGroupReferenceStatement = (input, context) => {
4028
3930
  return {
4029
- ...(input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN }),
4030
- ...(input.ExcludedRules !== undefined &&
4031
- input.ExcludedRules !== null && {
3931
+ ...(input.ARN != null && { ARN: input.ARN }),
3932
+ ...(input.ExcludedRules != null && {
4032
3933
  ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
4033
3934
  }),
4034
3935
  };
@@ -4045,91 +3946,71 @@ const serializeAws_json1_1Rules = (input, context) => {
4045
3946
  };
4046
3947
  const serializeAws_json1_1SingleHeader = (input, context) => {
4047
3948
  return {
4048
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3949
+ ...(input.Name != null && { Name: input.Name }),
4049
3950
  };
4050
3951
  };
4051
3952
  const serializeAws_json1_1SingleQueryArgument = (input, context) => {
4052
3953
  return {
4053
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3954
+ ...(input.Name != null && { Name: input.Name }),
4054
3955
  };
4055
3956
  };
4056
3957
  const serializeAws_json1_1SizeConstraintStatement = (input, context) => {
4057
3958
  return {
4058
- ...(input.ComparisonOperator !== undefined &&
4059
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
4060
- ...(input.FieldToMatch !== undefined &&
4061
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
4062
- ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
4063
- ...(input.TextTransformations !== undefined &&
4064
- input.TextTransformations !== null && {
3959
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3960
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3961
+ ...(input.Size != null && { Size: input.Size }),
3962
+ ...(input.TextTransformations != null && {
4065
3963
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4066
3964
  }),
4067
3965
  };
4068
3966
  };
4069
3967
  const serializeAws_json1_1SqliMatchStatement = (input, context) => {
4070
3968
  return {
4071
- ...(input.FieldToMatch !== undefined &&
4072
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
4073
- ...(input.TextTransformations !== undefined &&
4074
- input.TextTransformations !== null && {
3969
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3970
+ ...(input.TextTransformations != null && {
4075
3971
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4076
3972
  }),
4077
3973
  };
4078
3974
  };
4079
3975
  const serializeAws_json1_1Statement = (input, context) => {
4080
3976
  return {
4081
- ...(input.AndStatement !== undefined &&
4082
- input.AndStatement !== null && { AndStatement: serializeAws_json1_1AndStatement(input.AndStatement, context) }),
4083
- ...(input.ByteMatchStatement !== undefined &&
4084
- input.ByteMatchStatement !== null && {
3977
+ ...(input.AndStatement != null && { AndStatement: serializeAws_json1_1AndStatement(input.AndStatement, context) }),
3978
+ ...(input.ByteMatchStatement != null && {
4085
3979
  ByteMatchStatement: serializeAws_json1_1ByteMatchStatement(input.ByteMatchStatement, context),
4086
3980
  }),
4087
- ...(input.GeoMatchStatement !== undefined &&
4088
- input.GeoMatchStatement !== null && {
3981
+ ...(input.GeoMatchStatement != null && {
4089
3982
  GeoMatchStatement: serializeAws_json1_1GeoMatchStatement(input.GeoMatchStatement, context),
4090
3983
  }),
4091
- ...(input.IPSetReferenceStatement !== undefined &&
4092
- input.IPSetReferenceStatement !== null && {
3984
+ ...(input.IPSetReferenceStatement != null && {
4093
3985
  IPSetReferenceStatement: serializeAws_json1_1IPSetReferenceStatement(input.IPSetReferenceStatement, context),
4094
3986
  }),
4095
- ...(input.LabelMatchStatement !== undefined &&
4096
- input.LabelMatchStatement !== null && {
3987
+ ...(input.LabelMatchStatement != null && {
4097
3988
  LabelMatchStatement: serializeAws_json1_1LabelMatchStatement(input.LabelMatchStatement, context),
4098
3989
  }),
4099
- ...(input.ManagedRuleGroupStatement !== undefined &&
4100
- input.ManagedRuleGroupStatement !== null && {
3990
+ ...(input.ManagedRuleGroupStatement != null && {
4101
3991
  ManagedRuleGroupStatement: serializeAws_json1_1ManagedRuleGroupStatement(input.ManagedRuleGroupStatement, context),
4102
3992
  }),
4103
- ...(input.NotStatement !== undefined &&
4104
- input.NotStatement !== null && { NotStatement: serializeAws_json1_1NotStatement(input.NotStatement, context) }),
4105
- ...(input.OrStatement !== undefined &&
4106
- input.OrStatement !== null && { OrStatement: serializeAws_json1_1OrStatement(input.OrStatement, context) }),
4107
- ...(input.RateBasedStatement !== undefined &&
4108
- input.RateBasedStatement !== null && {
3993
+ ...(input.NotStatement != null && { NotStatement: serializeAws_json1_1NotStatement(input.NotStatement, context) }),
3994
+ ...(input.OrStatement != null && { OrStatement: serializeAws_json1_1OrStatement(input.OrStatement, context) }),
3995
+ ...(input.RateBasedStatement != null && {
4109
3996
  RateBasedStatement: serializeAws_json1_1RateBasedStatement(input.RateBasedStatement, context),
4110
3997
  }),
4111
- ...(input.RegexMatchStatement !== undefined &&
4112
- input.RegexMatchStatement !== null && {
3998
+ ...(input.RegexMatchStatement != null && {
4113
3999
  RegexMatchStatement: serializeAws_json1_1RegexMatchStatement(input.RegexMatchStatement, context),
4114
4000
  }),
4115
- ...(input.RegexPatternSetReferenceStatement !== undefined &&
4116
- input.RegexPatternSetReferenceStatement !== null && {
4001
+ ...(input.RegexPatternSetReferenceStatement != null && {
4117
4002
  RegexPatternSetReferenceStatement: serializeAws_json1_1RegexPatternSetReferenceStatement(input.RegexPatternSetReferenceStatement, context),
4118
4003
  }),
4119
- ...(input.RuleGroupReferenceStatement !== undefined &&
4120
- input.RuleGroupReferenceStatement !== null && {
4004
+ ...(input.RuleGroupReferenceStatement != null && {
4121
4005
  RuleGroupReferenceStatement: serializeAws_json1_1RuleGroupReferenceStatement(input.RuleGroupReferenceStatement, context),
4122
4006
  }),
4123
- ...(input.SizeConstraintStatement !== undefined &&
4124
- input.SizeConstraintStatement !== null && {
4007
+ ...(input.SizeConstraintStatement != null && {
4125
4008
  SizeConstraintStatement: serializeAws_json1_1SizeConstraintStatement(input.SizeConstraintStatement, context),
4126
4009
  }),
4127
- ...(input.SqliMatchStatement !== undefined &&
4128
- input.SqliMatchStatement !== null && {
4010
+ ...(input.SqliMatchStatement != null && {
4129
4011
  SqliMatchStatement: serializeAws_json1_1SqliMatchStatement(input.SqliMatchStatement, context),
4130
4012
  }),
4131
- ...(input.XssMatchStatement !== undefined &&
4132
- input.XssMatchStatement !== null && {
4013
+ ...(input.XssMatchStatement != null && {
4133
4014
  XssMatchStatement: serializeAws_json1_1XssMatchStatement(input.XssMatchStatement, context),
4134
4015
  }),
4135
4016
  };
@@ -4146,8 +4027,8 @@ const serializeAws_json1_1Statements = (input, context) => {
4146
4027
  };
4147
4028
  const serializeAws_json1_1Tag = (input, context) => {
4148
4029
  return {
4149
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
4150
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4030
+ ...(input.Key != null && { Key: input.Key }),
4031
+ ...(input.Value != null && { Value: input.Value }),
4151
4032
  };
4152
4033
  };
4153
4034
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -4172,14 +4053,14 @@ const serializeAws_json1_1TagList = (input, context) => {
4172
4053
  };
4173
4054
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
4174
4055
  return {
4175
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
4176
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
4056
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
4057
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
4177
4058
  };
4178
4059
  };
4179
4060
  const serializeAws_json1_1TextTransformation = (input, context) => {
4180
4061
  return {
4181
- ...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
4182
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4062
+ ...(input.Priority != null && { Priority: input.Priority }),
4063
+ ...(input.Type != null && { Type: input.Type }),
4183
4064
  };
4184
4065
  };
4185
4066
  const serializeAws_json1_1TextTransformations = (input, context) => {
@@ -4194,97 +4075,82 @@ const serializeAws_json1_1TextTransformations = (input, context) => {
4194
4075
  };
4195
4076
  const serializeAws_json1_1TimeWindow = (input, context) => {
4196
4077
  return {
4197
- ...(input.EndTime !== undefined &&
4198
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
4199
- ...(input.StartTime !== undefined &&
4200
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
4078
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
4079
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
4201
4080
  };
4202
4081
  };
4203
4082
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
4204
4083
  return {
4205
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
4206
- ...(input.TagKeys !== undefined &&
4207
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
4084
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
4085
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
4208
4086
  };
4209
4087
  };
4210
4088
  const serializeAws_json1_1UpdateIPSetRequest = (input, context) => {
4211
4089
  return {
4212
- ...(input.Addresses !== undefined &&
4213
- input.Addresses !== null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) }),
4214
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4215
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4216
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4217
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4218
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4090
+ ...(input.Addresses != null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) }),
4091
+ ...(input.Description != null && { Description: input.Description }),
4092
+ ...(input.Id != null && { Id: input.Id }),
4093
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4094
+ ...(input.Name != null && { Name: input.Name }),
4095
+ ...(input.Scope != null && { Scope: input.Scope }),
4219
4096
  };
4220
4097
  };
4221
4098
  const serializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateRequest = (input, context) => {
4222
4099
  return {
4223
- ...(input.ExpiryTimestamp !== undefined &&
4224
- input.ExpiryTimestamp !== null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) }),
4225
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4226
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4227
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4228
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4229
- ...(input.VersionToExpire !== undefined &&
4230
- input.VersionToExpire !== null && { VersionToExpire: input.VersionToExpire }),
4100
+ ...(input.ExpiryTimestamp != null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) }),
4101
+ ...(input.Id != null && { Id: input.Id }),
4102
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4103
+ ...(input.Name != null && { Name: input.Name }),
4104
+ ...(input.Scope != null && { Scope: input.Scope }),
4105
+ ...(input.VersionToExpire != null && { VersionToExpire: input.VersionToExpire }),
4231
4106
  };
4232
4107
  };
4233
4108
  const serializeAws_json1_1UpdateRegexPatternSetRequest = (input, context) => {
4234
4109
  return {
4235
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4236
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4237
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4238
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4239
- ...(input.RegularExpressionList !== undefined &&
4240
- input.RegularExpressionList !== null && {
4110
+ ...(input.Description != null && { Description: input.Description }),
4111
+ ...(input.Id != null && { Id: input.Id }),
4112
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4113
+ ...(input.Name != null && { Name: input.Name }),
4114
+ ...(input.RegularExpressionList != null && {
4241
4115
  RegularExpressionList: serializeAws_json1_1RegularExpressionList(input.RegularExpressionList, context),
4242
4116
  }),
4243
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4117
+ ...(input.Scope != null && { Scope: input.Scope }),
4244
4118
  };
4245
4119
  };
4246
4120
  const serializeAws_json1_1UpdateRuleGroupRequest = (input, context) => {
4247
4121
  return {
4248
- ...(input.CustomResponseBodies !== undefined &&
4249
- input.CustomResponseBodies !== null && {
4122
+ ...(input.CustomResponseBodies != null && {
4250
4123
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
4251
4124
  }),
4252
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4253
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4254
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4255
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4256
- ...(input.Rules !== undefined &&
4257
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
4258
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4259
- ...(input.VisibilityConfig !== undefined &&
4260
- input.VisibilityConfig !== null && {
4125
+ ...(input.Description != null && { Description: input.Description }),
4126
+ ...(input.Id != null && { Id: input.Id }),
4127
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4128
+ ...(input.Name != null && { Name: input.Name }),
4129
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
4130
+ ...(input.Scope != null && { Scope: input.Scope }),
4131
+ ...(input.VisibilityConfig != null && {
4261
4132
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4262
4133
  }),
4263
4134
  };
4264
4135
  };
4265
4136
  const serializeAws_json1_1UpdateWebACLRequest = (input, context) => {
4266
4137
  return {
4267
- ...(input.CaptchaConfig !== undefined &&
4268
- input.CaptchaConfig !== null && {
4138
+ ...(input.CaptchaConfig != null && {
4269
4139
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
4270
4140
  }),
4271
- ...(input.CustomResponseBodies !== undefined &&
4272
- input.CustomResponseBodies !== null && {
4141
+ ...(input.CustomResponseBodies != null && {
4273
4142
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
4274
4143
  }),
4275
- ...(input.DefaultAction !== undefined &&
4276
- input.DefaultAction !== null && {
4144
+ ...(input.DefaultAction != null && {
4277
4145
  DefaultAction: serializeAws_json1_1DefaultAction(input.DefaultAction, context),
4278
4146
  }),
4279
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4280
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4281
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4282
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4283
- ...(input.Rules !== undefined &&
4284
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
4285
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4286
- ...(input.VisibilityConfig !== undefined &&
4287
- input.VisibilityConfig !== null && {
4147
+ ...(input.Description != null && { Description: input.Description }),
4148
+ ...(input.Id != null && { Id: input.Id }),
4149
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4150
+ ...(input.Name != null && { Name: input.Name }),
4151
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
4152
+ ...(input.Scope != null && { Scope: input.Scope }),
4153
+ ...(input.VisibilityConfig != null && {
4288
4154
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4289
4155
  }),
4290
4156
  };
@@ -4294,7 +4160,7 @@ const serializeAws_json1_1UriPath = (input, context) => {
4294
4160
  };
4295
4161
  const serializeAws_json1_1UsernameField = (input, context) => {
4296
4162
  return {
4297
- ...(input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }),
4163
+ ...(input.Identifier != null && { Identifier: input.Identifier }),
4298
4164
  };
4299
4165
  };
4300
4166
  const serializeAws_json1_1VersionsToPublish = (input, context) => {
@@ -4310,27 +4176,21 @@ const serializeAws_json1_1VersionsToPublish = (input, context) => {
4310
4176
  };
4311
4177
  const serializeAws_json1_1VersionToPublish = (input, context) => {
4312
4178
  return {
4313
- ...(input.AssociatedRuleGroupArn !== undefined &&
4314
- input.AssociatedRuleGroupArn !== null && { AssociatedRuleGroupArn: input.AssociatedRuleGroupArn }),
4315
- ...(input.ForecastedLifetime !== undefined &&
4316
- input.ForecastedLifetime !== null && { ForecastedLifetime: input.ForecastedLifetime }),
4179
+ ...(input.AssociatedRuleGroupArn != null && { AssociatedRuleGroupArn: input.AssociatedRuleGroupArn }),
4180
+ ...(input.ForecastedLifetime != null && { ForecastedLifetime: input.ForecastedLifetime }),
4317
4181
  };
4318
4182
  };
4319
4183
  const serializeAws_json1_1VisibilityConfig = (input, context) => {
4320
4184
  return {
4321
- ...(input.CloudWatchMetricsEnabled !== undefined &&
4322
- input.CloudWatchMetricsEnabled !== null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled }),
4323
- ...(input.MetricName !== undefined && input.MetricName !== null && { MetricName: input.MetricName }),
4324
- ...(input.SampledRequestsEnabled !== undefined &&
4325
- input.SampledRequestsEnabled !== null && { SampledRequestsEnabled: input.SampledRequestsEnabled }),
4185
+ ...(input.CloudWatchMetricsEnabled != null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled }),
4186
+ ...(input.MetricName != null && { MetricName: input.MetricName }),
4187
+ ...(input.SampledRequestsEnabled != null && { SampledRequestsEnabled: input.SampledRequestsEnabled }),
4326
4188
  };
4327
4189
  };
4328
4190
  const serializeAws_json1_1XssMatchStatement = (input, context) => {
4329
4191
  return {
4330
- ...(input.FieldToMatch !== undefined &&
4331
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
4332
- ...(input.TextTransformations !== undefined &&
4333
- input.TextTransformations !== null && {
4192
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
4193
+ ...(input.TextTransformations != null && {
4334
4194
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4335
4195
  }),
4336
4196
  };
@@ -4345,7 +4205,7 @@ const deserializeAws_json1_1All = (output, context) => {
4345
4205
  };
4346
4206
  const deserializeAws_json1_1AllowAction = (output, context) => {
4347
4207
  return {
4348
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4208
+ CustomRequestHandling: output.CustomRequestHandling != null
4349
4209
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4350
4210
  : undefined,
4351
4211
  };
@@ -4355,9 +4215,7 @@ const deserializeAws_json1_1AllQueryArguments = (output, context) => {
4355
4215
  };
4356
4216
  const deserializeAws_json1_1AndStatement = (output, context) => {
4357
4217
  return {
4358
- Statements: output.Statements !== undefined && output.Statements !== null
4359
- ? deserializeAws_json1_1Statements(output.Statements, context)
4360
- : undefined,
4218
+ Statements: output.Statements != null ? deserializeAws_json1_1Statements(output.Statements, context) : undefined,
4361
4219
  };
4362
4220
  };
4363
4221
  const deserializeAws_json1_1AssociateWebACLResponse = (output, context) => {
@@ -4365,9 +4223,7 @@ const deserializeAws_json1_1AssociateWebACLResponse = (output, context) => {
4365
4223
  };
4366
4224
  const deserializeAws_json1_1BlockAction = (output, context) => {
4367
4225
  return {
4368
- CustomResponse: output.CustomResponse !== undefined && output.CustomResponse !== null
4369
- ? deserializeAws_json1_1CustomResponse(output.CustomResponse, context)
4370
- : undefined,
4226
+ CustomResponse: output.CustomResponse != null ? deserializeAws_json1_1CustomResponse(output.CustomResponse, context) : undefined,
4371
4227
  };
4372
4228
  };
4373
4229
  const deserializeAws_json1_1Body = (output, context) => {
@@ -4377,28 +4233,24 @@ const deserializeAws_json1_1Body = (output, context) => {
4377
4233
  };
4378
4234
  const deserializeAws_json1_1ByteMatchStatement = (output, context) => {
4379
4235
  return {
4380
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
4381
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
4382
- : undefined,
4236
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
4383
4237
  PositionalConstraint: (0, smithy_client_1.expectString)(output.PositionalConstraint),
4384
- SearchString: output.SearchString !== undefined && output.SearchString !== null
4385
- ? context.base64Decoder(output.SearchString)
4386
- : undefined,
4387
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
4238
+ SearchString: output.SearchString != null ? context.base64Decoder(output.SearchString) : undefined,
4239
+ TextTransformations: output.TextTransformations != null
4388
4240
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
4389
4241
  : undefined,
4390
4242
  };
4391
4243
  };
4392
4244
  const deserializeAws_json1_1CaptchaAction = (output, context) => {
4393
4245
  return {
4394
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4246
+ CustomRequestHandling: output.CustomRequestHandling != null
4395
4247
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4396
4248
  : undefined,
4397
4249
  };
4398
4250
  };
4399
4251
  const deserializeAws_json1_1CaptchaConfig = (output, context) => {
4400
4252
  return {
4401
- ImmunityTimeProperty: output.ImmunityTimeProperty !== undefined && output.ImmunityTimeProperty !== null
4253
+ ImmunityTimeProperty: output.ImmunityTimeProperty != null
4402
4254
  ? deserializeAws_json1_1ImmunityTimeProperty(output.ImmunityTimeProperty, context)
4403
4255
  : undefined,
4404
4256
  };
@@ -4417,10 +4269,10 @@ const deserializeAws_json1_1CheckCapacityResponse = (output, context) => {
4417
4269
  };
4418
4270
  const deserializeAws_json1_1Condition = (output, context) => {
4419
4271
  return {
4420
- ActionCondition: output.ActionCondition !== undefined && output.ActionCondition !== null
4272
+ ActionCondition: output.ActionCondition != null
4421
4273
  ? deserializeAws_json1_1ActionCondition(output.ActionCondition, context)
4422
4274
  : undefined,
4423
- LabelNameCondition: output.LabelNameCondition !== undefined && output.LabelNameCondition !== null
4275
+ LabelNameCondition: output.LabelNameCondition != null
4424
4276
  ? deserializeAws_json1_1LabelNameCondition(output.LabelNameCondition, context)
4425
4277
  : undefined,
4426
4278
  };
@@ -4438,13 +4290,9 @@ const deserializeAws_json1_1Conditions = (output, context) => {
4438
4290
  };
4439
4291
  const deserializeAws_json1_1CookieMatchPattern = (output, context) => {
4440
4292
  return {
4441
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
4442
- ExcludedCookies: output.ExcludedCookies !== undefined && output.ExcludedCookies !== null
4443
- ? deserializeAws_json1_1CookieNames(output.ExcludedCookies, context)
4444
- : undefined,
4445
- IncludedCookies: output.IncludedCookies !== undefined && output.IncludedCookies !== null
4446
- ? deserializeAws_json1_1CookieNames(output.IncludedCookies, context)
4447
- : undefined,
4293
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
4294
+ ExcludedCookies: output.ExcludedCookies != null ? deserializeAws_json1_1CookieNames(output.ExcludedCookies, context) : undefined,
4295
+ IncludedCookies: output.IncludedCookies != null ? deserializeAws_json1_1CookieNames(output.IncludedCookies, context) : undefined,
4448
4296
  };
4449
4297
  };
4450
4298
  const deserializeAws_json1_1CookieNames = (output, context) => {
@@ -4460,16 +4308,14 @@ const deserializeAws_json1_1CookieNames = (output, context) => {
4460
4308
  };
4461
4309
  const deserializeAws_json1_1Cookies = (output, context) => {
4462
4310
  return {
4463
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
4464
- ? deserializeAws_json1_1CookieMatchPattern(output.MatchPattern, context)
4465
- : undefined,
4311
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1CookieMatchPattern(output.MatchPattern, context) : undefined,
4466
4312
  MatchScope: (0, smithy_client_1.expectString)(output.MatchScope),
4467
4313
  OversizeHandling: (0, smithy_client_1.expectString)(output.OversizeHandling),
4468
4314
  };
4469
4315
  };
4470
4316
  const deserializeAws_json1_1CountAction = (output, context) => {
4471
4317
  return {
4472
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4318
+ CustomRequestHandling: output.CustomRequestHandling != null
4473
4319
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4474
4320
  : undefined,
4475
4321
  };
@@ -4487,30 +4333,22 @@ const deserializeAws_json1_1CountryCodes = (output, context) => {
4487
4333
  };
4488
4334
  const deserializeAws_json1_1CreateIPSetResponse = (output, context) => {
4489
4335
  return {
4490
- Summary: output.Summary !== undefined && output.Summary !== null
4491
- ? deserializeAws_json1_1IPSetSummary(output.Summary, context)
4492
- : undefined,
4336
+ Summary: output.Summary != null ? deserializeAws_json1_1IPSetSummary(output.Summary, context) : undefined,
4493
4337
  };
4494
4338
  };
4495
4339
  const deserializeAws_json1_1CreateRegexPatternSetResponse = (output, context) => {
4496
4340
  return {
4497
- Summary: output.Summary !== undefined && output.Summary !== null
4498
- ? deserializeAws_json1_1RegexPatternSetSummary(output.Summary, context)
4499
- : undefined,
4341
+ Summary: output.Summary != null ? deserializeAws_json1_1RegexPatternSetSummary(output.Summary, context) : undefined,
4500
4342
  };
4501
4343
  };
4502
4344
  const deserializeAws_json1_1CreateRuleGroupResponse = (output, context) => {
4503
4345
  return {
4504
- Summary: output.Summary !== undefined && output.Summary !== null
4505
- ? deserializeAws_json1_1RuleGroupSummary(output.Summary, context)
4506
- : undefined,
4346
+ Summary: output.Summary != null ? deserializeAws_json1_1RuleGroupSummary(output.Summary, context) : undefined,
4507
4347
  };
4508
4348
  };
4509
4349
  const deserializeAws_json1_1CreateWebACLResponse = (output, context) => {
4510
4350
  return {
4511
- Summary: output.Summary !== undefined && output.Summary !== null
4512
- ? deserializeAws_json1_1WebACLSummary(output.Summary, context)
4513
- : undefined,
4351
+ Summary: output.Summary != null ? deserializeAws_json1_1WebACLSummary(output.Summary, context) : undefined,
4514
4352
  };
4515
4353
  };
4516
4354
  const deserializeAws_json1_1CustomHTTPHeader = (output, context) => {
@@ -4532,16 +4370,14 @@ const deserializeAws_json1_1CustomHTTPHeaders = (output, context) => {
4532
4370
  };
4533
4371
  const deserializeAws_json1_1CustomRequestHandling = (output, context) => {
4534
4372
  return {
4535
- InsertHeaders: output.InsertHeaders !== undefined && output.InsertHeaders !== null
4536
- ? deserializeAws_json1_1CustomHTTPHeaders(output.InsertHeaders, context)
4537
- : undefined,
4373
+ InsertHeaders: output.InsertHeaders != null ? deserializeAws_json1_1CustomHTTPHeaders(output.InsertHeaders, context) : undefined,
4538
4374
  };
4539
4375
  };
4540
4376
  const deserializeAws_json1_1CustomResponse = (output, context) => {
4541
4377
  return {
4542
4378
  CustomResponseBodyKey: (0, smithy_client_1.expectString)(output.CustomResponseBodyKey),
4543
4379
  ResponseCode: (0, smithy_client_1.expectInt32)(output.ResponseCode),
4544
- ResponseHeaders: output.ResponseHeaders !== undefined && output.ResponseHeaders !== null
4380
+ ResponseHeaders: output.ResponseHeaders != null
4545
4381
  ? deserializeAws_json1_1CustomHTTPHeaders(output.ResponseHeaders, context)
4546
4382
  : undefined,
4547
4383
  };
@@ -4565,12 +4401,8 @@ const deserializeAws_json1_1CustomResponseBody = (output, context) => {
4565
4401
  };
4566
4402
  const deserializeAws_json1_1DefaultAction = (output, context) => {
4567
4403
  return {
4568
- Allow: output.Allow !== undefined && output.Allow !== null
4569
- ? deserializeAws_json1_1AllowAction(output.Allow, context)
4570
- : undefined,
4571
- Block: output.Block !== undefined && output.Block !== null
4572
- ? deserializeAws_json1_1BlockAction(output.Block, context)
4573
- : undefined,
4404
+ Allow: output.Allow != null ? deserializeAws_json1_1AllowAction(output.Allow, context) : undefined,
4405
+ Block: output.Block != null ? deserializeAws_json1_1BlockAction(output.Block, context) : undefined,
4574
4406
  };
4575
4407
  };
4576
4408
  const deserializeAws_json1_1DeleteFirewallManagerRuleGroupsResponse = (output, context) => {
@@ -4598,17 +4430,13 @@ const deserializeAws_json1_1DeleteWebACLResponse = (output, context) => {
4598
4430
  };
4599
4431
  const deserializeAws_json1_1DescribeManagedRuleGroupResponse = (output, context) => {
4600
4432
  return {
4601
- AvailableLabels: output.AvailableLabels !== undefined && output.AvailableLabels !== null
4433
+ AvailableLabels: output.AvailableLabels != null
4602
4434
  ? deserializeAws_json1_1LabelSummaries(output.AvailableLabels, context)
4603
4435
  : undefined,
4604
4436
  Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
4605
- ConsumedLabels: output.ConsumedLabels !== undefined && output.ConsumedLabels !== null
4606
- ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context)
4607
- : undefined,
4437
+ ConsumedLabels: output.ConsumedLabels != null ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context) : undefined,
4608
4438
  LabelNamespace: (0, smithy_client_1.expectString)(output.LabelNamespace),
4609
- Rules: output.Rules !== undefined && output.Rules !== null
4610
- ? deserializeAws_json1_1RuleSummaries(output.Rules, context)
4611
- : undefined,
4439
+ Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
4612
4440
  SnsTopicArn: (0, smithy_client_1.expectString)(output.SnsTopicArn),
4613
4441
  VersionName: (0, smithy_client_1.expectString)(output.VersionName),
4614
4442
  };
@@ -4634,42 +4462,26 @@ const deserializeAws_json1_1ExcludedRules = (output, context) => {
4634
4462
  };
4635
4463
  const deserializeAws_json1_1FieldToMatch = (output, context) => {
4636
4464
  return {
4637
- AllQueryArguments: output.AllQueryArguments !== undefined && output.AllQueryArguments !== null
4465
+ AllQueryArguments: output.AllQueryArguments != null
4638
4466
  ? deserializeAws_json1_1AllQueryArguments(output.AllQueryArguments, context)
4639
4467
  : undefined,
4640
- Body: output.Body !== undefined && output.Body !== null ? deserializeAws_json1_1Body(output.Body, context) : undefined,
4641
- Cookies: output.Cookies !== undefined && output.Cookies !== null
4642
- ? deserializeAws_json1_1Cookies(output.Cookies, context)
4643
- : undefined,
4644
- Headers: output.Headers !== undefined && output.Headers !== null
4645
- ? deserializeAws_json1_1Headers(output.Headers, context)
4646
- : undefined,
4647
- JsonBody: output.JsonBody !== undefined && output.JsonBody !== null
4648
- ? deserializeAws_json1_1JsonBody(output.JsonBody, context)
4649
- : undefined,
4650
- Method: output.Method !== undefined && output.Method !== null
4651
- ? deserializeAws_json1_1Method(output.Method, context)
4652
- : undefined,
4653
- QueryString: output.QueryString !== undefined && output.QueryString !== null
4654
- ? deserializeAws_json1_1QueryString(output.QueryString, context)
4655
- : undefined,
4656
- SingleHeader: output.SingleHeader !== undefined && output.SingleHeader !== null
4657
- ? deserializeAws_json1_1SingleHeader(output.SingleHeader, context)
4658
- : undefined,
4659
- SingleQueryArgument: output.SingleQueryArgument !== undefined && output.SingleQueryArgument !== null
4468
+ Body: output.Body != null ? deserializeAws_json1_1Body(output.Body, context) : undefined,
4469
+ Cookies: output.Cookies != null ? deserializeAws_json1_1Cookies(output.Cookies, context) : undefined,
4470
+ Headers: output.Headers != null ? deserializeAws_json1_1Headers(output.Headers, context) : undefined,
4471
+ JsonBody: output.JsonBody != null ? deserializeAws_json1_1JsonBody(output.JsonBody, context) : undefined,
4472
+ Method: output.Method != null ? deserializeAws_json1_1Method(output.Method, context) : undefined,
4473
+ QueryString: output.QueryString != null ? deserializeAws_json1_1QueryString(output.QueryString, context) : undefined,
4474
+ SingleHeader: output.SingleHeader != null ? deserializeAws_json1_1SingleHeader(output.SingleHeader, context) : undefined,
4475
+ SingleQueryArgument: output.SingleQueryArgument != null
4660
4476
  ? deserializeAws_json1_1SingleQueryArgument(output.SingleQueryArgument, context)
4661
4477
  : undefined,
4662
- UriPath: output.UriPath !== undefined && output.UriPath !== null
4663
- ? deserializeAws_json1_1UriPath(output.UriPath, context)
4664
- : undefined,
4478
+ UriPath: output.UriPath != null ? deserializeAws_json1_1UriPath(output.UriPath, context) : undefined,
4665
4479
  };
4666
4480
  };
4667
4481
  const deserializeAws_json1_1Filter = (output, context) => {
4668
4482
  return {
4669
4483
  Behavior: (0, smithy_client_1.expectString)(output.Behavior),
4670
- Conditions: output.Conditions !== undefined && output.Conditions !== null
4671
- ? deserializeAws_json1_1Conditions(output.Conditions, context)
4672
- : undefined,
4484
+ Conditions: output.Conditions != null ? deserializeAws_json1_1Conditions(output.Conditions, context) : undefined,
4673
4485
  Requirement: (0, smithy_client_1.expectString)(output.Requirement),
4674
4486
  };
4675
4487
  };
@@ -4686,15 +4498,13 @@ const deserializeAws_json1_1Filters = (output, context) => {
4686
4498
  };
4687
4499
  const deserializeAws_json1_1FirewallManagerRuleGroup = (output, context) => {
4688
4500
  return {
4689
- FirewallManagerStatement: output.FirewallManagerStatement !== undefined && output.FirewallManagerStatement !== null
4501
+ FirewallManagerStatement: output.FirewallManagerStatement != null
4690
4502
  ? deserializeAws_json1_1FirewallManagerStatement(output.FirewallManagerStatement, context)
4691
4503
  : undefined,
4692
4504
  Name: (0, smithy_client_1.expectString)(output.Name),
4693
- OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
4694
- ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context)
4695
- : undefined,
4505
+ OverrideAction: output.OverrideAction != null ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context) : undefined,
4696
4506
  Priority: (0, smithy_client_1.expectInt32)(output.Priority),
4697
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
4507
+ VisibilityConfig: output.VisibilityConfig != null
4698
4508
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
4699
4509
  : undefined,
4700
4510
  };
@@ -4712,10 +4522,10 @@ const deserializeAws_json1_1FirewallManagerRuleGroups = (output, context) => {
4712
4522
  };
4713
4523
  const deserializeAws_json1_1FirewallManagerStatement = (output, context) => {
4714
4524
  return {
4715
- ManagedRuleGroupStatement: output.ManagedRuleGroupStatement !== undefined && output.ManagedRuleGroupStatement !== null
4525
+ ManagedRuleGroupStatement: output.ManagedRuleGroupStatement != null
4716
4526
  ? deserializeAws_json1_1ManagedRuleGroupStatement(output.ManagedRuleGroupStatement, context)
4717
4527
  : undefined,
4718
- RuleGroupReferenceStatement: output.RuleGroupReferenceStatement !== undefined && output.RuleGroupReferenceStatement !== null
4528
+ RuleGroupReferenceStatement: output.RuleGroupReferenceStatement != null
4719
4529
  ? deserializeAws_json1_1RuleGroupReferenceStatement(output.RuleGroupReferenceStatement, context)
4720
4530
  : undefined,
4721
4531
  };
@@ -4733,25 +4543,21 @@ const deserializeAws_json1_1GenerateMobileSdkReleaseUrlResponse = (output, conte
4733
4543
  };
4734
4544
  const deserializeAws_json1_1GeoMatchStatement = (output, context) => {
4735
4545
  return {
4736
- CountryCodes: output.CountryCodes !== undefined && output.CountryCodes !== null
4737
- ? deserializeAws_json1_1CountryCodes(output.CountryCodes, context)
4738
- : undefined,
4739
- ForwardedIPConfig: output.ForwardedIPConfig !== undefined && output.ForwardedIPConfig !== null
4546
+ CountryCodes: output.CountryCodes != null ? deserializeAws_json1_1CountryCodes(output.CountryCodes, context) : undefined,
4547
+ ForwardedIPConfig: output.ForwardedIPConfig != null
4740
4548
  ? deserializeAws_json1_1ForwardedIPConfig(output.ForwardedIPConfig, context)
4741
4549
  : undefined,
4742
4550
  };
4743
4551
  };
4744
4552
  const deserializeAws_json1_1GetIPSetResponse = (output, context) => {
4745
4553
  return {
4746
- IPSet: output.IPSet !== undefined && output.IPSet !== null
4747
- ? deserializeAws_json1_1IPSet(output.IPSet, context)
4748
- : undefined,
4554
+ IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
4749
4555
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4750
4556
  };
4751
4557
  };
4752
4558
  const deserializeAws_json1_1GetLoggingConfigurationResponse = (output, context) => {
4753
4559
  return {
4754
- LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
4560
+ LoggingConfiguration: output.LoggingConfiguration != null
4755
4561
  ? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
4756
4562
  : undefined,
4757
4563
  };
@@ -4759,14 +4565,12 @@ const deserializeAws_json1_1GetLoggingConfigurationResponse = (output, context)
4759
4565
  const deserializeAws_json1_1GetManagedRuleSetResponse = (output, context) => {
4760
4566
  return {
4761
4567
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4762
- ManagedRuleSet: output.ManagedRuleSet !== undefined && output.ManagedRuleSet !== null
4763
- ? deserializeAws_json1_1ManagedRuleSet(output.ManagedRuleSet, context)
4764
- : undefined,
4568
+ ManagedRuleSet: output.ManagedRuleSet != null ? deserializeAws_json1_1ManagedRuleSet(output.ManagedRuleSet, context) : undefined,
4765
4569
  };
4766
4570
  };
4767
4571
  const deserializeAws_json1_1GetMobileSdkReleaseResponse = (output, context) => {
4768
4572
  return {
4769
- MobileSdkRelease: output.MobileSdkRelease !== undefined && output.MobileSdkRelease !== null
4573
+ MobileSdkRelease: output.MobileSdkRelease != null
4770
4574
  ? deserializeAws_json1_1MobileSdkRelease(output.MobileSdkRelease, context)
4771
4575
  : undefined,
4772
4576
  };
@@ -4778,10 +4582,10 @@ const deserializeAws_json1_1GetPermissionPolicyResponse = (output, context) => {
4778
4582
  };
4779
4583
  const deserializeAws_json1_1GetRateBasedStatementManagedKeysResponse = (output, context) => {
4780
4584
  return {
4781
- ManagedKeysIPV4: output.ManagedKeysIPV4 !== undefined && output.ManagedKeysIPV4 !== null
4585
+ ManagedKeysIPV4: output.ManagedKeysIPV4 != null
4782
4586
  ? deserializeAws_json1_1RateBasedStatementManagedKeysIPSet(output.ManagedKeysIPV4, context)
4783
4587
  : undefined,
4784
- ManagedKeysIPV6: output.ManagedKeysIPV6 !== undefined && output.ManagedKeysIPV6 !== null
4588
+ ManagedKeysIPV6: output.ManagedKeysIPV6 != null
4785
4589
  ? deserializeAws_json1_1RateBasedStatementManagedKeysIPSet(output.ManagedKeysIPV6, context)
4786
4590
  : undefined,
4787
4591
  };
@@ -4789,7 +4593,7 @@ const deserializeAws_json1_1GetRateBasedStatementManagedKeysResponse = (output,
4789
4593
  const deserializeAws_json1_1GetRegexPatternSetResponse = (output, context) => {
4790
4594
  return {
4791
4595
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4792
- RegexPatternSet: output.RegexPatternSet !== undefined && output.RegexPatternSet !== null
4596
+ RegexPatternSet: output.RegexPatternSet != null
4793
4597
  ? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
4794
4598
  : undefined,
4795
4599
  };
@@ -4797,47 +4601,35 @@ const deserializeAws_json1_1GetRegexPatternSetResponse = (output, context) => {
4797
4601
  const deserializeAws_json1_1GetRuleGroupResponse = (output, context) => {
4798
4602
  return {
4799
4603
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4800
- RuleGroup: output.RuleGroup !== undefined && output.RuleGroup !== null
4801
- ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
4802
- : undefined,
4604
+ RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
4803
4605
  };
4804
4606
  };
4805
4607
  const deserializeAws_json1_1GetSampledRequestsResponse = (output, context) => {
4806
4608
  return {
4807
4609
  PopulationSize: (0, smithy_client_1.expectLong)(output.PopulationSize),
4808
- SampledRequests: output.SampledRequests !== undefined && output.SampledRequests !== null
4610
+ SampledRequests: output.SampledRequests != null
4809
4611
  ? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context)
4810
4612
  : undefined,
4811
- TimeWindow: output.TimeWindow !== undefined && output.TimeWindow !== null
4812
- ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context)
4813
- : undefined,
4613
+ TimeWindow: output.TimeWindow != null ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context) : undefined,
4814
4614
  };
4815
4615
  };
4816
4616
  const deserializeAws_json1_1GetWebACLForResourceResponse = (output, context) => {
4817
4617
  return {
4818
- WebACL: output.WebACL !== undefined && output.WebACL !== null
4819
- ? deserializeAws_json1_1WebACL(output.WebACL, context)
4820
- : undefined,
4618
+ WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
4821
4619
  };
4822
4620
  };
4823
4621
  const deserializeAws_json1_1GetWebACLResponse = (output, context) => {
4824
4622
  return {
4825
4623
  ApplicationIntegrationURL: (0, smithy_client_1.expectString)(output.ApplicationIntegrationURL),
4826
4624
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4827
- WebACL: output.WebACL !== undefined && output.WebACL !== null
4828
- ? deserializeAws_json1_1WebACL(output.WebACL, context)
4829
- : undefined,
4625
+ WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
4830
4626
  };
4831
4627
  };
4832
4628
  const deserializeAws_json1_1HeaderMatchPattern = (output, context) => {
4833
4629
  return {
4834
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
4835
- ExcludedHeaders: output.ExcludedHeaders !== undefined && output.ExcludedHeaders !== null
4836
- ? deserializeAws_json1_1HeaderNames(output.ExcludedHeaders, context)
4837
- : undefined,
4838
- IncludedHeaders: output.IncludedHeaders !== undefined && output.IncludedHeaders !== null
4839
- ? deserializeAws_json1_1HeaderNames(output.IncludedHeaders, context)
4840
- : undefined,
4630
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
4631
+ ExcludedHeaders: output.ExcludedHeaders != null ? deserializeAws_json1_1HeaderNames(output.ExcludedHeaders, context) : undefined,
4632
+ IncludedHeaders: output.IncludedHeaders != null ? deserializeAws_json1_1HeaderNames(output.IncludedHeaders, context) : undefined,
4841
4633
  };
4842
4634
  };
4843
4635
  const deserializeAws_json1_1HeaderNames = (output, context) => {
@@ -4853,9 +4645,7 @@ const deserializeAws_json1_1HeaderNames = (output, context) => {
4853
4645
  };
4854
4646
  const deserializeAws_json1_1Headers = (output, context) => {
4855
4647
  return {
4856
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
4857
- ? deserializeAws_json1_1HeaderMatchPattern(output.MatchPattern, context)
4858
- : undefined,
4648
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1HeaderMatchPattern(output.MatchPattern, context) : undefined,
4859
4649
  MatchScope: (0, smithy_client_1.expectString)(output.MatchScope),
4860
4650
  OversizeHandling: (0, smithy_client_1.expectString)(output.OversizeHandling),
4861
4651
  };
@@ -4882,9 +4672,7 @@ const deserializeAws_json1_1HTTPRequest = (output, context) => {
4882
4672
  ClientIP: (0, smithy_client_1.expectString)(output.ClientIP),
4883
4673
  Country: (0, smithy_client_1.expectString)(output.Country),
4884
4674
  HTTPVersion: (0, smithy_client_1.expectString)(output.HTTPVersion),
4885
- Headers: output.Headers !== undefined && output.Headers !== null
4886
- ? deserializeAws_json1_1HTTPHeaders(output.Headers, context)
4887
- : undefined,
4675
+ Headers: output.Headers != null ? deserializeAws_json1_1HTTPHeaders(output.Headers, context) : undefined,
4888
4676
  Method: (0, smithy_client_1.expectString)(output.Method),
4889
4677
  URI: (0, smithy_client_1.expectString)(output.URI),
4890
4678
  };
@@ -4908,9 +4696,7 @@ const deserializeAws_json1_1IPAddresses = (output, context) => {
4908
4696
  const deserializeAws_json1_1IPSet = (output, context) => {
4909
4697
  return {
4910
4698
  ARN: (0, smithy_client_1.expectString)(output.ARN),
4911
- Addresses: output.Addresses !== undefined && output.Addresses !== null
4912
- ? deserializeAws_json1_1IPAddresses(output.Addresses, context)
4913
- : undefined,
4699
+ Addresses: output.Addresses != null ? deserializeAws_json1_1IPAddresses(output.Addresses, context) : undefined,
4914
4700
  Description: (0, smithy_client_1.expectString)(output.Description),
4915
4701
  IPAddressVersion: (0, smithy_client_1.expectString)(output.IPAddressVersion),
4916
4702
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -4927,7 +4713,7 @@ const deserializeAws_json1_1IPSetForwardedIPConfig = (output, context) => {
4927
4713
  const deserializeAws_json1_1IPSetReferenceStatement = (output, context) => {
4928
4714
  return {
4929
4715
  ARN: (0, smithy_client_1.expectString)(output.ARN),
4930
- IPSetForwardedIPConfig: output.IPSetForwardedIPConfig !== undefined && output.IPSetForwardedIPConfig !== null
4716
+ IPSetForwardedIPConfig: output.IPSetForwardedIPConfig != null
4931
4717
  ? deserializeAws_json1_1IPSetForwardedIPConfig(output.IPSetForwardedIPConfig, context)
4932
4718
  : undefined,
4933
4719
  };
@@ -4955,19 +4741,15 @@ const deserializeAws_json1_1IPSetSummary = (output, context) => {
4955
4741
  const deserializeAws_json1_1JsonBody = (output, context) => {
4956
4742
  return {
4957
4743
  InvalidFallbackBehavior: (0, smithy_client_1.expectString)(output.InvalidFallbackBehavior),
4958
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
4959
- ? deserializeAws_json1_1JsonMatchPattern(output.MatchPattern, context)
4960
- : undefined,
4744
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1JsonMatchPattern(output.MatchPattern, context) : undefined,
4961
4745
  MatchScope: (0, smithy_client_1.expectString)(output.MatchScope),
4962
4746
  OversizeHandling: (0, smithy_client_1.expectString)(output.OversizeHandling),
4963
4747
  };
4964
4748
  };
4965
4749
  const deserializeAws_json1_1JsonMatchPattern = (output, context) => {
4966
4750
  return {
4967
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
4968
- IncludedPaths: output.IncludedPaths !== undefined && output.IncludedPaths !== null
4969
- ? deserializeAws_json1_1JsonPointerPaths(output.IncludedPaths, context)
4970
- : undefined,
4751
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
4752
+ IncludedPaths: output.IncludedPaths != null ? deserializeAws_json1_1JsonPointerPaths(output.IncludedPaths, context) : undefined,
4971
4753
  };
4972
4754
  };
4973
4755
  const deserializeAws_json1_1JsonPointerPaths = (output, context) => {
@@ -5026,7 +4808,7 @@ const deserializeAws_json1_1LabelSummary = (output, context) => {
5026
4808
  };
5027
4809
  const deserializeAws_json1_1ListAvailableManagedRuleGroupsResponse = (output, context) => {
5028
4810
  return {
5029
- ManagedRuleGroups: output.ManagedRuleGroups !== undefined && output.ManagedRuleGroups !== null
4811
+ ManagedRuleGroups: output.ManagedRuleGroups != null
5030
4812
  ? deserializeAws_json1_1ManagedRuleGroupSummaries(output.ManagedRuleGroups, context)
5031
4813
  : undefined,
5032
4814
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
@@ -5036,22 +4818,18 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsResponse = (out
5036
4818
  return {
5037
4819
  CurrentDefaultVersion: (0, smithy_client_1.expectString)(output.CurrentDefaultVersion),
5038
4820
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5039
- Versions: output.Versions !== undefined && output.Versions !== null
5040
- ? deserializeAws_json1_1ManagedRuleGroupVersions(output.Versions, context)
5041
- : undefined,
4821
+ Versions: output.Versions != null ? deserializeAws_json1_1ManagedRuleGroupVersions(output.Versions, context) : undefined,
5042
4822
  };
5043
4823
  };
5044
4824
  const deserializeAws_json1_1ListIPSetsResponse = (output, context) => {
5045
4825
  return {
5046
- IPSets: output.IPSets !== undefined && output.IPSets !== null
5047
- ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context)
5048
- : undefined,
4826
+ IPSets: output.IPSets != null ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context) : undefined,
5049
4827
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5050
4828
  };
5051
4829
  };
5052
4830
  const deserializeAws_json1_1ListLoggingConfigurationsResponse = (output, context) => {
5053
4831
  return {
5054
- LoggingConfigurations: output.LoggingConfigurations !== undefined && output.LoggingConfigurations !== null
4832
+ LoggingConfigurations: output.LoggingConfigurations != null
5055
4833
  ? deserializeAws_json1_1LoggingConfigurations(output.LoggingConfigurations, context)
5056
4834
  : undefined,
5057
4835
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
@@ -5059,7 +4837,7 @@ const deserializeAws_json1_1ListLoggingConfigurationsResponse = (output, context
5059
4837
  };
5060
4838
  const deserializeAws_json1_1ListManagedRuleSetsResponse = (output, context) => {
5061
4839
  return {
5062
- ManagedRuleSets: output.ManagedRuleSets !== undefined && output.ManagedRuleSets !== null
4840
+ ManagedRuleSets: output.ManagedRuleSets != null
5063
4841
  ? deserializeAws_json1_1ManagedRuleSetSummaries(output.ManagedRuleSets, context)
5064
4842
  : undefined,
5065
4843
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
@@ -5068,7 +4846,7 @@ const deserializeAws_json1_1ListManagedRuleSetsResponse = (output, context) => {
5068
4846
  const deserializeAws_json1_1ListMobileSdkReleasesResponse = (output, context) => {
5069
4847
  return {
5070
4848
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5071
- ReleaseSummaries: output.ReleaseSummaries !== undefined && output.ReleaseSummaries !== null
4849
+ ReleaseSummaries: output.ReleaseSummaries != null
5072
4850
  ? deserializeAws_json1_1ReleaseSummaries(output.ReleaseSummaries, context)
5073
4851
  : undefined,
5074
4852
  };
@@ -5076,30 +4854,26 @@ const deserializeAws_json1_1ListMobileSdkReleasesResponse = (output, context) =>
5076
4854
  const deserializeAws_json1_1ListRegexPatternSetsResponse = (output, context) => {
5077
4855
  return {
5078
4856
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5079
- RegexPatternSets: output.RegexPatternSets !== undefined && output.RegexPatternSets !== null
4857
+ RegexPatternSets: output.RegexPatternSets != null
5080
4858
  ? deserializeAws_json1_1RegexPatternSetSummaries(output.RegexPatternSets, context)
5081
4859
  : undefined,
5082
4860
  };
5083
4861
  };
5084
4862
  const deserializeAws_json1_1ListResourcesForWebACLResponse = (output, context) => {
5085
4863
  return {
5086
- ResourceArns: output.ResourceArns !== undefined && output.ResourceArns !== null
5087
- ? deserializeAws_json1_1ResourceArns(output.ResourceArns, context)
5088
- : undefined,
4864
+ ResourceArns: output.ResourceArns != null ? deserializeAws_json1_1ResourceArns(output.ResourceArns, context) : undefined,
5089
4865
  };
5090
4866
  };
5091
4867
  const deserializeAws_json1_1ListRuleGroupsResponse = (output, context) => {
5092
4868
  return {
5093
4869
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5094
- RuleGroups: output.RuleGroups !== undefined && output.RuleGroups !== null
5095
- ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context)
5096
- : undefined,
4870
+ RuleGroups: output.RuleGroups != null ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context) : undefined,
5097
4871
  };
5098
4872
  };
5099
4873
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5100
4874
  return {
5101
4875
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5102
- TagInfoForResource: output.TagInfoForResource !== undefined && output.TagInfoForResource !== null
4876
+ TagInfoForResource: output.TagInfoForResource != null
5103
4877
  ? deserializeAws_json1_1TagInfoForResource(output.TagInfoForResource, context)
5104
4878
  : undefined,
5105
4879
  };
@@ -5107,9 +4881,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5107
4881
  const deserializeAws_json1_1ListWebACLsResponse = (output, context) => {
5108
4882
  return {
5109
4883
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5110
- WebACLs: output.WebACLs !== undefined && output.WebACLs !== null
5111
- ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context)
5112
- : undefined,
4884
+ WebACLs: output.WebACLs != null ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context) : undefined,
5113
4885
  };
5114
4886
  };
5115
4887
  const deserializeAws_json1_1LogDestinationConfigs = (output, context) => {
@@ -5125,16 +4897,12 @@ const deserializeAws_json1_1LogDestinationConfigs = (output, context) => {
5125
4897
  };
5126
4898
  const deserializeAws_json1_1LoggingConfiguration = (output, context) => {
5127
4899
  return {
5128
- LogDestinationConfigs: output.LogDestinationConfigs !== undefined && output.LogDestinationConfigs !== null
4900
+ LogDestinationConfigs: output.LogDestinationConfigs != null
5129
4901
  ? deserializeAws_json1_1LogDestinationConfigs(output.LogDestinationConfigs, context)
5130
4902
  : undefined,
5131
- LoggingFilter: output.LoggingFilter !== undefined && output.LoggingFilter !== null
5132
- ? deserializeAws_json1_1LoggingFilter(output.LoggingFilter, context)
5133
- : undefined,
4903
+ LoggingFilter: output.LoggingFilter != null ? deserializeAws_json1_1LoggingFilter(output.LoggingFilter, context) : undefined,
5134
4904
  ManagedByFirewallManager: (0, smithy_client_1.expectBoolean)(output.ManagedByFirewallManager),
5135
- RedactedFields: output.RedactedFields !== undefined && output.RedactedFields !== null
5136
- ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context)
5137
- : undefined,
4905
+ RedactedFields: output.RedactedFields != null ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context) : undefined,
5138
4906
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
5139
4907
  };
5140
4908
  };
@@ -5152,21 +4920,15 @@ const deserializeAws_json1_1LoggingConfigurations = (output, context) => {
5152
4920
  const deserializeAws_json1_1LoggingFilter = (output, context) => {
5153
4921
  return {
5154
4922
  DefaultBehavior: (0, smithy_client_1.expectString)(output.DefaultBehavior),
5155
- Filters: output.Filters !== undefined && output.Filters !== null
5156
- ? deserializeAws_json1_1Filters(output.Filters, context)
5157
- : undefined,
4923
+ Filters: output.Filters != null ? deserializeAws_json1_1Filters(output.Filters, context) : undefined,
5158
4924
  };
5159
4925
  };
5160
4926
  const deserializeAws_json1_1ManagedRuleGroupConfig = (output, context) => {
5161
4927
  return {
5162
4928
  LoginPath: (0, smithy_client_1.expectString)(output.LoginPath),
5163
- PasswordField: output.PasswordField !== undefined && output.PasswordField !== null
5164
- ? deserializeAws_json1_1PasswordField(output.PasswordField, context)
5165
- : undefined,
4929
+ PasswordField: output.PasswordField != null ? deserializeAws_json1_1PasswordField(output.PasswordField, context) : undefined,
5166
4930
  PayloadType: (0, smithy_client_1.expectString)(output.PayloadType),
5167
- UsernameField: output.UsernameField !== undefined && output.UsernameField !== null
5168
- ? deserializeAws_json1_1UsernameField(output.UsernameField, context)
5169
- : undefined,
4931
+ UsernameField: output.UsernameField != null ? deserializeAws_json1_1UsernameField(output.UsernameField, context) : undefined,
5170
4932
  };
5171
4933
  };
5172
4934
  const deserializeAws_json1_1ManagedRuleGroupConfigs = (output, context) => {
@@ -5182,14 +4944,12 @@ const deserializeAws_json1_1ManagedRuleGroupConfigs = (output, context) => {
5182
4944
  };
5183
4945
  const deserializeAws_json1_1ManagedRuleGroupStatement = (output, context) => {
5184
4946
  return {
5185
- ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
5186
- ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
5187
- : undefined,
5188
- ManagedRuleGroupConfigs: output.ManagedRuleGroupConfigs !== undefined && output.ManagedRuleGroupConfigs !== null
4947
+ ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
4948
+ ManagedRuleGroupConfigs: output.ManagedRuleGroupConfigs != null
5189
4949
  ? deserializeAws_json1_1ManagedRuleGroupConfigs(output.ManagedRuleGroupConfigs, context)
5190
4950
  : undefined,
5191
4951
  Name: (0, smithy_client_1.expectString)(output.Name),
5192
- ScopeDownStatement: output.ScopeDownStatement !== undefined && output.ScopeDownStatement !== null
4952
+ ScopeDownStatement: output.ScopeDownStatement != null
5193
4953
  ? deserializeAws_json1_1Statement(output.ScopeDownStatement, context)
5194
4954
  : undefined,
5195
4955
  VendorName: (0, smithy_client_1.expectString)(output.VendorName),
@@ -5217,7 +4977,7 @@ const deserializeAws_json1_1ManagedRuleGroupSummary = (output, context) => {
5217
4977
  };
5218
4978
  const deserializeAws_json1_1ManagedRuleGroupVersion = (output, context) => {
5219
4979
  return {
5220
- LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
4980
+ LastUpdateTimestamp: output.LastUpdateTimestamp != null
5221
4981
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
5222
4982
  : undefined,
5223
4983
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -5241,7 +5001,7 @@ const deserializeAws_json1_1ManagedRuleSet = (output, context) => {
5241
5001
  Id: (0, smithy_client_1.expectString)(output.Id),
5242
5002
  LabelNamespace: (0, smithy_client_1.expectString)(output.LabelNamespace),
5243
5003
  Name: (0, smithy_client_1.expectString)(output.Name),
5244
- PublishedVersions: output.PublishedVersions !== undefined && output.PublishedVersions !== null
5004
+ PublishedVersions: output.PublishedVersions != null
5245
5005
  ? deserializeAws_json1_1PublishedVersions(output.PublishedVersions, context)
5246
5006
  : undefined,
5247
5007
  RecommendedVersion: (0, smithy_client_1.expectString)(output.RecommendedVersion),
@@ -5272,14 +5032,14 @@ const deserializeAws_json1_1ManagedRuleSetVersion = (output, context) => {
5272
5032
  return {
5273
5033
  AssociatedRuleGroupArn: (0, smithy_client_1.expectString)(output.AssociatedRuleGroupArn),
5274
5034
  Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
5275
- ExpiryTimestamp: output.ExpiryTimestamp !== undefined && output.ExpiryTimestamp !== null
5035
+ ExpiryTimestamp: output.ExpiryTimestamp != null
5276
5036
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryTimestamp)))
5277
5037
  : undefined,
5278
5038
  ForecastedLifetime: (0, smithy_client_1.expectInt32)(output.ForecastedLifetime),
5279
- LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
5039
+ LastUpdateTimestamp: output.LastUpdateTimestamp != null
5280
5040
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
5281
5041
  : undefined,
5282
- PublishTimestamp: output.PublishTimestamp !== undefined && output.PublishTimestamp !== null
5042
+ PublishTimestamp: output.PublishTimestamp != null
5283
5043
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PublishTimestamp)))
5284
5044
  : undefined,
5285
5045
  };
@@ -5291,12 +5051,8 @@ const deserializeAws_json1_1MobileSdkRelease = (output, context) => {
5291
5051
  return {
5292
5052
  ReleaseNotes: (0, smithy_client_1.expectString)(output.ReleaseNotes),
5293
5053
  ReleaseVersion: (0, smithy_client_1.expectString)(output.ReleaseVersion),
5294
- Tags: output.Tags !== undefined && output.Tags !== null
5295
- ? deserializeAws_json1_1TagList(output.Tags, context)
5296
- : undefined,
5297
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
5298
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
5299
- : undefined,
5054
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
5055
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
5300
5056
  };
5301
5057
  };
5302
5058
  const deserializeAws_json1_1NoneAction = (output, context) => {
@@ -5304,26 +5060,18 @@ const deserializeAws_json1_1NoneAction = (output, context) => {
5304
5060
  };
5305
5061
  const deserializeAws_json1_1NotStatement = (output, context) => {
5306
5062
  return {
5307
- Statement: output.Statement !== undefined && output.Statement !== null
5308
- ? deserializeAws_json1_1Statement(output.Statement, context)
5309
- : undefined,
5063
+ Statement: output.Statement != null ? deserializeAws_json1_1Statement(output.Statement, context) : undefined,
5310
5064
  };
5311
5065
  };
5312
5066
  const deserializeAws_json1_1OrStatement = (output, context) => {
5313
5067
  return {
5314
- Statements: output.Statements !== undefined && output.Statements !== null
5315
- ? deserializeAws_json1_1Statements(output.Statements, context)
5316
- : undefined,
5068
+ Statements: output.Statements != null ? deserializeAws_json1_1Statements(output.Statements, context) : undefined,
5317
5069
  };
5318
5070
  };
5319
5071
  const deserializeAws_json1_1OverrideAction = (output, context) => {
5320
5072
  return {
5321
- Count: output.Count !== undefined && output.Count !== null
5322
- ? deserializeAws_json1_1CountAction(output.Count, context)
5323
- : undefined,
5324
- None: output.None !== undefined && output.None !== null
5325
- ? deserializeAws_json1_1NoneAction(output.None, context)
5326
- : undefined,
5073
+ Count: output.Count != null ? deserializeAws_json1_1CountAction(output.Count, context) : undefined,
5074
+ None: output.None != null ? deserializeAws_json1_1NoneAction(output.None, context) : undefined,
5327
5075
  };
5328
5076
  };
5329
5077
  const deserializeAws_json1_1PasswordField = (output, context) => {
@@ -5344,7 +5092,7 @@ const deserializeAws_json1_1PublishedVersions = (output, context) => {
5344
5092
  };
5345
5093
  const deserializeAws_json1_1PutLoggingConfigurationResponse = (output, context) => {
5346
5094
  return {
5347
- LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
5095
+ LoggingConfiguration: output.LoggingConfiguration != null
5348
5096
  ? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
5349
5097
  : undefined,
5350
5098
  };
@@ -5363,20 +5111,18 @@ const deserializeAws_json1_1QueryString = (output, context) => {
5363
5111
  const deserializeAws_json1_1RateBasedStatement = (output, context) => {
5364
5112
  return {
5365
5113
  AggregateKeyType: (0, smithy_client_1.expectString)(output.AggregateKeyType),
5366
- ForwardedIPConfig: output.ForwardedIPConfig !== undefined && output.ForwardedIPConfig !== null
5114
+ ForwardedIPConfig: output.ForwardedIPConfig != null
5367
5115
  ? deserializeAws_json1_1ForwardedIPConfig(output.ForwardedIPConfig, context)
5368
5116
  : undefined,
5369
5117
  Limit: (0, smithy_client_1.expectLong)(output.Limit),
5370
- ScopeDownStatement: output.ScopeDownStatement !== undefined && output.ScopeDownStatement !== null
5118
+ ScopeDownStatement: output.ScopeDownStatement != null
5371
5119
  ? deserializeAws_json1_1Statement(output.ScopeDownStatement, context)
5372
5120
  : undefined,
5373
5121
  };
5374
5122
  };
5375
5123
  const deserializeAws_json1_1RateBasedStatementManagedKeysIPSet = (output, context) => {
5376
5124
  return {
5377
- Addresses: output.Addresses !== undefined && output.Addresses !== null
5378
- ? deserializeAws_json1_1IPAddresses(output.Addresses, context)
5379
- : undefined,
5125
+ Addresses: output.Addresses != null ? deserializeAws_json1_1IPAddresses(output.Addresses, context) : undefined,
5380
5126
  IPAddressVersion: (0, smithy_client_1.expectString)(output.IPAddressVersion),
5381
5127
  };
5382
5128
  };
@@ -5398,11 +5144,9 @@ const deserializeAws_json1_1Regex = (output, context) => {
5398
5144
  };
5399
5145
  const deserializeAws_json1_1RegexMatchStatement = (output, context) => {
5400
5146
  return {
5401
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5402
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5403
- : undefined,
5147
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5404
5148
  RegexString: (0, smithy_client_1.expectString)(output.RegexString),
5405
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5149
+ TextTransformations: output.TextTransformations != null
5406
5150
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5407
5151
  : undefined,
5408
5152
  };
@@ -5413,7 +5157,7 @@ const deserializeAws_json1_1RegexPatternSet = (output, context) => {
5413
5157
  Description: (0, smithy_client_1.expectString)(output.Description),
5414
5158
  Id: (0, smithy_client_1.expectString)(output.Id),
5415
5159
  Name: (0, smithy_client_1.expectString)(output.Name),
5416
- RegularExpressionList: output.RegularExpressionList !== undefined && output.RegularExpressionList !== null
5160
+ RegularExpressionList: output.RegularExpressionList != null
5417
5161
  ? deserializeAws_json1_1RegularExpressionList(output.RegularExpressionList, context)
5418
5162
  : undefined,
5419
5163
  };
@@ -5421,10 +5165,8 @@ const deserializeAws_json1_1RegexPatternSet = (output, context) => {
5421
5165
  const deserializeAws_json1_1RegexPatternSetReferenceStatement = (output, context) => {
5422
5166
  return {
5423
5167
  ARN: (0, smithy_client_1.expectString)(output.ARN),
5424
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5425
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5426
- : undefined,
5427
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5168
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5169
+ TextTransformations: output.TextTransformations != null
5428
5170
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5429
5171
  : undefined,
5430
5172
  };
@@ -5474,9 +5216,7 @@ const deserializeAws_json1_1ReleaseSummaries = (output, context) => {
5474
5216
  const deserializeAws_json1_1ReleaseSummary = (output, context) => {
5475
5217
  return {
5476
5218
  ReleaseVersion: (0, smithy_client_1.expectString)(output.ReleaseVersion),
5477
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
5478
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
5479
- : undefined,
5219
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
5480
5220
  };
5481
5221
  };
5482
5222
  const deserializeAws_json1_1ResourceArns = (output, context) => {
@@ -5492,65 +5232,43 @@ const deserializeAws_json1_1ResourceArns = (output, context) => {
5492
5232
  };
5493
5233
  const deserializeAws_json1_1Rule = (output, context) => {
5494
5234
  return {
5495
- Action: output.Action !== undefined && output.Action !== null
5496
- ? deserializeAws_json1_1RuleAction(output.Action, context)
5497
- : undefined,
5498
- CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
5499
- ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
5500
- : undefined,
5235
+ Action: output.Action != null ? deserializeAws_json1_1RuleAction(output.Action, context) : undefined,
5236
+ CaptchaConfig: output.CaptchaConfig != null ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context) : undefined,
5501
5237
  Name: (0, smithy_client_1.expectString)(output.Name),
5502
- OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
5503
- ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context)
5504
- : undefined,
5238
+ OverrideAction: output.OverrideAction != null ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context) : undefined,
5505
5239
  Priority: (0, smithy_client_1.expectInt32)(output.Priority),
5506
- RuleLabels: output.RuleLabels !== undefined && output.RuleLabels !== null
5507
- ? deserializeAws_json1_1Labels(output.RuleLabels, context)
5508
- : undefined,
5509
- Statement: output.Statement !== undefined && output.Statement !== null
5510
- ? deserializeAws_json1_1Statement(output.Statement, context)
5511
- : undefined,
5512
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5240
+ RuleLabels: output.RuleLabels != null ? deserializeAws_json1_1Labels(output.RuleLabels, context) : undefined,
5241
+ Statement: output.Statement != null ? deserializeAws_json1_1Statement(output.Statement, context) : undefined,
5242
+ VisibilityConfig: output.VisibilityConfig != null
5513
5243
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
5514
5244
  : undefined,
5515
5245
  };
5516
5246
  };
5517
5247
  const deserializeAws_json1_1RuleAction = (output, context) => {
5518
5248
  return {
5519
- Allow: output.Allow !== undefined && output.Allow !== null
5520
- ? deserializeAws_json1_1AllowAction(output.Allow, context)
5521
- : undefined,
5522
- Block: output.Block !== undefined && output.Block !== null
5523
- ? deserializeAws_json1_1BlockAction(output.Block, context)
5524
- : undefined,
5525
- Captcha: output.Captcha !== undefined && output.Captcha !== null
5526
- ? deserializeAws_json1_1CaptchaAction(output.Captcha, context)
5527
- : undefined,
5528
- Count: output.Count !== undefined && output.Count !== null
5529
- ? deserializeAws_json1_1CountAction(output.Count, context)
5530
- : undefined,
5249
+ Allow: output.Allow != null ? deserializeAws_json1_1AllowAction(output.Allow, context) : undefined,
5250
+ Block: output.Block != null ? deserializeAws_json1_1BlockAction(output.Block, context) : undefined,
5251
+ Captcha: output.Captcha != null ? deserializeAws_json1_1CaptchaAction(output.Captcha, context) : undefined,
5252
+ Count: output.Count != null ? deserializeAws_json1_1CountAction(output.Count, context) : undefined,
5531
5253
  };
5532
5254
  };
5533
5255
  const deserializeAws_json1_1RuleGroup = (output, context) => {
5534
5256
  return {
5535
5257
  ARN: (0, smithy_client_1.expectString)(output.ARN),
5536
- AvailableLabels: output.AvailableLabels !== undefined && output.AvailableLabels !== null
5258
+ AvailableLabels: output.AvailableLabels != null
5537
5259
  ? deserializeAws_json1_1LabelSummaries(output.AvailableLabels, context)
5538
5260
  : undefined,
5539
5261
  Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
5540
- ConsumedLabels: output.ConsumedLabels !== undefined && output.ConsumedLabels !== null
5541
- ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context)
5542
- : undefined,
5543
- CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null
5262
+ ConsumedLabels: output.ConsumedLabels != null ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context) : undefined,
5263
+ CustomResponseBodies: output.CustomResponseBodies != null
5544
5264
  ? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context)
5545
5265
  : undefined,
5546
5266
  Description: (0, smithy_client_1.expectString)(output.Description),
5547
5267
  Id: (0, smithy_client_1.expectString)(output.Id),
5548
5268
  LabelNamespace: (0, smithy_client_1.expectString)(output.LabelNamespace),
5549
5269
  Name: (0, smithy_client_1.expectString)(output.Name),
5550
- Rules: output.Rules !== undefined && output.Rules !== null
5551
- ? deserializeAws_json1_1Rules(output.Rules, context)
5552
- : undefined,
5553
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5270
+ Rules: output.Rules != null ? deserializeAws_json1_1Rules(output.Rules, context) : undefined,
5271
+ VisibilityConfig: output.VisibilityConfig != null
5554
5272
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
5555
5273
  : undefined,
5556
5274
  };
@@ -5558,9 +5276,7 @@ const deserializeAws_json1_1RuleGroup = (output, context) => {
5558
5276
  const deserializeAws_json1_1RuleGroupReferenceStatement = (output, context) => {
5559
5277
  return {
5560
5278
  ARN: (0, smithy_client_1.expectString)(output.ARN),
5561
- ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
5562
- ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
5563
- : undefined,
5279
+ ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
5564
5280
  };
5565
5281
  };
5566
5282
  const deserializeAws_json1_1RuleGroupSummaries = (output, context) => {
@@ -5607,32 +5323,24 @@ const deserializeAws_json1_1RuleSummaries = (output, context) => {
5607
5323
  };
5608
5324
  const deserializeAws_json1_1RuleSummary = (output, context) => {
5609
5325
  return {
5610
- Action: output.Action !== undefined && output.Action !== null
5611
- ? deserializeAws_json1_1RuleAction(output.Action, context)
5612
- : undefined,
5326
+ Action: output.Action != null ? deserializeAws_json1_1RuleAction(output.Action, context) : undefined,
5613
5327
  Name: (0, smithy_client_1.expectString)(output.Name),
5614
5328
  };
5615
5329
  };
5616
5330
  const deserializeAws_json1_1SampledHTTPRequest = (output, context) => {
5617
5331
  return {
5618
5332
  Action: (0, smithy_client_1.expectString)(output.Action),
5619
- CaptchaResponse: output.CaptchaResponse !== undefined && output.CaptchaResponse !== null
5333
+ CaptchaResponse: output.CaptchaResponse != null
5620
5334
  ? deserializeAws_json1_1CaptchaResponse(output.CaptchaResponse, context)
5621
5335
  : undefined,
5622
- Labels: output.Labels !== undefined && output.Labels !== null
5623
- ? deserializeAws_json1_1Labels(output.Labels, context)
5624
- : undefined,
5625
- Request: output.Request !== undefined && output.Request !== null
5626
- ? deserializeAws_json1_1HTTPRequest(output.Request, context)
5627
- : undefined,
5628
- RequestHeadersInserted: output.RequestHeadersInserted !== undefined && output.RequestHeadersInserted !== null
5336
+ Labels: output.Labels != null ? deserializeAws_json1_1Labels(output.Labels, context) : undefined,
5337
+ Request: output.Request != null ? deserializeAws_json1_1HTTPRequest(output.Request, context) : undefined,
5338
+ RequestHeadersInserted: output.RequestHeadersInserted != null
5629
5339
  ? deserializeAws_json1_1HTTPHeaders(output.RequestHeadersInserted, context)
5630
5340
  : undefined,
5631
5341
  ResponseCodeSent: (0, smithy_client_1.expectInt32)(output.ResponseCodeSent),
5632
5342
  RuleNameWithinRuleGroup: (0, smithy_client_1.expectString)(output.RuleNameWithinRuleGroup),
5633
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
5634
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
5635
- : undefined,
5343
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
5636
5344
  Weight: (0, smithy_client_1.expectLong)(output.Weight),
5637
5345
  };
5638
5346
  };
@@ -5660,70 +5368,60 @@ const deserializeAws_json1_1SingleQueryArgument = (output, context) => {
5660
5368
  const deserializeAws_json1_1SizeConstraintStatement = (output, context) => {
5661
5369
  return {
5662
5370
  ComparisonOperator: (0, smithy_client_1.expectString)(output.ComparisonOperator),
5663
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5664
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5665
- : undefined,
5371
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5666
5372
  Size: (0, smithy_client_1.expectLong)(output.Size),
5667
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5373
+ TextTransformations: output.TextTransformations != null
5668
5374
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5669
5375
  : undefined,
5670
5376
  };
5671
5377
  };
5672
5378
  const deserializeAws_json1_1SqliMatchStatement = (output, context) => {
5673
5379
  return {
5674
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5675
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5676
- : undefined,
5677
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5380
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5381
+ TextTransformations: output.TextTransformations != null
5678
5382
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5679
5383
  : undefined,
5680
5384
  };
5681
5385
  };
5682
5386
  const deserializeAws_json1_1Statement = (output, context) => {
5683
5387
  return {
5684
- AndStatement: output.AndStatement !== undefined && output.AndStatement !== null
5685
- ? deserializeAws_json1_1AndStatement(output.AndStatement, context)
5686
- : undefined,
5687
- ByteMatchStatement: output.ByteMatchStatement !== undefined && output.ByteMatchStatement !== null
5388
+ AndStatement: output.AndStatement != null ? deserializeAws_json1_1AndStatement(output.AndStatement, context) : undefined,
5389
+ ByteMatchStatement: output.ByteMatchStatement != null
5688
5390
  ? deserializeAws_json1_1ByteMatchStatement(output.ByteMatchStatement, context)
5689
5391
  : undefined,
5690
- GeoMatchStatement: output.GeoMatchStatement !== undefined && output.GeoMatchStatement !== null
5392
+ GeoMatchStatement: output.GeoMatchStatement != null
5691
5393
  ? deserializeAws_json1_1GeoMatchStatement(output.GeoMatchStatement, context)
5692
5394
  : undefined,
5693
- IPSetReferenceStatement: output.IPSetReferenceStatement !== undefined && output.IPSetReferenceStatement !== null
5395
+ IPSetReferenceStatement: output.IPSetReferenceStatement != null
5694
5396
  ? deserializeAws_json1_1IPSetReferenceStatement(output.IPSetReferenceStatement, context)
5695
5397
  : undefined,
5696
- LabelMatchStatement: output.LabelMatchStatement !== undefined && output.LabelMatchStatement !== null
5398
+ LabelMatchStatement: output.LabelMatchStatement != null
5697
5399
  ? deserializeAws_json1_1LabelMatchStatement(output.LabelMatchStatement, context)
5698
5400
  : undefined,
5699
- ManagedRuleGroupStatement: output.ManagedRuleGroupStatement !== undefined && output.ManagedRuleGroupStatement !== null
5401
+ ManagedRuleGroupStatement: output.ManagedRuleGroupStatement != null
5700
5402
  ? deserializeAws_json1_1ManagedRuleGroupStatement(output.ManagedRuleGroupStatement, context)
5701
5403
  : undefined,
5702
- NotStatement: output.NotStatement !== undefined && output.NotStatement !== null
5703
- ? deserializeAws_json1_1NotStatement(output.NotStatement, context)
5704
- : undefined,
5705
- OrStatement: output.OrStatement !== undefined && output.OrStatement !== null
5706
- ? deserializeAws_json1_1OrStatement(output.OrStatement, context)
5707
- : undefined,
5708
- RateBasedStatement: output.RateBasedStatement !== undefined && output.RateBasedStatement !== null
5404
+ NotStatement: output.NotStatement != null ? deserializeAws_json1_1NotStatement(output.NotStatement, context) : undefined,
5405
+ OrStatement: output.OrStatement != null ? deserializeAws_json1_1OrStatement(output.OrStatement, context) : undefined,
5406
+ RateBasedStatement: output.RateBasedStatement != null
5709
5407
  ? deserializeAws_json1_1RateBasedStatement(output.RateBasedStatement, context)
5710
5408
  : undefined,
5711
- RegexMatchStatement: output.RegexMatchStatement !== undefined && output.RegexMatchStatement !== null
5409
+ RegexMatchStatement: output.RegexMatchStatement != null
5712
5410
  ? deserializeAws_json1_1RegexMatchStatement(output.RegexMatchStatement, context)
5713
5411
  : undefined,
5714
- RegexPatternSetReferenceStatement: output.RegexPatternSetReferenceStatement !== undefined && output.RegexPatternSetReferenceStatement !== null
5412
+ RegexPatternSetReferenceStatement: output.RegexPatternSetReferenceStatement != null
5715
5413
  ? deserializeAws_json1_1RegexPatternSetReferenceStatement(output.RegexPatternSetReferenceStatement, context)
5716
5414
  : undefined,
5717
- RuleGroupReferenceStatement: output.RuleGroupReferenceStatement !== undefined && output.RuleGroupReferenceStatement !== null
5415
+ RuleGroupReferenceStatement: output.RuleGroupReferenceStatement != null
5718
5416
  ? deserializeAws_json1_1RuleGroupReferenceStatement(output.RuleGroupReferenceStatement, context)
5719
5417
  : undefined,
5720
- SizeConstraintStatement: output.SizeConstraintStatement !== undefined && output.SizeConstraintStatement !== null
5418
+ SizeConstraintStatement: output.SizeConstraintStatement != null
5721
5419
  ? deserializeAws_json1_1SizeConstraintStatement(output.SizeConstraintStatement, context)
5722
5420
  : undefined,
5723
- SqliMatchStatement: output.SqliMatchStatement !== undefined && output.SqliMatchStatement !== null
5421
+ SqliMatchStatement: output.SqliMatchStatement != null
5724
5422
  ? deserializeAws_json1_1SqliMatchStatement(output.SqliMatchStatement, context)
5725
5423
  : undefined,
5726
- XssMatchStatement: output.XssMatchStatement !== undefined && output.XssMatchStatement !== null
5424
+ XssMatchStatement: output.XssMatchStatement != null
5727
5425
  ? deserializeAws_json1_1XssMatchStatement(output.XssMatchStatement, context)
5728
5426
  : undefined,
5729
5427
  };
@@ -5748,9 +5446,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
5748
5446
  const deserializeAws_json1_1TagInfoForResource = (output, context) => {
5749
5447
  return {
5750
5448
  ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
5751
- TagList: output.TagList !== undefined && output.TagList !== null
5752
- ? deserializeAws_json1_1TagList(output.TagList, context)
5753
- : undefined,
5449
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
5754
5450
  };
5755
5451
  };
5756
5452
  const deserializeAws_json1_1TagList = (output, context) => {
@@ -5786,12 +5482,8 @@ const deserializeAws_json1_1TextTransformations = (output, context) => {
5786
5482
  };
5787
5483
  const deserializeAws_json1_1TimeWindow = (output, context) => {
5788
5484
  return {
5789
- EndTime: output.EndTime !== undefined && output.EndTime !== null
5790
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5791
- : undefined,
5792
- StartTime: output.StartTime !== undefined && output.StartTime !== null
5793
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
5794
- : undefined,
5485
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
5486
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5795
5487
  };
5796
5488
  };
5797
5489
  const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
@@ -5805,7 +5497,7 @@ const deserializeAws_json1_1UpdateIPSetResponse = (output, context) => {
5805
5497
  const deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateResponse = (output, context) => {
5806
5498
  return {
5807
5499
  ExpiringVersion: (0, smithy_client_1.expectString)(output.ExpiringVersion),
5808
- ExpiryTimestamp: output.ExpiryTimestamp !== undefined && output.ExpiryTimestamp !== null
5500
+ ExpiryTimestamp: output.ExpiryTimestamp != null
5809
5501
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryTimestamp)))
5810
5502
  : undefined,
5811
5503
  NextLockToken: (0, smithy_client_1.expectString)(output.NextLockToken),
@@ -5938,30 +5630,24 @@ const deserializeAws_json1_1WebACL = (output, context) => {
5938
5630
  return {
5939
5631
  ARN: (0, smithy_client_1.expectString)(output.ARN),
5940
5632
  Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
5941
- CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
5942
- ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
5943
- : undefined,
5944
- CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null
5633
+ CaptchaConfig: output.CaptchaConfig != null ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context) : undefined,
5634
+ CustomResponseBodies: output.CustomResponseBodies != null
5945
5635
  ? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context)
5946
5636
  : undefined,
5947
- DefaultAction: output.DefaultAction !== undefined && output.DefaultAction !== null
5948
- ? deserializeAws_json1_1DefaultAction(output.DefaultAction, context)
5949
- : undefined,
5637
+ DefaultAction: output.DefaultAction != null ? deserializeAws_json1_1DefaultAction(output.DefaultAction, context) : undefined,
5950
5638
  Description: (0, smithy_client_1.expectString)(output.Description),
5951
5639
  Id: (0, smithy_client_1.expectString)(output.Id),
5952
5640
  LabelNamespace: (0, smithy_client_1.expectString)(output.LabelNamespace),
5953
5641
  ManagedByFirewallManager: (0, smithy_client_1.expectBoolean)(output.ManagedByFirewallManager),
5954
5642
  Name: (0, smithy_client_1.expectString)(output.Name),
5955
- PostProcessFirewallManagerRuleGroups: output.PostProcessFirewallManagerRuleGroups !== undefined && output.PostProcessFirewallManagerRuleGroups !== null
5643
+ PostProcessFirewallManagerRuleGroups: output.PostProcessFirewallManagerRuleGroups != null
5956
5644
  ? deserializeAws_json1_1FirewallManagerRuleGroups(output.PostProcessFirewallManagerRuleGroups, context)
5957
5645
  : undefined,
5958
- PreProcessFirewallManagerRuleGroups: output.PreProcessFirewallManagerRuleGroups !== undefined && output.PreProcessFirewallManagerRuleGroups !== null
5646
+ PreProcessFirewallManagerRuleGroups: output.PreProcessFirewallManagerRuleGroups != null
5959
5647
  ? deserializeAws_json1_1FirewallManagerRuleGroups(output.PreProcessFirewallManagerRuleGroups, context)
5960
5648
  : undefined,
5961
- Rules: output.Rules !== undefined && output.Rules !== null
5962
- ? deserializeAws_json1_1Rules(output.Rules, context)
5963
- : undefined,
5964
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5649
+ Rules: output.Rules != null ? deserializeAws_json1_1Rules(output.Rules, context) : undefined,
5650
+ VisibilityConfig: output.VisibilityConfig != null
5965
5651
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
5966
5652
  : undefined,
5967
5653
  };
@@ -5988,10 +5674,8 @@ const deserializeAws_json1_1WebACLSummary = (output, context) => {
5988
5674
  };
5989
5675
  const deserializeAws_json1_1XssMatchStatement = (output, context) => {
5990
5676
  return {
5991
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5992
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5993
- : undefined,
5994
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5677
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5678
+ TextTransformations: output.TextTransformations != null
5995
5679
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5996
5680
  : undefined,
5997
5681
  };