@aws-sdk/client-securityagent 3.1021.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/LICENSE +201 -0
- package/README.md +531 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1084 -0
- package/dist-cjs/models/SecurityAgentServiceException.js +12 -0
- package/dist-cjs/models/errors.js +88 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +54 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +1570 -0
- package/dist-es/SecurityAgent.js +133 -0
- package/dist-es/SecurityAgentClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/AddArtifactCommand.js +16 -0
- package/dist-es/commands/BatchDeletePentestsCommand.js +16 -0
- package/dist-es/commands/BatchGetAgentSpacesCommand.js +16 -0
- package/dist-es/commands/BatchGetArtifactMetadataCommand.js +16 -0
- package/dist-es/commands/BatchGetFindingsCommand.js +16 -0
- package/dist-es/commands/BatchGetPentestJobTasksCommand.js +16 -0
- package/dist-es/commands/BatchGetPentestJobsCommand.js +16 -0
- package/dist-es/commands/BatchGetPentestsCommand.js +16 -0
- package/dist-es/commands/BatchGetTargetDomainsCommand.js +16 -0
- package/dist-es/commands/CreateAgentSpaceCommand.js +16 -0
- package/dist-es/commands/CreateApplicationCommand.js +16 -0
- package/dist-es/commands/CreateIntegrationCommand.js +16 -0
- package/dist-es/commands/CreateMembershipCommand.js +16 -0
- package/dist-es/commands/CreatePentestCommand.js +16 -0
- package/dist-es/commands/CreateTargetDomainCommand.js +16 -0
- package/dist-es/commands/DeleteAgentSpaceCommand.js +16 -0
- package/dist-es/commands/DeleteApplicationCommand.js +16 -0
- package/dist-es/commands/DeleteArtifactCommand.js +16 -0
- package/dist-es/commands/DeleteIntegrationCommand.js +16 -0
- package/dist-es/commands/DeleteMembershipCommand.js +16 -0
- package/dist-es/commands/DeleteTargetDomainCommand.js +16 -0
- package/dist-es/commands/GetApplicationCommand.js +16 -0
- package/dist-es/commands/GetArtifactCommand.js +16 -0
- package/dist-es/commands/GetIntegrationCommand.js +16 -0
- package/dist-es/commands/InitiateProviderRegistrationCommand.js +16 -0
- package/dist-es/commands/ListAgentSpacesCommand.js +16 -0
- package/dist-es/commands/ListApplicationsCommand.js +16 -0
- package/dist-es/commands/ListArtifactsCommand.js +16 -0
- package/dist-es/commands/ListDiscoveredEndpointsCommand.js +16 -0
- package/dist-es/commands/ListFindingsCommand.js +16 -0
- package/dist-es/commands/ListIntegratedResourcesCommand.js +16 -0
- package/dist-es/commands/ListIntegrationsCommand.js +16 -0
- package/dist-es/commands/ListMembershipsCommand.js +16 -0
- package/dist-es/commands/ListPentestJobTasksCommand.js +16 -0
- package/dist-es/commands/ListPentestJobsForPentestCommand.js +16 -0
- package/dist-es/commands/ListPentestsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/ListTargetDomainsCommand.js +16 -0
- package/dist-es/commands/StartCodeRemediationCommand.js +16 -0
- package/dist-es/commands/StartPentestJobCommand.js +16 -0
- package/dist-es/commands/StopPentestJobCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateAgentSpaceCommand.js +16 -0
- package/dist-es/commands/UpdateApplicationCommand.js +16 -0
- package/dist-es/commands/UpdateFindingCommand.js +16 -0
- package/dist-es/commands/UpdateIntegratedResourcesCommand.js +16 -0
- package/dist-es/commands/UpdatePentestCommand.js +16 -0
- package/dist-es/commands/UpdateTargetDomainCommand.js +16 -0
- package/dist-es/commands/VerifyTargetDomainCommand.js +16 -0
- package/dist-es/commands/index.js +50 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/SecurityAgentServiceException.js +8 -0
- package/dist-es/models/enums.js +162 -0
- package/dist-es/models/errors.js +79 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAgentSpacesPaginator.js +4 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +4 -0
- package/dist-es/pagination/ListArtifactsPaginator.js +4 -0
- package/dist-es/pagination/ListDiscoveredEndpointsPaginator.js +4 -0
- package/dist-es/pagination/ListFindingsPaginator.js +4 -0
- package/dist-es/pagination/ListIntegratedResourcesPaginator.js +4 -0
- package/dist-es/pagination/ListIntegrationsPaginator.js +4 -0
- package/dist-es/pagination/ListMembershipsPaginator.js +4 -0
- package/dist-es/pagination/ListPentestJobTasksPaginator.js +4 -0
- package/dist-es/pagination/ListPentestJobsForPentestPaginator.js +4 -0
- package/dist-es/pagination/ListPentestsPaginator.js +4 -0
- package/dist-es/pagination/ListTargetDomainsPaginator.js +4 -0
- package/dist-es/pagination/index.js +13 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +49 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +1563 -0
- package/dist-types/SecurityAgent.d.ts +449 -0
- package/dist-types/SecurityAgentClient.d.ts +237 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AddArtifactCommand.d.ts +94 -0
- package/dist-types/commands/BatchDeletePentestsCommand.d.ts +161 -0
- package/dist-types/commands/BatchGetAgentSpacesCommand.d.ts +123 -0
- package/dist-types/commands/BatchGetArtifactMetadataCommand.d.ts +101 -0
- package/dist-types/commands/BatchGetFindingsCommand.d.ts +111 -0
- package/dist-types/commands/BatchGetPentestJobTasksCommand.d.ts +109 -0
- package/dist-types/commands/BatchGetPentestJobsCommand.d.ts +187 -0
- package/dist-types/commands/BatchGetPentestsCommand.d.ts +158 -0
- package/dist-types/commands/BatchGetTargetDomainsCommand.d.ts +99 -0
- package/dist-types/commands/CreateAgentSpaceCommand.d.ts +154 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +79 -0
- package/dist-types/commands/CreateIntegrationCommand.d.ts +106 -0
- package/dist-types/commands/CreateMembershipCommand.d.ts +80 -0
- package/dist-types/commands/CreatePentestCommand.d.ts +194 -0
- package/dist-types/commands/CreateTargetDomainCommand.d.ts +94 -0
- package/dist-types/commands/DeleteAgentSpaceCommand.d.ts +74 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +72 -0
- package/dist-types/commands/DeleteArtifactCommand.d.ts +90 -0
- package/dist-types/commands/DeleteIntegrationCommand.d.ts +92 -0
- package/dist-types/commands/DeleteMembershipCommand.d.ts +75 -0
- package/dist-types/commands/DeleteTargetDomainCommand.d.ts +74 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +82 -0
- package/dist-types/commands/GetArtifactCommand.d.ts +99 -0
- package/dist-types/commands/GetIntegrationCommand.d.ts +96 -0
- package/dist-types/commands/InitiateProviderRegistrationCommand.d.ts +95 -0
- package/dist-types/commands/ListAgentSpacesCommand.d.ts +83 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +83 -0
- package/dist-types/commands/ListArtifactsCommand.d.ts +100 -0
- package/dist-types/commands/ListDiscoveredEndpointsCommand.d.ts +89 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +97 -0
- package/dist-types/commands/ListIntegratedResourcesCommand.d.ts +114 -0
- package/dist-types/commands/ListIntegrationsCommand.d.ts +100 -0
- package/dist-types/commands/ListMembershipsCommand.d.ts +101 -0
- package/dist-types/commands/ListPentestJobTasksCommand.d.ts +92 -0
- package/dist-types/commands/ListPentestJobsForPentestCommand.d.ts +87 -0
- package/dist-types/commands/ListPentestsCommand.d.ts +85 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +76 -0
- package/dist-types/commands/ListTargetDomainsCommand.d.ts +82 -0
- package/dist-types/commands/StartCodeRemediationCommand.d.ts +76 -0
- package/dist-types/commands/StartPentestJobCommand.d.ts +81 -0
- package/dist-types/commands/StopPentestJobCommand.d.ts +73 -0
- package/dist-types/commands/TagResourceCommand.d.ts +75 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +75 -0
- package/dist-types/commands/UpdateAgentSpaceCommand.d.ts +150 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +76 -0
- package/dist-types/commands/UpdateFindingCommand.d.ts +75 -0
- package/dist-types/commands/UpdateIntegratedResourcesCommand.d.ts +109 -0
- package/dist-types/commands/UpdatePentestCommand.d.ts +195 -0
- package/dist-types/commands/UpdateTargetDomainCommand.d.ts +91 -0
- package/dist-types/commands/VerifyTargetDomainCommand.d.ts +79 -0
- package/dist-types/commands/index.d.ts +50 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/SecurityAgentServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +609 -0
- package/dist-types/models/errors.d.ts +93 -0
- package/dist-types/models/models_0.d.ts +3749 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAgentSpacesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListArtifactsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDiscoveredEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFindingsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIntegratedResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIntegrationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMembershipsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPentestJobTasksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPentestJobsForPentestPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPentestsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTargetDomainsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +13 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +225 -0
- package/dist-types/ts3.4/SecurityAgent.d.ts +950 -0
- package/dist-types/ts3.4/SecurityAgentClient.d.ts +419 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AddArtifactCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/BatchDeletePentestsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchGetAgentSpacesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchGetArtifactMetadataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchGetFindingsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/BatchGetPentestJobTasksCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchGetPentestJobsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchGetPentestsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/BatchGetTargetDomainsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAgentSpaceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateIntegrationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateMembershipCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreatePentestCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateTargetDomainCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAgentSpaceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/DeleteArtifactCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteIntegrationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteMembershipCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteTargetDomainCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetArtifactCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetIntegrationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/InitiateProviderRegistrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAgentSpacesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListArtifactsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListDiscoveredEndpointsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListIntegratedResourcesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListIntegrationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListMembershipsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListPentestJobTasksCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPentestJobsForPentestCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPentestsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTargetDomainsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartCodeRemediationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartPentestJobCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StopPentestJobCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateAgentSpaceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateFindingCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateIntegratedResourcesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdatePentestCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateTargetDomainCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/VerifyTargetDomainCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +50 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/SecurityAgentServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +200 -0
- package/dist-types/ts3.4/models/errors.d.ts +46 -0
- package/dist-types/ts3.4/models/models_0.d.ts +977 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAgentSpacesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListArtifactsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDiscoveredEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIntegratedResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIntegrationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMembershipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPentestJobTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPentestJobsForPentestPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPentestsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTargetDomainsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +13 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +225 -0
- package/package.json +100 -0
|
@@ -0,0 +1,1084 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
10
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
11
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
12
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
13
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
14
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
15
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
16
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var SecurityAgentServiceException = require('./models/SecurityAgentServiceException');
|
|
21
|
+
|
|
22
|
+
const resolveClientEndpointParameters = (options) => {
|
|
23
|
+
return Object.assign(options, {
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "securityagent",
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
class SecurityAgentClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSecurityAgentHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
108
|
+
}
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
class AddArtifactCommand extends smithyClient.Command
|
|
115
|
+
.classBuilder()
|
|
116
|
+
.ep(commonParams)
|
|
117
|
+
.m(function (Command, cs, config, o) {
|
|
118
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
119
|
+
})
|
|
120
|
+
.s("SecurityAgent", "AddArtifact", {})
|
|
121
|
+
.n("SecurityAgentClient", "AddArtifactCommand")
|
|
122
|
+
.sc(schemas_0.AddArtifact$)
|
|
123
|
+
.build() {
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
class BatchDeletePentestsCommand extends smithyClient.Command
|
|
127
|
+
.classBuilder()
|
|
128
|
+
.ep(commonParams)
|
|
129
|
+
.m(function (Command, cs, config, o) {
|
|
130
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
131
|
+
})
|
|
132
|
+
.s("SecurityAgent", "BatchDeletePentests", {})
|
|
133
|
+
.n("SecurityAgentClient", "BatchDeletePentestsCommand")
|
|
134
|
+
.sc(schemas_0.BatchDeletePentests$)
|
|
135
|
+
.build() {
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
class BatchGetAgentSpacesCommand extends smithyClient.Command
|
|
139
|
+
.classBuilder()
|
|
140
|
+
.ep(commonParams)
|
|
141
|
+
.m(function (Command, cs, config, o) {
|
|
142
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
143
|
+
})
|
|
144
|
+
.s("SecurityAgent", "BatchGetAgentSpaces", {})
|
|
145
|
+
.n("SecurityAgentClient", "BatchGetAgentSpacesCommand")
|
|
146
|
+
.sc(schemas_0.BatchGetAgentSpaces$)
|
|
147
|
+
.build() {
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
class BatchGetArtifactMetadataCommand extends smithyClient.Command
|
|
151
|
+
.classBuilder()
|
|
152
|
+
.ep(commonParams)
|
|
153
|
+
.m(function (Command, cs, config, o) {
|
|
154
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
155
|
+
})
|
|
156
|
+
.s("SecurityAgent", "BatchGetArtifactMetadata", {})
|
|
157
|
+
.n("SecurityAgentClient", "BatchGetArtifactMetadataCommand")
|
|
158
|
+
.sc(schemas_0.BatchGetArtifactMetadata$)
|
|
159
|
+
.build() {
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
class BatchGetFindingsCommand extends smithyClient.Command
|
|
163
|
+
.classBuilder()
|
|
164
|
+
.ep(commonParams)
|
|
165
|
+
.m(function (Command, cs, config, o) {
|
|
166
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
167
|
+
})
|
|
168
|
+
.s("SecurityAgent", "BatchGetFindings", {})
|
|
169
|
+
.n("SecurityAgentClient", "BatchGetFindingsCommand")
|
|
170
|
+
.sc(schemas_0.BatchGetFindings$)
|
|
171
|
+
.build() {
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
class BatchGetPentestJobsCommand extends smithyClient.Command
|
|
175
|
+
.classBuilder()
|
|
176
|
+
.ep(commonParams)
|
|
177
|
+
.m(function (Command, cs, config, o) {
|
|
178
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
179
|
+
})
|
|
180
|
+
.s("SecurityAgent", "BatchGetPentestJobs", {})
|
|
181
|
+
.n("SecurityAgentClient", "BatchGetPentestJobsCommand")
|
|
182
|
+
.sc(schemas_0.BatchGetPentestJobs$)
|
|
183
|
+
.build() {
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
class BatchGetPentestJobTasksCommand extends smithyClient.Command
|
|
187
|
+
.classBuilder()
|
|
188
|
+
.ep(commonParams)
|
|
189
|
+
.m(function (Command, cs, config, o) {
|
|
190
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
191
|
+
})
|
|
192
|
+
.s("SecurityAgent", "BatchGetPentestJobTasks", {})
|
|
193
|
+
.n("SecurityAgentClient", "BatchGetPentestJobTasksCommand")
|
|
194
|
+
.sc(schemas_0.BatchGetPentestJobTasks$)
|
|
195
|
+
.build() {
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
class BatchGetPentestsCommand extends smithyClient.Command
|
|
199
|
+
.classBuilder()
|
|
200
|
+
.ep(commonParams)
|
|
201
|
+
.m(function (Command, cs, config, o) {
|
|
202
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
203
|
+
})
|
|
204
|
+
.s("SecurityAgent", "BatchGetPentests", {})
|
|
205
|
+
.n("SecurityAgentClient", "BatchGetPentestsCommand")
|
|
206
|
+
.sc(schemas_0.BatchGetPentests$)
|
|
207
|
+
.build() {
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
class BatchGetTargetDomainsCommand extends smithyClient.Command
|
|
211
|
+
.classBuilder()
|
|
212
|
+
.ep(commonParams)
|
|
213
|
+
.m(function (Command, cs, config, o) {
|
|
214
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
215
|
+
})
|
|
216
|
+
.s("SecurityAgent", "BatchGetTargetDomains", {})
|
|
217
|
+
.n("SecurityAgentClient", "BatchGetTargetDomainsCommand")
|
|
218
|
+
.sc(schemas_0.BatchGetTargetDomains$)
|
|
219
|
+
.build() {
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
class CreateAgentSpaceCommand extends smithyClient.Command
|
|
223
|
+
.classBuilder()
|
|
224
|
+
.ep(commonParams)
|
|
225
|
+
.m(function (Command, cs, config, o) {
|
|
226
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
227
|
+
})
|
|
228
|
+
.s("SecurityAgent", "CreateAgentSpace", {})
|
|
229
|
+
.n("SecurityAgentClient", "CreateAgentSpaceCommand")
|
|
230
|
+
.sc(schemas_0.CreateAgentSpace$)
|
|
231
|
+
.build() {
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
class CreateApplicationCommand extends smithyClient.Command
|
|
235
|
+
.classBuilder()
|
|
236
|
+
.ep(commonParams)
|
|
237
|
+
.m(function (Command, cs, config, o) {
|
|
238
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
239
|
+
})
|
|
240
|
+
.s("SecurityAgent", "CreateApplication", {})
|
|
241
|
+
.n("SecurityAgentClient", "CreateApplicationCommand")
|
|
242
|
+
.sc(schemas_0.CreateApplication$)
|
|
243
|
+
.build() {
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
class CreateIntegrationCommand extends smithyClient.Command
|
|
247
|
+
.classBuilder()
|
|
248
|
+
.ep(commonParams)
|
|
249
|
+
.m(function (Command, cs, config, o) {
|
|
250
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
251
|
+
})
|
|
252
|
+
.s("SecurityAgent", "CreateIntegration", {})
|
|
253
|
+
.n("SecurityAgentClient", "CreateIntegrationCommand")
|
|
254
|
+
.sc(schemas_0.CreateIntegration$)
|
|
255
|
+
.build() {
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
class CreateMembershipCommand extends smithyClient.Command
|
|
259
|
+
.classBuilder()
|
|
260
|
+
.ep(commonParams)
|
|
261
|
+
.m(function (Command, cs, config, o) {
|
|
262
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
263
|
+
})
|
|
264
|
+
.s("SecurityAgent", "CreateMembership", {})
|
|
265
|
+
.n("SecurityAgentClient", "CreateMembershipCommand")
|
|
266
|
+
.sc(schemas_0.CreateMembership$)
|
|
267
|
+
.build() {
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
class CreatePentestCommand extends smithyClient.Command
|
|
271
|
+
.classBuilder()
|
|
272
|
+
.ep(commonParams)
|
|
273
|
+
.m(function (Command, cs, config, o) {
|
|
274
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
275
|
+
})
|
|
276
|
+
.s("SecurityAgent", "CreatePentest", {})
|
|
277
|
+
.n("SecurityAgentClient", "CreatePentestCommand")
|
|
278
|
+
.sc(schemas_0.CreatePentest$)
|
|
279
|
+
.build() {
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
class CreateTargetDomainCommand extends smithyClient.Command
|
|
283
|
+
.classBuilder()
|
|
284
|
+
.ep(commonParams)
|
|
285
|
+
.m(function (Command, cs, config, o) {
|
|
286
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
287
|
+
})
|
|
288
|
+
.s("SecurityAgent", "CreateTargetDomain", {})
|
|
289
|
+
.n("SecurityAgentClient", "CreateTargetDomainCommand")
|
|
290
|
+
.sc(schemas_0.CreateTargetDomain$)
|
|
291
|
+
.build() {
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
class DeleteAgentSpaceCommand extends smithyClient.Command
|
|
295
|
+
.classBuilder()
|
|
296
|
+
.ep(commonParams)
|
|
297
|
+
.m(function (Command, cs, config, o) {
|
|
298
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
299
|
+
})
|
|
300
|
+
.s("SecurityAgent", "DeleteAgentSpace", {})
|
|
301
|
+
.n("SecurityAgentClient", "DeleteAgentSpaceCommand")
|
|
302
|
+
.sc(schemas_0.DeleteAgentSpace$)
|
|
303
|
+
.build() {
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
class DeleteApplicationCommand extends smithyClient.Command
|
|
307
|
+
.classBuilder()
|
|
308
|
+
.ep(commonParams)
|
|
309
|
+
.m(function (Command, cs, config, o) {
|
|
310
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
311
|
+
})
|
|
312
|
+
.s("SecurityAgent", "DeleteApplication", {})
|
|
313
|
+
.n("SecurityAgentClient", "DeleteApplicationCommand")
|
|
314
|
+
.sc(schemas_0.DeleteApplication$)
|
|
315
|
+
.build() {
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
class DeleteArtifactCommand extends smithyClient.Command
|
|
319
|
+
.classBuilder()
|
|
320
|
+
.ep(commonParams)
|
|
321
|
+
.m(function (Command, cs, config, o) {
|
|
322
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
323
|
+
})
|
|
324
|
+
.s("SecurityAgent", "DeleteArtifact", {})
|
|
325
|
+
.n("SecurityAgentClient", "DeleteArtifactCommand")
|
|
326
|
+
.sc(schemas_0.DeleteArtifact$)
|
|
327
|
+
.build() {
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
class DeleteIntegrationCommand extends smithyClient.Command
|
|
331
|
+
.classBuilder()
|
|
332
|
+
.ep(commonParams)
|
|
333
|
+
.m(function (Command, cs, config, o) {
|
|
334
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
335
|
+
})
|
|
336
|
+
.s("SecurityAgent", "DeleteIntegration", {})
|
|
337
|
+
.n("SecurityAgentClient", "DeleteIntegrationCommand")
|
|
338
|
+
.sc(schemas_0.DeleteIntegration$)
|
|
339
|
+
.build() {
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
class DeleteMembershipCommand extends smithyClient.Command
|
|
343
|
+
.classBuilder()
|
|
344
|
+
.ep(commonParams)
|
|
345
|
+
.m(function (Command, cs, config, o) {
|
|
346
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
347
|
+
})
|
|
348
|
+
.s("SecurityAgent", "DeleteMembership", {})
|
|
349
|
+
.n("SecurityAgentClient", "DeleteMembershipCommand")
|
|
350
|
+
.sc(schemas_0.DeleteMembership$)
|
|
351
|
+
.build() {
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
class DeleteTargetDomainCommand extends smithyClient.Command
|
|
355
|
+
.classBuilder()
|
|
356
|
+
.ep(commonParams)
|
|
357
|
+
.m(function (Command, cs, config, o) {
|
|
358
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
359
|
+
})
|
|
360
|
+
.s("SecurityAgent", "DeleteTargetDomain", {})
|
|
361
|
+
.n("SecurityAgentClient", "DeleteTargetDomainCommand")
|
|
362
|
+
.sc(schemas_0.DeleteTargetDomain$)
|
|
363
|
+
.build() {
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
class GetApplicationCommand extends smithyClient.Command
|
|
367
|
+
.classBuilder()
|
|
368
|
+
.ep(commonParams)
|
|
369
|
+
.m(function (Command, cs, config, o) {
|
|
370
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
371
|
+
})
|
|
372
|
+
.s("SecurityAgent", "GetApplication", {})
|
|
373
|
+
.n("SecurityAgentClient", "GetApplicationCommand")
|
|
374
|
+
.sc(schemas_0.GetApplication$)
|
|
375
|
+
.build() {
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
class GetArtifactCommand extends smithyClient.Command
|
|
379
|
+
.classBuilder()
|
|
380
|
+
.ep(commonParams)
|
|
381
|
+
.m(function (Command, cs, config, o) {
|
|
382
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
383
|
+
})
|
|
384
|
+
.s("SecurityAgent", "GetArtifact", {})
|
|
385
|
+
.n("SecurityAgentClient", "GetArtifactCommand")
|
|
386
|
+
.sc(schemas_0.GetArtifact$)
|
|
387
|
+
.build() {
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
class GetIntegrationCommand extends smithyClient.Command
|
|
391
|
+
.classBuilder()
|
|
392
|
+
.ep(commonParams)
|
|
393
|
+
.m(function (Command, cs, config, o) {
|
|
394
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
395
|
+
})
|
|
396
|
+
.s("SecurityAgent", "GetIntegration", {})
|
|
397
|
+
.n("SecurityAgentClient", "GetIntegrationCommand")
|
|
398
|
+
.sc(schemas_0.GetIntegration$)
|
|
399
|
+
.build() {
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
class InitiateProviderRegistrationCommand extends smithyClient.Command
|
|
403
|
+
.classBuilder()
|
|
404
|
+
.ep(commonParams)
|
|
405
|
+
.m(function (Command, cs, config, o) {
|
|
406
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
407
|
+
})
|
|
408
|
+
.s("SecurityAgent", "InitiateProviderRegistration", {})
|
|
409
|
+
.n("SecurityAgentClient", "InitiateProviderRegistrationCommand")
|
|
410
|
+
.sc(schemas_0.InitiateProviderRegistration$)
|
|
411
|
+
.build() {
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
class ListAgentSpacesCommand extends smithyClient.Command
|
|
415
|
+
.classBuilder()
|
|
416
|
+
.ep(commonParams)
|
|
417
|
+
.m(function (Command, cs, config, o) {
|
|
418
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
419
|
+
})
|
|
420
|
+
.s("SecurityAgent", "ListAgentSpaces", {})
|
|
421
|
+
.n("SecurityAgentClient", "ListAgentSpacesCommand")
|
|
422
|
+
.sc(schemas_0.ListAgentSpaces$)
|
|
423
|
+
.build() {
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
class ListApplicationsCommand extends smithyClient.Command
|
|
427
|
+
.classBuilder()
|
|
428
|
+
.ep(commonParams)
|
|
429
|
+
.m(function (Command, cs, config, o) {
|
|
430
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
431
|
+
})
|
|
432
|
+
.s("SecurityAgent", "ListApplications", {})
|
|
433
|
+
.n("SecurityAgentClient", "ListApplicationsCommand")
|
|
434
|
+
.sc(schemas_0.ListApplications$)
|
|
435
|
+
.build() {
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
class ListArtifactsCommand extends smithyClient.Command
|
|
439
|
+
.classBuilder()
|
|
440
|
+
.ep(commonParams)
|
|
441
|
+
.m(function (Command, cs, config, o) {
|
|
442
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
443
|
+
})
|
|
444
|
+
.s("SecurityAgent", "ListArtifacts", {})
|
|
445
|
+
.n("SecurityAgentClient", "ListArtifactsCommand")
|
|
446
|
+
.sc(schemas_0.ListArtifacts$)
|
|
447
|
+
.build() {
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
class ListDiscoveredEndpointsCommand extends smithyClient.Command
|
|
451
|
+
.classBuilder()
|
|
452
|
+
.ep(commonParams)
|
|
453
|
+
.m(function (Command, cs, config, o) {
|
|
454
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
455
|
+
})
|
|
456
|
+
.s("SecurityAgent", "ListDiscoveredEndpoints", {})
|
|
457
|
+
.n("SecurityAgentClient", "ListDiscoveredEndpointsCommand")
|
|
458
|
+
.sc(schemas_0.ListDiscoveredEndpoints$)
|
|
459
|
+
.build() {
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
class ListFindingsCommand extends smithyClient.Command
|
|
463
|
+
.classBuilder()
|
|
464
|
+
.ep(commonParams)
|
|
465
|
+
.m(function (Command, cs, config, o) {
|
|
466
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
467
|
+
})
|
|
468
|
+
.s("SecurityAgent", "ListFindings", {})
|
|
469
|
+
.n("SecurityAgentClient", "ListFindingsCommand")
|
|
470
|
+
.sc(schemas_0.ListFindings$)
|
|
471
|
+
.build() {
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
class ListIntegratedResourcesCommand extends smithyClient.Command
|
|
475
|
+
.classBuilder()
|
|
476
|
+
.ep(commonParams)
|
|
477
|
+
.m(function (Command, cs, config, o) {
|
|
478
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
479
|
+
})
|
|
480
|
+
.s("SecurityAgent", "ListIntegratedResources", {})
|
|
481
|
+
.n("SecurityAgentClient", "ListIntegratedResourcesCommand")
|
|
482
|
+
.sc(schemas_0.ListIntegratedResources$)
|
|
483
|
+
.build() {
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
class ListIntegrationsCommand extends smithyClient.Command
|
|
487
|
+
.classBuilder()
|
|
488
|
+
.ep(commonParams)
|
|
489
|
+
.m(function (Command, cs, config, o) {
|
|
490
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
491
|
+
})
|
|
492
|
+
.s("SecurityAgent", "ListIntegrations", {})
|
|
493
|
+
.n("SecurityAgentClient", "ListIntegrationsCommand")
|
|
494
|
+
.sc(schemas_0.ListIntegrations$)
|
|
495
|
+
.build() {
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
class ListMembershipsCommand extends smithyClient.Command
|
|
499
|
+
.classBuilder()
|
|
500
|
+
.ep(commonParams)
|
|
501
|
+
.m(function (Command, cs, config, o) {
|
|
502
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
503
|
+
})
|
|
504
|
+
.s("SecurityAgent", "ListMemberships", {})
|
|
505
|
+
.n("SecurityAgentClient", "ListMembershipsCommand")
|
|
506
|
+
.sc(schemas_0.ListMemberships$)
|
|
507
|
+
.build() {
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
class ListPentestJobsForPentestCommand extends smithyClient.Command
|
|
511
|
+
.classBuilder()
|
|
512
|
+
.ep(commonParams)
|
|
513
|
+
.m(function (Command, cs, config, o) {
|
|
514
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
515
|
+
})
|
|
516
|
+
.s("SecurityAgent", "ListPentestJobsForPentest", {})
|
|
517
|
+
.n("SecurityAgentClient", "ListPentestJobsForPentestCommand")
|
|
518
|
+
.sc(schemas_0.ListPentestJobsForPentest$)
|
|
519
|
+
.build() {
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
class ListPentestJobTasksCommand extends smithyClient.Command
|
|
523
|
+
.classBuilder()
|
|
524
|
+
.ep(commonParams)
|
|
525
|
+
.m(function (Command, cs, config, o) {
|
|
526
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
527
|
+
})
|
|
528
|
+
.s("SecurityAgent", "ListPentestJobTasks", {})
|
|
529
|
+
.n("SecurityAgentClient", "ListPentestJobTasksCommand")
|
|
530
|
+
.sc(schemas_0.ListPentestJobTasks$)
|
|
531
|
+
.build() {
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
class ListPentestsCommand extends smithyClient.Command
|
|
535
|
+
.classBuilder()
|
|
536
|
+
.ep(commonParams)
|
|
537
|
+
.m(function (Command, cs, config, o) {
|
|
538
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
539
|
+
})
|
|
540
|
+
.s("SecurityAgent", "ListPentests", {})
|
|
541
|
+
.n("SecurityAgentClient", "ListPentestsCommand")
|
|
542
|
+
.sc(schemas_0.ListPentests$)
|
|
543
|
+
.build() {
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
547
|
+
.classBuilder()
|
|
548
|
+
.ep(commonParams)
|
|
549
|
+
.m(function (Command, cs, config, o) {
|
|
550
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
551
|
+
})
|
|
552
|
+
.s("SecurityAgent", "ListTagsForResource", {})
|
|
553
|
+
.n("SecurityAgentClient", "ListTagsForResourceCommand")
|
|
554
|
+
.sc(schemas_0.ListTagsForResource$)
|
|
555
|
+
.build() {
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
class ListTargetDomainsCommand extends smithyClient.Command
|
|
559
|
+
.classBuilder()
|
|
560
|
+
.ep(commonParams)
|
|
561
|
+
.m(function (Command, cs, config, o) {
|
|
562
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
563
|
+
})
|
|
564
|
+
.s("SecurityAgent", "ListTargetDomains", {})
|
|
565
|
+
.n("SecurityAgentClient", "ListTargetDomainsCommand")
|
|
566
|
+
.sc(schemas_0.ListTargetDomains$)
|
|
567
|
+
.build() {
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
class StartCodeRemediationCommand extends smithyClient.Command
|
|
571
|
+
.classBuilder()
|
|
572
|
+
.ep(commonParams)
|
|
573
|
+
.m(function (Command, cs, config, o) {
|
|
574
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
575
|
+
})
|
|
576
|
+
.s("SecurityAgent", "StartCodeRemediation", {})
|
|
577
|
+
.n("SecurityAgentClient", "StartCodeRemediationCommand")
|
|
578
|
+
.sc(schemas_0.StartCodeRemediation$)
|
|
579
|
+
.build() {
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
class StartPentestJobCommand extends smithyClient.Command
|
|
583
|
+
.classBuilder()
|
|
584
|
+
.ep(commonParams)
|
|
585
|
+
.m(function (Command, cs, config, o) {
|
|
586
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
587
|
+
})
|
|
588
|
+
.s("SecurityAgent", "StartPentestJob", {})
|
|
589
|
+
.n("SecurityAgentClient", "StartPentestJobCommand")
|
|
590
|
+
.sc(schemas_0.StartPentestJob$)
|
|
591
|
+
.build() {
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
class StopPentestJobCommand extends smithyClient.Command
|
|
595
|
+
.classBuilder()
|
|
596
|
+
.ep(commonParams)
|
|
597
|
+
.m(function (Command, cs, config, o) {
|
|
598
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
599
|
+
})
|
|
600
|
+
.s("SecurityAgent", "StopPentestJob", {})
|
|
601
|
+
.n("SecurityAgentClient", "StopPentestJobCommand")
|
|
602
|
+
.sc(schemas_0.StopPentestJob$)
|
|
603
|
+
.build() {
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
class TagResourceCommand extends smithyClient.Command
|
|
607
|
+
.classBuilder()
|
|
608
|
+
.ep(commonParams)
|
|
609
|
+
.m(function (Command, cs, config, o) {
|
|
610
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
611
|
+
})
|
|
612
|
+
.s("SecurityAgent", "TagResource", {})
|
|
613
|
+
.n("SecurityAgentClient", "TagResourceCommand")
|
|
614
|
+
.sc(schemas_0.TagResource$)
|
|
615
|
+
.build() {
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
619
|
+
.classBuilder()
|
|
620
|
+
.ep(commonParams)
|
|
621
|
+
.m(function (Command, cs, config, o) {
|
|
622
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
623
|
+
})
|
|
624
|
+
.s("SecurityAgent", "UntagResource", {})
|
|
625
|
+
.n("SecurityAgentClient", "UntagResourceCommand")
|
|
626
|
+
.sc(schemas_0.UntagResource$)
|
|
627
|
+
.build() {
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
class UpdateAgentSpaceCommand extends smithyClient.Command
|
|
631
|
+
.classBuilder()
|
|
632
|
+
.ep(commonParams)
|
|
633
|
+
.m(function (Command, cs, config, o) {
|
|
634
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
635
|
+
})
|
|
636
|
+
.s("SecurityAgent", "UpdateAgentSpace", {})
|
|
637
|
+
.n("SecurityAgentClient", "UpdateAgentSpaceCommand")
|
|
638
|
+
.sc(schemas_0.UpdateAgentSpace$)
|
|
639
|
+
.build() {
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
class UpdateApplicationCommand extends smithyClient.Command
|
|
643
|
+
.classBuilder()
|
|
644
|
+
.ep(commonParams)
|
|
645
|
+
.m(function (Command, cs, config, o) {
|
|
646
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
647
|
+
})
|
|
648
|
+
.s("SecurityAgent", "UpdateApplication", {})
|
|
649
|
+
.n("SecurityAgentClient", "UpdateApplicationCommand")
|
|
650
|
+
.sc(schemas_0.UpdateApplication$)
|
|
651
|
+
.build() {
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
class UpdateFindingCommand extends smithyClient.Command
|
|
655
|
+
.classBuilder()
|
|
656
|
+
.ep(commonParams)
|
|
657
|
+
.m(function (Command, cs, config, o) {
|
|
658
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
659
|
+
})
|
|
660
|
+
.s("SecurityAgent", "UpdateFinding", {})
|
|
661
|
+
.n("SecurityAgentClient", "UpdateFindingCommand")
|
|
662
|
+
.sc(schemas_0.UpdateFinding$)
|
|
663
|
+
.build() {
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
class UpdateIntegratedResourcesCommand extends smithyClient.Command
|
|
667
|
+
.classBuilder()
|
|
668
|
+
.ep(commonParams)
|
|
669
|
+
.m(function (Command, cs, config, o) {
|
|
670
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
671
|
+
})
|
|
672
|
+
.s("SecurityAgent", "UpdateIntegratedResources", {})
|
|
673
|
+
.n("SecurityAgentClient", "UpdateIntegratedResourcesCommand")
|
|
674
|
+
.sc(schemas_0.UpdateIntegratedResources$)
|
|
675
|
+
.build() {
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
class UpdatePentestCommand extends smithyClient.Command
|
|
679
|
+
.classBuilder()
|
|
680
|
+
.ep(commonParams)
|
|
681
|
+
.m(function (Command, cs, config, o) {
|
|
682
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
683
|
+
})
|
|
684
|
+
.s("SecurityAgent", "UpdatePentest", {})
|
|
685
|
+
.n("SecurityAgentClient", "UpdatePentestCommand")
|
|
686
|
+
.sc(schemas_0.UpdatePentest$)
|
|
687
|
+
.build() {
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
class UpdateTargetDomainCommand extends smithyClient.Command
|
|
691
|
+
.classBuilder()
|
|
692
|
+
.ep(commonParams)
|
|
693
|
+
.m(function (Command, cs, config, o) {
|
|
694
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
695
|
+
})
|
|
696
|
+
.s("SecurityAgent", "UpdateTargetDomain", {})
|
|
697
|
+
.n("SecurityAgentClient", "UpdateTargetDomainCommand")
|
|
698
|
+
.sc(schemas_0.UpdateTargetDomain$)
|
|
699
|
+
.build() {
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
class VerifyTargetDomainCommand extends smithyClient.Command
|
|
703
|
+
.classBuilder()
|
|
704
|
+
.ep(commonParams)
|
|
705
|
+
.m(function (Command, cs, config, o) {
|
|
706
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
707
|
+
})
|
|
708
|
+
.s("SecurityAgent", "VerifyTargetDomain", {})
|
|
709
|
+
.n("SecurityAgentClient", "VerifyTargetDomainCommand")
|
|
710
|
+
.sc(schemas_0.VerifyTargetDomain$)
|
|
711
|
+
.build() {
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
const paginateListAgentSpaces = core.createPaginator(SecurityAgentClient, ListAgentSpacesCommand, "nextToken", "nextToken", "maxResults");
|
|
715
|
+
|
|
716
|
+
const paginateListApplications = core.createPaginator(SecurityAgentClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
|
|
717
|
+
|
|
718
|
+
const paginateListArtifacts = core.createPaginator(SecurityAgentClient, ListArtifactsCommand, "nextToken", "nextToken", "maxResults");
|
|
719
|
+
|
|
720
|
+
const paginateListDiscoveredEndpoints = core.createPaginator(SecurityAgentClient, ListDiscoveredEndpointsCommand, "nextToken", "nextToken", "maxResults");
|
|
721
|
+
|
|
722
|
+
const paginateListFindings = core.createPaginator(SecurityAgentClient, ListFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
723
|
+
|
|
724
|
+
const paginateListIntegratedResources = core.createPaginator(SecurityAgentClient, ListIntegratedResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
725
|
+
|
|
726
|
+
const paginateListIntegrations = core.createPaginator(SecurityAgentClient, ListIntegrationsCommand, "nextToken", "nextToken", "maxResults");
|
|
727
|
+
|
|
728
|
+
const paginateListMemberships = core.createPaginator(SecurityAgentClient, ListMembershipsCommand, "nextToken", "nextToken", "maxResults");
|
|
729
|
+
|
|
730
|
+
const paginateListPentestJobsForPentest = core.createPaginator(SecurityAgentClient, ListPentestJobsForPentestCommand, "nextToken", "nextToken", "maxResults");
|
|
731
|
+
|
|
732
|
+
const paginateListPentestJobTasks = core.createPaginator(SecurityAgentClient, ListPentestJobTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
733
|
+
|
|
734
|
+
const paginateListPentests = core.createPaginator(SecurityAgentClient, ListPentestsCommand, "nextToken", "nextToken", "maxResults");
|
|
735
|
+
|
|
736
|
+
const paginateListTargetDomains = core.createPaginator(SecurityAgentClient, ListTargetDomainsCommand, "nextToken", "nextToken", "maxResults");
|
|
737
|
+
|
|
738
|
+
const commands = {
|
|
739
|
+
AddArtifactCommand,
|
|
740
|
+
BatchDeletePentestsCommand,
|
|
741
|
+
BatchGetAgentSpacesCommand,
|
|
742
|
+
BatchGetArtifactMetadataCommand,
|
|
743
|
+
BatchGetFindingsCommand,
|
|
744
|
+
BatchGetPentestJobsCommand,
|
|
745
|
+
BatchGetPentestJobTasksCommand,
|
|
746
|
+
BatchGetPentestsCommand,
|
|
747
|
+
BatchGetTargetDomainsCommand,
|
|
748
|
+
CreateAgentSpaceCommand,
|
|
749
|
+
CreateApplicationCommand,
|
|
750
|
+
CreateIntegrationCommand,
|
|
751
|
+
CreateMembershipCommand,
|
|
752
|
+
CreatePentestCommand,
|
|
753
|
+
CreateTargetDomainCommand,
|
|
754
|
+
DeleteAgentSpaceCommand,
|
|
755
|
+
DeleteApplicationCommand,
|
|
756
|
+
DeleteArtifactCommand,
|
|
757
|
+
DeleteIntegrationCommand,
|
|
758
|
+
DeleteMembershipCommand,
|
|
759
|
+
DeleteTargetDomainCommand,
|
|
760
|
+
GetApplicationCommand,
|
|
761
|
+
GetArtifactCommand,
|
|
762
|
+
GetIntegrationCommand,
|
|
763
|
+
InitiateProviderRegistrationCommand,
|
|
764
|
+
ListAgentSpacesCommand,
|
|
765
|
+
ListApplicationsCommand,
|
|
766
|
+
ListArtifactsCommand,
|
|
767
|
+
ListDiscoveredEndpointsCommand,
|
|
768
|
+
ListFindingsCommand,
|
|
769
|
+
ListIntegratedResourcesCommand,
|
|
770
|
+
ListIntegrationsCommand,
|
|
771
|
+
ListMembershipsCommand,
|
|
772
|
+
ListPentestJobsForPentestCommand,
|
|
773
|
+
ListPentestJobTasksCommand,
|
|
774
|
+
ListPentestsCommand,
|
|
775
|
+
ListTagsForResourceCommand,
|
|
776
|
+
ListTargetDomainsCommand,
|
|
777
|
+
StartCodeRemediationCommand,
|
|
778
|
+
StartPentestJobCommand,
|
|
779
|
+
StopPentestJobCommand,
|
|
780
|
+
TagResourceCommand,
|
|
781
|
+
UntagResourceCommand,
|
|
782
|
+
UpdateAgentSpaceCommand,
|
|
783
|
+
UpdateApplicationCommand,
|
|
784
|
+
UpdateFindingCommand,
|
|
785
|
+
UpdateIntegratedResourcesCommand,
|
|
786
|
+
UpdatePentestCommand,
|
|
787
|
+
UpdateTargetDomainCommand,
|
|
788
|
+
VerifyTargetDomainCommand,
|
|
789
|
+
};
|
|
790
|
+
const paginators = {
|
|
791
|
+
paginateListAgentSpaces,
|
|
792
|
+
paginateListApplications,
|
|
793
|
+
paginateListArtifacts,
|
|
794
|
+
paginateListDiscoveredEndpoints,
|
|
795
|
+
paginateListFindings,
|
|
796
|
+
paginateListIntegratedResources,
|
|
797
|
+
paginateListIntegrations,
|
|
798
|
+
paginateListMemberships,
|
|
799
|
+
paginateListPentestJobsForPentest,
|
|
800
|
+
paginateListPentestJobTasks,
|
|
801
|
+
paginateListPentests,
|
|
802
|
+
paginateListTargetDomains,
|
|
803
|
+
};
|
|
804
|
+
class SecurityAgent extends SecurityAgentClient {
|
|
805
|
+
}
|
|
806
|
+
smithyClient.createAggregatedClient(commands, SecurityAgent, { paginators });
|
|
807
|
+
|
|
808
|
+
const AccessType = {
|
|
809
|
+
PRIVATE: "PRIVATE",
|
|
810
|
+
PUBLIC: "PUBLIC",
|
|
811
|
+
};
|
|
812
|
+
const AuthenticationProviderType = {
|
|
813
|
+
AWS_IAM_ROLE: "AWS_IAM_ROLE",
|
|
814
|
+
AWS_INTERNAL: "AWS_INTERNAL",
|
|
815
|
+
AWS_LAMBDA: "AWS_LAMBDA",
|
|
816
|
+
SECRETS_MANAGER: "SECRETS_MANAGER",
|
|
817
|
+
};
|
|
818
|
+
const ArtifactType = {
|
|
819
|
+
DOC: "DOC",
|
|
820
|
+
DOCX: "DOCX",
|
|
821
|
+
JPEG: "JPEG",
|
|
822
|
+
JSON: "JSON",
|
|
823
|
+
MD: "MD",
|
|
824
|
+
PDF: "PDF",
|
|
825
|
+
PNG: "PNG",
|
|
826
|
+
TXT: "TXT",
|
|
827
|
+
YAML: "YAML",
|
|
828
|
+
};
|
|
829
|
+
const CodeRemediationStrategy = {
|
|
830
|
+
AUTOMATIC: "AUTOMATIC",
|
|
831
|
+
DISABLED: "DISABLED",
|
|
832
|
+
};
|
|
833
|
+
const RiskType = {
|
|
834
|
+
ARBITRARY_FILE_UPLOAD: "ARBITRARY_FILE_UPLOAD",
|
|
835
|
+
BUSINESS_LOGIC_VULNERABILITIES: "BUSINESS_LOGIC_VULNERABILITIES",
|
|
836
|
+
CODE_INJECTION: "CODE_INJECTION",
|
|
837
|
+
COMMAND_INJECTION: "COMMAND_INJECTION",
|
|
838
|
+
CROSS_SITE_SCRIPTING: "CROSS_SITE_SCRIPTING",
|
|
839
|
+
CRYPTOGRAPHIC_VULNERABILITIES: "CRYPTOGRAPHIC_VULNERABILITIES",
|
|
840
|
+
DATABASE_ACCESS: "DATABASE_ACCESS",
|
|
841
|
+
DATABASE_MODIFICATION: "DATABASE_MODIFICATION",
|
|
842
|
+
DEFAULT_CREDENTIALS: "DEFAULT_CREDENTIALS",
|
|
843
|
+
DENIAL_OF_SERVICE: "DENIAL_OF_SERVICE",
|
|
844
|
+
FILE_ACCESS: "FILE_ACCESS",
|
|
845
|
+
FILE_CREATION: "FILE_CREATION",
|
|
846
|
+
FILE_DELETION: "FILE_DELETION",
|
|
847
|
+
GRAPHQL_VULNERABILITIES: "GRAPHQL_VULNERABILITIES",
|
|
848
|
+
INFORMATION_DISCLOSURE: "INFORMATION_DISCLOSURE",
|
|
849
|
+
INSECURE_DESERIALIZATION: "INSECURE_DESERIALIZATION",
|
|
850
|
+
INSECURE_DIRECT_OBJECT_REFERENCE: "INSECURE_DIRECT_OBJECT_REFERENCE",
|
|
851
|
+
JSON_WEB_TOKEN_VULNERABILITIES: "JSON_WEB_TOKEN_VULNERABILITIES",
|
|
852
|
+
LOCAL_FILE_INCLUSION: "LOCAL_FILE_INCLUSION",
|
|
853
|
+
OTHER: "OTHER",
|
|
854
|
+
OUTBOUND_SERVICE_REQUEST: "OUTBOUND_SERVICE_REQUEST",
|
|
855
|
+
PATH_TRAVERSAL: "PATH_TRAVERSAL",
|
|
856
|
+
PRIVILEGE_ESCALATION: "PRIVILEGE_ESCALATION",
|
|
857
|
+
SERVER_SIDE_REQUEST_FORGERY: "SERVER_SIDE_REQUEST_FORGERY",
|
|
858
|
+
SERVER_SIDE_TEMPLATE_INJECTION: "SERVER_SIDE_TEMPLATE_INJECTION",
|
|
859
|
+
SQL_INJECTION: "SQL_INJECTION",
|
|
860
|
+
UNKNOWN: "UNKNOWN",
|
|
861
|
+
XML_EXTERNAL_ENTITY: "XML_EXTERNAL_ENTITY",
|
|
862
|
+
};
|
|
863
|
+
const NetworkTrafficRuleEffect = {
|
|
864
|
+
ALLOW: "ALLOW",
|
|
865
|
+
DENY: "DENY",
|
|
866
|
+
};
|
|
867
|
+
const NetworkTrafficRuleType = {
|
|
868
|
+
URL: "URL",
|
|
869
|
+
};
|
|
870
|
+
const CodeRemediationTaskStatus = {
|
|
871
|
+
COMPLETED: "COMPLETED",
|
|
872
|
+
FAILED: "FAILED",
|
|
873
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
874
|
+
};
|
|
875
|
+
const ConfidenceLevel = {
|
|
876
|
+
FALSE_POSITIVE: "FALSE_POSITIVE",
|
|
877
|
+
HIGH: "HIGH",
|
|
878
|
+
LOW: "LOW",
|
|
879
|
+
MEDIUM: "MEDIUM",
|
|
880
|
+
UNCONFIRMED: "UNCONFIRMED",
|
|
881
|
+
};
|
|
882
|
+
const RiskLevel = {
|
|
883
|
+
CRITICAL: "CRITICAL",
|
|
884
|
+
HIGH: "HIGH",
|
|
885
|
+
INFORMATIONAL: "INFORMATIONAL",
|
|
886
|
+
LOW: "LOW",
|
|
887
|
+
MEDIUM: "MEDIUM",
|
|
888
|
+
UNKNOWN: "UNKNOWN",
|
|
889
|
+
};
|
|
890
|
+
const FindingStatus = {
|
|
891
|
+
ACCEPTED: "ACCEPTED",
|
|
892
|
+
ACTIVE: "ACTIVE",
|
|
893
|
+
FALSE_POSITIVE: "FALSE_POSITIVE",
|
|
894
|
+
RESOLVED: "RESOLVED",
|
|
895
|
+
};
|
|
896
|
+
const ErrorCode = {
|
|
897
|
+
CLIENT_ERROR: "CLIENT_ERROR",
|
|
898
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
899
|
+
STOPPED_BY_USER: "STOPPED_BY_USER",
|
|
900
|
+
};
|
|
901
|
+
const ContextType = {
|
|
902
|
+
CLIENT_ERROR: "CLIENT_ERROR",
|
|
903
|
+
ERROR: "ERROR",
|
|
904
|
+
INFO: "INFO",
|
|
905
|
+
WARNING: "WARNING",
|
|
906
|
+
};
|
|
907
|
+
const JobStatus = {
|
|
908
|
+
COMPLETED: "COMPLETED",
|
|
909
|
+
FAILED: "FAILED",
|
|
910
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
911
|
+
STOPPED: "STOPPED",
|
|
912
|
+
STOPPING: "STOPPING",
|
|
913
|
+
};
|
|
914
|
+
const StepName = {
|
|
915
|
+
FINALIZING: "FINALIZING",
|
|
916
|
+
PENTEST: "PENTEST",
|
|
917
|
+
PREFLIGHT: "PREFLIGHT",
|
|
918
|
+
STATIC_ANALYSIS: "STATIC_ANALYSIS",
|
|
919
|
+
};
|
|
920
|
+
const StepStatus = {
|
|
921
|
+
COMPLETED: "COMPLETED",
|
|
922
|
+
FAILED: "FAILED",
|
|
923
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
924
|
+
NOT_STARTED: "NOT_STARTED",
|
|
925
|
+
STOPPED: "STOPPED",
|
|
926
|
+
};
|
|
927
|
+
const TaskExecutionStatus = {
|
|
928
|
+
ABORTED: "ABORTED",
|
|
929
|
+
COMPLETED: "COMPLETED",
|
|
930
|
+
FAILED: "FAILED",
|
|
931
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
932
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
933
|
+
};
|
|
934
|
+
const LogType = {
|
|
935
|
+
CLOUDWATCH: "CLOUDWATCH",
|
|
936
|
+
};
|
|
937
|
+
const DNSRecordType = {
|
|
938
|
+
TXT: "TXT",
|
|
939
|
+
};
|
|
940
|
+
const DomainVerificationMethod = {
|
|
941
|
+
DNS_TXT: "DNS_TXT",
|
|
942
|
+
HTTP_ROUTE: "HTTP_ROUTE",
|
|
943
|
+
};
|
|
944
|
+
const TargetDomainStatus = {
|
|
945
|
+
FAILED: "FAILED",
|
|
946
|
+
PENDING: "PENDING",
|
|
947
|
+
UNREACHABLE: "UNREACHABLE",
|
|
948
|
+
VERIFIED: "VERIFIED",
|
|
949
|
+
};
|
|
950
|
+
const Provider = {
|
|
951
|
+
GITHUB: "GITHUB",
|
|
952
|
+
};
|
|
953
|
+
const UserRole = {
|
|
954
|
+
MEMBER: "MEMBER",
|
|
955
|
+
};
|
|
956
|
+
const MembershipType = {
|
|
957
|
+
USER: "USER",
|
|
958
|
+
};
|
|
959
|
+
const ProviderType = {
|
|
960
|
+
DOCUMENTATION: "DOCUMENTATION",
|
|
961
|
+
SOURCE_CODE: "SOURCE_CODE",
|
|
962
|
+
};
|
|
963
|
+
const ResourceType = {
|
|
964
|
+
CODE_REPOSITORY: "CODE_REPOSITORY",
|
|
965
|
+
};
|
|
966
|
+
const MembershipTypeFilter = {
|
|
967
|
+
ALL: "ALL",
|
|
968
|
+
USER: "USER",
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
exports.$Command = smithyClient.Command;
|
|
972
|
+
exports.__Client = smithyClient.Client;
|
|
973
|
+
exports.SecurityAgentServiceException = SecurityAgentServiceException.SecurityAgentServiceException;
|
|
974
|
+
exports.AccessType = AccessType;
|
|
975
|
+
exports.AddArtifactCommand = AddArtifactCommand;
|
|
976
|
+
exports.ArtifactType = ArtifactType;
|
|
977
|
+
exports.AuthenticationProviderType = AuthenticationProviderType;
|
|
978
|
+
exports.BatchDeletePentestsCommand = BatchDeletePentestsCommand;
|
|
979
|
+
exports.BatchGetAgentSpacesCommand = BatchGetAgentSpacesCommand;
|
|
980
|
+
exports.BatchGetArtifactMetadataCommand = BatchGetArtifactMetadataCommand;
|
|
981
|
+
exports.BatchGetFindingsCommand = BatchGetFindingsCommand;
|
|
982
|
+
exports.BatchGetPentestJobTasksCommand = BatchGetPentestJobTasksCommand;
|
|
983
|
+
exports.BatchGetPentestJobsCommand = BatchGetPentestJobsCommand;
|
|
984
|
+
exports.BatchGetPentestsCommand = BatchGetPentestsCommand;
|
|
985
|
+
exports.BatchGetTargetDomainsCommand = BatchGetTargetDomainsCommand;
|
|
986
|
+
exports.CodeRemediationStrategy = CodeRemediationStrategy;
|
|
987
|
+
exports.CodeRemediationTaskStatus = CodeRemediationTaskStatus;
|
|
988
|
+
exports.ConfidenceLevel = ConfidenceLevel;
|
|
989
|
+
exports.ContextType = ContextType;
|
|
990
|
+
exports.CreateAgentSpaceCommand = CreateAgentSpaceCommand;
|
|
991
|
+
exports.CreateApplicationCommand = CreateApplicationCommand;
|
|
992
|
+
exports.CreateIntegrationCommand = CreateIntegrationCommand;
|
|
993
|
+
exports.CreateMembershipCommand = CreateMembershipCommand;
|
|
994
|
+
exports.CreatePentestCommand = CreatePentestCommand;
|
|
995
|
+
exports.CreateTargetDomainCommand = CreateTargetDomainCommand;
|
|
996
|
+
exports.DNSRecordType = DNSRecordType;
|
|
997
|
+
exports.DeleteAgentSpaceCommand = DeleteAgentSpaceCommand;
|
|
998
|
+
exports.DeleteApplicationCommand = DeleteApplicationCommand;
|
|
999
|
+
exports.DeleteArtifactCommand = DeleteArtifactCommand;
|
|
1000
|
+
exports.DeleteIntegrationCommand = DeleteIntegrationCommand;
|
|
1001
|
+
exports.DeleteMembershipCommand = DeleteMembershipCommand;
|
|
1002
|
+
exports.DeleteTargetDomainCommand = DeleteTargetDomainCommand;
|
|
1003
|
+
exports.DomainVerificationMethod = DomainVerificationMethod;
|
|
1004
|
+
exports.ErrorCode = ErrorCode;
|
|
1005
|
+
exports.FindingStatus = FindingStatus;
|
|
1006
|
+
exports.GetApplicationCommand = GetApplicationCommand;
|
|
1007
|
+
exports.GetArtifactCommand = GetArtifactCommand;
|
|
1008
|
+
exports.GetIntegrationCommand = GetIntegrationCommand;
|
|
1009
|
+
exports.InitiateProviderRegistrationCommand = InitiateProviderRegistrationCommand;
|
|
1010
|
+
exports.JobStatus = JobStatus;
|
|
1011
|
+
exports.ListAgentSpacesCommand = ListAgentSpacesCommand;
|
|
1012
|
+
exports.ListApplicationsCommand = ListApplicationsCommand;
|
|
1013
|
+
exports.ListArtifactsCommand = ListArtifactsCommand;
|
|
1014
|
+
exports.ListDiscoveredEndpointsCommand = ListDiscoveredEndpointsCommand;
|
|
1015
|
+
exports.ListFindingsCommand = ListFindingsCommand;
|
|
1016
|
+
exports.ListIntegratedResourcesCommand = ListIntegratedResourcesCommand;
|
|
1017
|
+
exports.ListIntegrationsCommand = ListIntegrationsCommand;
|
|
1018
|
+
exports.ListMembershipsCommand = ListMembershipsCommand;
|
|
1019
|
+
exports.ListPentestJobTasksCommand = ListPentestJobTasksCommand;
|
|
1020
|
+
exports.ListPentestJobsForPentestCommand = ListPentestJobsForPentestCommand;
|
|
1021
|
+
exports.ListPentestsCommand = ListPentestsCommand;
|
|
1022
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1023
|
+
exports.ListTargetDomainsCommand = ListTargetDomainsCommand;
|
|
1024
|
+
exports.LogType = LogType;
|
|
1025
|
+
exports.MembershipType = MembershipType;
|
|
1026
|
+
exports.MembershipTypeFilter = MembershipTypeFilter;
|
|
1027
|
+
exports.NetworkTrafficRuleEffect = NetworkTrafficRuleEffect;
|
|
1028
|
+
exports.NetworkTrafficRuleType = NetworkTrafficRuleType;
|
|
1029
|
+
exports.Provider = Provider;
|
|
1030
|
+
exports.ProviderType = ProviderType;
|
|
1031
|
+
exports.ResourceType = ResourceType;
|
|
1032
|
+
exports.RiskLevel = RiskLevel;
|
|
1033
|
+
exports.RiskType = RiskType;
|
|
1034
|
+
exports.SecurityAgent = SecurityAgent;
|
|
1035
|
+
exports.SecurityAgentClient = SecurityAgentClient;
|
|
1036
|
+
exports.StartCodeRemediationCommand = StartCodeRemediationCommand;
|
|
1037
|
+
exports.StartPentestJobCommand = StartPentestJobCommand;
|
|
1038
|
+
exports.StepName = StepName;
|
|
1039
|
+
exports.StepStatus = StepStatus;
|
|
1040
|
+
exports.StopPentestJobCommand = StopPentestJobCommand;
|
|
1041
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1042
|
+
exports.TargetDomainStatus = TargetDomainStatus;
|
|
1043
|
+
exports.TaskExecutionStatus = TaskExecutionStatus;
|
|
1044
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1045
|
+
exports.UpdateAgentSpaceCommand = UpdateAgentSpaceCommand;
|
|
1046
|
+
exports.UpdateApplicationCommand = UpdateApplicationCommand;
|
|
1047
|
+
exports.UpdateFindingCommand = UpdateFindingCommand;
|
|
1048
|
+
exports.UpdateIntegratedResourcesCommand = UpdateIntegratedResourcesCommand;
|
|
1049
|
+
exports.UpdatePentestCommand = UpdatePentestCommand;
|
|
1050
|
+
exports.UpdateTargetDomainCommand = UpdateTargetDomainCommand;
|
|
1051
|
+
exports.UserRole = UserRole;
|
|
1052
|
+
exports.VerifyTargetDomainCommand = VerifyTargetDomainCommand;
|
|
1053
|
+
exports.paginateListAgentSpaces = paginateListAgentSpaces;
|
|
1054
|
+
exports.paginateListApplications = paginateListApplications;
|
|
1055
|
+
exports.paginateListArtifacts = paginateListArtifacts;
|
|
1056
|
+
exports.paginateListDiscoveredEndpoints = paginateListDiscoveredEndpoints;
|
|
1057
|
+
exports.paginateListFindings = paginateListFindings;
|
|
1058
|
+
exports.paginateListIntegratedResources = paginateListIntegratedResources;
|
|
1059
|
+
exports.paginateListIntegrations = paginateListIntegrations;
|
|
1060
|
+
exports.paginateListMemberships = paginateListMemberships;
|
|
1061
|
+
exports.paginateListPentestJobTasks = paginateListPentestJobTasks;
|
|
1062
|
+
exports.paginateListPentestJobsForPentest = paginateListPentestJobsForPentest;
|
|
1063
|
+
exports.paginateListPentests = paginateListPentests;
|
|
1064
|
+
exports.paginateListTargetDomains = paginateListTargetDomains;
|
|
1065
|
+
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
1066
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1067
|
+
Object.defineProperty(exports, '__proto__', {
|
|
1068
|
+
enumerable: true,
|
|
1069
|
+
value: schemas_0['__proto__']
|
|
1070
|
+
});
|
|
1071
|
+
|
|
1072
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
1073
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
1074
|
+
});
|
|
1075
|
+
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
1076
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1077
|
+
Object.defineProperty(exports, '__proto__', {
|
|
1078
|
+
enumerable: true,
|
|
1079
|
+
value: errors['__proto__']
|
|
1080
|
+
});
|
|
1081
|
+
|
|
1082
|
+
Object.keys(errors).forEach(function (k) {
|
|
1083
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
1084
|
+
});
|