@aws-sdk/client-shield 3.41.0 → 3.45.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/Shield.js +45 -0
  3. package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +36 -0
  4. package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +36 -0
  5. package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoints.js +1 -0
  8. package/dist-cjs/models/models_0.js +74 -9
  9. package/dist-cjs/protocols/Aws_json1_1.js +363 -2
  10. package/dist-es/Shield.js +45 -0
  11. package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +39 -0
  12. package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +39 -0
  13. package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +39 -0
  14. package/dist-es/commands/index.js +3 -0
  15. package/dist-es/endpoints.js +1 -0
  16. package/dist-es/models/models_0.js +49 -4
  17. package/dist-es/protocols/Aws_json1_1.js +430 -50
  18. package/dist-types/Shield.d.ts +50 -12
  19. package/dist-types/ShieldClient.d.ts +5 -2
  20. package/dist-types/commands/AssociateDRTLogBucketCommand.d.ts +1 -1
  21. package/dist-types/commands/AssociateDRTRoleCommand.d.ts +4 -3
  22. package/dist-types/commands/AssociateHealthCheckCommand.d.ts +2 -2
  23. package/dist-types/commands/CreateProtectionCommand.d.ts +6 -2
  24. package/dist-types/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +36 -0
  25. package/dist-types/commands/DisassociateDRTLogBucketCommand.d.ts +0 -1
  26. package/dist-types/commands/DisassociateDRTRoleCommand.d.ts +0 -1
  27. package/dist-types/commands/DisassociateHealthCheckCommand.d.ts +2 -2
  28. package/dist-types/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +48 -0
  29. package/dist-types/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +35 -0
  30. package/dist-types/commands/index.d.ts +3 -0
  31. package/dist-types/models/models_0.d.ts +260 -60
  32. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  33. package/dist-types/ts3.4/Shield.d.ts +15 -0
  34. package/dist-types/ts3.4/ShieldClient.d.ts +5 -2
  35. package/dist-types/ts3.4/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +98 -10
  40. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
  41. package/package.json +5 -5
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { EnableApplicationLayerAutomaticResponseRequest, EnableApplicationLayerAutomaticResponseResponse, } from "../models/models_0";
5
+ import { deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand, serializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand, } from "../protocols/Aws_json1_1";
6
+ var EnableApplicationLayerAutomaticResponseCommand = (function (_super) {
7
+ __extends(EnableApplicationLayerAutomaticResponseCommand, _super);
8
+ function EnableApplicationLayerAutomaticResponseCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ EnableApplicationLayerAutomaticResponseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ShieldClient";
18
+ var commandName = "EnableApplicationLayerAutomaticResponseCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: EnableApplicationLayerAutomaticResponseRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: EnableApplicationLayerAutomaticResponseResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ EnableApplicationLayerAutomaticResponseCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand(input, context);
33
+ };
34
+ EnableApplicationLayerAutomaticResponseCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand(output, context);
36
+ };
37
+ return EnableApplicationLayerAutomaticResponseCommand;
38
+ }($Command));
39
+ export { EnableApplicationLayerAutomaticResponseCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateApplicationLayerAutomaticResponseRequest, UpdateApplicationLayerAutomaticResponseResponse, } from "../models/models_0";
5
+ import { deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand, serializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand, } from "../protocols/Aws_json1_1";
6
+ var UpdateApplicationLayerAutomaticResponseCommand = (function (_super) {
7
+ __extends(UpdateApplicationLayerAutomaticResponseCommand, _super);
8
+ function UpdateApplicationLayerAutomaticResponseCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateApplicationLayerAutomaticResponseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ShieldClient";
18
+ var commandName = "UpdateApplicationLayerAutomaticResponseCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateApplicationLayerAutomaticResponseRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateApplicationLayerAutomaticResponseResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateApplicationLayerAutomaticResponseCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand(input, context);
33
+ };
34
+ UpdateApplicationLayerAutomaticResponseCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand(output, context);
36
+ };
37
+ return UpdateApplicationLayerAutomaticResponseCommand;
38
+ }($Command));
39
+ export { UpdateApplicationLayerAutomaticResponseCommand };
@@ -15,10 +15,12 @@ export * from "./DescribeEmergencyContactSettingsCommand";
15
15
  export * from "./DescribeProtectionCommand";
