@aws-sdk/client-shield 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/Shield.js +153 -146
- package/dist-es/ShieldClient.js +28 -22
- package/dist-es/commands/AssociateDRTLogBucketCommand.js +28 -21
- package/dist-es/commands/AssociateDRTRoleCommand.js +28 -21
- package/dist-es/commands/AssociateHealthCheckCommand.js +28 -21
- package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +28 -21
- package/dist-es/commands/CreateProtectionCommand.js +28 -21
- package/dist-es/commands/CreateProtectionGroupCommand.js +28 -21
- package/dist-es/commands/CreateSubscriptionCommand.js +28 -21
- package/dist-es/commands/DeleteProtectionCommand.js +28 -21
- package/dist-es/commands/DeleteProtectionGroupCommand.js +28 -21
- package/dist-es/commands/DeleteSubscriptionCommand.js +28 -21
- package/dist-es/commands/DescribeAttackCommand.js +28 -21
- package/dist-es/commands/DescribeAttackStatisticsCommand.js +28 -21
- package/dist-es/commands/DescribeDRTAccessCommand.js +28 -21
- package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +28 -21
- package/dist-es/commands/DescribeProtectionCommand.js +28 -21
- package/dist-es/commands/DescribeProtectionGroupCommand.js +28 -21
- package/dist-es/commands/DescribeSubscriptionCommand.js +28 -21
- package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +28 -21
- package/dist-es/commands/DisableProactiveEngagementCommand.js +28 -21
- package/dist-es/commands/DisassociateDRTLogBucketCommand.js +28 -21
- package/dist-es/commands/DisassociateDRTRoleCommand.js +28 -21
- package/dist-es/commands/DisassociateHealthCheckCommand.js +28 -21
- package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +28 -21
- package/dist-es/commands/EnableProactiveEngagementCommand.js +28 -21
- package/dist-es/commands/GetSubscriptionStateCommand.js +28 -21
- package/dist-es/commands/ListAttacksCommand.js +28 -21
- package/dist-es/commands/ListProtectionGroupsCommand.js +28 -21
- package/dist-es/commands/ListProtectionsCommand.js +28 -21
- package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +28 -21
- package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +28 -21
- package/dist-es/commands/UpdateProtectionGroupCommand.js +28 -21
- package/dist-es/commands/UpdateSubscriptionCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ShieldServiceException.js +10 -5
- package/dist-es/models/models_0.js +253 -458
- package/dist-es/pagination/ListAttacksPaginator.js +68 -25
- package/dist-es/pagination/ListProtectionGroupsPaginator.js +68 -25
- package/dist-es/pagination/ListProtectionsPaginator.js +68 -25
- package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +3132 -2384
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/dist-es/ShieldClient.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var ShieldClient = (function (_super) {
|
|
13
|
+
__extends(ShieldClient, _super);
|
|
14
|
+
function ShieldClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
ShieldClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return ShieldClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { ShieldClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AssociateDRTLogBucketRequestFilterSensitiveLog, AssociateDRTLogBucketResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AssociateDRTLogBucketCommand, serializeAws_json1_1AssociateDRTLogBucketCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AssociateDRTLogBucketCommand = (function (_super) {
|
|
7
|
+
__extends(AssociateDRTLogBucketCommand, _super);
|
|
8
|
+
function AssociateDRTLogBucketCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AssociateDRTLogBucketCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "AssociateDRTLogBucketCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AssociateDRTLogBucketRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AssociateDRTLogBucketResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociateDRTLogBucketCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AssociateDRTLogBucketCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AssociateDRTLogBucketCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AssociateDRTLogBucketCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AssociateDRTLogBucketCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociateDRTLogBucketCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AssociateDRTRoleRequestFilterSensitiveLog, AssociateDRTRoleResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AssociateDRTRoleCommand, serializeAws_json1_1AssociateDRTRoleCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AssociateDRTRoleCommand = (function (_super) {
|
|
7
|
+
__extends(AssociateDRTRoleCommand, _super);
|
|
8
|
+
function AssociateDRTRoleCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AssociateDRTRoleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "AssociateDRTRoleCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AssociateDRTRoleRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AssociateDRTRoleResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociateDRTRoleCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AssociateDRTRoleCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AssociateDRTRoleCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AssociateDRTRoleCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AssociateDRTRoleCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociateDRTRoleCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AssociateHealthCheckRequestFilterSensitiveLog, AssociateHealthCheckResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AssociateHealthCheckCommand, serializeAws_json1_1AssociateHealthCheckCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AssociateHealthCheckCommand = (function (_super) {
|
|
7
|
+
__extends(AssociateHealthCheckCommand, _super);
|
|
8
|
+
function AssociateHealthCheckCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AssociateHealthCheckCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "AssociateHealthCheckCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AssociateHealthCheckRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AssociateHealthCheckResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociateHealthCheckCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AssociateHealthCheckCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AssociateHealthCheckCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AssociateHealthCheckCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AssociateHealthCheckCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociateHealthCheckCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AssociateProactiveEngagementDetailsRequestFilterSensitiveLog, AssociateProactiveEngagementDetailsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AssociateProactiveEngagementDetailsCommand, serializeAws_json1_1AssociateProactiveEngagementDetailsCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AssociateProactiveEngagementDetailsCommand = (function (_super) {
|
|
7
|
+
__extends(AssociateProactiveEngagementDetailsCommand, _super);
|
|
8
|
+
function AssociateProactiveEngagementDetailsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AssociateProactiveEngagementDetailsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "AssociateProactiveEngagementDetailsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AssociateProactiveEngagementDetailsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AssociateProactiveEngagementDetailsResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociateProactiveEngagementDetailsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AssociateProactiveEngagementDetailsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AssociateProactiveEngagementDetailsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AssociateProactiveEngagementDetailsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AssociateProactiveEngagementDetailsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociateProactiveEngagementDetailsCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateProtectionRequestFilterSensitiveLog, CreateProtectionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateProtectionCommand, serializeAws_json1_1CreateProtectionCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateProtectionCommand = (function (_super) {
|
|
7
|
+
__extends(CreateProtectionCommand, _super);
|
|
8
|
+
function CreateProtectionCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateProtectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "CreateProtectionCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateProtectionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateProtectionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateProtectionCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateProtectionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateProtectionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateProtectionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateProtectionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateProtectionCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateProtectionGroupRequestFilterSensitiveLog, CreateProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateProtectionGroupCommand, serializeAws_json1_1CreateProtectionGroupCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateProtectionGroupCommand = (function (_super) {
|
|
7
|
+
__extends(CreateProtectionGroupCommand, _super);
|
|
8
|
+
function CreateProtectionGroupCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateProtectionGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "CreateProtectionGroupCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateProtectionGroupRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateProtectionGroupResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateProtectionGroupCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateProtectionGroupCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateProtectionGroupCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateProtectionGroupCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateProtectionGroupCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateProtectionGroupCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateSubscriptionRequestFilterSensitiveLog, CreateSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateSubscriptionCommand, serializeAws_json1_1CreateSubscriptionCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateSubscriptionCommand = (function (_super) {
|
|
7
|
+
__extends(CreateSubscriptionCommand, _super);
|
|
8
|
+
function CreateSubscriptionCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateSubscriptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "CreateSubscriptionCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateSubscriptionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateSubscriptionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateSubscriptionCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateSubscriptionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateSubscriptionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateSubscriptionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateSubscriptionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateSubscriptionCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteProtectionRequestFilterSensitiveLog, DeleteProtectionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1DeleteProtectionCommand, serializeAws_json1_1DeleteProtectionCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteProtectionCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteProtectionCommand, _super);
|
|
8
|
+
function DeleteProtectionCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteProtectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "DeleteProtectionCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteProtectionRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteProtectionResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteProtectionCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1DeleteProtectionCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteProtectionCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1DeleteProtectionCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteProtectionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteProtectionCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteProtectionGroupRequestFilterSensitiveLog, DeleteProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1DeleteProtectionGroupCommand, serializeAws_json1_1DeleteProtectionGroupCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteProtectionGroupCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteProtectionGroupCommand, _super);
|
|
8
|
+
function DeleteProtectionGroupCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteProtectionGroupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ShieldClient";
|
|
18
|
+
var commandName = "DeleteProtectionGroupCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteProtectionGroupRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteProtectionGroupResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteProtectionGroupCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1DeleteProtectionGroupCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteProtectionGroupCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1DeleteProtectionGroupCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteProtectionGroupCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteProtectionGroupCommand };
|