@aws-sdk/client-cleanrooms 3.250.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 +215 -0
- package/dist-cjs/CleanRooms.js +517 -0
- package/dist-cjs/CleanRoomsClient.js +40 -0
- package/dist-cjs/commands/BatchGetSchemaCommand.js +46 -0
- package/dist-cjs/commands/CreateCollaborationCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/CreateMembershipCommand.js +46 -0
- package/dist-cjs/commands/DeleteCollaborationCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/DeleteMemberCommand.js +46 -0
- package/dist-cjs/commands/DeleteMembershipCommand.js +46 -0
- package/dist-cjs/commands/GetCollaborationCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/GetMembershipCommand.js +46 -0
- package/dist-cjs/commands/GetProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaCommand.js +46 -0
- package/dist-cjs/commands/ListCollaborationsCommand.js +46 -0
- package/dist-cjs/commands/ListConfiguredTableAssociationsCommand.js +46 -0
- package/dist-cjs/commands/ListConfiguredTablesCommand.js +46 -0
- package/dist-cjs/commands/ListMembersCommand.js +46 -0
- package/dist-cjs/commands/ListMembershipsCommand.js +46 -0
- package/dist-cjs/commands/ListProtectedQueriesCommand.js +46 -0
- package/dist-cjs/commands/ListSchemasCommand.js +46 -0
- package/dist-cjs/commands/StartProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/UpdateCollaborationCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/UpdateMembershipCommand.js +46 -0
- package/dist-cjs/commands/UpdateProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/index.js +37 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/CleanRoomsServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +782 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCollaborationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListConfiguredTableAssociationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListConfiguredTablesPaginator.js +36 -0
- package/dist-cjs/pagination/ListMembersPaginator.js +36 -0
- package/dist-cjs/pagination/ListMembershipsPaginator.js +36 -0
- package/dist-cjs/pagination/ListProtectedQueriesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSchemasPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3336 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +51 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/CleanRooms.js +513 -0
- package/dist-es/CleanRoomsClient.js +36 -0
- package/dist-es/commands/BatchGetSchemaCommand.js +42 -0
- package/dist-es/commands/CreateCollaborationCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableCommand.js +42 -0
- package/dist-es/commands/CreateMembershipCommand.js +42 -0
- package/dist-es/commands/DeleteCollaborationCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableCommand.js +42 -0
- package/dist-es/commands/DeleteMemberCommand.js +42 -0
- package/dist-es/commands/DeleteMembershipCommand.js +42 -0
- package/dist-es/commands/GetCollaborationCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableCommand.js +42 -0
- package/dist-es/commands/GetMembershipCommand.js +42 -0
- package/dist-es/commands/GetProtectedQueryCommand.js +42 -0
- package/dist-es/commands/GetSchemaAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/GetSchemaCommand.js +42 -0
- package/dist-es/commands/ListCollaborationsCommand.js +42 -0
- package/dist-es/commands/ListConfiguredTableAssociationsCommand.js +42 -0
- package/dist-es/commands/ListConfiguredTablesCommand.js +42 -0
- package/dist-es/commands/ListMembersCommand.js +42 -0
- package/dist-es/commands/ListMembershipsCommand.js +42 -0
- package/dist-es/commands/ListProtectedQueriesCommand.js +42 -0
- package/dist-es/commands/ListSchemasCommand.js +42 -0
- package/dist-es/commands/StartProtectedQueryCommand.js +42 -0
- package/dist-es/commands/UpdateCollaborationCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableCommand.js +42 -0
- package/dist-es/commands/UpdateMembershipCommand.js +42 -0
- package/dist-es/commands/UpdateProtectedQueryCommand.js +42 -0
- package/dist-es/commands/index.js +34 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/CleanRoomsServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +663 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCollaborationsPaginator.js +32 -0
- package/dist-es/pagination/ListConfiguredTableAssociationsPaginator.js +32 -0
- package/dist-es/pagination/ListConfiguredTablesPaginator.js +32 -0
- package/dist-es/pagination/ListMembersPaginator.js +32 -0
- package/dist-es/pagination/ListMembershipsPaginator.js +32 -0
- package/dist-es/pagination/ListProtectedQueriesPaginator.js +32 -0
- package/dist-es/pagination/ListSchemasPaginator.js +32 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +3264 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +46 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/CleanRooms.d.ts +260 -0
- package/dist-types/CleanRoomsClient.d.ts +185 -0
- package/dist-types/commands/BatchGetSchemaCommand.d.ts +37 -0
- package/dist-types/commands/CreateCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/CreateConfiguredTableAnalysisRuleCommand.d.ts +38 -0
- package/dist-types/commands/CreateConfiguredTableAssociationCommand.d.ts +38 -0
- package/dist-types/commands/CreateConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/CreateMembershipCommand.d.ts +38 -0
- package/dist-types/commands/DeleteCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/DeleteMemberCommand.d.ts +39 -0
- package/dist-types/commands/DeleteMembershipCommand.d.ts +37 -0
- package/dist-types/commands/GetCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/GetMembershipCommand.d.ts +37 -0
- package/dist-types/commands/GetProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/GetSchemaAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/GetSchemaCommand.d.ts +37 -0
- package/dist-types/commands/ListCollaborationsCommand.d.ts +37 -0
- package/dist-types/commands/ListConfiguredTableAssociationsCommand.d.ts +37 -0
- package/dist-types/commands/ListConfiguredTablesCommand.d.ts +37 -0
- package/dist-types/commands/ListMembersCommand.d.ts +37 -0
- package/dist-types/commands/ListMembershipsCommand.d.ts +37 -0
- package/dist-types/commands/ListProtectedQueriesCommand.d.ts +37 -0
- package/dist-types/commands/ListSchemasCommand.d.ts +37 -0
- package/dist-types/commands/StartProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/UpdateCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/UpdateMembershipCommand.d.ts +37 -0
- package/dist-types/commands/UpdateProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +34 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/CleanRoomsServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2382 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListCollaborationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListConfiguredTableAssociationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListConfiguredTablesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMembersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMembershipsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListProtectedQueriesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSchemasPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +104 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/CleanRooms.d.ts +600 -0
- package/dist-types/ts3.4/CleanRoomsClient.d.ts +315 -0
- package/dist-types/ts3.4/commands/BatchGetSchemaCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteMemberCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetCollaborationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetMembershipCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetProtectedQueryCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSchemaAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSchemaCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListCollaborationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListConfiguredTableAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListConfiguredTablesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListMembershipsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListProtectedQueriesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StartProtectedQueryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateProtectedQueryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -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/index.d.ts +6 -0
- package/dist-types/ts3.4/models/CleanRoomsServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1131 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListCollaborationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfiguredTableAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfiguredTablesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMembershipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProtectedQueriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSchemasPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +413 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +103 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
|
+
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
11
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
12
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
13
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
16
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
17
|
+
const getRuntimeConfig = (config) => {
|
|
18
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
21
|
+
return {
|
|
22
|
+
...clientSharedValues,
|
|
23
|
+
...config,
|
|
24
|
+
runtime: "browser",
|
|
25
|
+
defaultsMode,
|
|
26
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
27
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
31
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
32
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
33
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
34
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
35
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
36
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
37
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
38
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
39
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
14
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
|
+
const getRuntimeConfig = (config) => {
|
|
22
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
23
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
24
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
25
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
32
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: config?.retryMode ??
|
|
39
|
+
(0, node_config_provider_1.loadConfig)({
|
|
40
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
41
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
42
|
+
}),
|
|
43
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
44
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
45
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
48
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
6
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
7
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
8
|
+
const getRuntimeConfig = (config) => ({
|
|
9
|
+
apiVersion: "2022-02-17",
|
|
10
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
11
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
12
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
13
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
14
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "CleanRooms",
|
|
16
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
17
|
+
});
|
|
18
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
import { CleanRoomsClient } from "./CleanRoomsClient";
|
|
2
|
+
import { BatchGetSchemaCommand, } from "./commands/BatchGetSchemaCommand";
|
|
3
|
+
import { CreateCollaborationCommand, } from "./commands/CreateCollaborationCommand";
|
|
4
|
+
import { CreateConfiguredTableAnalysisRuleCommand, } from "./commands/CreateConfiguredTableAnalysisRuleCommand";
|
|
5
|
+
import { CreateConfiguredTableAssociationCommand, } from "./commands/CreateConfiguredTableAssociationCommand";
|
|
6
|
+
import { CreateConfiguredTableCommand, } from "./commands/CreateConfiguredTableCommand";
|
|
7
|
+
import { CreateMembershipCommand, } from "./commands/CreateMembershipCommand";
|
|
8
|
+
import { DeleteCollaborationCommand, } from "./commands/DeleteCollaborationCommand";
|
|
9
|
+
import { DeleteConfiguredTableAnalysisRuleCommand, } from "./commands/DeleteConfiguredTableAnalysisRuleCommand";
|
|
10
|
+
import { DeleteConfiguredTableAssociationCommand, } from "./commands/DeleteConfiguredTableAssociationCommand";
|
|
11
|
+
import { DeleteConfiguredTableCommand, } from "./commands/DeleteConfiguredTableCommand";
|
|
12
|
+
import { DeleteMemberCommand, } from "./commands/DeleteMemberCommand";
|
|
13
|
+
import { DeleteMembershipCommand, } from "./commands/DeleteMembershipCommand";
|
|
14
|
+
import { GetCollaborationCommand, } from "./commands/GetCollaborationCommand";
|
|
15
|
+
import { GetConfiguredTableAnalysisRuleCommand, } from "./commands/GetConfiguredTableAnalysisRuleCommand";
|
|
16
|
+
import { GetConfiguredTableAssociationCommand, } from "./commands/GetConfiguredTableAssociationCommand";
|
|
17
|
+
import { GetConfiguredTableCommand, } from "./commands/GetConfiguredTableCommand";
|
|
18
|
+
import { GetMembershipCommand, } from "./commands/GetMembershipCommand";
|
|
19
|
+
import { GetProtectedQueryCommand, } from "./commands/GetProtectedQueryCommand";
|
|
20
|
+
import { GetSchemaAnalysisRuleCommand, } from "./commands/GetSchemaAnalysisRuleCommand";
|
|
21
|
+
import { GetSchemaCommand } from "./commands/GetSchemaCommand";
|
|
22
|
+
import { ListCollaborationsCommand, } from "./commands/ListCollaborationsCommand";
|
|
23
|
+
import { ListConfiguredTableAssociationsCommand, } from "./commands/ListConfiguredTableAssociationsCommand";
|
|
24
|
+
import { ListConfiguredTablesCommand, } from "./commands/ListConfiguredTablesCommand";
|
|
25
|
+
import { ListMembersCommand } from "./commands/ListMembersCommand";
|
|
26
|
+
import { ListMembershipsCommand, } from "./commands/ListMembershipsCommand";
|
|
27
|
+
import { ListProtectedQueriesCommand, } from "./commands/ListProtectedQueriesCommand";
|
|
28
|
+
import { ListSchemasCommand } from "./commands/ListSchemasCommand";
|
|
29
|
+
import { StartProtectedQueryCommand, } from "./commands/StartProtectedQueryCommand";
|
|
30
|
+
import { UpdateCollaborationCommand, } from "./commands/UpdateCollaborationCommand";
|
|
31
|
+
import { UpdateConfiguredTableAnalysisRuleCommand, } from "./commands/UpdateConfiguredTableAnalysisRuleCommand";
|
|
32
|
+
import { UpdateConfiguredTableAssociationCommand, } from "./commands/UpdateConfiguredTableAssociationCommand";
|
|
33
|
+
import { UpdateConfiguredTableCommand, } from "./commands/UpdateConfiguredTableCommand";
|
|
34
|
+
import { UpdateMembershipCommand, } from "./commands/UpdateMembershipCommand";
|
|
35
|
+
import { UpdateProtectedQueryCommand, } from "./commands/UpdateProtectedQueryCommand";
|
|
36
|
+
export class CleanRooms extends CleanRoomsClient {
|
|
37
|
+
batchGetSchema(args, optionsOrCb, cb) {
|
|
38
|
+
const command = new BatchGetSchemaCommand(args);
|
|
39
|
+
if (typeof optionsOrCb === "function") {
|
|
40
|
+
this.send(command, optionsOrCb);
|
|
41
|
+
}
|
|
42
|
+
else if (typeof cb === "function") {
|
|
43
|
+
if (typeof optionsOrCb !== "object")
|
|
44
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
45
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return this.send(command, optionsOrCb);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
createCollaboration(args, optionsOrCb, cb) {
|
|
52
|
+
const command = new CreateCollaborationCommand(args);
|
|
53
|
+
if (typeof optionsOrCb === "function") {
|
|
54
|
+
this.send(command, optionsOrCb);
|
|
55
|
+
}
|
|
56
|
+
else if (typeof cb === "function") {
|
|
57
|
+
if (typeof optionsOrCb !== "object")
|
|
58
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
59
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return this.send(command, optionsOrCb);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
createConfiguredTable(args, optionsOrCb, cb) {
|
|
66
|
+
const command = new CreateConfiguredTableCommand(args);
|
|
67
|
+
if (typeof optionsOrCb === "function") {
|
|
68
|
+
this.send(command, optionsOrCb);
|
|
69
|
+
}
|
|
70
|
+
else if (typeof cb === "function") {
|
|
71
|
+
if (typeof optionsOrCb !== "object")
|
|
72
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
73
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return this.send(command, optionsOrCb);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
createConfiguredTableAnalysisRule(args, optionsOrCb, cb) {
|
|
80
|
+
const command = new CreateConfiguredTableAnalysisRuleCommand(args);
|
|
81
|
+
if (typeof optionsOrCb === "function") {
|
|
82
|
+
this.send(command, optionsOrCb);
|
|
83
|
+
}
|
|
84
|
+
else if (typeof cb === "function") {
|
|
85
|
+
if (typeof optionsOrCb !== "object")
|
|
86
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
87
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return this.send(command, optionsOrCb);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
createConfiguredTableAssociation(args, optionsOrCb, cb) {
|
|
94
|
+
const command = new CreateConfiguredTableAssociationCommand(args);
|
|
95
|
+
if (typeof optionsOrCb === "function") {
|
|
96
|
+
this.send(command, optionsOrCb);
|
|
97
|
+
}
|
|
98
|
+
else if (typeof cb === "function") {
|
|
99
|
+
if (typeof optionsOrCb !== "object")
|
|
100
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
101
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
return this.send(command, optionsOrCb);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
createMembership(args, optionsOrCb, cb) {
|
|
108
|
+
const command = new CreateMembershipCommand(args);
|
|
109
|
+
if (typeof optionsOrCb === "function") {
|
|
110
|
+
this.send(command, optionsOrCb);
|
|
111
|
+
}
|
|
112
|
+
else if (typeof cb === "function") {
|
|
113
|
+
if (typeof optionsOrCb !== "object")
|
|
114
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
115
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return this.send(command, optionsOrCb);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
deleteCollaboration(args, optionsOrCb, cb) {
|
|
122
|
+
const command = new DeleteCollaborationCommand(args);
|
|
123
|
+
if (typeof optionsOrCb === "function") {
|
|
124
|
+
this.send(command, optionsOrCb);
|
|
125
|
+
}
|
|
126
|
+
else if (typeof cb === "function") {
|
|
127
|
+
if (typeof optionsOrCb !== "object")
|
|
128
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
129
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return this.send(command, optionsOrCb);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
deleteConfiguredTable(args, optionsOrCb, cb) {
|
|
136
|
+
const command = new DeleteConfiguredTableCommand(args);
|
|
137
|
+
if (typeof optionsOrCb === "function") {
|
|
138
|
+
this.send(command, optionsOrCb);
|
|
139
|
+
}
|
|
140
|
+
else if (typeof cb === "function") {
|
|
141
|
+
if (typeof optionsOrCb !== "object")
|
|
142
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
return this.send(command, optionsOrCb);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
deleteConfiguredTableAnalysisRule(args, optionsOrCb, cb) {
|
|
150
|
+
const command = new DeleteConfiguredTableAnalysisRuleCommand(args);
|
|
151
|
+
if (typeof optionsOrCb === "function") {
|
|
152
|
+
this.send(command, optionsOrCb);
|
|
153
|
+
}
|
|
154
|
+
else if (typeof cb === "function") {
|
|
155
|
+
if (typeof optionsOrCb !== "object")
|
|
156
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
return this.send(command, optionsOrCb);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
deleteConfiguredTableAssociation(args, optionsOrCb, cb) {
|
|
164
|
+
const command = new DeleteConfiguredTableAssociationCommand(args);
|
|
165
|
+
if (typeof optionsOrCb === "function") {
|
|
166
|
+
this.send(command, optionsOrCb);
|
|
167
|
+
}
|
|
168
|
+
else if (typeof cb === "function") {
|
|
169
|
+
if (typeof optionsOrCb !== "object")
|
|
170
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
return this.send(command, optionsOrCb);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
deleteMember(args, optionsOrCb, cb) {
|
|
178
|
+
const command = new DeleteMemberCommand(args);
|
|
179
|
+
if (typeof optionsOrCb === "function") {
|
|
180
|
+
this.send(command, optionsOrCb);
|
|
181
|
+
}
|
|
182
|
+
else if (typeof cb === "function") {
|
|
183
|
+
if (typeof optionsOrCb !== "object")
|
|
184
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
185
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
return this.send(command, optionsOrCb);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
deleteMembership(args, optionsOrCb, cb) {
|
|
192
|
+
const command = new DeleteMembershipCommand(args);
|
|
193
|
+
if (typeof optionsOrCb === "function") {
|
|
194
|
+
this.send(command, optionsOrCb);
|
|
195
|
+
}
|
|
196
|
+
else if (typeof cb === "function") {
|
|
197
|
+
if (typeof optionsOrCb !== "object")
|
|
198
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
199
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
return this.send(command, optionsOrCb);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
getCollaboration(args, optionsOrCb, cb) {
|
|
206
|
+
const command = new GetCollaborationCommand(args);
|
|
207
|
+
if (typeof optionsOrCb === "function") {
|
|
208
|
+
this.send(command, optionsOrCb);
|
|
209
|
+
}
|
|
210
|
+
else if (typeof cb === "function") {
|
|
211
|
+
if (typeof optionsOrCb !== "object")
|
|
212
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
213
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
return this.send(command, optionsOrCb);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
getConfiguredTable(args, optionsOrCb, cb) {
|
|
220
|
+
const command = new GetConfiguredTableCommand(args);
|
|
221
|
+
if (typeof optionsOrCb === "function") {
|
|
222
|
+
this.send(command, optionsOrCb);
|
|
223
|
+
}
|
|
224
|
+
else if (typeof cb === "function") {
|
|
225
|
+
if (typeof optionsOrCb !== "object")
|
|
226
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
227
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
return this.send(command, optionsOrCb);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
getConfiguredTableAnalysisRule(args, optionsOrCb, cb) {
|
|
234
|
+
const command = new GetConfiguredTableAnalysisRuleCommand(args);
|
|
235
|
+
if (typeof optionsOrCb === "function") {
|
|
236
|
+
this.send(command, optionsOrCb);
|
|
237
|
+
}
|
|
238
|
+
else if (typeof cb === "function") {
|
|
239
|
+
if (typeof optionsOrCb !== "object")
|
|
240
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
241
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
return this.send(command, optionsOrCb);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
getConfiguredTableAssociation(args, optionsOrCb, cb) {
|
|
248
|
+
const command = new GetConfiguredTableAssociationCommand(args);
|
|
249
|
+
if (typeof optionsOrCb === "function") {
|
|
250
|
+
this.send(command, optionsOrCb);
|
|
251
|
+
}
|
|
252
|
+
else if (typeof cb === "function") {
|
|
253
|
+
if (typeof optionsOrCb !== "object")
|
|
254
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
return this.send(command, optionsOrCb);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
getMembership(args, optionsOrCb, cb) {
|
|
262
|
+
const command = new GetMembershipCommand(args);
|
|
263
|
+
if (typeof optionsOrCb === "function") {
|
|
264
|
+
this.send(command, optionsOrCb);
|
|
265
|
+
}
|
|
266
|
+
else if (typeof cb === "function") {
|
|
267
|
+
if (typeof optionsOrCb !== "object")
|
|
268
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
269
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
return this.send(command, optionsOrCb);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
getProtectedQuery(args, optionsOrCb, cb) {
|
|
276
|
+
const command = new GetProtectedQueryCommand(args);
|
|
277
|
+
if (typeof optionsOrCb === "function") {
|
|
278
|
+
this.send(command, optionsOrCb);
|
|
279
|
+
}
|
|
280
|
+
else if (typeof cb === "function") {
|
|
281
|
+
if (typeof optionsOrCb !== "object")
|
|
282
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
283
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
return this.send(command, optionsOrCb);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
getSchema(args, optionsOrCb, cb) {
|
|
290
|
+
const command = new GetSchemaCommand(args);
|
|
291
|
+
if (typeof optionsOrCb === "function") {
|
|
292
|
+
this.send(command, optionsOrCb);
|
|
293
|
+
}
|
|
294
|
+
else if (typeof cb === "function") {
|
|
295
|
+
if (typeof optionsOrCb !== "object")
|
|
296
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
297
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
return this.send(command, optionsOrCb);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
getSchemaAnalysisRule(args, optionsOrCb, cb) {
|
|
304
|
+
const command = new GetSchemaAnalysisRuleCommand(args);
|
|
305
|
+
if (typeof optionsOrCb === "function") {
|
|
306
|
+
this.send(command, optionsOrCb);
|
|
307
|
+
}
|
|
308
|
+
else if (typeof cb === "function") {
|
|
309
|
+
if (typeof optionsOrCb !== "object")
|
|
310
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
311
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
return this.send(command, optionsOrCb);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
listCollaborations(args, optionsOrCb, cb) {
|
|
318
|
+
const command = new ListCollaborationsCommand(args);
|
|
319
|
+
if (typeof optionsOrCb === "function") {
|
|
320
|
+
this.send(command, optionsOrCb);
|
|
321
|
+
}
|
|
322
|
+
else if (typeof cb === "function") {
|
|
323
|
+
if (typeof optionsOrCb !== "object")
|
|
324
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
325
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
return this.send(command, optionsOrCb);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
listConfiguredTableAssociations(args, optionsOrCb, cb) {
|
|
332
|
+
const command = new ListConfiguredTableAssociationsCommand(args);
|
|
333
|
+
if (typeof optionsOrCb === "function") {
|
|
334
|
+
this.send(command, optionsOrCb);
|
|
335
|
+
}
|
|
336
|
+
else if (typeof cb === "function") {
|
|
337
|
+
if (typeof optionsOrCb !== "object")
|
|
338
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
339
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
return this.send(command, optionsOrCb);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
listConfiguredTables(args, optionsOrCb, cb) {
|
|
346
|
+
const command = new ListConfiguredTablesCommand(args);
|
|
347
|
+
if (typeof optionsOrCb === "function") {
|
|
348
|
+
this.send(command, optionsOrCb);
|
|
349
|
+
}
|
|
350
|
+
else if (typeof cb === "function") {
|
|
351
|
+
if (typeof optionsOrCb !== "object")
|
|
352
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
353
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
return this.send(command, optionsOrCb);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
listMembers(args, optionsOrCb, cb) {
|
|
360
|
+
const command = new ListMembersCommand(args);
|
|
361
|
+
if (typeof optionsOrCb === "function") {
|
|
362
|
+
this.send(command, optionsOrCb);
|
|
363
|
+
}
|
|
364
|
+
else if (typeof cb === "function") {
|
|
365
|
+
if (typeof optionsOrCb !== "object")
|
|
366
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
367
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
return this.send(command, optionsOrCb);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
listMemberships(args, optionsOrCb, cb) {
|
|
374
|
+
const command = new ListMembershipsCommand(args);
|
|
375
|
+
if (typeof optionsOrCb === "function") {
|
|
376
|
+
this.send(command, optionsOrCb);
|
|
377
|
+
}
|
|
378
|
+
else if (typeof cb === "function") {
|
|
379
|
+
if (typeof optionsOrCb !== "object")
|
|
380
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
381
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
return this.send(command, optionsOrCb);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
listProtectedQueries(args, optionsOrCb, cb) {
|
|
388
|
+
const command = new ListProtectedQueriesCommand(args);
|
|
389
|
+
if (typeof optionsOrCb === "function") {
|
|
390
|
+
this.send(command, optionsOrCb);
|
|
391
|
+
}
|
|
392
|
+
else if (typeof cb === "function") {
|
|
393
|
+
if (typeof optionsOrCb !== "object")
|
|
394
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
395
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
return this.send(command, optionsOrCb);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
listSchemas(args, optionsOrCb, cb) {
|
|
402
|
+
const command = new ListSchemasCommand(args);
|
|
403
|
+
if (typeof optionsOrCb === "function") {
|
|
404
|
+
this.send(command, optionsOrCb);
|
|
405
|
+
}
|
|
406
|
+
else if (typeof cb === "function") {
|
|
407
|
+
if (typeof optionsOrCb !== "object")
|
|
408
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
409
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
410
|
+
}
|
|
411
|
+
else {
|
|
412
|
+
return this.send(command, optionsOrCb);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
startProtectedQuery(args, optionsOrCb, cb) {
|
|
416
|
+
const command = new StartProtectedQueryCommand(args);
|
|
417
|
+
if (typeof optionsOrCb === "function") {
|
|
418
|
+
this.send(command, optionsOrCb);
|
|
419
|
+
}
|
|
420
|
+
else if (typeof cb === "function") {
|
|
421
|
+
if (typeof optionsOrCb !== "object")
|
|
422
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
423
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
return this.send(command, optionsOrCb);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
updateCollaboration(args, optionsOrCb, cb) {
|
|
430
|
+
const command = new UpdateCollaborationCommand(args);
|
|
431
|
+
if (typeof optionsOrCb === "function") {
|
|
432
|
+
this.send(command, optionsOrCb);
|
|
433
|
+
}
|
|
434
|
+
else if (typeof cb === "function") {
|
|
435
|
+
if (typeof optionsOrCb !== "object")
|
|
436
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
437
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
return this.send(command, optionsOrCb);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
updateConfiguredTable(args, optionsOrCb, cb) {
|
|
444
|
+
const command = new UpdateConfiguredTableCommand(args);
|
|
445
|
+
if (typeof optionsOrCb === "function") {
|
|
446
|
+
this.send(command, optionsOrCb);
|
|
447
|
+
}
|
|
448
|
+
else if (typeof cb === "function") {
|
|
449
|
+
if (typeof optionsOrCb !== "object")
|
|
450
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
451
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
return this.send(command, optionsOrCb);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
updateConfiguredTableAnalysisRule(args, optionsOrCb, cb) {
|
|
458
|
+
const command = new UpdateConfiguredTableAnalysisRuleCommand(args);
|
|
459
|
+
if (typeof optionsOrCb === "function") {
|
|
460
|
+
this.send(command, optionsOrCb);
|
|
461
|
+
}
|
|
462
|
+
else if (typeof cb === "function") {
|
|
463
|
+
if (typeof optionsOrCb !== "object")
|
|
464
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
465
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
return this.send(command, optionsOrCb);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
updateConfiguredTableAssociation(args, optionsOrCb, cb) {
|
|
472
|
+
const command = new UpdateConfiguredTableAssociationCommand(args);
|
|
473
|
+
if (typeof optionsOrCb === "function") {
|
|
474
|
+
this.send(command, optionsOrCb);
|
|
475
|
+
}
|
|
476
|
+
else if (typeof cb === "function") {
|
|
477
|
+
if (typeof optionsOrCb !== "object")
|
|
478
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
479
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
return this.send(command, optionsOrCb);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
updateMembership(args, optionsOrCb, cb) {
|
|
486
|
+
const command = new UpdateMembershipCommand(args);
|
|
487
|
+
if (typeof optionsOrCb === "function") {
|
|
488
|
+
this.send(command, optionsOrCb);
|
|
489
|
+
}
|
|
490
|
+
else if (typeof cb === "function") {
|
|
491
|
+
if (typeof optionsOrCb !== "object")
|
|
492
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
493
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
return this.send(command, optionsOrCb);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
updateProtectedQuery(args, optionsOrCb, cb) {
|
|
500
|
+
const command = new UpdateProtectedQueryCommand(args);
|
|
501
|
+
if (typeof optionsOrCb === "function") {
|
|
502
|
+
this.send(command, optionsOrCb);
|
|
503
|
+
}
|
|
504
|
+
else if (typeof cb === "function") {
|
|
505
|
+
if (typeof optionsOrCb !== "object")
|
|
506
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
507
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
return this.send(command, optionsOrCb);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
+
export class CleanRoomsClient extends __Client {
|
|
14
|
+
constructor(configuration) {
|
|
15
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
25
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
}
|
|
33
|
+
destroy() {
|
|
34
|
+
super.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|