16
16
  export * from "./DescribeProtectionGroupCommand";
17
17
  export * from "./DescribeSubscriptionCommand";
18
+ export * from "./DisableApplicationLayerAutomaticResponseCommand";
18
19
  export * from "./DisableProactiveEngagementCommand";
19
20
  export * from "./DisassociateDRTLogBucketCommand";
20
21
  export * from "./DisassociateDRTRoleCommand";
21
22
  export * from "./DisassociateHealthCheckCommand";
23
+ export * from "./EnableApplicationLayerAutomaticResponseCommand";
22
24
  export * from "./EnableProactiveEngagementCommand";
23
25
  export * from "./GetSubscriptionStateCommand";
24
26
  export * from "./ListAttacksCommand";
@@ -28,6 +30,7 @@ export * from "./ListResourcesInProtectionGroupCommand";
28
30
  export * from "./ListTagsForResourceCommand";
29
31
  export * from "./TagResourceCommand";
30
32
  export * from "./UntagResourceCommand";
33
+ export * from "./UpdateApplicationLayerAutomaticResponseCommand";
31
34
  export * from "./UpdateEmergencyContactSettingsCommand";
32
35
  export * from "./UpdateProtectionGroupCommand";
33
36
  export * from "./UpdateSubscriptionCommand";
