@aws-sdk/client-continuum 0.0.0-stage → 3.1156.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 +412 -2
- package/dist-cjs/index.js +2581 -0
- package/dist-es/Continuum.js +95 -0
- package/dist-es/ContinuumClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/AssociateCollectorCommand.js +4 -0
- package/dist-es/commands/CreateCodeFindingCommand.js +4 -0
- package/dist-es/commands/CreateCodeScanCommand.js +4 -0
- package/dist-es/commands/CreateCollectorCommand.js +4 -0
- package/dist-es/commands/CreateEnvironmentCommand.js +4 -0
- package/dist-es/commands/CreateIntegrationCommand.js +4 -0
- package/dist-es/commands/DeleteCollectorCommand.js +4 -0
- package/dist-es/commands/DeleteEnvironmentCommand.js +4 -0
- package/dist-es/commands/DeleteIntegrationCommand.js +4 -0
- package/dist-es/commands/DisassociateCollectorCommand.js +4 -0
- package/dist-es/commands/GetCodeFindingCommand.js +4 -0
- package/dist-es/commands/GetCodeIssueArtifactCommand.js +4 -0
- package/dist-es/commands/GetCodeIssueCommand.js +4 -0
- package/dist-es/commands/GetCodeScanCommand.js +4 -0
- package/dist-es/commands/GetCollectorCommand.js +4 -0
- package/dist-es/commands/GetCollectorDataAccessAuthorizationCommand.js +4 -0
- package/dist-es/commands/GetEnvironmentCommand.js +4 -0
- package/dist-es/commands/GetIntegrationCommand.js +4 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/dist-es/commands/ListAssociatedCollectorsCommand.js +4 -0
- package/dist-es/commands/ListAssociatedEnvironmentsCommand.js +4 -0
- package/dist-es/commands/ListCodeFindingsCommand.js +4 -0
- package/dist-es/commands/ListCodeIssueArtifactsCommand.js +4 -0
- package/dist-es/commands/ListCodeIssuesCommand.js +4 -0
- package/dist-es/commands/ListCodeScansCommand.js +4 -0
- package/dist-es/commands/ListCollectorsCommand.js +4 -0
- package/dist-es/commands/ListEnvironmentsCommand.js +4 -0
- package/dist-es/commands/ListIntegrationsCommand.js +4 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/dist-es/commands/StartIntegrationAuthorizationCommand.js +4 -0
- package/dist-es/commands/UpdateCollectorCommand.js +4 -0
- package/dist-es/commands/UpdateEnvironmentCommand.js +4 -0
- package/dist-es/commands/UpdateIntegrationCommand.js +4 -0
- package/dist-es/commands/index.js +33 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +11 -0
- package/dist-es/models/ContinuumServiceException.js +9 -0
- package/dist-es/models/enums.js +334 -0
- package/dist-es/models/errors.js +102 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAssociatedCollectorsPaginator.js +4 -0
- package/dist-es/pagination/ListAssociatedEnvironmentsPaginator.js +4 -0
- package/dist-es/pagination/ListCodeFindingsPaginator.js +4 -0
- package/dist-es/pagination/ListCodeIssueArtifactsPaginator.js +4 -0
- package/dist-es/pagination/ListCodeIssuesPaginator.js +4 -0
- package/dist-es/pagination/ListCodeScansPaginator.js +4 -0
- package/dist-es/pagination/ListEnvironmentsPaginator.js +4 -0
- package/dist-es/pagination/ListIntegrationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +9 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +1399 -0
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForCodeScanSucceeded.js +40 -0
- package/dist-types/Continuum.d.ts +315 -0
- package/dist-types/ContinuumClient.d.ts +221 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/AssociateCollectorCommand.d.ts +96 -0
- package/dist-types/commands/CreateCodeFindingCommand.d.ts +94 -0
- package/dist-types/commands/CreateCodeScanCommand.d.ts +115 -0
- package/dist-types/commands/CreateCollectorCommand.d.ts +97 -0
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +123 -0
- package/dist-types/commands/CreateIntegrationCommand.d.ts +130 -0
- package/dist-types/commands/DeleteCollectorCommand.d.ts +86 -0
- package/dist-types/commands/DeleteEnvironmentCommand.d.ts +86 -0
- package/dist-types/commands/DeleteIntegrationCommand.d.ts +92 -0
- package/dist-types/commands/DisassociateCollectorCommand.d.ts +84 -0
- package/dist-types/commands/GetCodeFindingCommand.d.ts +228 -0
- package/dist-types/commands/GetCodeIssueArtifactCommand.d.ts +285 -0
- package/dist-types/commands/GetCodeIssueCommand.d.ts +113 -0
- package/dist-types/commands/GetCodeScanCommand.d.ts +94 -0
- package/dist-types/commands/GetCollectorCommand.d.ts +92 -0
- package/dist-types/commands/GetCollectorDataAccessAuthorizationCommand.d.ts +93 -0
- package/dist-types/commands/GetEnvironmentCommand.d.ts +133 -0
- package/dist-types/commands/GetIntegrationCommand.d.ts +106 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +87 -0
- package/dist-types/commands/ListAssociatedCollectorsCommand.d.ts +93 -0
- package/dist-types/commands/ListAssociatedEnvironmentsCommand.d.ts +96 -0
- package/dist-types/commands/ListCodeFindingsCommand.d.ts +112 -0
- package/dist-types/commands/ListCodeIssueArtifactsCommand.d.ts +101 -0
- package/dist-types/commands/ListCodeIssuesCommand.d.ts +103 -0
- package/dist-types/commands/ListCodeScansCommand.d.ts +98 -0
- package/dist-types/commands/ListCollectorsCommand.d.ts +88 -0
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +92 -0
- package/dist-types/commands/ListIntegrationsCommand.d.ts +109 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +92 -0
- package/dist-types/commands/StartIntegrationAuthorizationCommand.d.ts +89 -0
- package/dist-types/commands/UpdateCollectorCommand.d.ts +103 -0
- package/dist-types/commands/UpdateEnvironmentCommand.d.ts +165 -0
- package/dist-types/commands/UpdateIntegrationCommand.d.ts +125 -0
- package/dist-types/commands/index.d.ts +33 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +20 -0
- package/dist-types/models/ContinuumServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +1003 -0
- package/dist-types/models/errors.d.ts +108 -0
- package/dist-types/models/models_0.d.ts +4202 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAssociatedCollectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAssociatedEnvironmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCodeFindingsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCodeIssueArtifactsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCodeIssuesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCodeScansPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListIntegrationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +57 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +187 -0
- package/dist-types/ts3.4/Continuum.d.ts +642 -0
- package/dist-types/ts3.4/ContinuumClient.d.ts +296 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/AssociateCollectorCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateCodeFindingCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateCodeScanCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateCollectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateIntegrationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteCollectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteIntegrationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DisassociateCollectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetCodeFindingCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetCodeIssueArtifactCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetCodeIssueCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetCodeScanCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetCollectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetCollectorDataAccessAuthorizationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetIntegrationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAssociatedCollectorsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListAssociatedEnvironmentsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCodeFindingsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCodeIssueArtifactsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListCodeIssuesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCodeScansCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCollectorsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListIntegrationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartIntegrationAuthorizationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateCollectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateEnvironmentCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateIntegrationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +14 -0
- package/dist-types/ts3.4/models/ContinuumServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +387 -0
- package/dist-types/ts3.4/models/errors.d.ts +52 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1056 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListAssociatedCollectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssociatedEnvironmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCodeFindingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCodeIssueArtifactsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCodeIssuesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCodeScansPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIntegrationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +187 -0
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForCodeScanSucceeded.d.ts +12 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForCodeScanSucceeded.d.ts +15 -0
- package/package.json +67 -4
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { AssociateCollectorCommand, } from "./commands/AssociateCollectorCommand";
|
|
3
|
+
import { CreateCodeFindingCommand, } from "./commands/CreateCodeFindingCommand";
|
|
4
|
+
import { CreateCodeScanCommand, } from "./commands/CreateCodeScanCommand";
|
|
5
|
+
import { CreateCollectorCommand, } from "./commands/CreateCollectorCommand";
|
|
6
|
+
import { CreateEnvironmentCommand, } from "./commands/CreateEnvironmentCommand";
|
|
7
|
+
import { CreateIntegrationCommand, } from "./commands/CreateIntegrationCommand";
|
|
8
|
+
import { DeleteCollectorCommand, } from "./commands/DeleteCollectorCommand";
|
|
9
|
+
import { DeleteEnvironmentCommand, } from "./commands/DeleteEnvironmentCommand";
|
|
10
|
+
import { DeleteIntegrationCommand, } from "./commands/DeleteIntegrationCommand";
|
|
11
|
+
import { DisassociateCollectorCommand, } from "./commands/DisassociateCollectorCommand";
|
|
12
|
+
import { GetCodeFindingCommand, } from "./commands/GetCodeFindingCommand";
|
|
13
|
+
import { GetCodeIssueArtifactCommand, } from "./commands/GetCodeIssueArtifactCommand";
|
|
14
|
+
import { GetCodeIssueCommand, } from "./commands/GetCodeIssueCommand";
|
|
15
|
+
import { GetCodeScanCommand, } from "./commands/GetCodeScanCommand";
|
|
16
|
+
import { GetCollectorCommand, } from "./commands/GetCollectorCommand";
|
|
17
|
+
import { GetCollectorDataAccessAuthorizationCommand, } from "./commands/GetCollectorDataAccessAuthorizationCommand";
|
|
18
|
+
import { GetEnvironmentCommand, } from "./commands/GetEnvironmentCommand";
|
|
19
|
+
import { GetIntegrationCommand, } from "./commands/GetIntegrationCommand";
|
|
20
|
+
import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
|
|
21
|
+
import { ListAssociatedCollectorsCommand, } from "./commands/ListAssociatedCollectorsCommand";
|
|
22
|
+
import { ListAssociatedEnvironmentsCommand, } from "./commands/ListAssociatedEnvironmentsCommand";
|
|
23
|
+
import { ListCodeFindingsCommand, } from "./commands/ListCodeFindingsCommand";
|
|
24
|
+
import { ListCodeIssueArtifactsCommand, } from "./commands/ListCodeIssueArtifactsCommand";
|
|
25
|
+
import { ListCodeIssuesCommand, } from "./commands/ListCodeIssuesCommand";
|
|
26
|
+
import { ListCodeScansCommand, } from "./commands/ListCodeScansCommand";
|
|
27
|
+
import { ListCollectorsCommand, } from "./commands/ListCollectorsCommand";
|
|
28
|
+
import { ListEnvironmentsCommand, } from "./commands/ListEnvironmentsCommand";
|
|
29
|
+
import { ListIntegrationsCommand, } from "./commands/ListIntegrationsCommand";
|
|
30
|
+
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
31
|
+
import { StartIntegrationAuthorizationCommand, } from "./commands/StartIntegrationAuthorizationCommand";
|
|
32
|
+
import { UpdateCollectorCommand, } from "./commands/UpdateCollectorCommand";
|
|
33
|
+
import { UpdateEnvironmentCommand, } from "./commands/UpdateEnvironmentCommand";
|
|
34
|
+
import { UpdateIntegrationCommand, } from "./commands/UpdateIntegrationCommand";
|
|
35
|
+
import { ContinuumClient } from "./ContinuumClient";
|
|
36
|
+
import { paginateListAssociatedCollectors } from "./pagination/ListAssociatedCollectorsPaginator";
|
|
37
|
+
import { paginateListAssociatedEnvironments } from "./pagination/ListAssociatedEnvironmentsPaginator";
|
|
38
|
+
import { paginateListCodeFindings } from "./pagination/ListCodeFindingsPaginator";
|
|
39
|
+
import { paginateListCodeIssueArtifacts } from "./pagination/ListCodeIssueArtifactsPaginator";
|
|
40
|
+
import { paginateListCodeIssues } from "./pagination/ListCodeIssuesPaginator";
|
|
41
|
+
import { paginateListCodeScans } from "./pagination/ListCodeScansPaginator";
|
|
42
|
+
import { paginateListEnvironments } from "./pagination/ListEnvironmentsPaginator";
|
|
43
|
+
import { paginateListIntegrations } from "./pagination/ListIntegrationsPaginator";
|
|
44
|
+
import { waitUntilCodeScanSucceeded } from "./waiters/waitForCodeScanSucceeded";
|
|
45
|
+
const commands = {
|
|
46
|
+
AssociateCollectorCommand,
|
|
47
|
+
CreateCodeFindingCommand,
|
|
48
|
+
CreateCodeScanCommand,
|
|
49
|
+
CreateCollectorCommand,
|
|
50
|
+
CreateEnvironmentCommand,
|
|
51
|
+
CreateIntegrationCommand,
|
|
52
|
+
DeleteCollectorCommand,
|
|
53
|
+
DeleteEnvironmentCommand,
|
|
54
|
+
DeleteIntegrationCommand,
|
|
55
|
+
DisassociateCollectorCommand,
|
|
56
|
+
GetCodeFindingCommand,
|
|
57
|
+
GetCodeIssueCommand,
|
|
58
|
+
GetCodeIssueArtifactCommand,
|
|
59
|
+
GetCodeScanCommand,
|
|
60
|
+
GetCollectorCommand,
|
|
61
|
+
GetCollectorDataAccessAuthorizationCommand,
|
|
62
|
+
GetEnvironmentCommand,
|
|
63
|
+
GetIntegrationCommand,
|
|
64
|
+
GetResourcePolicyCommand,
|
|
65
|
+
ListAssociatedCollectorsCommand,
|
|
66
|
+
ListAssociatedEnvironmentsCommand,
|
|
67
|
+
ListCodeFindingsCommand,
|
|
68
|
+
ListCodeIssueArtifactsCommand,
|
|
69
|
+
ListCodeIssuesCommand,
|
|
70
|
+
ListCodeScansCommand,
|
|
71
|
+
ListCollectorsCommand,
|
|
72
|
+
ListEnvironmentsCommand,
|
|
73
|
+
ListIntegrationsCommand,
|
|
74
|
+
PutResourcePolicyCommand,
|
|
75
|
+
StartIntegrationAuthorizationCommand,
|
|
76
|
+
UpdateCollectorCommand,
|
|
77
|
+
UpdateEnvironmentCommand,
|
|
78
|
+
UpdateIntegrationCommand,
|
|
79
|
+
};
|
|
80
|
+
const paginators = {
|
|
81
|
+
paginateListAssociatedCollectors,
|
|
82
|
+
paginateListAssociatedEnvironments,
|
|
83
|
+
paginateListCodeFindings,
|
|
84
|
+
paginateListCodeIssueArtifacts,
|
|
85
|
+
paginateListCodeIssues,
|
|
86
|
+
paginateListCodeScans,
|
|
87
|
+
paginateListEnvironments,
|
|
88
|
+
paginateListIntegrations,
|
|
89
|
+
};
|
|
90
|
+
const waiters = {
|
|
91
|
+
waitUntilCodeScanSucceeded,
|
|
92
|
+
};
|
|
93
|
+
export class Continuum extends ContinuumClient {
|
|
94
|
+
}
|
|
95
|
+
createAggregatedClient(commands, Continuum, { paginators, waiters });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveRegionConfig } from "@smithy/core/config";
|
|
5
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
6
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
8
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
9
|
+
import { defaultContinuumHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
11
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
13
|
+
export { __Client };
|
|
14
|
+
export class ContinuumClient extends __Client {
|
|
15
|
+
config;
|
|
16
|
+
constructor(...[configuration]) {
|
|
17
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
18
|
+
super(_config_0);
|
|
19
|
+
this.initConfig = _config_0;
|
|
20
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
23
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
24
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
25
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
+
this.config = _config_8;
|
|
29
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
36
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
37
|
+
httpAuthSchemeParametersProvider: defaultContinuumHttpAuthSchemeParametersProvider,
|
|
38
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
39
|
+
"aws.auth#sigv4": config.credentials,
|
|
40
|
+
}),
|
|
41
|
+
}));
|
|
42
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
43
|
+
}
|
|
44
|
+
destroy() {
|
|
45
|
+
super.destroy();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultContinuumHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
+
return {
|
|
13
|
+
schemeId: "aws.auth#sigv4",
|
|
14
|
+
signingProperties: {
|
|
15
|
+
name: "continuum",
|
|
16
|
+
region: authParameters.region,
|
|
17
|
+
},
|
|
18
|
+
propertiesExtractor: (config, context) => ({
|
|
19
|
+
signingProperties: {
|
|
20
|
+
config,
|
|
21
|
+
context,
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export const defaultContinuumHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
+
const options = [];
|
|
28
|
+
switch (authParameters.operation) {
|
|
29
|
+
default: {
|
|
30
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return options;
|
|
34
|
+
};
|
|
35
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
+
return Object.assign(config_0, {
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "ContinuumControlPlane", "ContinuumClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { GetCollectorDataAccessAuthorization$ } from "../schemas/schemas_0";
|
|
3
|
+
export class GetCollectorDataAccessAuthorizationCommand extends command(_ep0, _mw0, "GetCollectorDataAccessAuthorization", GetCollectorDataAccessAuthorization$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { StartIntegrationAuthorization$ } from "../schemas/schemas_0";
|
|
3
|
+
export class StartIntegrationAuthorizationCommand extends command(_ep0, _mw0, "StartIntegrationAuthorization", StartIntegrationAuthorization$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export * from "./AssociateCollectorCommand";
|
|
2
|
+
export * from "./CreateCodeFindingCommand";
|
|
3
|
+
export * from "./CreateCodeScanCommand";
|
|
4
|
+
export * from "./CreateCollectorCommand";
|
|
5
|
+
export * from "./CreateEnvironmentCommand";
|
|
6
|
+
export * from "./CreateIntegrationCommand";
|
|
7
|
+
export * from "./DeleteCollectorCommand";
|
|
8
|
+
export * from "./DeleteEnvironmentCommand";
|
|
9
|
+
export * from "./DeleteIntegrationCommand";
|
|
10
|
+
export * from "./DisassociateCollectorCommand";
|
|
11
|
+
export * from "./GetCodeFindingCommand";
|
|
12
|
+
export * from "./GetCodeIssueArtifactCommand";
|
|
13
|
+
export * from "./GetCodeIssueCommand";
|
|
14
|
+
export * from "./GetCodeScanCommand";
|
|
15
|
+
export * from "./GetCollectorCommand";
|
|
16
|
+
export * from "./GetCollectorDataAccessAuthorizationCommand";
|
|
17
|
+
export * from "./GetEnvironmentCommand";
|
|
18
|
+
export * from "./GetIntegrationCommand";
|
|
19
|
+
export * from "./GetResourcePolicyCommand";
|
|
20
|
+
export * from "./ListAssociatedCollectorsCommand";
|
|
21
|
+
export * from "./ListAssociatedEnvironmentsCommand";
|
|
22
|
+
export * from "./ListCodeFindingsCommand";
|
|
23
|
+
export * from "./ListCodeIssueArtifactsCommand";
|
|
24
|
+
export * from "./ListCodeIssuesCommand";
|
|
25
|
+
export * from "./ListCodeScansCommand";
|
|
26
|
+
export * from "./ListCollectorsCommand";
|
|
27
|
+
export * from "./ListEnvironmentsCommand";
|
|
28
|
+
export * from "./ListIntegrationsCommand";
|
|
29
|
+
export * from "./PutResourcePolicyCommand";
|
|
30
|
+
export * from "./StartIntegrationAuthorizationCommand";
|
|
31
|
+
export * from "./UpdateCollectorCommand";
|
|
32
|
+
export * from "./UpdateEnvironmentCommand";
|
|
33
|
+
export * from "./UpdateIntegrationCommand";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return Object.assign(options, {
|
|
3
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
4
|
+
defaultSigningName: "continuum",
|
|
5
|
+
});
|
|
6
|
+
};
|
|
7
|
+
export const commonParams = {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
|
|
3
|
+
const _data = {
|
|
4
|
+
conditions: [
|
|
5
|
+
[a, [b]],
|
|
6
|
+
[a, c],
|
|
7
|
+
["aws.partition", c, "PartitionResult"],
|
|
8
|
+
["booleanEquals", [{ ref: "UseFIPS" }, true]]
|
|
9
|
+
],
|
|
10
|
+
results: [
|
|
11
|
+
[-1],
|
|
12
|
+
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
13
|
+
[b, {}],
|
|
14
|
+
["https://continuum-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
15
|
+
["https://continuum.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
16
|
+
[-1, "Invalid Configuration: Missing Region"]
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
const root = 2;
|
|
20
|
+
const r = 100_000_000;
|
|
21
|
+
const nodes = new Int32Array([
|
|
22
|
+
-1, 1, -1,
|
|
23
|
+
0, 6, 3,
|
|
24
|
+
1, 4, r + 5,
|
|
25
|
+
2, 5, r + 5,
|
|
26
|
+
3, r + 3, r + 4,
|
|
27
|
+
3, r + 1, r + 2,
|
|
28
|
+
]);
|
|
29
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/core/client";
|
|
2
|
+
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
3
|
+
import { bdd } from "./bdd";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./ContinuumClient";
|
|
2
|
+
export * from "./Continuum";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./waiters";
|
|
7
|
+
export * from "./schemas/schemas_0";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
11
|
+
export { ContinuumServiceException } from "./models/ContinuumServiceException";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class ContinuumServiceException extends __ServiceException {
|
|
4
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.continuum#ContinuumServiceException";
|
|
5
|
+
constructor(options) {
|
|
6
|
+
super(options);
|
|
7
|
+
Object.setPrototypeOf(this, ContinuumServiceException.prototype);
|
|
8
|
+
}
|
|
9
|
+
}
|