@aws-sdk/client-inspector 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/Inspector.js +157 -150
- package/dist-es/InspectorClient.js +28 -22
- package/dist-es/commands/AddAttributesToFindingsCommand.js +28 -21
- package/dist-es/commands/CreateAssessmentTargetCommand.js +28 -21
- package/dist-es/commands/CreateAssessmentTemplateCommand.js +28 -21
- package/dist-es/commands/CreateExclusionsPreviewCommand.js +28 -21
- package/dist-es/commands/CreateResourceGroupCommand.js +28 -21
- package/dist-es/commands/DeleteAssessmentRunCommand.js +29 -22
- package/dist-es/commands/DeleteAssessmentTargetCommand.js +29 -22
- package/dist-es/commands/DeleteAssessmentTemplateCommand.js +29 -22
- package/dist-es/commands/DescribeAssessmentRunsCommand.js +28 -21
- package/dist-es/commands/DescribeAssessmentTargetsCommand.js +28 -21
- package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +28 -21
- package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +29 -22
- package/dist-es/commands/DescribeExclusionsCommand.js +28 -21
- package/dist-es/commands/DescribeFindingsCommand.js +28 -21
- package/dist-es/commands/DescribeResourceGroupsCommand.js +28 -21
- package/dist-es/commands/DescribeRulesPackagesCommand.js +28 -21
- package/dist-es/commands/GetAssessmentReportCommand.js +28 -21
- package/dist-es/commands/GetExclusionsPreviewCommand.js +28 -21
- package/dist-es/commands/GetTelemetryMetadataCommand.js +28 -21
- package/dist-es/commands/ListAssessmentRunAgentsCommand.js +28 -21
- package/dist-es/commands/ListAssessmentRunsCommand.js +28 -21
- package/dist-es/commands/ListAssessmentTargetsCommand.js +28 -21
- package/dist-es/commands/ListAssessmentTemplatesCommand.js +28 -21
- package/dist-es/commands/ListEventSubscriptionsCommand.js +28 -21
- package/dist-es/commands/ListExclusionsCommand.js +28 -21
- package/dist-es/commands/ListFindingsCommand.js +28 -21
- package/dist-es/commands/ListRulesPackagesCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PreviewAgentsCommand.js +28 -21
- package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +29 -22
- package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +28 -21
- package/dist-es/commands/SetTagsForResourceCommand.js +29 -22
- package/dist-es/commands/StartAssessmentRunCommand.js +28 -21
- package/dist-es/commands/StopAssessmentRunCommand.js +29 -22
- package/dist-es/commands/SubscribeToEventCommand.js +29 -22
- package/dist-es/commands/UnsubscribeFromEventCommand.js +29 -22
- package/dist-es/commands/UpdateAssessmentTargetCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/InspectorServiceException.js +10 -5
- package/dist-es/models/models_0.js +238 -431
- package/dist-es/pagination/GetExclusionsPreviewPaginator.js +68 -25
- package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js +68 -25
- package/dist-es/pagination/ListAssessmentRunsPaginator.js +68 -25
- package/dist-es/pagination/ListAssessmentTargetsPaginator.js +68 -25
- package/dist-es/pagination/ListAssessmentTemplatesPaginator.js +68 -25
- package/dist-es/pagination/ListEventSubscriptionsPaginator.js +68 -25
- package/dist-es/pagination/ListExclusionsPaginator.js +68 -25
- package/dist-es/pagination/ListFindingsPaginator.js +68 -25
- package/dist-es/pagination/ListRulesPackagesPaginator.js +68 -25
- package/dist-es/pagination/PreviewAgentsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +3357 -2604
- 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 +5 -5
|
@@ -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 { RegisterCrossAccountAccessRoleRequestFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand, serializeAws_json1_1RegisterCrossAccountAccessRoleCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var RegisterCrossAccountAccessRoleCommand = (function (_super) {
|
|
7
|
+
__extends(RegisterCrossAccountAccessRoleCommand, _super);
|
|
8
|
+
function RegisterCrossAccountAccessRoleCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
RegisterCrossAccountAccessRoleCommand.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 = "InspectorClient";
|
|
18
|
+
var commandName = "RegisterCrossAccountAccessRoleCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: RegisterCrossAccountAccessRoleRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
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
|
+
RegisterCrossAccountAccessRoleCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1RegisterCrossAccountAccessRoleCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
RegisterCrossAccountAccessRoleCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return RegisterCrossAccountAccessRoleCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { RegisterCrossAccountAccessRoleCommand };
|
|
@@ -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 { RemoveAttributesFromFindingsRequestFilterSensitiveLog, RemoveAttributesFromFindingsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1RemoveAttributesFromFindingsCommand, serializeAws_json1_1RemoveAttributesFromFindingsCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var RemoveAttributesFromFindingsCommand = (function (_super) {
|
|
7
|
+
__extends(RemoveAttributesFromFindingsCommand, _super);
|
|
8
|
+
function RemoveAttributesFromFindingsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
RemoveAttributesFromFindingsCommand.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 = "InspectorClient";
|
|
18
|
+
var commandName = "RemoveAttributesFromFindingsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: RemoveAttributesFromFindingsRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: RemoveAttributesFromFindingsResponseFilterSensitiveLog,
|
|
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
|
+
RemoveAttributesFromFindingsCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1RemoveAttributesFromFindingsCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
RemoveAttributesFromFindingsCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1RemoveAttributesFromFindingsCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return RemoveAttributesFromFindingsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { RemoveAttributesFromFindingsCommand };
|
|
@@ -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 { SetTagsForResourceRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1SetTagsForResourceCommand, serializeAws_json1_1SetTagsForResourceCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var SetTagsForResourceCommand = (function (_super) {
|
|
7
|
+
__extends(SetTagsForResourceCommand, _super);
|
|
8
|
+
function SetTagsForResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
SetTagsForResourceCommand.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 = "InspectorClient";
|
|
18
|
+
var commandName = "SetTagsForResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: SetTagsForResourceRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
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
|
+
SetTagsForResourceCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1SetTagsForResourceCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
SetTagsForResourceCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1SetTagsForResourceCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return SetTagsForResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { SetTagsForResourceCommand };
|
|
@@ -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 { StartAssessmentRunRequestFilterSensitiveLog, StartAssessmentRunResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1StartAssessmentRunCommand, serializeAws_json1_1StartAssessmentRunCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var StartAssessmentRunCommand = (function (_super) {
|
|
7
|
+
__extends(StartAssessmentRunCommand, _super);
|
|
8
|
+
function StartAssessmentRunCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
StartAssessmentRunCommand.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 = "InspectorClient";
|
|
18
|
+
var commandName = "StartAssessmentRunCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: StartAssessmentRunRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: StartAssessmentRunResponseFilterSensitiveLog,
|
|
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
|
+
StartAssessmentRunCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1StartAssessmentRunCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
StartAssessmentRunCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1StartAssessmentRunCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return StartAssessmentRunCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StartAssessmentRunCommand };
|
|
@@ -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 { StopAssessmentRunRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1StopAssessmentRunCommand, serializeAws_json1_1StopAssessmentRunCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var StopAssessmentRunCommand = (function (_super) {
|
|
7
|
+
__extends(StopAssessmentRunCommand, _super);
|
|
8
|
+
function StopAssessmentRunCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
StopAssessmentRunCommand.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 = "InspectorClient";
|
|
18
|
+
var commandName = "StopAssessmentRunCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: StopAssessmentRunRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
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
|
+
StopAssessmentRunCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1StopAssessmentRunCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
StopAssessmentRunCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1StopAssessmentRunCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return StopAssessmentRunCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StopAssessmentRunCommand };
|
|
@@ -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 { SubscribeToEventRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1SubscribeToEventCommand, serializeAws_json1_1SubscribeToEventCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var SubscribeToEventCommand = (function (_super) {
|
|
7
|
+
__extends(SubscribeToEventCommand, _super);
|
|
8
|
+
function SubscribeToEventCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
SubscribeToEventCommand.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 = "InspectorClient";
|
|
18
|
+
var commandName = "SubscribeToEventCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: SubscribeToEventRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
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
|
+
SubscribeToEventCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1SubscribeToEventCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
SubscribeToEventCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1SubscribeToEventCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return SubscribeToEventCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { SubscribeToEventCommand };
|
|
@@ -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 { UnsubscribeFromEventRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1UnsubscribeFromEventCommand, serializeAws_json1_1UnsubscribeFromEventCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UnsubscribeFromEventCommand = (function (_super) {
|
|
7
|
+
__extends(UnsubscribeFromEventCommand, _super);
|
|
8
|
+
function UnsubscribeFromEventCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UnsubscribeFromEventCommand.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 = "InspectorClient";
|
|
18
|
+
var commandName = "UnsubscribeFromEventCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UnsubscribeFromEventRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
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
|
+
UnsubscribeFromEventCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1UnsubscribeFromEventCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UnsubscribeFromEventCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1UnsubscribeFromEventCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UnsubscribeFromEventCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UnsubscribeFromEventCommand };
|
|
@@ -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 { UpdateAssessmentTargetRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1UpdateAssessmentTargetCommand, serializeAws_json1_1UpdateAssessmentTargetCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var UpdateAssessmentTargetCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateAssessmentTargetCommand, _super);
|
|
8
|
+
function UpdateAssessmentTargetCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
UpdateAssessmentTargetCommand.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 = "InspectorClient";
|
|
18
|
+
var commandName = "UpdateAssessmentTargetCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: UpdateAssessmentTargetRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
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
|
+
UpdateAssessmentTargetCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1UpdateAssessmentTargetCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
UpdateAssessmentTargetCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1UpdateAssessmentTargetCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return UpdateAssessmentTargetCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateAssessmentTargetCommand };
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
+
var regionHash = {
|
|
3
4
|
"us-east-1": {
|
|
4
5
|
variants: [
|
|
5
6
|
{
|
|
@@ -49,7 +50,7 @@ const regionHash = {
|
|
|
49
50
|
],
|
|
50
51
|
},
|
|
51
52
|
};
|
|
52
|
-
|
|
53
|
+
var partitionHash = {
|
|
53
54
|
aws: {
|
|
54
55
|
regions: [
|
|
55
56
|
"af-south-1",
|
|
@@ -173,9 +174,8 @@ const partitionHash = {
|
|
|
173
174
|
],
|
|
174
175
|
},
|
|
175
176
|
};
|
|
176
|
-
export
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
});
|
|
177
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
178
|
+
return __generator(this, function (_a) {
|
|
179
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "inspector", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var InspectorServiceException = (function (_super) {
|
|
4
|
+
__extends(InspectorServiceException, _super);
|
|
5
|
+
function InspectorServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, InspectorServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return InspectorServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { InspectorServiceException };
|