@@ -26,6 +26,7 @@ var partitionHash = {
26
26
  "ap-south-1",
27
27
  "ap-southeast-1",
28
28
  "ap-southeast-2",
29
+ "ap-southeast-3",
29
30
  "aws-global",
30
31
  "ca-central-1",
31
32
  "eu-central-1",
@@ -7,6 +7,27 @@ export var AccessDeniedForDependencyException;
7
7
  (function (AccessDeniedForDependencyException) {
8
8
  AccessDeniedForDependencyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
9
  })(AccessDeniedForDependencyException || (AccessDeniedForDependencyException = {}));
10
+ export var BlockAction;
11
+ (function (BlockAction) {
12
+ BlockAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
+ })(BlockAction || (BlockAction = {}));
14
+ export var CountAction;
15
+ (function (CountAction) {
16
+ CountAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
+ })(CountAction || (CountAction = {}));
18
+ export var ResponseAction;
19
+ (function (ResponseAction) {
20
+ ResponseAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
+ })(ResponseAction || (ResponseAction = {}));
22
+ export var ApplicationLayerAutomaticResponseStatus;
23
+ (function (ApplicationLayerAutomaticResponseStatus) {
24
+ ApplicationLayerAutomaticResponseStatus["DISABLED"] = "DISABLED";
25
+ ApplicationLayerAutomaticResponseStatus["ENABLED"] = "ENABLED";
26
+ })(ApplicationLayerAutomaticResponseStatus || (ApplicationLayerAutomaticResponseStatus = {}));
27
+ export var ApplicationLayerAutomaticResponseConfiguration;
28
+ (function (ApplicationLayerAutomaticResponseConfiguration) {
29
+ ApplicationLayerAutomaticResponseConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
+ })(ApplicationLayerAutomaticResponseConfiguration || (ApplicationLayerAutomaticResponseConfiguration = {}));
10
31
  export var AssociateDRTLogBucketRequest;
11
32
  (function (AssociateDRTLogBucketRequest) {
12
33
  AssociateDRTLogBucketRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -68,6 +89,10 @@ export var AssociateHealthCheckResponse;
68
89
  (function (AssociateHealthCheckResponse) {
69
90
  AssociateHealthCheckResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
70
91
  })(AssociateHealthCheckResponse || (AssociateHealthCheckResponse = {}));
92
+ export var InvalidResourceException;
93
+ (function (InvalidResourceException) {
94
+ InvalidResourceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
95
+ })(InvalidResourceException || (InvalidResourceException = {}));
71
96
  export var EmergencyContact;
72
97
  (function (EmergencyContact) {
73
98
  EmergencyContact.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -173,10 +198,6 @@ export var CreateProtectionResponse;
173
198
  (function (CreateProtectionResponse) {
174
199
  CreateProtectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
200
  })(CreateProtectionResponse || (CreateProtectionResponse = {}));
176
- export var InvalidResourceException;
177
- (function (InvalidResourceException) {
178
- InvalidResourceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
- })(InvalidResourceException || (InvalidResourceException = {}));
180
201
  export var ResourceAlreadyExistsException;
181
202
  (function (ResourceAlreadyExistsException) {
182
203
  ResourceAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -348,6 +369,14 @@ export var DescribeSubscriptionResponse;
348
369
  (function (DescribeSubscriptionResponse) {
349
370
  DescribeSubscriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
350
371
  })(DescribeSubscriptionResponse || (DescribeSubscriptionResponse = {}));
372
+ export var DisableApplicationLayerAutomaticResponseRequest;
373
+ (function (DisableApplicationLayerAutomaticResponseRequest) {
374
+ DisableApplicationLayerAutomaticResponseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
375
+ })(DisableApplicationLayerAutomaticResponseRequest || (DisableApplicationLayerAutomaticResponseRequest = {}));
376
+ export var DisableApplicationLayerAutomaticResponseResponse;
377
+ (function (DisableApplicationLayerAutomaticResponseResponse) {
378
+ DisableApplicationLayerAutomaticResponseResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
379
+ })(DisableApplicationLayerAutomaticResponseResponse || (DisableApplicationLayerAutomaticResponseResponse = {}));
351
380
  export var DisableProactiveEngagementRequest;
352
381
  (function (DisableProactiveEngagementRequest) {
353
382
  DisableProactiveEngagementRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -380,6 +409,14 @@ export var DisassociateHealthCheckResponse;
380
409
  (function (DisassociateHealthCheckResponse) {
381
410
  DisassociateHealthCheckResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
382
411
  })(DisassociateHealthCheckResponse || (DisassociateHealthCheckResponse = {}));
412
+ export var EnableApplicationLayerAutomaticResponseRequest;
413
+ (function (EnableApplicationLayerAutomaticResponseRequest) {
414
+ EnableApplicationLayerAutomaticResponseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
415
+ })(EnableApplicationLayerAutomaticResponseRequest || (EnableApplicationLayerAutomaticResponseRequest = {}));
416
+ export var EnableApplicationLayerAutomaticResponseResponse;
417
+ (function (EnableApplicationLayerAutomaticResponseResponse) {
418
+ EnableApplicationLayerAutomaticResponseResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
419
+ })(EnableApplicationLayerAutomaticResponseResponse || (EnableApplicationLayerAutomaticResponseResponse = {}));
383
420
  export var EnableProactiveEngagementRequest;
384
421
  (function (EnableProactiveEngagementRequest) {
385
422
  EnableProactiveEngagementRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -461,6 +498,14 @@ export var UntagResourceResponse;
461
498
  (function (UntagResourceResponse) {
462
499
  UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
463
500
  })(UntagResourceResponse || (UntagResourceResponse = {}));
501
+ export var UpdateApplicationLayerAutomaticResponseRequest;
502
+ (function (UpdateApplicationLayerAutomaticResponseRequest) {
503
+ UpdateApplicationLayerAutomaticResponseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
504
+ })(UpdateApplicationLayerAutomaticResponseRequest || (UpdateApplicationLayerAutomaticResponseRequest = {}));
505
+ export var UpdateApplicationLayerAutomaticResponseResponse;
506
+ (function (UpdateApplicationLayerAutomaticResponseResponse) {
507
+ UpdateApplicationLayerAutomaticResponseResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
508
+ })(UpdateApplicationLayerAutomaticResponseResponse || (UpdateApplicationLayerAutomaticResponseResponse = {}));
464
509
  export var UpdateEmergencyContactSettingsRequest;
465
510
  (function (UpdateEmergencyContactSettingsRequest) {
466
511
  UpdateEmergencyContactSettingsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };