@aws-sdk/client-waf 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +303 -453
- package/dist-es/protocols/Aws_json1_1.js +184 -334
- package/package.json +26 -26
|
@@ -6141,18 +6141,14 @@ var deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse = functi
|
|
|
6141
6141
|
});
|
|
6142
6142
|
}); };
|
|
6143
6143
|
var serializeAws_json1_1ActivatedRule = function (input, context) {
|
|
6144
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action
|
|
6145
|
-
input.Action !== null && { Action: serializeAws_json1_1WafAction(input.Action, context) })), (input.ExcludedRules !== undefined &&
|
|
6146
|
-
input.ExcludedRules !== null && {
|
|
6144
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action != null && { Action: serializeAws_json1_1WafAction(input.Action, context) })), (input.ExcludedRules != null && {
|
|
6147
6145
|
ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
|
|
6148
|
-
})), (input.OverrideAction
|
|
6149
|
-
input.OverrideAction !== null && {
|
|
6146
|
+
})), (input.OverrideAction != null && {
|
|
6150
6147
|
OverrideAction: serializeAws_json1_1WafOverrideAction(input.OverrideAction, context),
|
|
6151
|
-
})), (input.Priority
|
|
6148
|
+
})), (input.Priority != null && { Priority: input.Priority })), (input.RuleId != null && { RuleId: input.RuleId })), (input.Type != null && { Type: input.Type }));
|
|
6152
6149
|
};
|
|
6153
6150
|
var serializeAws_json1_1ByteMatchSetUpdate = function (input, context) {
|
|
6154
|
-
return __assign(__assign({}, (input.Action
|
|
6155
|
-
input.ByteMatchTuple !== null && {
|
|
6151
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.ByteMatchTuple != null && {
|
|
6156
6152
|
ByteMatchTuple: serializeAws_json1_1ByteMatchTuple(input.ByteMatchTuple, context),
|
|
6157
6153
|
}));
|
|
6158
6154
|
};
|
|
@@ -6167,102 +6163,91 @@ var serializeAws_json1_1ByteMatchSetUpdates = function (input, context) {
|
|
|
6167
6163
|
});
|
|
6168
6164
|
};
|
|
6169
6165
|
var serializeAws_json1_1ByteMatchTuple = function (input, context) {
|
|
6170
|
-
return __assign(__assign(__assign(__assign({}, (input.FieldToMatch
|
|
6171
|
-
input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.PositionalConstraint !== undefined &&
|
|
6172
|
-
input.PositionalConstraint !== null && { PositionalConstraint: input.PositionalConstraint })), (input.TargetString !== undefined &&
|
|
6173
|
-
input.TargetString !== null && { TargetString: context.base64Encoder(input.TargetString) })), (input.TextTransformation !== undefined &&
|
|
6174
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }));
|
|
6166
|
+
return __assign(__assign(__assign(__assign({}, (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.PositionalConstraint != null && { PositionalConstraint: input.PositionalConstraint })), (input.TargetString != null && { TargetString: context.base64Encoder(input.TargetString) })), (input.TextTransformation != null && { TextTransformation: input.TextTransformation }));
|
|
6175
6167
|
};
|
|
6176
6168
|
var serializeAws_json1_1CreateByteMatchSetRequest = function (input, context) {
|
|
6177
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6169
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Name != null && { Name: input.Name }));
|
|
6178
6170
|
};
|
|
6179
6171
|
var serializeAws_json1_1CreateGeoMatchSetRequest = function (input, context) {
|
|
6180
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6172
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Name != null && { Name: input.Name }));
|
|
6181
6173
|
};
|
|
6182
6174
|
var serializeAws_json1_1CreateIPSetRequest = function (input, context) {
|
|
6183
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6175
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Name != null && { Name: input.Name }));
|
|
6184
6176
|
};
|
|
6185
6177
|
var serializeAws_json1_1CreateRateBasedRuleRequest = function (input, context) {
|
|
6186
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChangeToken
|
|
6178
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.MetricName != null && { MetricName: input.MetricName })), (input.Name != null && { Name: input.Name })), (input.RateKey != null && { RateKey: input.RateKey })), (input.RateLimit != null && { RateLimit: input.RateLimit })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6187
6179
|
};
|
|
6188
6180
|
var serializeAws_json1_1CreateRegexMatchSetRequest = function (input, context) {
|
|
6189
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6181
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Name != null && { Name: input.Name }));
|
|
6190
6182
|
};
|
|
6191
6183
|
var serializeAws_json1_1CreateRegexPatternSetRequest = function (input, context) {
|
|
6192
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6184
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Name != null && { Name: input.Name }));
|
|
6193
6185
|
};
|
|
6194
6186
|
var serializeAws_json1_1CreateRuleGroupRequest = function (input, context) {
|
|
6195
|
-
return __assign(__assign(__assign(__assign({}, (input.ChangeToken
|
|
6187
|
+
return __assign(__assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.MetricName != null && { MetricName: input.MetricName })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6196
6188
|
};
|
|
6197
6189
|
var serializeAws_json1_1CreateRuleRequest = function (input, context) {
|
|
6198
|
-
return __assign(__assign(__assign(__assign({}, (input.ChangeToken
|
|
6190
|
+
return __assign(__assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.MetricName != null && { MetricName: input.MetricName })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6199
6191
|
};
|
|
6200
6192
|
var serializeAws_json1_1CreateSizeConstraintSetRequest = function (input, context) {
|
|
6201
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6193
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Name != null && { Name: input.Name }));
|
|
6202
6194
|
};
|
|
6203
6195
|
var serializeAws_json1_1CreateSqlInjectionMatchSetRequest = function (input, context) {
|
|
6204
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6196
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Name != null && { Name: input.Name }));
|
|
6205
6197
|
};
|
|
6206
6198
|
var serializeAws_json1_1CreateWebACLMigrationStackRequest = function (input, context) {
|
|
6207
|
-
return __assign(__assign(__assign({}, (input.IgnoreUnsupportedType
|
|
6208
|
-
input.IgnoreUnsupportedType !== null && { IgnoreUnsupportedType: input.IgnoreUnsupportedType })), (input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName })), (input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId }));
|
|
6199
|
+
return __assign(__assign(__assign({}, (input.IgnoreUnsupportedType != null && { IgnoreUnsupportedType: input.IgnoreUnsupportedType })), (input.S3BucketName != null && { S3BucketName: input.S3BucketName })), (input.WebACLId != null && { WebACLId: input.WebACLId }));
|
|
6209
6200
|
};
|
|
6210
6201
|
var serializeAws_json1_1CreateWebACLRequest = function (input, context) {
|
|
6211
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.ChangeToken
|
|
6212
|
-
input.DefaultAction !== null && { DefaultAction: serializeAws_json1_1WafAction(input.DefaultAction, context) })), (input.MetricName !== undefined && input.MetricName !== null && { MetricName: input.MetricName })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6202
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.DefaultAction != null && { DefaultAction: serializeAws_json1_1WafAction(input.DefaultAction, context) })), (input.MetricName != null && { MetricName: input.MetricName })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6213
6203
|
};
|
|
6214
6204
|
var serializeAws_json1_1CreateXssMatchSetRequest = function (input, context) {
|
|
6215
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6205
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Name != null && { Name: input.Name }));
|
|
6216
6206
|
};
|
|
6217
6207
|
var serializeAws_json1_1DeleteByteMatchSetRequest = function (input, context) {
|
|
6218
|
-
return __assign(__assign({}, (input.ByteMatchSetId
|
|
6219
|
-
input.ByteMatchSetId !== null && { ByteMatchSetId: input.ByteMatchSetId })), (input.ChangeToken !== undefined && input.ChangeToken !== null && { ChangeToken: input.ChangeToken }));
|
|
6208
|
+
return __assign(__assign({}, (input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId })), (input.ChangeToken != null && { ChangeToken: input.ChangeToken }));
|
|
6220
6209
|
};
|
|
6221
6210
|
var serializeAws_json1_1DeleteGeoMatchSetRequest = function (input, context) {
|
|
6222
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6211
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId }));
|
|
6223
6212
|
};
|
|
6224
6213
|
var serializeAws_json1_1DeleteIPSetRequest = function (input, context) {
|
|
6225
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6214
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.IPSetId != null && { IPSetId: input.IPSetId }));
|
|
6226
6215
|
};
|
|
6227
6216
|
var serializeAws_json1_1DeleteLoggingConfigurationRequest = function (input, context) {
|
|
6228
|
-
return __assign({}, (input.ResourceArn
|
|
6217
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
6229
6218
|
};
|
|
6230
6219
|
var serializeAws_json1_1DeletePermissionPolicyRequest = function (input, context) {
|
|
6231
|
-
return __assign({}, (input.ResourceArn
|
|
6220
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
6232
6221
|
};
|
|
6233
6222
|
var serializeAws_json1_1DeleteRateBasedRuleRequest = function (input, context) {
|
|
6234
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6223
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RuleId != null && { RuleId: input.RuleId }));
|
|
6235
6224
|
};
|
|
6236
6225
|
var serializeAws_json1_1DeleteRegexMatchSetRequest = function (input, context) {
|
|
6237
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6238
|
-
input.RegexMatchSetId !== null && { RegexMatchSetId: input.RegexMatchSetId }));
|
|
6226
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId }));
|
|
6239
6227
|
};
|
|
6240
6228
|
var serializeAws_json1_1DeleteRegexPatternSetRequest = function (input, context) {
|
|
6241
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6242
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId }));
|
|
6229
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }));
|
|
6243
6230
|
};
|
|
6244
6231
|
var serializeAws_json1_1DeleteRuleGroupRequest = function (input, context) {
|
|
6245
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6232
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }));
|
|
6246
6233
|
};
|
|
6247
6234
|
var serializeAws_json1_1DeleteRuleRequest = function (input, context) {
|
|
6248
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6235
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RuleId != null && { RuleId: input.RuleId }));
|
|
6249
6236
|
};
|
|
6250
6237
|
var serializeAws_json1_1DeleteSizeConstraintSetRequest = function (input, context) {
|
|
6251
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6252
|
-
input.SizeConstraintSetId !== null && { SizeConstraintSetId: input.SizeConstraintSetId }));
|
|
6238
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId }));
|
|
6253
6239
|
};
|
|
6254
6240
|
var serializeAws_json1_1DeleteSqlInjectionMatchSetRequest = function (input, context) {
|
|
6255
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6256
|
-
input.SqlInjectionMatchSetId !== null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }));
|
|
6241
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }));
|
|
6257
6242
|
};
|
|
6258
6243
|
var serializeAws_json1_1DeleteWebACLRequest = function (input, context) {
|
|
6259
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6244
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.WebACLId != null && { WebACLId: input.WebACLId }));
|
|
6260
6245
|
};
|
|
6261
6246
|
var serializeAws_json1_1DeleteXssMatchSetRequest = function (input, context) {
|
|
6262
|
-
return __assign(__assign({}, (input.ChangeToken
|
|
6247
|
+
return __assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }));
|
|
6263
6248
|
};
|
|
6264
6249
|
var serializeAws_json1_1ExcludedRule = function (input, context) {
|
|
6265
|
-
return __assign({}, (input.RuleId
|
|
6250
|
+
return __assign({}, (input.RuleId != null && { RuleId: input.RuleId }));
|
|
6266
6251
|
};
|
|
6267
6252
|
var serializeAws_json1_1ExcludedRules = function (input, context) {
|
|
6268
6253
|
return input
|
|
@@ -6275,14 +6260,13 @@ var serializeAws_json1_1ExcludedRules = function (input, context) {
|
|
|
6275
6260
|
});
|
|
6276
6261
|
};
|
|
6277
6262
|
var serializeAws_json1_1FieldToMatch = function (input, context) {
|
|
6278
|
-
return __assign(__assign({}, (input.Data
|
|
6263
|
+
return __assign(__assign({}, (input.Data != null && { Data: input.Data })), (input.Type != null && { Type: input.Type }));
|
|
6279
6264
|
};
|
|
6280
6265
|
var serializeAws_json1_1GeoMatchConstraint = function (input, context) {
|
|
6281
|
-
return __assign(__assign({}, (input.Type
|
|
6266
|
+
return __assign(__assign({}, (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
6282
6267
|
};
|
|
6283
6268
|
var serializeAws_json1_1GeoMatchSetUpdate = function (input, context) {
|
|
6284
|
-
return __assign(__assign({}, (input.Action
|
|
6285
|
-
input.GeoMatchConstraint !== null && {
|
|
6269
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.GeoMatchConstraint != null && {
|
|
6286
6270
|
GeoMatchConstraint: serializeAws_json1_1GeoMatchConstraint(input.GeoMatchConstraint, context),
|
|
6287
6271
|
}));
|
|
6288
6272
|
};
|
|
@@ -6297,71 +6281,64 @@ var serializeAws_json1_1GeoMatchSetUpdates = function (input, context) {
|
|
|
6297
6281
|
});
|
|
6298
6282
|
};
|
|
6299
6283
|
var serializeAws_json1_1GetByteMatchSetRequest = function (input, context) {
|
|
6300
|
-
return __assign({}, (input.ByteMatchSetId
|
|
6301
|
-
input.ByteMatchSetId !== null && { ByteMatchSetId: input.ByteMatchSetId }));
|
|
6284
|
+
return __assign({}, (input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId }));
|
|
6302
6285
|
};
|
|
6303
6286
|
var serializeAws_json1_1GetChangeTokenRequest = function (input, context) {
|
|
6304
6287
|
return {};
|
|
6305
6288
|
};
|
|
6306
6289
|
var serializeAws_json1_1GetChangeTokenStatusRequest = function (input, context) {
|
|
6307
|
-
return __assign({}, (input.ChangeToken
|
|
6290
|
+
return __assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken }));
|
|
6308
6291
|
};
|
|
6309
6292
|
var serializeAws_json1_1GetGeoMatchSetRequest = function (input, context) {
|
|
6310
|
-
return __assign({}, (input.GeoMatchSetId
|
|
6293
|
+
return __assign({}, (input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId }));
|
|
6311
6294
|
};
|
|
6312
6295
|
var serializeAws_json1_1GetIPSetRequest = function (input, context) {
|
|
6313
|
-
return __assign({}, (input.IPSetId
|
|
6296
|
+
return __assign({}, (input.IPSetId != null && { IPSetId: input.IPSetId }));
|
|
6314
6297
|
};
|
|
6315
6298
|
var serializeAws_json1_1GetLoggingConfigurationRequest = function (input, context) {
|
|
6316
|
-
return __assign({}, (input.ResourceArn
|
|
6299
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
6317
6300
|
};
|
|
6318
6301
|
var serializeAws_json1_1GetPermissionPolicyRequest = function (input, context) {
|
|
6319
|
-
return __assign({}, (input.ResourceArn
|
|
6302
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
6320
6303
|
};
|
|
6321
6304
|
var serializeAws_json1_1GetRateBasedRuleManagedKeysRequest = function (input, context) {
|
|
6322
|
-
return __assign(__assign({}, (input.NextMarker
|
|
6305
|
+
return __assign(__assign({}, (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.RuleId != null && { RuleId: input.RuleId }));
|
|
6323
6306
|
};
|
|
6324
6307
|
var serializeAws_json1_1GetRateBasedRuleRequest = function (input, context) {
|
|
6325
|
-
return __assign({}, (input.RuleId
|
|
6308
|
+
return __assign({}, (input.RuleId != null && { RuleId: input.RuleId }));
|
|
6326
6309
|
};
|
|
6327
6310
|
var serializeAws_json1_1GetRegexMatchSetRequest = function (input, context) {
|
|
6328
|
-
return __assign({}, (input.RegexMatchSetId
|
|
6329
|
-
input.RegexMatchSetId !== null && { RegexMatchSetId: input.RegexMatchSetId }));
|
|
6311
|
+
return __assign({}, (input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId }));
|
|
6330
6312
|
};
|
|
6331
6313
|
var serializeAws_json1_1GetRegexPatternSetRequest = function (input, context) {
|
|
6332
|
-
return __assign({}, (input.RegexPatternSetId
|
|
6333
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId }));
|
|
6314
|
+
return __assign({}, (input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }));
|
|
6334
6315
|
};
|
|
6335
6316
|
var serializeAws_json1_1GetRuleGroupRequest = function (input, context) {
|
|
6336
|
-
return __assign({}, (input.RuleGroupId
|
|
6317
|
+
return __assign({}, (input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }));
|
|
6337
6318
|
};
|
|
6338
6319
|
var serializeAws_json1_1GetRuleRequest = function (input, context) {
|
|
6339
|
-
return __assign({}, (input.RuleId
|
|
6320
|
+
return __assign({}, (input.RuleId != null && { RuleId: input.RuleId }));
|
|
6340
6321
|
};
|
|
6341
6322
|
var serializeAws_json1_1GetSampledRequestsRequest = function (input, context) {
|
|
6342
|
-
return __assign(__assign(__assign(__assign({}, (input.MaxItems
|
|
6343
|
-
input.TimeWindow !== null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) })), (input.WebAclId !== undefined && input.WebAclId !== null && { WebAclId: input.WebAclId }));
|
|
6323
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxItems != null && { MaxItems: input.MaxItems })), (input.RuleId != null && { RuleId: input.RuleId })), (input.TimeWindow != null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) })), (input.WebAclId != null && { WebAclId: input.WebAclId }));
|
|
6344
6324
|
};
|
|
6345
6325
|
var serializeAws_json1_1GetSizeConstraintSetRequest = function (input, context) {
|
|
6346
|
-
return __assign({}, (input.SizeConstraintSetId
|
|
6347
|
-
input.SizeConstraintSetId !== null && { SizeConstraintSetId: input.SizeConstraintSetId }));
|
|
6326
|
+
return __assign({}, (input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId }));
|
|
6348
6327
|
};
|
|
6349
6328
|
var serializeAws_json1_1GetSqlInjectionMatchSetRequest = function (input, context) {
|
|
6350
|
-
return __assign({}, (input.SqlInjectionMatchSetId
|
|
6351
|
-
input.SqlInjectionMatchSetId !== null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }));
|
|
6329
|
+
return __assign({}, (input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }));
|
|
6352
6330
|
};
|
|
6353
6331
|
var serializeAws_json1_1GetWebACLRequest = function (input, context) {
|
|
6354
|
-
return __assign({}, (input.WebACLId
|
|
6332
|
+
return __assign({}, (input.WebACLId != null && { WebACLId: input.WebACLId }));
|
|
6355
6333
|
};
|
|
6356
6334
|
var serializeAws_json1_1GetXssMatchSetRequest = function (input, context) {
|
|
6357
|
-
return __assign({}, (input.XssMatchSetId
|
|
6335
|
+
return __assign({}, (input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }));
|
|
6358
6336
|
};
|
|
6359
6337
|
var serializeAws_json1_1IPSetDescriptor = function (input, context) {
|
|
6360
|
-
return __assign(__assign({}, (input.Type
|
|
6338
|
+
return __assign(__assign({}, (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
6361
6339
|
};
|
|
6362
6340
|
var serializeAws_json1_1IPSetUpdate = function (input, context) {
|
|
6363
|
-
return __assign(__assign({}, (input.Action
|
|
6364
|
-
input.IPSetDescriptor !== null && {
|
|
6341
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.IPSetDescriptor != null && {
|
|
6365
6342
|
IPSetDescriptor: serializeAws_json1_1IPSetDescriptor(input.IPSetDescriptor, context),
|
|
6366
6343
|
}));
|
|
6367
6344
|
};
|
|
@@ -6376,52 +6353,52 @@ var serializeAws_json1_1IPSetUpdates = function (input, context) {
|
|
|
6376
6353
|
});
|
|
6377
6354
|
};
|
|
6378
6355
|
var serializeAws_json1_1ListActivatedRulesInRuleGroupRequest = function (input, context) {
|
|
6379
|
-
return __assign(__assign(__assign({}, (input.Limit
|
|
6356
|
+
return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }));
|
|
6380
6357
|
};
|
|
6381
6358
|
var serializeAws_json1_1ListByteMatchSetsRequest = function (input, context) {
|
|
6382
|
-
return __assign(__assign({}, (input.Limit
|
|
6359
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6383
6360
|
};
|
|
6384
6361
|
var serializeAws_json1_1ListGeoMatchSetsRequest = function (input, context) {
|
|
6385
|
-
return __assign(__assign({}, (input.Limit
|
|
6362
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6386
6363
|
};
|
|
6387
6364
|
var serializeAws_json1_1ListIPSetsRequest = function (input, context) {
|
|
6388
|
-
return __assign(__assign({}, (input.Limit
|
|
6365
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6389
6366
|
};
|
|
6390
6367
|
var serializeAws_json1_1ListLoggingConfigurationsRequest = function (input, context) {
|
|
6391
|
-
return __assign(__assign({}, (input.Limit
|
|
6368
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6392
6369
|
};
|
|
6393
6370
|
var serializeAws_json1_1ListRateBasedRulesRequest = function (input, context) {
|
|
6394
|
-
return __assign(__assign({}, (input.Limit
|
|
6371
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6395
6372
|
};
|
|
6396
6373
|
var serializeAws_json1_1ListRegexMatchSetsRequest = function (input, context) {
|
|
6397
|
-
return __assign(__assign({}, (input.Limit
|
|
6374
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6398
6375
|
};
|
|
6399
6376
|
var serializeAws_json1_1ListRegexPatternSetsRequest = function (input, context) {
|
|
6400
|
-
return __assign(__assign({}, (input.Limit
|
|
6377
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6401
6378
|
};
|
|
6402
6379
|
var serializeAws_json1_1ListRuleGroupsRequest = function (input, context) {
|
|
6403
|
-
return __assign(__assign({}, (input.Limit
|
|
6380
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6404
6381
|
};
|
|
6405
6382
|
var serializeAws_json1_1ListRulesRequest = function (input, context) {
|
|
6406
|
-
return __assign(__assign({}, (input.Limit
|
|
6383
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6407
6384
|
};
|
|
6408
6385
|
var serializeAws_json1_1ListSizeConstraintSetsRequest = function (input, context) {
|
|
6409
|
-
return __assign(__assign({}, (input.Limit
|
|
6386
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6410
6387
|
};
|
|
6411
6388
|
var serializeAws_json1_1ListSqlInjectionMatchSetsRequest = function (input, context) {
|
|
6412
|
-
return __assign(__assign({}, (input.Limit
|
|
6389
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6413
6390
|
};
|
|
6414
6391
|
var serializeAws_json1_1ListSubscribedRuleGroupsRequest = function (input, context) {
|
|
6415
|
-
return __assign(__assign({}, (input.Limit
|
|
6392
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6416
6393
|
};
|
|
6417
6394
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
6418
|
-
return __assign(__assign(__assign({}, (input.Limit
|
|
6395
|
+
return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
|
|
6419
6396
|
};
|
|
6420
6397
|
var serializeAws_json1_1ListWebACLsRequest = function (input, context) {
|
|
6421
|
-
return __assign(__assign({}, (input.Limit
|
|
6398
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6422
6399
|
};
|
|
6423
6400
|
var serializeAws_json1_1ListXssMatchSetsRequest = function (input, context) {
|
|
6424
|
-
return __assign(__assign({}, (input.Limit
|
|
6401
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker }));
|
|
6425
6402
|
};
|
|
6426
6403
|
var serializeAws_json1_1LogDestinationConfigs = function (input, context) {
|
|
6427
6404
|
return input
|
|
@@ -6434,25 +6411,22 @@ var serializeAws_json1_1LogDestinationConfigs = function (input, context) {
|
|
|
6434
6411
|
});
|
|
6435
6412
|
};
|
|
6436
6413
|
var serializeAws_json1_1LoggingConfiguration = function (input, context) {
|
|
6437
|
-
return __assign(__assign(__assign({}, (input.LogDestinationConfigs
|
|
6438
|
-
input.LogDestinationConfigs !== null && {
|
|
6414
|
+
return __assign(__assign(__assign({}, (input.LogDestinationConfigs != null && {
|
|
6439
6415
|
LogDestinationConfigs: serializeAws_json1_1LogDestinationConfigs(input.LogDestinationConfigs, context),
|
|
6440
|
-
})), (input.RedactedFields
|
|
6441
|
-
input.RedactedFields !== null && {
|
|
6416
|
+
})), (input.RedactedFields != null && {
|
|
6442
6417
|
RedactedFields: serializeAws_json1_1RedactedFields(input.RedactedFields, context),
|
|
6443
|
-
})), (input.ResourceArn
|
|
6418
|
+
})), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
6444
6419
|
};
|
|
6445
6420
|
var serializeAws_json1_1Predicate = function (input, context) {
|
|
6446
|
-
return __assign(__assign(__assign({}, (input.DataId
|
|
6421
|
+
return __assign(__assign(__assign({}, (input.DataId != null && { DataId: input.DataId })), (input.Negated != null && { Negated: input.Negated })), (input.Type != null && { Type: input.Type }));
|
|
6447
6422
|
};
|
|
6448
6423
|
var serializeAws_json1_1PutLoggingConfigurationRequest = function (input, context) {
|
|
6449
|
-
return __assign({}, (input.LoggingConfiguration
|
|
6450
|
-
input.LoggingConfiguration !== null && {
|
|
6424
|
+
return __assign({}, (input.LoggingConfiguration != null && {
|
|
6451
6425
|
LoggingConfiguration: serializeAws_json1_1LoggingConfiguration(input.LoggingConfiguration, context),
|
|
6452
6426
|
}));
|
|
6453
6427
|
};
|
|
6454
6428
|
var serializeAws_json1_1PutPermissionPolicyRequest = function (input, context) {
|
|
6455
|
-
return __assign(__assign({}, (input.Policy
|
|
6429
|
+
return __assign(__assign({}, (input.Policy != null && { Policy: input.Policy })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
6456
6430
|
};
|
|
6457
6431
|
var serializeAws_json1_1RedactedFields = function (input, context) {
|
|
6458
6432
|
return input
|
|
@@ -6465,8 +6439,7 @@ var serializeAws_json1_1RedactedFields = function (input, context) {
|
|
|
6465
6439
|
});
|
|
6466
6440
|
};
|
|
6467
6441
|
var serializeAws_json1_1RegexMatchSetUpdate = function (input, context) {
|
|
6468
|
-
return __assign(__assign({}, (input.Action
|
|
6469
|
-
input.RegexMatchTuple !== null && {
|
|
6442
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.RegexMatchTuple != null && {
|
|
6470
6443
|
RegexMatchTuple: serializeAws_json1_1RegexMatchTuple(input.RegexMatchTuple, context),
|
|
6471
6444
|
}));
|
|
6472
6445
|
};
|
|
@@ -6481,14 +6454,10 @@ var serializeAws_json1_1RegexMatchSetUpdates = function (input, context) {
|
|
|
6481
6454
|
});
|
|
6482
6455
|
};
|
|
6483
6456
|
var serializeAws_json1_1RegexMatchTuple = function (input, context) {
|
|
6484
|
-
return __assign(__assign(__assign({}, (input.FieldToMatch
|
|
6485
|
-
input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.RegexPatternSetId !== undefined &&
|
|
6486
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId })), (input.TextTransformation !== undefined &&
|
|
6487
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }));
|
|
6457
|
+
return __assign(__assign(__assign({}, (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId })), (input.TextTransformation != null && { TextTransformation: input.TextTransformation }));
|
|
6488
6458
|
};
|
|
6489
6459
|
var serializeAws_json1_1RegexPatternSetUpdate = function (input, context) {
|
|
6490
|
-
return __assign(__assign({}, (input.Action
|
|
6491
|
-
input.RegexPatternString !== null && { RegexPatternString: input.RegexPatternString }));
|
|
6460
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.RegexPatternString != null && { RegexPatternString: input.RegexPatternString }));
|
|
6492
6461
|
};
|
|
6493
6462
|
var serializeAws_json1_1RegexPatternSetUpdates = function (input, context) {
|
|
6494
6463
|
return input
|
|
@@ -6501,8 +6470,7 @@ var serializeAws_json1_1RegexPatternSetUpdates = function (input, context) {
|
|
|
6501
6470
|
});
|
|
6502
6471
|
};
|
|
6503
6472
|
var serializeAws_json1_1RuleGroupUpdate = function (input, context) {
|
|
6504
|
-
return __assign(__assign({}, (input.Action
|
|
6505
|
-
input.ActivatedRule !== null && {
|
|
6473
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.ActivatedRule != null && {
|
|
6506
6474
|
ActivatedRule: serializeAws_json1_1ActivatedRule(input.ActivatedRule, context),
|
|
6507
6475
|
}));
|
|
6508
6476
|
};
|
|
@@ -6517,8 +6485,7 @@ var serializeAws_json1_1RuleGroupUpdates = function (input, context) {
|
|
|
6517
6485
|
});
|
|
6518
6486
|
};
|
|
6519
6487
|
var serializeAws_json1_1RuleUpdate = function (input, context) {
|
|
6520
|
-
return __assign(__assign({}, (input.Action
|
|
6521
|
-
input.Predicate !== null && { Predicate: serializeAws_json1_1Predicate(input.Predicate, context) }));
|
|
6488
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.Predicate != null && { Predicate: serializeAws_json1_1Predicate(input.Predicate, context) }));
|
|
6522
6489
|
};
|
|
6523
6490
|
var serializeAws_json1_1RuleUpdates = function (input, context) {
|
|
6524
6491
|
return input
|
|
@@ -6531,14 +6498,10 @@ var serializeAws_json1_1RuleUpdates = function (input, context) {
|
|
|
6531
6498
|
});
|
|
6532
6499
|
};
|
|
6533
6500
|
var serializeAws_json1_1SizeConstraint = function (input, context) {
|
|
6534
|
-
return __assign(__assign(__assign(__assign({}, (input.ComparisonOperator
|
|
6535
|
-
input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.FieldToMatch !== undefined &&
|
|
6536
|
-
input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.Size !== undefined && input.Size !== null && { Size: input.Size })), (input.TextTransformation !== undefined &&
|
|
6537
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }));
|
|
6501
|
+
return __assign(__assign(__assign(__assign({}, (input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator })), (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.Size != null && { Size: input.Size })), (input.TextTransformation != null && { TextTransformation: input.TextTransformation }));
|
|
6538
6502
|
};
|
|
6539
6503
|
var serializeAws_json1_1SizeConstraintSetUpdate = function (input, context) {
|
|
6540
|
-
return __assign(__assign({}, (input.Action
|
|
6541
|
-
input.SizeConstraint !== null && {
|
|
6504
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.SizeConstraint != null && {
|
|
6542
6505
|
SizeConstraint: serializeAws_json1_1SizeConstraint(input.SizeConstraint, context),
|
|
6543
6506
|
}));
|
|
6544
6507
|
};
|
|
@@ -6553,8 +6516,7 @@ var serializeAws_json1_1SizeConstraintSetUpdates = function (input, context) {
|
|
|
6553
6516
|
});
|
|
6554
6517
|
};
|
|
6555
6518
|
var serializeAws_json1_1SqlInjectionMatchSetUpdate = function (input, context) {
|
|
6556
|
-
return __assign(__assign({}, (input.Action
|
|
6557
|
-
input.SqlInjectionMatchTuple !== null && {
|
|
6519
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.SqlInjectionMatchTuple != null && {
|
|
6558
6520
|
SqlInjectionMatchTuple: serializeAws_json1_1SqlInjectionMatchTuple(input.SqlInjectionMatchTuple, context),
|
|
6559
6521
|
}));
|
|
6560
6522
|
};
|
|
@@ -6569,12 +6531,10 @@ var serializeAws_json1_1SqlInjectionMatchSetUpdates = function (input, context)
|
|
|
6569
6531
|
});
|
|
6570
6532
|
};
|
|
6571
6533
|
var serializeAws_json1_1SqlInjectionMatchTuple = function (input, context) {
|
|
6572
|
-
return __assign(__assign({}, (input.FieldToMatch
|
|
6573
|
-
input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformation !== undefined &&
|
|
6574
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }));
|
|
6534
|
+
return __assign(__assign({}, (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformation != null && { TextTransformation: input.TextTransformation }));
|
|
6575
6535
|
};
|
|
6576
6536
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
6577
|
-
return __assign(__assign({}, (input.Key
|
|
6537
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
6578
6538
|
};
|
|
6579
6539
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
6580
6540
|
return input
|
|
@@ -6597,80 +6557,58 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
6597
6557
|
});
|
|
6598
6558
|
};
|
|
6599
6559
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
6600
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
6560
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
6601
6561
|
};
|
|
6602
6562
|
var serializeAws_json1_1TimeWindow = function (input, context) {
|
|
6603
|
-
return __assign(__assign({}, (input.EndTime
|
|
6604
|
-
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime !== undefined &&
|
|
6605
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
6563
|
+
return __assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
6606
6564
|
};
|
|
6607
6565
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
6608
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
6609
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
6566
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
6610
6567
|
};
|
|
6611
6568
|
var serializeAws_json1_1UpdateByteMatchSetRequest = function (input, context) {
|
|
6612
|
-
return __assign(__assign(__assign({}, (input.ByteMatchSetId
|
|
6613
|
-
input.ByteMatchSetId !== null && { ByteMatchSetId: input.ByteMatchSetId })), (input.ChangeToken !== undefined && input.ChangeToken !== null && { ChangeToken: input.ChangeToken })), (input.Updates !== undefined &&
|
|
6614
|
-
input.Updates !== null && { Updates: serializeAws_json1_1ByteMatchSetUpdates(input.Updates, context) }));
|
|
6569
|
+
return __assign(__assign(__assign({}, (input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId })), (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Updates != null && { Updates: serializeAws_json1_1ByteMatchSetUpdates(input.Updates, context) }));
|
|
6615
6570
|
};
|
|
6616
6571
|
var serializeAws_json1_1UpdateGeoMatchSetRequest = function (input, context) {
|
|
6617
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6618
|
-
input.Updates !== null && { Updates: serializeAws_json1_1GeoMatchSetUpdates(input.Updates, context) }));
|
|
6572
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId })), (input.Updates != null && { Updates: serializeAws_json1_1GeoMatchSetUpdates(input.Updates, context) }));
|
|
6619
6573
|
};
|
|
6620
6574
|
var serializeAws_json1_1UpdateIPSetRequest = function (input, context) {
|
|
6621
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6622
|
-
input.Updates !== null && { Updates: serializeAws_json1_1IPSetUpdates(input.Updates, context) }));
|
|
6575
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.IPSetId != null && { IPSetId: input.IPSetId })), (input.Updates != null && { Updates: serializeAws_json1_1IPSetUpdates(input.Updates, context) }));
|
|
6623
6576
|
};
|
|
6624
6577
|
var serializeAws_json1_1UpdateRateBasedRuleRequest = function (input, context) {
|
|
6625
|
-
return __assign(__assign(__assign(__assign({}, (input.ChangeToken
|
|
6626
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }));
|
|
6578
|
+
return __assign(__assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RateLimit != null && { RateLimit: input.RateLimit })), (input.RuleId != null && { RuleId: input.RuleId })), (input.Updates != null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }));
|
|
6627
6579
|
};
|
|
6628
6580
|
var serializeAws_json1_1UpdateRegexMatchSetRequest = function (input, context) {
|
|
6629
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6630
|
-
input.RegexMatchSetId !== null && { RegexMatchSetId: input.RegexMatchSetId })), (input.Updates !== undefined &&
|
|
6631
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RegexMatchSetUpdates(input.Updates, context) }));
|
|
6581
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId })), (input.Updates != null && { Updates: serializeAws_json1_1RegexMatchSetUpdates(input.Updates, context) }));
|
|
6632
6582
|
};
|
|
6633
6583
|
var serializeAws_json1_1UpdateRegexPatternSetRequest = function (input, context) {
|
|
6634
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6635
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId })), (input.Updates !== undefined &&
|
|
6636
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RegexPatternSetUpdates(input.Updates, context) }));
|
|
6584
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId })), (input.Updates != null && { Updates: serializeAws_json1_1RegexPatternSetUpdates(input.Updates, context) }));
|
|
6637
6585
|
};
|
|
6638
6586
|
var serializeAws_json1_1UpdateRuleGroupRequest = function (input, context) {
|
|
6639
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6640
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleGroupUpdates(input.Updates, context) }));
|
|
6587
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId })), (input.Updates != null && { Updates: serializeAws_json1_1RuleGroupUpdates(input.Updates, context) }));
|
|
6641
6588
|
};
|
|
6642
6589
|
var serializeAws_json1_1UpdateRuleRequest = function (input, context) {
|
|
6643
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6644
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }));
|
|
6590
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.RuleId != null && { RuleId: input.RuleId })), (input.Updates != null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }));
|
|
6645
6591
|
};
|
|
6646
6592
|
var serializeAws_json1_1UpdateSizeConstraintSetRequest = function (input, context) {
|
|
6647
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6648
|
-
input.SizeConstraintSetId !== null && { SizeConstraintSetId: input.SizeConstraintSetId })), (input.Updates !== undefined &&
|
|
6649
|
-
input.Updates !== null && { Updates: serializeAws_json1_1SizeConstraintSetUpdates(input.Updates, context) }));
|
|
6593
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId })), (input.Updates != null && { Updates: serializeAws_json1_1SizeConstraintSetUpdates(input.Updates, context) }));
|
|
6650
6594
|
};
|
|
6651
6595
|
var serializeAws_json1_1UpdateSqlInjectionMatchSetRequest = function (input, context) {
|
|
6652
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6653
|
-
input.SqlInjectionMatchSetId !== null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId })), (input.Updates !== undefined &&
|
|
6654
|
-
input.Updates !== null && { Updates: serializeAws_json1_1SqlInjectionMatchSetUpdates(input.Updates, context) }));
|
|
6596
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId })), (input.Updates != null && { Updates: serializeAws_json1_1SqlInjectionMatchSetUpdates(input.Updates, context) }));
|
|
6655
6597
|
};
|
|
6656
6598
|
var serializeAws_json1_1UpdateWebACLRequest = function (input, context) {
|
|
6657
|
-
return __assign(__assign(__assign(__assign({}, (input.ChangeToken
|
|
6658
|
-
input.DefaultAction !== null && { DefaultAction: serializeAws_json1_1WafAction(input.DefaultAction, context) })), (input.Updates !== undefined &&
|
|
6659
|
-
input.Updates !== null && { Updates: serializeAws_json1_1WebACLUpdates(input.Updates, context) })), (input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId }));
|
|
6599
|
+
return __assign(__assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.DefaultAction != null && { DefaultAction: serializeAws_json1_1WafAction(input.DefaultAction, context) })), (input.Updates != null && { Updates: serializeAws_json1_1WebACLUpdates(input.Updates, context) })), (input.WebACLId != null && { WebACLId: input.WebACLId }));
|
|
6660
6600
|
};
|
|
6661
6601
|
var serializeAws_json1_1UpdateXssMatchSetRequest = function (input, context) {
|
|
6662
|
-
return __assign(__assign(__assign({}, (input.ChangeToken
|
|
6663
|
-
input.Updates !== null && { Updates: serializeAws_json1_1XssMatchSetUpdates(input.Updates, context) })), (input.XssMatchSetId !== undefined && input.XssMatchSetId !== null && { XssMatchSetId: input.XssMatchSetId }));
|
|
6602
|
+
return __assign(__assign(__assign({}, (input.ChangeToken != null && { ChangeToken: input.ChangeToken })), (input.Updates != null && { Updates: serializeAws_json1_1XssMatchSetUpdates(input.Updates, context) })), (input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }));
|
|
6664
6603
|
};
|
|
6665
6604
|
var serializeAws_json1_1WafAction = function (input, context) {
|
|
6666
|
-
return __assign({}, (input.Type
|
|
6605
|
+
return __assign({}, (input.Type != null && { Type: input.Type }));
|
|
6667
6606
|
};
|
|
6668
6607
|
var serializeAws_json1_1WafOverrideAction = function (input, context) {
|
|
6669
|
-
return __assign({}, (input.Type
|
|
6608
|
+
return __assign({}, (input.Type != null && { Type: input.Type }));
|
|
6670
6609
|
};
|
|
6671
6610
|
var serializeAws_json1_1WebACLUpdate = function (input, context) {
|
|
6672
|
-
return __assign(__assign({}, (input.Action
|
|
6673
|
-
input.ActivatedRule !== null && {
|
|
6611
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.ActivatedRule != null && {
|
|
6674
6612
|
ActivatedRule: serializeAws_json1_1ActivatedRule(input.ActivatedRule, context),
|
|
6675
6613
|
}));
|
|
6676
6614
|
};
|
|
@@ -6685,8 +6623,7 @@ var serializeAws_json1_1WebACLUpdates = function (input, context) {
|
|
|
6685
6623
|
});
|
|
6686
6624
|
};
|
|
6687
6625
|
var serializeAws_json1_1XssMatchSetUpdate = function (input, context) {
|
|
6688
|
-
return __assign(__assign({}, (input.Action
|
|
6689
|
-
input.XssMatchTuple !== null && {
|
|
6626
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.XssMatchTuple != null && {
|
|
6690
6627
|
XssMatchTuple: serializeAws_json1_1XssMatchTuple(input.XssMatchTuple, context),
|
|
6691
6628
|
}));
|
|
6692
6629
|
};
|
|
@@ -6701,19 +6638,13 @@ var serializeAws_json1_1XssMatchSetUpdates = function (input, context) {
|
|
|
6701
6638
|
});
|
|
6702
6639
|
};
|
|
6703
6640
|
var serializeAws_json1_1XssMatchTuple = function (input, context) {
|
|
6704
|
-
return __assign(__assign({}, (input.FieldToMatch
|
|
6705
|
-
input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformation !== undefined &&
|
|
6706
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }));
|
|
6641
|
+
return __assign(__assign({}, (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformation != null && { TextTransformation: input.TextTransformation }));
|
|
6707
6642
|
};
|
|
6708
6643
|
var deserializeAws_json1_1ActivatedRule = function (output, context) {
|
|
6709
6644
|
return {
|
|
6710
|
-
Action: output.Action
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
|
|
6714
|
-
? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
|
|
6715
|
-
: undefined,
|
|
6716
|
-
OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
|
|
6645
|
+
Action: output.Action != null ? deserializeAws_json1_1WafAction(output.Action, context) : undefined,
|
|
6646
|
+
ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
|
|
6647
|
+
OverrideAction: output.OverrideAction != null
|
|
6717
6648
|
? deserializeAws_json1_1WafOverrideAction(output.OverrideAction, context)
|
|
6718
6649
|
: undefined,
|
|
6719
6650
|
Priority: __expectInt32(output.Priority),
|
|
@@ -6735,7 +6666,7 @@ var deserializeAws_json1_1ActivatedRules = function (output, context) {
|
|
|
6735
6666
|
var deserializeAws_json1_1ByteMatchSet = function (output, context) {
|
|
6736
6667
|
return {
|
|
6737
6668
|
ByteMatchSetId: __expectString(output.ByteMatchSetId),
|
|
6738
|
-
ByteMatchTuples: output.ByteMatchTuples
|
|
6669
|
+
ByteMatchTuples: output.ByteMatchTuples != null
|
|
6739
6670
|
? deserializeAws_json1_1ByteMatchTuples(output.ByteMatchTuples, context)
|
|
6740
6671
|
: undefined,
|
|
6741
6672
|
Name: __expectString(output.Name),
|
|
@@ -6760,13 +6691,9 @@ var deserializeAws_json1_1ByteMatchSetSummary = function (output, context) {
|
|
|
6760
6691
|
};
|
|
6761
6692
|
var deserializeAws_json1_1ByteMatchTuple = function (output, context) {
|
|
6762
6693
|
return {
|
|
6763
|
-
FieldToMatch: output.FieldToMatch
|
|
6764
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6765
|
-
: undefined,
|
|
6694
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6766
6695
|
PositionalConstraint: __expectString(output.PositionalConstraint),
|
|
6767
|
-
TargetString: output.TargetString
|
|
6768
|
-
? context.base64Decoder(output.TargetString)
|
|
6769
|
-
: undefined,
|
|
6696
|
+
TargetString: output.TargetString != null ? context.base64Decoder(output.TargetString) : undefined,
|
|
6770
6697
|
TextTransformation: __expectString(output.TextTransformation),
|
|
6771
6698
|
};
|
|
6772
6699
|
};
|
|
@@ -6783,48 +6710,38 @@ var deserializeAws_json1_1ByteMatchTuples = function (output, context) {
|
|
|
6783
6710
|
};
|
|
6784
6711
|
var deserializeAws_json1_1CreateByteMatchSetResponse = function (output, context) {
|
|
6785
6712
|
return {
|
|
6786
|
-
ByteMatchSet: output.ByteMatchSet
|
|
6787
|
-
? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context)
|
|
6788
|
-
: undefined,
|
|
6713
|
+
ByteMatchSet: output.ByteMatchSet != null ? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context) : undefined,
|
|
6789
6714
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6790
6715
|
};
|
|
6791
6716
|
};
|
|
6792
6717
|
var deserializeAws_json1_1CreateGeoMatchSetResponse = function (output, context) {
|
|
6793
6718
|
return {
|
|
6794
6719
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6795
|
-
GeoMatchSet: output.GeoMatchSet
|
|
6796
|
-
? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context)
|
|
6797
|
-
: undefined,
|
|
6720
|
+
GeoMatchSet: output.GeoMatchSet != null ? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context) : undefined,
|
|
6798
6721
|
};
|
|
6799
6722
|
};
|
|
6800
6723
|
var deserializeAws_json1_1CreateIPSetResponse = function (output, context) {
|
|
6801
6724
|
return {
|
|
6802
6725
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6803
|
-
IPSet: output.IPSet
|
|
6804
|
-
? deserializeAws_json1_1IPSet(output.IPSet, context)
|
|
6805
|
-
: undefined,
|
|
6726
|
+
IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
|
|
6806
6727
|
};
|
|
6807
6728
|
};
|
|
6808
6729
|
var deserializeAws_json1_1CreateRateBasedRuleResponse = function (output, context) {
|
|
6809
6730
|
return {
|
|
6810
6731
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6811
|
-
Rule: output.Rule
|
|
6812
|
-
? deserializeAws_json1_1RateBasedRule(output.Rule, context)
|
|
6813
|
-
: undefined,
|
|
6732
|
+
Rule: output.Rule != null ? deserializeAws_json1_1RateBasedRule(output.Rule, context) : undefined,
|
|
6814
6733
|
};
|
|
6815
6734
|
};
|
|
6816
6735
|
var deserializeAws_json1_1CreateRegexMatchSetResponse = function (output, context) {
|
|
6817
6736
|
return {
|
|
6818
6737
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6819
|
-
RegexMatchSet: output.RegexMatchSet
|
|
6820
|
-
? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context)
|
|
6821
|
-
: undefined,
|
|
6738
|
+
RegexMatchSet: output.RegexMatchSet != null ? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context) : undefined,
|
|
6822
6739
|
};
|
|
6823
6740
|
};
|
|
6824
6741
|
var deserializeAws_json1_1CreateRegexPatternSetResponse = function (output, context) {
|
|
6825
6742
|
return {
|
|
6826
6743
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6827
|
-
RegexPatternSet: output.RegexPatternSet
|
|
6744
|
+
RegexPatternSet: output.RegexPatternSet != null
|
|
6828
6745
|
? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
|
|
6829
6746
|
: undefined,
|
|
6830
6747
|
};
|
|
@@ -6832,21 +6749,19 @@ var deserializeAws_json1_1CreateRegexPatternSetResponse = function (output, cont
|
|
|
6832
6749
|
var deserializeAws_json1_1CreateRuleGroupResponse = function (output, context) {
|
|
6833
6750
|
return {
|
|
6834
6751
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6835
|
-
RuleGroup: output.RuleGroup
|
|
6836
|
-
? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
|
|
6837
|
-
: undefined,
|
|
6752
|
+
RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
|
|
6838
6753
|
};
|
|
6839
6754
|
};
|
|
6840
6755
|
var deserializeAws_json1_1CreateRuleResponse = function (output, context) {
|
|
6841
6756
|
return {
|
|
6842
6757
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6843
|
-
Rule: output.Rule
|
|
6758
|
+
Rule: output.Rule != null ? deserializeAws_json1_1Rule(output.Rule, context) : undefined,
|
|
6844
6759
|
};
|
|
6845
6760
|
};
|
|
6846
6761
|
var deserializeAws_json1_1CreateSizeConstraintSetResponse = function (output, context) {
|
|
6847
6762
|
return {
|
|
6848
6763
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6849
|
-
SizeConstraintSet: output.SizeConstraintSet
|
|
6764
|
+
SizeConstraintSet: output.SizeConstraintSet != null
|
|
6850
6765
|
? deserializeAws_json1_1SizeConstraintSet(output.SizeConstraintSet, context)
|
|
6851
6766
|
: undefined,
|
|
6852
6767
|
};
|
|
@@ -6854,7 +6769,7 @@ var deserializeAws_json1_1CreateSizeConstraintSetResponse = function (output, co
|
|
|
6854
6769
|
var deserializeAws_json1_1CreateSqlInjectionMatchSetResponse = function (output, context) {
|
|
6855
6770
|
return {
|
|
6856
6771
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6857
|
-
SqlInjectionMatchSet: output.SqlInjectionMatchSet
|
|
6772
|
+
SqlInjectionMatchSet: output.SqlInjectionMatchSet != null
|
|
6858
6773
|
? deserializeAws_json1_1SqlInjectionMatchSet(output.SqlInjectionMatchSet, context)
|
|
6859
6774
|
: undefined,
|
|
6860
6775
|
};
|
|
@@ -6867,17 +6782,13 @@ var deserializeAws_json1_1CreateWebACLMigrationStackResponse = function (output,
|
|
|
6867
6782
|
var deserializeAws_json1_1CreateWebACLResponse = function (output, context) {
|
|
6868
6783
|
return {
|
|
6869
6784
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6870
|
-
WebACL: output.WebACL
|
|
6871
|
-
? deserializeAws_json1_1WebACL(output.WebACL, context)
|
|
6872
|
-
: undefined,
|
|
6785
|
+
WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
|
|
6873
6786
|
};
|
|
6874
6787
|
};
|
|
6875
6788
|
var deserializeAws_json1_1CreateXssMatchSetResponse = function (output, context) {
|
|
6876
6789
|
return {
|
|
6877
6790
|
ChangeToken: __expectString(output.ChangeToken),
|
|
6878
|
-
XssMatchSet: output.XssMatchSet
|
|
6879
|
-
? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context)
|
|
6880
|
-
: undefined,
|
|
6791
|
+
XssMatchSet: output.XssMatchSet != null ? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context) : undefined,
|
|
6881
6792
|
};
|
|
6882
6793
|
};
|
|
6883
6794
|
var deserializeAws_json1_1DeleteByteMatchSetResponse = function (output, context) {
|
|
@@ -6987,7 +6898,7 @@ var deserializeAws_json1_1GeoMatchConstraints = function (output, context) {
|
|
|
6987
6898
|
};
|
|
6988
6899
|
var deserializeAws_json1_1GeoMatchSet = function (output, context) {
|
|
6989
6900
|
return {
|
|
6990
|
-
GeoMatchConstraints: output.GeoMatchConstraints
|
|
6901
|
+
GeoMatchConstraints: output.GeoMatchConstraints != null
|
|
6991
6902
|
? deserializeAws_json1_1GeoMatchConstraints(output.GeoMatchConstraints, context)
|
|
6992
6903
|
: undefined,
|
|
6993
6904
|
GeoMatchSetId: __expectString(output.GeoMatchSetId),
|
|
@@ -7013,9 +6924,7 @@ var deserializeAws_json1_1GeoMatchSetSummary = function (output, context) {
|
|
|
7013
6924
|
};
|
|
7014
6925
|
var deserializeAws_json1_1GetByteMatchSetResponse = function (output, context) {
|
|
7015
6926
|
return {
|
|
7016
|
-
ByteMatchSet: output.ByteMatchSet
|
|
7017
|
-
? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context)
|
|
7018
|
-
: undefined,
|
|
6927
|
+
ByteMatchSet: output.ByteMatchSet != null ? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context) : undefined,
|
|
7019
6928
|
};
|
|
7020
6929
|
};
|
|
7021
6930
|
var deserializeAws_json1_1GetChangeTokenResponse = function (output, context) {
|
|
@@ -7030,21 +6939,17 @@ var deserializeAws_json1_1GetChangeTokenStatusResponse = function (output, conte
|
|
|
7030
6939
|
};
|
|
7031
6940
|
var deserializeAws_json1_1GetGeoMatchSetResponse = function (output, context) {
|
|
7032
6941
|
return {
|
|
7033
|
-
GeoMatchSet: output.GeoMatchSet
|
|
7034
|
-
? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context)
|
|
7035
|
-
: undefined,
|
|
6942
|
+
GeoMatchSet: output.GeoMatchSet != null ? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context) : undefined,
|
|
7036
6943
|
};
|
|
7037
6944
|
};
|
|
7038
6945
|
var deserializeAws_json1_1GetIPSetResponse = function (output, context) {
|
|
7039
6946
|
return {
|
|
7040
|
-
IPSet: output.IPSet
|
|
7041
|
-
? deserializeAws_json1_1IPSet(output.IPSet, context)
|
|
7042
|
-
: undefined,
|
|
6947
|
+
IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
|
|
7043
6948
|
};
|
|
7044
6949
|
};
|
|
7045
6950
|
var deserializeAws_json1_1GetLoggingConfigurationResponse = function (output, context) {
|
|
7046
6951
|
return {
|
|
7047
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
6952
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
7048
6953
|
? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
7049
6954
|
: undefined,
|
|
7050
6955
|
};
|
|
@@ -7056,82 +6961,68 @@ var deserializeAws_json1_1GetPermissionPolicyResponse = function (output, contex
|
|
|
7056
6961
|
};
|
|
7057
6962
|
var deserializeAws_json1_1GetRateBasedRuleManagedKeysResponse = function (output, context) {
|
|
7058
6963
|
return {
|
|
7059
|
-
ManagedKeys: output.ManagedKeys
|
|
7060
|
-
? deserializeAws_json1_1ManagedKeys(output.ManagedKeys, context)
|
|
7061
|
-
: undefined,
|
|
6964
|
+
ManagedKeys: output.ManagedKeys != null ? deserializeAws_json1_1ManagedKeys(output.ManagedKeys, context) : undefined,
|
|
7062
6965
|
NextMarker: __expectString(output.NextMarker),
|
|
7063
6966
|
};
|
|
7064
6967
|
};
|
|
7065
6968
|
var deserializeAws_json1_1GetRateBasedRuleResponse = function (output, context) {
|
|
7066
6969
|
return {
|
|
7067
|
-
Rule: output.Rule
|
|
7068
|
-
? deserializeAws_json1_1RateBasedRule(output.Rule, context)
|
|
7069
|
-
: undefined,
|
|
6970
|
+
Rule: output.Rule != null ? deserializeAws_json1_1RateBasedRule(output.Rule, context) : undefined,
|
|
7070
6971
|
};
|
|
7071
6972
|
};
|
|
7072
6973
|
var deserializeAws_json1_1GetRegexMatchSetResponse = function (output, context) {
|
|
7073
6974
|
return {
|
|
7074
|
-
RegexMatchSet: output.RegexMatchSet
|
|
7075
|
-
? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context)
|
|
7076
|
-
: undefined,
|
|
6975
|
+
RegexMatchSet: output.RegexMatchSet != null ? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context) : undefined,
|
|
7077
6976
|
};
|
|
7078
6977
|
};
|
|
7079
6978
|
var deserializeAws_json1_1GetRegexPatternSetResponse = function (output, context) {
|
|
7080
6979
|
return {
|
|
7081
|
-
RegexPatternSet: output.RegexPatternSet
|
|
6980
|
+
RegexPatternSet: output.RegexPatternSet != null
|
|
7082
6981
|
? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
|
|
7083
6982
|
: undefined,
|
|
7084
6983
|
};
|
|
7085
6984
|
};
|
|
7086
6985
|
var deserializeAws_json1_1GetRuleGroupResponse = function (output, context) {
|
|
7087
6986
|
return {
|
|
7088
|
-
RuleGroup: output.RuleGroup
|
|
7089
|
-
? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
|
|
7090
|
-
: undefined,
|
|
6987
|
+
RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
|
|
7091
6988
|
};
|
|
7092
6989
|
};
|
|
7093
6990
|
var deserializeAws_json1_1GetRuleResponse = function (output, context) {
|
|
7094
6991
|
return {
|
|
7095
|
-
Rule: output.Rule
|
|
6992
|
+
Rule: output.Rule != null ? deserializeAws_json1_1Rule(output.Rule, context) : undefined,
|
|
7096
6993
|
};
|
|
7097
6994
|
};
|
|
7098
6995
|
var deserializeAws_json1_1GetSampledRequestsResponse = function (output, context) {
|
|
7099
6996
|
return {
|
|
7100
6997
|
PopulationSize: __expectLong(output.PopulationSize),
|
|
7101
|
-
SampledRequests: output.SampledRequests
|
|
6998
|
+
SampledRequests: output.SampledRequests != null
|
|
7102
6999
|
? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context)
|
|
7103
7000
|
: undefined,
|
|
7104
|
-
TimeWindow: output.TimeWindow
|
|
7105
|
-
? deserializeAws_json1_1TimeWindow(output.TimeWindow, context)
|
|
7106
|
-
: undefined,
|
|
7001
|
+
TimeWindow: output.TimeWindow != null ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context) : undefined,
|
|
7107
7002
|
};
|
|
7108
7003
|
};
|
|
7109
7004
|
var deserializeAws_json1_1GetSizeConstraintSetResponse = function (output, context) {
|
|
7110
7005
|
return {
|
|
7111
|
-
SizeConstraintSet: output.SizeConstraintSet
|
|
7006
|
+
SizeConstraintSet: output.SizeConstraintSet != null
|
|
7112
7007
|
? deserializeAws_json1_1SizeConstraintSet(output.SizeConstraintSet, context)
|
|
7113
7008
|
: undefined,
|
|
7114
7009
|
};
|
|
7115
7010
|
};
|
|
7116
7011
|
var deserializeAws_json1_1GetSqlInjectionMatchSetResponse = function (output, context) {
|
|
7117
7012
|
return {
|
|
7118
|
-
SqlInjectionMatchSet: output.SqlInjectionMatchSet
|
|
7013
|
+
SqlInjectionMatchSet: output.SqlInjectionMatchSet != null
|
|
7119
7014
|
? deserializeAws_json1_1SqlInjectionMatchSet(output.SqlInjectionMatchSet, context)
|
|
7120
7015
|
: undefined,
|
|
7121
7016
|
};
|
|
7122
7017
|
};
|
|
7123
7018
|
var deserializeAws_json1_1GetWebACLResponse = function (output, context) {
|
|
7124
7019
|
return {
|
|
7125
|
-
WebACL: output.WebACL
|
|
7126
|
-
? deserializeAws_json1_1WebACL(output.WebACL, context)
|
|
7127
|
-
: undefined,
|
|
7020
|
+
WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
|
|
7128
7021
|
};
|
|
7129
7022
|
};
|
|
7130
7023
|
var deserializeAws_json1_1GetXssMatchSetResponse = function (output, context) {
|
|
7131
7024
|
return {
|
|
7132
|
-
XssMatchSet: output.XssMatchSet
|
|
7133
|
-
? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context)
|
|
7134
|
-
: undefined,
|
|
7025
|
+
XssMatchSet: output.XssMatchSet != null ? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context) : undefined,
|
|
7135
7026
|
};
|
|
7136
7027
|
};
|
|
7137
7028
|
var deserializeAws_json1_1HTTPHeader = function (output, context) {
|
|
@@ -7156,16 +7047,14 @@ var deserializeAws_json1_1HTTPRequest = function (output, context) {
|
|
|
7156
7047
|
ClientIP: __expectString(output.ClientIP),
|
|
7157
7048
|
Country: __expectString(output.Country),
|
|
7158
7049
|
HTTPVersion: __expectString(output.HTTPVersion),
|
|
7159
|
-
Headers: output.Headers
|
|
7160
|
-
? deserializeAws_json1_1HTTPHeaders(output.Headers, context)
|
|
7161
|
-
: undefined,
|
|
7050
|
+
Headers: output.Headers != null ? deserializeAws_json1_1HTTPHeaders(output.Headers, context) : undefined,
|
|
7162
7051
|
Method: __expectString(output.Method),
|
|
7163
7052
|
URI: __expectString(output.URI),
|
|
7164
7053
|
};
|
|
7165
7054
|
};
|
|
7166
7055
|
var deserializeAws_json1_1IPSet = function (output, context) {
|
|
7167
7056
|
return {
|
|
7168
|
-
IPSetDescriptors: output.IPSetDescriptors
|
|
7057
|
+
IPSetDescriptors: output.IPSetDescriptors != null
|
|
7169
7058
|
? deserializeAws_json1_1IPSetDescriptors(output.IPSetDescriptors, context)
|
|
7170
7059
|
: undefined,
|
|
7171
7060
|
IPSetId: __expectString(output.IPSetId),
|
|
@@ -7208,15 +7097,13 @@ var deserializeAws_json1_1IPSetSummary = function (output, context) {
|
|
|
7208
7097
|
};
|
|
7209
7098
|
var deserializeAws_json1_1ListActivatedRulesInRuleGroupResponse = function (output, context) {
|
|
7210
7099
|
return {
|
|
7211
|
-
ActivatedRules: output.ActivatedRules
|
|
7212
|
-
? deserializeAws_json1_1ActivatedRules(output.ActivatedRules, context)
|
|
7213
|
-
: undefined,
|
|
7100
|
+
ActivatedRules: output.ActivatedRules != null ? deserializeAws_json1_1ActivatedRules(output.ActivatedRules, context) : undefined,
|
|
7214
7101
|
NextMarker: __expectString(output.NextMarker),
|
|
7215
7102
|
};
|
|
7216
7103
|
};
|
|
7217
7104
|
var deserializeAws_json1_1ListByteMatchSetsResponse = function (output, context) {
|
|
7218
7105
|
return {
|
|
7219
|
-
ByteMatchSets: output.ByteMatchSets
|
|
7106
|
+
ByteMatchSets: output.ByteMatchSets != null
|
|
7220
7107
|
? deserializeAws_json1_1ByteMatchSetSummaries(output.ByteMatchSets, context)
|
|
7221
7108
|
: undefined,
|
|
7222
7109
|
NextMarker: __expectString(output.NextMarker),
|
|
@@ -7224,7 +7111,7 @@ var deserializeAws_json1_1ListByteMatchSetsResponse = function (output, context)
|
|
|
7224
7111
|
};
|
|
7225
7112
|
var deserializeAws_json1_1ListGeoMatchSetsResponse = function (output, context) {
|
|
7226
7113
|
return {
|
|
7227
|
-
GeoMatchSets: output.GeoMatchSets
|
|
7114
|
+
GeoMatchSets: output.GeoMatchSets != null
|
|
7228
7115
|
? deserializeAws_json1_1GeoMatchSetSummaries(output.GeoMatchSets, context)
|
|
7229
7116
|
: undefined,
|
|
7230
7117
|
NextMarker: __expectString(output.NextMarker),
|
|
@@ -7232,15 +7119,13 @@ var deserializeAws_json1_1ListGeoMatchSetsResponse = function (output, context)
|
|
|
7232
7119
|
};
|
|
7233
7120
|
var deserializeAws_json1_1ListIPSetsResponse = function (output, context) {
|
|
7234
7121
|
return {
|
|
7235
|
-
IPSets: output.IPSets
|
|
7236
|
-
? deserializeAws_json1_1IPSetSummaries(output.IPSets, context)
|
|
7237
|
-
: undefined,
|
|
7122
|
+
IPSets: output.IPSets != null ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context) : undefined,
|
|
7238
7123
|
NextMarker: __expectString(output.NextMarker),
|
|
7239
7124
|
};
|
|
7240
7125
|
};
|
|
7241
7126
|
var deserializeAws_json1_1ListLoggingConfigurationsResponse = function (output, context) {
|
|
7242
7127
|
return {
|
|
7243
|
-
LoggingConfigurations: output.LoggingConfigurations
|
|
7128
|
+
LoggingConfigurations: output.LoggingConfigurations != null
|
|
7244
7129
|
? deserializeAws_json1_1LoggingConfigurations(output.LoggingConfigurations, context)
|
|
7245
7130
|
: undefined,
|
|
7246
7131
|
NextMarker: __expectString(output.NextMarker),
|
|
@@ -7249,15 +7134,13 @@ var deserializeAws_json1_1ListLoggingConfigurationsResponse = function (output,
|
|
|
7249
7134
|
var deserializeAws_json1_1ListRateBasedRulesResponse = function (output, context) {
|
|
7250
7135
|
return {
|
|
7251
7136
|
NextMarker: __expectString(output.NextMarker),
|
|
7252
|
-
Rules: output.Rules
|
|
7253
|
-
? deserializeAws_json1_1RuleSummaries(output.Rules, context)
|
|
7254
|
-
: undefined,
|
|
7137
|
+
Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
|
|
7255
7138
|
};
|
|
7256
7139
|
};
|
|
7257
7140
|
var deserializeAws_json1_1ListRegexMatchSetsResponse = function (output, context) {
|
|
7258
7141
|
return {
|
|
7259
7142
|
NextMarker: __expectString(output.NextMarker),
|
|
7260
|
-
RegexMatchSets: output.RegexMatchSets
|
|
7143
|
+
RegexMatchSets: output.RegexMatchSets != null
|
|
7261
7144
|
? deserializeAws_json1_1RegexMatchSetSummaries(output.RegexMatchSets, context)
|
|
7262
7145
|
: undefined,
|
|
7263
7146
|
};
|
|
@@ -7265,7 +7148,7 @@ var deserializeAws_json1_1ListRegexMatchSetsResponse = function (output, context
|
|
|
7265
7148
|
var deserializeAws_json1_1ListRegexPatternSetsResponse = function (output, context) {
|
|
7266
7149
|
return {
|
|
7267
7150
|
NextMarker: __expectString(output.NextMarker),
|
|
7268
|
-
RegexPatternSets: output.RegexPatternSets
|
|
7151
|
+
RegexPatternSets: output.RegexPatternSets != null
|
|
7269
7152
|
? deserializeAws_json1_1RegexPatternSetSummaries(output.RegexPatternSets, context)
|
|
7270
7153
|
: undefined,
|
|
7271
7154
|
};
|
|
@@ -7273,23 +7156,19 @@ var deserializeAws_json1_1ListRegexPatternSetsResponse = function (output, conte
|
|
|
7273
7156
|
var deserializeAws_json1_1ListRuleGroupsResponse = function (output, context) {
|
|
7274
7157
|
return {
|
|
7275
7158
|
NextMarker: __expectString(output.NextMarker),
|
|
7276
|
-
RuleGroups: output.RuleGroups
|
|
7277
|
-
? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context)
|
|
7278
|
-
: undefined,
|
|
7159
|
+
RuleGroups: output.RuleGroups != null ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context) : undefined,
|
|
7279
7160
|
};
|
|
7280
7161
|
};
|
|
7281
7162
|
var deserializeAws_json1_1ListRulesResponse = function (output, context) {
|
|
7282
7163
|
return {
|
|
7283
7164
|
NextMarker: __expectString(output.NextMarker),
|
|
7284
|
-
Rules: output.Rules
|
|
7285
|
-
? deserializeAws_json1_1RuleSummaries(output.Rules, context)
|
|
7286
|
-
: undefined,
|
|
7165
|
+
Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
|
|
7287
7166
|
};
|
|
7288
7167
|
};
|
|
7289
7168
|
var deserializeAws_json1_1ListSizeConstraintSetsResponse = function (output, context) {
|
|
7290
7169
|
return {
|
|
7291
7170
|
NextMarker: __expectString(output.NextMarker),
|
|
7292
|
-
SizeConstraintSets: output.SizeConstraintSets
|
|
7171
|
+
SizeConstraintSets: output.SizeConstraintSets != null
|
|
7293
7172
|
? deserializeAws_json1_1SizeConstraintSetSummaries(output.SizeConstraintSets, context)
|
|
7294
7173
|
: undefined,
|
|
7295
7174
|
};
|
|
@@ -7297,7 +7176,7 @@ var deserializeAws_json1_1ListSizeConstraintSetsResponse = function (output, con
|
|
|
7297
7176
|
var deserializeAws_json1_1ListSqlInjectionMatchSetsResponse = function (output, context) {
|
|
7298
7177
|
return {
|
|
7299
7178
|
NextMarker: __expectString(output.NextMarker),
|
|
7300
|
-
SqlInjectionMatchSets: output.SqlInjectionMatchSets
|
|
7179
|
+
SqlInjectionMatchSets: output.SqlInjectionMatchSets != null
|
|
7301
7180
|
? deserializeAws_json1_1SqlInjectionMatchSetSummaries(output.SqlInjectionMatchSets, context)
|
|
7302
7181
|
: undefined,
|
|
7303
7182
|
};
|
|
@@ -7305,7 +7184,7 @@ var deserializeAws_json1_1ListSqlInjectionMatchSetsResponse = function (output,
|
|
|
7305
7184
|
var deserializeAws_json1_1ListSubscribedRuleGroupsResponse = function (output, context) {
|
|
7306
7185
|
return {
|
|
7307
7186
|
NextMarker: __expectString(output.NextMarker),
|
|
7308
|
-
RuleGroups: output.RuleGroups
|
|
7187
|
+
RuleGroups: output.RuleGroups != null
|
|
7309
7188
|
? deserializeAws_json1_1SubscribedRuleGroupSummaries(output.RuleGroups, context)
|
|
7310
7189
|
: undefined,
|
|
7311
7190
|
};
|
|
@@ -7313,7 +7192,7 @@ var deserializeAws_json1_1ListSubscribedRuleGroupsResponse = function (output, c
|
|
|
7313
7192
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
7314
7193
|
return {
|
|
7315
7194
|
NextMarker: __expectString(output.NextMarker),
|
|
7316
|
-
TagInfoForResource: output.TagInfoForResource
|
|
7195
|
+
TagInfoForResource: output.TagInfoForResource != null
|
|
7317
7196
|
? deserializeAws_json1_1TagInfoForResource(output.TagInfoForResource, context)
|
|
7318
7197
|
: undefined,
|
|
7319
7198
|
};
|
|
@@ -7321,15 +7200,13 @@ var deserializeAws_json1_1ListTagsForResourceResponse = function (output, contex
|
|
|
7321
7200
|
var deserializeAws_json1_1ListWebACLsResponse = function (output, context) {
|
|
7322
7201
|
return {
|
|
7323
7202
|
NextMarker: __expectString(output.NextMarker),
|
|
7324
|
-
WebACLs: output.WebACLs
|
|
7325
|
-
? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context)
|
|
7326
|
-
: undefined,
|
|
7203
|
+
WebACLs: output.WebACLs != null ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context) : undefined,
|
|
7327
7204
|
};
|
|
7328
7205
|
};
|
|
7329
7206
|
var deserializeAws_json1_1ListXssMatchSetsResponse = function (output, context) {
|
|
7330
7207
|
return {
|
|
7331
7208
|
NextMarker: __expectString(output.NextMarker),
|
|
7332
|
-
XssMatchSets: output.XssMatchSets
|
|
7209
|
+
XssMatchSets: output.XssMatchSets != null
|
|
7333
7210
|
? deserializeAws_json1_1XssMatchSetSummaries(output.XssMatchSets, context)
|
|
7334
7211
|
: undefined,
|
|
7335
7212
|
};
|
|
@@ -7347,12 +7224,10 @@ var deserializeAws_json1_1LogDestinationConfigs = function (output, context) {
|
|
|
7347
7224
|
};
|
|
7348
7225
|
var deserializeAws_json1_1LoggingConfiguration = function (output, context) {
|
|
7349
7226
|
return {
|
|
7350
|
-
LogDestinationConfigs: output.LogDestinationConfigs
|
|
7227
|
+
LogDestinationConfigs: output.LogDestinationConfigs != null
|
|
7351
7228
|
? deserializeAws_json1_1LogDestinationConfigs(output.LogDestinationConfigs, context)
|
|
7352
7229
|
: undefined,
|
|
7353
|
-
RedactedFields: output.RedactedFields
|
|
7354
|
-
? deserializeAws_json1_1RedactedFields(output.RedactedFields, context)
|
|
7355
|
-
: undefined,
|
|
7230
|
+
RedactedFields: output.RedactedFields != null ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context) : undefined,
|
|
7356
7231
|
ResourceArn: __expectString(output.ResourceArn),
|
|
7357
7232
|
};
|
|
7358
7233
|
};
|
|
@@ -7398,7 +7273,7 @@ var deserializeAws_json1_1Predicates = function (output, context) {
|
|
|
7398
7273
|
};
|
|
7399
7274
|
var deserializeAws_json1_1PutLoggingConfigurationResponse = function (output, context) {
|
|
7400
7275
|
return {
|
|
7401
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
7276
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
7402
7277
|
? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
7403
7278
|
: undefined,
|
|
7404
7279
|
};
|
|
@@ -7408,9 +7283,7 @@ var deserializeAws_json1_1PutPermissionPolicyResponse = function (output, contex
|
|
|
7408
7283
|
};
|
|
7409
7284
|
var deserializeAws_json1_1RateBasedRule = function (output, context) {
|
|
7410
7285
|
return {
|
|
7411
|
-
MatchPredicates: output.MatchPredicates
|
|
7412
|
-
? deserializeAws_json1_1Predicates(output.MatchPredicates, context)
|
|
7413
|
-
: undefined,
|
|
7286
|
+
MatchPredicates: output.MatchPredicates != null ? deserializeAws_json1_1Predicates(output.MatchPredicates, context) : undefined,
|
|
7414
7287
|
MetricName: __expectString(output.MetricName),
|
|
7415
7288
|
Name: __expectString(output.Name),
|
|
7416
7289
|
RateKey: __expectString(output.RateKey),
|
|
@@ -7433,7 +7306,7 @@ var deserializeAws_json1_1RegexMatchSet = function (output, context) {
|
|
|
7433
7306
|
return {
|
|
7434
7307
|
Name: __expectString(output.Name),
|
|
7435
7308
|
RegexMatchSetId: __expectString(output.RegexMatchSetId),
|
|
7436
|
-
RegexMatchTuples: output.RegexMatchTuples
|
|
7309
|
+
RegexMatchTuples: output.RegexMatchTuples != null
|
|
7437
7310
|
? deserializeAws_json1_1RegexMatchTuples(output.RegexMatchTuples, context)
|
|
7438
7311
|
: undefined,
|
|
7439
7312
|
};
|
|
@@ -7457,9 +7330,7 @@ var deserializeAws_json1_1RegexMatchSetSummary = function (output, context) {
|
|
|
7457
7330
|
};
|
|
7458
7331
|
var deserializeAws_json1_1RegexMatchTuple = function (output, context) {
|
|
7459
7332
|
return {
|
|
7460
|
-
FieldToMatch: output.FieldToMatch
|
|
7461
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
7462
|
-
: undefined,
|
|
7333
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
7463
7334
|
RegexPatternSetId: __expectString(output.RegexPatternSetId),
|
|
7464
7335
|
TextTransformation: __expectString(output.TextTransformation),
|
|
7465
7336
|
};
|
|
@@ -7479,7 +7350,7 @@ var deserializeAws_json1_1RegexPatternSet = function (output, context) {
|
|
|
7479
7350
|
return {
|
|
7480
7351
|
Name: __expectString(output.Name),
|
|
7481
7352
|
RegexPatternSetId: __expectString(output.RegexPatternSetId),
|
|
7482
|
-
RegexPatternStrings: output.RegexPatternStrings
|
|
7353
|
+
RegexPatternStrings: output.RegexPatternStrings != null
|
|
7483
7354
|
? deserializeAws_json1_1RegexPatternStrings(output.RegexPatternStrings, context)
|
|
7484
7355
|
: undefined,
|
|
7485
7356
|
};
|
|
@@ -7516,9 +7387,7 @@ var deserializeAws_json1_1Rule = function (output, context) {
|
|
|
7516
7387
|
return {
|
|
7517
7388
|
MetricName: __expectString(output.MetricName),
|
|
7518
7389
|
Name: __expectString(output.Name),
|
|
7519
|
-
Predicates: output.Predicates
|
|
7520
|
-
? deserializeAws_json1_1Predicates(output.Predicates, context)
|
|
7521
|
-
: undefined,
|
|
7390
|
+
Predicates: output.Predicates != null ? deserializeAws_json1_1Predicates(output.Predicates, context) : undefined,
|
|
7522
7391
|
RuleId: __expectString(output.RuleId),
|
|
7523
7392
|
};
|
|
7524
7393
|
};
|
|
@@ -7566,13 +7435,9 @@ var deserializeAws_json1_1RuleSummary = function (output, context) {
|
|
|
7566
7435
|
var deserializeAws_json1_1SampledHTTPRequest = function (output, context) {
|
|
7567
7436
|
return {
|
|
7568
7437
|
Action: __expectString(output.Action),
|
|
7569
|
-
Request: output.Request
|
|
7570
|
-
? deserializeAws_json1_1HTTPRequest(output.Request, context)
|
|
7571
|
-
: undefined,
|
|
7438
|
+
Request: output.Request != null ? deserializeAws_json1_1HTTPRequest(output.Request, context) : undefined,
|
|
7572
7439
|
RuleWithinRuleGroup: __expectString(output.RuleWithinRuleGroup),
|
|
7573
|
-
Timestamp: output.Timestamp
|
|
7574
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
|
|
7575
|
-
: undefined,
|
|
7440
|
+
Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
|
|
7576
7441
|
Weight: __expectLong(output.Weight),
|
|
7577
7442
|
};
|
|
7578
7443
|
};
|
|
@@ -7590,9 +7455,7 @@ var deserializeAws_json1_1SampledHTTPRequests = function (output, context) {
|
|
|
7590
7455
|
var deserializeAws_json1_1SizeConstraint = function (output, context) {
|
|
7591
7456
|
return {
|
|
7592
7457
|
ComparisonOperator: __expectString(output.ComparisonOperator),
|
|
7593
|
-
FieldToMatch: output.FieldToMatch
|
|
7594
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
7595
|
-
: undefined,
|
|
7458
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
7596
7459
|
Size: __expectLong(output.Size),
|
|
7597
7460
|
TextTransformation: __expectString(output.TextTransformation),
|
|
7598
7461
|
};
|
|
@@ -7612,7 +7475,7 @@ var deserializeAws_json1_1SizeConstraintSet = function (output, context) {
|
|
|
7612
7475
|
return {
|
|
7613
7476
|
Name: __expectString(output.Name),
|
|
7614
7477
|
SizeConstraintSetId: __expectString(output.SizeConstraintSetId),
|
|
7615
|
-
SizeConstraints: output.SizeConstraints
|
|
7478
|
+
SizeConstraints: output.SizeConstraints != null
|
|
7616
7479
|
? deserializeAws_json1_1SizeConstraints(output.SizeConstraints, context)
|
|
7617
7480
|
: undefined,
|
|
7618
7481
|
};
|
|
@@ -7638,7 +7501,7 @@ var deserializeAws_json1_1SqlInjectionMatchSet = function (output, context) {
|
|
|
7638
7501
|
return {
|
|
7639
7502
|
Name: __expectString(output.Name),
|
|
7640
7503
|
SqlInjectionMatchSetId: __expectString(output.SqlInjectionMatchSetId),
|
|
7641
|
-
SqlInjectionMatchTuples: output.SqlInjectionMatchTuples
|
|
7504
|
+
SqlInjectionMatchTuples: output.SqlInjectionMatchTuples != null
|
|
7642
7505
|
? deserializeAws_json1_1SqlInjectionMatchTuples(output.SqlInjectionMatchTuples, context)
|
|
7643
7506
|
: undefined,
|
|
7644
7507
|
};
|
|
@@ -7662,9 +7525,7 @@ var deserializeAws_json1_1SqlInjectionMatchSetSummary = function (output, contex
|
|
|
7662
7525
|
};
|
|
7663
7526
|
var deserializeAws_json1_1SqlInjectionMatchTuple = function (output, context) {
|
|
7664
7527
|
return {
|
|
7665
|
-
FieldToMatch: output.FieldToMatch
|
|
7666
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
7667
|
-
: undefined,
|
|
7528
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
7668
7529
|
TextTransformation: __expectString(output.TextTransformation),
|
|
7669
7530
|
};
|
|
7670
7531
|
};
|
|
@@ -7706,9 +7567,7 @@ var deserializeAws_json1_1Tag = function (output, context) {
|
|
|
7706
7567
|
var deserializeAws_json1_1TagInfoForResource = function (output, context) {
|
|
7707
7568
|
return {
|
|
7708
7569
|
ResourceARN: __expectString(output.ResourceARN),
|
|
7709
|
-
TagList: output.TagList
|
|
7710
|
-
? deserializeAws_json1_1TagList(output.TagList, context)
|
|
7711
|
-
: undefined,
|
|
7570
|
+
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
7712
7571
|
};
|
|
7713
7572
|
};
|
|
7714
7573
|
var deserializeAws_json1_1TagList = function (output, context) {
|
|
@@ -7727,12 +7586,8 @@ var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
|
7727
7586
|
};
|
|
7728
7587
|
var deserializeAws_json1_1TimeWindow = function (output, context) {
|
|
7729
7588
|
return {
|
|
7730
|
-
EndTime: output.EndTime
|
|
7731
|
-
|
|
7732
|
-
: undefined,
|
|
7733
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
7734
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
7735
|
-
: undefined,
|
|
7589
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
7590
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
7736
7591
|
};
|
|
7737
7592
|
};
|
|
7738
7593
|
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
@@ -7907,14 +7762,10 @@ var deserializeAws_json1_1WAFTagOperationInternalErrorException = function (outp
|
|
|
7907
7762
|
};
|
|
7908
7763
|
var deserializeAws_json1_1WebACL = function (output, context) {
|
|
7909
7764
|
return {
|
|
7910
|
-
DefaultAction: output.DefaultAction
|
|
7911
|
-
? deserializeAws_json1_1WafAction(output.DefaultAction, context)
|
|
7912
|
-
: undefined,
|
|
7765
|
+
DefaultAction: output.DefaultAction != null ? deserializeAws_json1_1WafAction(output.DefaultAction, context) : undefined,
|
|
7913
7766
|
MetricName: __expectString(output.MetricName),
|
|
7914
7767
|
Name: __expectString(output.Name),
|
|
7915
|
-
Rules: output.Rules
|
|
7916
|
-
? deserializeAws_json1_1ActivatedRules(output.Rules, context)
|
|
7917
|
-
: undefined,
|
|
7768
|
+
Rules: output.Rules != null ? deserializeAws_json1_1ActivatedRules(output.Rules, context) : undefined,
|
|
7918
7769
|
WebACLArn: __expectString(output.WebACLArn),
|
|
7919
7770
|
WebACLId: __expectString(output.WebACLId),
|
|
7920
7771
|
};
|
|
@@ -7940,9 +7791,7 @@ var deserializeAws_json1_1XssMatchSet = function (output, context) {
|
|
|
7940
7791
|
return {
|
|
7941
7792
|
Name: __expectString(output.Name),
|
|
7942
7793
|
XssMatchSetId: __expectString(output.XssMatchSetId),
|
|
7943
|
-
XssMatchTuples: output.XssMatchTuples
|
|
7944
|
-
? deserializeAws_json1_1XssMatchTuples(output.XssMatchTuples, context)
|
|
7945
|
-
: undefined,
|
|
7794
|
+
XssMatchTuples: output.XssMatchTuples != null ? deserializeAws_json1_1XssMatchTuples(output.XssMatchTuples, context) : undefined,
|
|
7946
7795
|
};
|
|
7947
7796
|
};
|
|
7948
7797
|
var deserializeAws_json1_1XssMatchSetSummaries = function (output, context) {
|
|
@@ -7964,9 +7813,7 @@ var deserializeAws_json1_1XssMatchSetSummary = function (output, context) {
|
|
|
7964
7813
|
};
|
|
7965
7814
|
var deserializeAws_json1_1XssMatchTuple = function (output, context) {
|
|
7966
7815
|
return {
|
|
7967
|
-
FieldToMatch: output.FieldToMatch
|
|
7968
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
7969
|
-
: undefined,
|
|
7816
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
7970
7817
|
TextTransformation: __expectString(output.TextTransformation),
|
|
7971
7818
|
};
|
|
7972
7819
|
};
|
|
@@ -8037,6 +7884,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
8037
7884
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
8038
7885
|
var sanitizeErrorCode = function (rawValue) {
|
|
8039
7886
|
var cleanValue = rawValue;
|
|
7887
|
+
if (typeof cleanValue === "number") {
|
|
7888
|
+
cleanValue = cleanValue.toString();
|
|
7889
|
+
}
|
|
8040
7890
|
if (cleanValue.indexOf(":") >= 0) {
|
|
8041
7891
|
cleanValue = cleanValue.split(":")[0];
|
|
8042
7892
|
}
|