@aws-sdk/client-cleanroomsml 3.462.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.
Files changed (199) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +405 -0
  3. package/dist-cjs/CleanRoomsML.js +61 -0
  4. package/dist-cjs/CleanRoomsMLClient.js +43 -0
  5. package/dist-cjs/commands/CreateAudienceModelCommand.js +51 -0
  6. package/dist-cjs/commands/CreateConfiguredAudienceModelCommand.js +51 -0
  7. package/dist-cjs/commands/CreateTrainingDatasetCommand.js +51 -0
  8. package/dist-cjs/commands/DeleteAudienceGenerationJobCommand.js +51 -0
  9. package/dist-cjs/commands/DeleteAudienceModelCommand.js +51 -0
  10. package/dist-cjs/commands/DeleteConfiguredAudienceModelCommand.js +51 -0
  11. package/dist-cjs/commands/DeleteConfiguredAudienceModelPolicyCommand.js +51 -0
  12. package/dist-cjs/commands/DeleteTrainingDatasetCommand.js +51 -0
  13. package/dist-cjs/commands/GetAudienceGenerationJobCommand.js +51 -0
  14. package/dist-cjs/commands/GetAudienceModelCommand.js +51 -0
  15. package/dist-cjs/commands/GetConfiguredAudienceModelCommand.js +51 -0
  16. package/dist-cjs/commands/GetConfiguredAudienceModelPolicyCommand.js +51 -0
  17. package/dist-cjs/commands/GetTrainingDatasetCommand.js +51 -0
  18. package/dist-cjs/commands/ListAudienceExportJobsCommand.js +51 -0
  19. package/dist-cjs/commands/ListAudienceGenerationJobsCommand.js +51 -0
  20. package/dist-cjs/commands/ListAudienceModelsCommand.js +51 -0
  21. package/dist-cjs/commands/ListConfiguredAudienceModelsCommand.js +51 -0
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
  23. package/dist-cjs/commands/ListTrainingDatasetsCommand.js +51 -0
  24. package/dist-cjs/commands/PutConfiguredAudienceModelPolicyCommand.js +51 -0
  25. package/dist-cjs/commands/StartAudienceExportJobCommand.js +51 -0
  26. package/dist-cjs/commands/StartAudienceGenerationJobCommand.js +51 -0
  27. package/dist-cjs/commands/TagResourceCommand.js +51 -0
  28. package/dist-cjs/commands/UntagResourceCommand.js +51 -0
  29. package/dist-cjs/commands/UpdateConfiguredAudienceModelCommand.js +51 -0
  30. package/dist-cjs/commands/index.js +28 -0
  31. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  32. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  33. package/dist-cjs/endpoint/ruleset.js +7 -0
  34. package/dist-cjs/extensionConfiguration.js +2 -0
  35. package/dist-cjs/index.js +12 -0
  36. package/dist-cjs/models/CleanRoomsMLServiceException.js +12 -0
  37. package/dist-cjs/models/index.js +4 -0
  38. package/dist-cjs/models/models_0.js +131 -0
  39. package/dist-cjs/pagination/Interfaces.js +2 -0
  40. package/dist-cjs/pagination/ListAudienceExportJobsPaginator.js +29 -0
  41. package/dist-cjs/pagination/ListAudienceGenerationJobsPaginator.js +29 -0
  42. package/dist-cjs/pagination/ListAudienceModelsPaginator.js +29 -0
  43. package/dist-cjs/pagination/ListConfiguredAudienceModelsPaginator.js +29 -0
  44. package/dist-cjs/pagination/ListTrainingDatasetsPaginator.js +29 -0
  45. package/dist-cjs/pagination/index.js +9 -0
  46. package/dist-cjs/protocols/Aws_restJson1.js +1835 -0
  47. package/dist-cjs/runtimeConfig.browser.js +39 -0
  48. package/dist-cjs/runtimeConfig.js +50 -0
  49. package/dist-cjs/runtimeConfig.native.js +15 -0
  50. package/dist-cjs/runtimeConfig.shared.js +24 -0
  51. package/dist-cjs/runtimeExtensions.js +22 -0
  52. package/dist-es/CleanRoomsML.js +57 -0
  53. package/dist-es/CleanRoomsMLClient.js +39 -0
  54. package/dist-es/commands/CreateAudienceModelCommand.js +47 -0
  55. package/dist-es/commands/CreateConfiguredAudienceModelCommand.js +47 -0
  56. package/dist-es/commands/CreateTrainingDatasetCommand.js +47 -0
  57. package/dist-es/commands/DeleteAudienceGenerationJobCommand.js +47 -0
  58. package/dist-es/commands/DeleteAudienceModelCommand.js +47 -0
  59. package/dist-es/commands/DeleteConfiguredAudienceModelCommand.js +47 -0
  60. package/dist-es/commands/DeleteConfiguredAudienceModelPolicyCommand.js +47 -0
  61. package/dist-es/commands/DeleteTrainingDatasetCommand.js +47 -0
  62. package/dist-es/commands/GetAudienceGenerationJobCommand.js +47 -0
  63. package/dist-es/commands/GetAudienceModelCommand.js +47 -0
  64. package/dist-es/commands/GetConfiguredAudienceModelCommand.js +47 -0
  65. package/dist-es/commands/GetConfiguredAudienceModelPolicyCommand.js +47 -0
  66. package/dist-es/commands/GetTrainingDatasetCommand.js +47 -0
  67. package/dist-es/commands/ListAudienceExportJobsCommand.js +47 -0
  68. package/dist-es/commands/ListAudienceGenerationJobsCommand.js +47 -0
  69. package/dist-es/commands/ListAudienceModelsCommand.js +47 -0
  70. package/dist-es/commands/ListConfiguredAudienceModelsCommand.js +47 -0
  71. package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
  72. package/dist-es/commands/ListTrainingDatasetsCommand.js +47 -0
  73. package/dist-es/commands/PutConfiguredAudienceModelPolicyCommand.js +47 -0
  74. package/dist-es/commands/StartAudienceExportJobCommand.js +47 -0
  75. package/dist-es/commands/StartAudienceGenerationJobCommand.js +47 -0
  76. package/dist-es/commands/TagResourceCommand.js +47 -0
  77. package/dist-es/commands/UntagResourceCommand.js +47 -0
  78. package/dist-es/commands/UpdateConfiguredAudienceModelCommand.js +47 -0
  79. package/dist-es/commands/index.js +25 -0
  80. package/dist-es/endpoint/EndpointParameters.js +8 -0
  81. package/dist-es/endpoint/endpointResolver.js +8 -0
  82. package/dist-es/endpoint/ruleset.js +4 -0
  83. package/dist-es/extensionConfiguration.js +1 -0
  84. package/dist-es/index.js +7 -0
  85. package/dist-es/models/CleanRoomsMLServiceException.js +8 -0
  86. package/dist-es/models/index.js +1 -0
  87. package/dist-es/models/models_0.js +123 -0
  88. package/dist-es/pagination/Interfaces.js +1 -0
  89. package/dist-es/pagination/ListAudienceExportJobsPaginator.js +25 -0
  90. package/dist-es/pagination/ListAudienceGenerationJobsPaginator.js +25 -0
  91. package/dist-es/pagination/ListAudienceModelsPaginator.js +25 -0
  92. package/dist-es/pagination/ListConfiguredAudienceModelsPaginator.js +25 -0
  93. package/dist-es/pagination/ListTrainingDatasetsPaginator.js +25 -0
  94. package/dist-es/pagination/index.js +6 -0
  95. package/dist-es/protocols/Aws_restJson1.js +1782 -0
  96. package/dist-es/runtimeConfig.browser.js +34 -0
  97. package/dist-es/runtimeConfig.js +45 -0
  98. package/dist-es/runtimeConfig.native.js +11 -0
  99. package/dist-es/runtimeConfig.shared.js +20 -0
  100. package/dist-es/runtimeExtensions.js +18 -0
  101. package/dist-types/CleanRoomsML.d.ts +185 -0
  102. package/dist-types/CleanRoomsMLClient.d.ts +194 -0
  103. package/dist-types/commands/CreateAudienceModelCommand.d.ts +96 -0
  104. package/dist-types/commands/CreateConfiguredAudienceModelCommand.d.ts +112 -0
  105. package/dist-types/commands/CreateTrainingDatasetCommand.d.ts +109 -0
  106. package/dist-types/commands/DeleteAudienceGenerationJobCommand.d.ts +83 -0
  107. package/dist-types/commands/DeleteAudienceModelCommand.d.ts +83 -0
  108. package/dist-types/commands/DeleteConfiguredAudienceModelCommand.d.ts +83 -0
  109. package/dist-types/commands/DeleteConfiguredAudienceModelPolicyCommand.d.ts +80 -0
  110. package/dist-types/commands/DeleteTrainingDatasetCommand.d.ts +83 -0
  111. package/dist-types/commands/GetAudienceGenerationJobCommand.d.ts +115 -0
  112. package/dist-types/commands/GetAudienceModelCommand.d.ts +105 -0
  113. package/dist-types/commands/GetConfiguredAudienceModelCommand.d.ts +110 -0
  114. package/dist-types/commands/GetConfiguredAudienceModelPolicyCommand.d.ts +84 -0
  115. package/dist-types/commands/GetTrainingDatasetCommand.d.ts +113 -0
  116. package/dist-types/commands/ListAudienceExportJobsCommand.d.ts +100 -0
  117. package/dist-types/commands/ListAudienceGenerationJobsCommand.d.ts +95 -0
  118. package/dist-types/commands/ListAudienceModelsCommand.d.ts +91 -0
  119. package/dist-types/commands/ListConfiguredAudienceModelsCommand.d.ts +99 -0
  120. package/dist-types/commands/ListTagsForResourceCommand.d.ts +84 -0
  121. package/dist-types/commands/ListTrainingDatasetsCommand.d.ts +90 -0
  122. package/dist-types/commands/PutConfiguredAudienceModelPolicyCommand.d.ts +86 -0
  123. package/dist-types/commands/StartAudienceExportJobCommand.d.ts +92 -0
  124. package/dist-types/commands/StartAudienceGenerationJobCommand.d.ts +101 -0
  125. package/dist-types/commands/TagResourceCommand.d.ts +83 -0
  126. package/dist-types/commands/UntagResourceCommand.d.ts +83 -0
  127. package/dist-types/commands/UpdateConfiguredAudienceModelCommand.d.ts +105 -0
  128. package/dist-types/commands/index.d.ts +25 -0
  129. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  130. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  131. package/dist-types/endpoint/ruleset.d.ts +2 -0
  132. package/dist-types/extensionConfiguration.d.ts +8 -0
  133. package/dist-types/index.d.ts +15 -0
  134. package/dist-types/models/CleanRoomsMLServiceException.d.ts +13 -0
  135. package/dist-types/models/index.d.ts +1 -0
  136. package/dist-types/models/models_0.d.ts +1729 -0
  137. package/dist-types/pagination/Interfaces.d.ts +8 -0
  138. package/dist-types/pagination/ListAudienceExportJobsPaginator.d.ts +7 -0
  139. package/dist-types/pagination/ListAudienceGenerationJobsPaginator.d.ts +7 -0
  140. package/dist-types/pagination/ListAudienceModelsPaginator.d.ts +7 -0
  141. package/dist-types/pagination/ListConfiguredAudienceModelsPaginator.d.ts +7 -0
  142. package/dist-types/pagination/ListTrainingDatasetsPaginator.d.ts +7 -0
  143. package/dist-types/pagination/index.d.ts +6 -0
  144. package/dist-types/protocols/Aws_restJson1.d.ts +227 -0
  145. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  146. package/dist-types/runtimeConfig.d.ts +46 -0
  147. package/dist-types/runtimeConfig.native.d.ts +45 -0
  148. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  149. package/dist-types/runtimeExtensions.d.ts +17 -0
  150. package/dist-types/ts3.4/CleanRoomsML.d.ts +438 -0
  151. package/dist-types/ts3.4/CleanRoomsMLClient.d.ts +269 -0
  152. package/dist-types/ts3.4/commands/CreateAudienceModelCommand.d.ts +39 -0
  153. package/dist-types/ts3.4/commands/CreateConfiguredAudienceModelCommand.d.ts +42 -0
  154. package/dist-types/ts3.4/commands/CreateTrainingDatasetCommand.d.ts +42 -0
  155. package/dist-types/ts3.4/commands/DeleteAudienceGenerationJobCommand.d.ts +38 -0
  156. package/dist-types/ts3.4/commands/DeleteAudienceModelCommand.d.ts +34 -0
  157. package/dist-types/ts3.4/commands/DeleteConfiguredAudienceModelCommand.d.ts +38 -0
  158. package/dist-types/ts3.4/commands/DeleteConfiguredAudienceModelPolicyCommand.d.ts +38 -0
  159. package/dist-types/ts3.4/commands/DeleteTrainingDatasetCommand.d.ts +37 -0
  160. package/dist-types/ts3.4/commands/GetAudienceGenerationJobCommand.d.ts +42 -0
  161. package/dist-types/ts3.4/commands/GetAudienceModelCommand.d.ts +38 -0
  162. package/dist-types/ts3.4/commands/GetConfiguredAudienceModelCommand.d.ts +42 -0
  163. package/dist-types/ts3.4/commands/GetConfiguredAudienceModelPolicyCommand.d.ts +42 -0
  164. package/dist-types/ts3.4/commands/GetTrainingDatasetCommand.d.ts +39 -0
  165. package/dist-types/ts3.4/commands/ListAudienceExportJobsCommand.d.ts +42 -0
  166. package/dist-types/ts3.4/commands/ListAudienceGenerationJobsCommand.d.ts +42 -0
  167. package/dist-types/ts3.4/commands/ListAudienceModelsCommand.d.ts +39 -0
  168. package/dist-types/ts3.4/commands/ListConfiguredAudienceModelsCommand.d.ts +42 -0
  169. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  170. package/dist-types/ts3.4/commands/ListTrainingDatasetsCommand.d.ts +42 -0
  171. package/dist-types/ts3.4/commands/PutConfiguredAudienceModelPolicyCommand.d.ts +42 -0
  172. package/dist-types/ts3.4/commands/StartAudienceExportJobCommand.d.ts +37 -0
  173. package/dist-types/ts3.4/commands/StartAudienceGenerationJobCommand.d.ts +42 -0
  174. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  175. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  176. package/dist-types/ts3.4/commands/UpdateConfiguredAudienceModelCommand.d.ts +42 -0
  177. package/dist-types/ts3.4/commands/index.d.ts +25 -0
  178. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  179. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  180. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  181. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  182. package/dist-types/ts3.4/index.d.ts +10 -0
  183. package/dist-types/ts3.4/models/CleanRoomsMLServiceException.d.ts +8 -0
  184. package/dist-types/ts3.4/models/index.d.ts +1 -0
  185. package/dist-types/ts3.4/models/models_0.d.ts +453 -0
  186. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  187. package/dist-types/ts3.4/pagination/ListAudienceExportJobsPaginator.d.ts +11 -0
  188. package/dist-types/ts3.4/pagination/ListAudienceGenerationJobsPaginator.d.ts +11 -0
  189. package/dist-types/ts3.4/pagination/ListAudienceModelsPaginator.d.ts +11 -0
  190. package/dist-types/ts3.4/pagination/ListConfiguredAudienceModelsPaginator.d.ts +11 -0
  191. package/dist-types/ts3.4/pagination/ListTrainingDatasetsPaginator.d.ts +11 -0
  192. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  193. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +305 -0
  194. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  195. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  196. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  197. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  198. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  199. package/package.json +102 -0
@@ -0,0 +1,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
+ import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
8
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };
@@ -0,0 +1,45 @@
1
+ import packageInfo from "../package.json";
2
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
6
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
7
+ import { Hash } from "@smithy/hash-node";
8
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
9
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
10
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
12
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
13
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
14
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
15
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
16
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
17
+ export const getRuntimeConfig = (config) => {
18
+ emitWarningIfUnsupportedVersion(process.version);
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ awsCheckVersion(process.version);
23
+ return {
24
+ ...clientSharedValues,
25
+ ...config,
26
+ runtime: "node",
27
+ defaultsMode,
28
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
29
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
30
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
31
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
34
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
35
+ retryMode: config?.retryMode ??
36
+ loadNodeConfig({
37
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
38
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
39
+ }),
40
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
41
+ streamCollector: config?.streamCollector ?? streamCollector,
42
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
43
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ };
45
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,20 @@
1
+ import { NoOpLogger } from "@smithy/smithy-client";
2
+ import { parseUrl } from "@smithy/url-parser";
3
+ import { fromBase64, toBase64 } from "@smithy/util-base64";
4
+ import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
5
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
6
+ export const getRuntimeConfig = (config) => {
7
+ return {
8
+ apiVersion: "2023-09-06",
9
+ base64Decoder: config?.base64Decoder ?? fromBase64,
10
+ base64Encoder: config?.base64Encoder ?? toBase64,
11
+ disableHostPrefix: config?.disableHostPrefix ?? false,
12
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
13
+ extensions: config?.extensions ?? [],
14
+ logger: config?.logger ?? new NoOpLogger(),
15
+ serviceId: config?.serviceId ?? "CleanRoomsML",
16
+ urlParser: config?.urlParser ?? parseUrl,
17
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
18
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
19
+ };
20
+ };
@@ -0,0 +1,18 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ const asPartial = (t) => t;
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = {
7
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
8
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
9
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
10
+ };
11
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
12
+ return {
13
+ ...runtimeConfig,
14
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
15
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
16
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
17
+ };
18
+ };
@@ -0,0 +1,185 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { CleanRoomsMLClient } from "./CleanRoomsMLClient";
3
+ import { CreateAudienceModelCommandInput, CreateAudienceModelCommandOutput } from "./commands/CreateAudienceModelCommand";
4
+ import { CreateConfiguredAudienceModelCommandInput, CreateConfiguredAudienceModelCommandOutput } from "./commands/CreateConfiguredAudienceModelCommand";
5
+ import { CreateTrainingDatasetCommandInput, CreateTrainingDatasetCommandOutput } from "./commands/CreateTrainingDatasetCommand";
6
+ import { DeleteAudienceGenerationJobCommandInput, DeleteAudienceGenerationJobCommandOutput } from "./commands/DeleteAudienceGenerationJobCommand";
7
+ import { DeleteAudienceModelCommandInput, DeleteAudienceModelCommandOutput } from "./commands/DeleteAudienceModelCommand";
8
+ import { DeleteConfiguredAudienceModelCommandInput, DeleteConfiguredAudienceModelCommandOutput } from "./commands/DeleteConfiguredAudienceModelCommand";
9
+ import { DeleteConfiguredAudienceModelPolicyCommandInput, DeleteConfiguredAudienceModelPolicyCommandOutput } from "./commands/DeleteConfiguredAudienceModelPolicyCommand";
10
+ import { DeleteTrainingDatasetCommandInput, DeleteTrainingDatasetCommandOutput } from "./commands/DeleteTrainingDatasetCommand";
11
+ import { GetAudienceGenerationJobCommandInput, GetAudienceGenerationJobCommandOutput } from "./commands/GetAudienceGenerationJobCommand";
12
+ import { GetAudienceModelCommandInput, GetAudienceModelCommandOutput } from "./commands/GetAudienceModelCommand";
13
+ import { GetConfiguredAudienceModelCommandInput, GetConfiguredAudienceModelCommandOutput } from "./commands/GetConfiguredAudienceModelCommand";
14
+ import { GetConfiguredAudienceModelPolicyCommandInput, GetConfiguredAudienceModelPolicyCommandOutput } from "./commands/GetConfiguredAudienceModelPolicyCommand";
15
+ import { GetTrainingDatasetCommandInput, GetTrainingDatasetCommandOutput } from "./commands/GetTrainingDatasetCommand";
16
+ import { ListAudienceExportJobsCommandInput, ListAudienceExportJobsCommandOutput } from "./commands/ListAudienceExportJobsCommand";
17
+ import { ListAudienceGenerationJobsCommandInput, ListAudienceGenerationJobsCommandOutput } from "./commands/ListAudienceGenerationJobsCommand";
18
+ import { ListAudienceModelsCommandInput, ListAudienceModelsCommandOutput } from "./commands/ListAudienceModelsCommand";
19
+ import { ListConfiguredAudienceModelsCommandInput, ListConfiguredAudienceModelsCommandOutput } from "./commands/ListConfiguredAudienceModelsCommand";
20
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
21
+ import { ListTrainingDatasetsCommandInput, ListTrainingDatasetsCommandOutput } from "./commands/ListTrainingDatasetsCommand";
22
+ import { PutConfiguredAudienceModelPolicyCommandInput, PutConfiguredAudienceModelPolicyCommandOutput } from "./commands/PutConfiguredAudienceModelPolicyCommand";
23
+ import { StartAudienceExportJobCommandInput, StartAudienceExportJobCommandOutput } from "./commands/StartAudienceExportJobCommand";
24
+ import { StartAudienceGenerationJobCommandInput, StartAudienceGenerationJobCommandOutput } from "./commands/StartAudienceGenerationJobCommand";
25
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
26
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
27
+ import { UpdateConfiguredAudienceModelCommandInput, UpdateConfiguredAudienceModelCommandOutput } from "./commands/UpdateConfiguredAudienceModelCommand";
28
+ export interface CleanRoomsML {
29
+ /**
30
+ * @see {@link CreateAudienceModelCommand}
31
+ */
32
+ createAudienceModel(args: CreateAudienceModelCommandInput, options?: __HttpHandlerOptions): Promise<CreateAudienceModelCommandOutput>;
33
+ createAudienceModel(args: CreateAudienceModelCommandInput, cb: (err: any, data?: CreateAudienceModelCommandOutput) => void): void;
34
+ createAudienceModel(args: CreateAudienceModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAudienceModelCommandOutput) => void): void;
35
+ /**
36
+ * @see {@link CreateConfiguredAudienceModelCommand}
37
+ */
38
+ createConfiguredAudienceModel(args: CreateConfiguredAudienceModelCommandInput, options?: __HttpHandlerOptions): Promise<CreateConfiguredAudienceModelCommandOutput>;
39
+ createConfiguredAudienceModel(args: CreateConfiguredAudienceModelCommandInput, cb: (err: any, data?: CreateConfiguredAudienceModelCommandOutput) => void): void;
40
+ createConfiguredAudienceModel(args: CreateConfiguredAudienceModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConfiguredAudienceModelCommandOutput) => void): void;
41
+ /**
42
+ * @see {@link CreateTrainingDatasetCommand}
43
+ */
44
+ createTrainingDataset(args: CreateTrainingDatasetCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrainingDatasetCommandOutput>;
45
+ createTrainingDataset(args: CreateTrainingDatasetCommandInput, cb: (err: any, data?: CreateTrainingDatasetCommandOutput) => void): void;
46
+ createTrainingDataset(args: CreateTrainingDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTrainingDatasetCommandOutput) => void): void;
47
+ /**
48
+ * @see {@link DeleteAudienceGenerationJobCommand}
49
+ */
50
+ deleteAudienceGenerationJob(args: DeleteAudienceGenerationJobCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAudienceGenerationJobCommandOutput>;
51
+ deleteAudienceGenerationJob(args: DeleteAudienceGenerationJobCommandInput, cb: (err: any, data?: DeleteAudienceGenerationJobCommandOutput) => void): void;
52
+ deleteAudienceGenerationJob(args: DeleteAudienceGenerationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAudienceGenerationJobCommandOutput) => void): void;
53
+ /**
54
+ * @see {@link DeleteAudienceModelCommand}
55
+ */
56
+ deleteAudienceModel(args: DeleteAudienceModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAudienceModelCommandOutput>;
57
+ deleteAudienceModel(args: DeleteAudienceModelCommandInput, cb: (err: any, data?: DeleteAudienceModelCommandOutput) => void): void;
58
+ deleteAudienceModel(args: DeleteAudienceModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAudienceModelCommandOutput) => void): void;
59
+ /**
60
+ * @see {@link DeleteConfiguredAudienceModelCommand}
61
+ */
62
+ deleteConfiguredAudienceModel(args: DeleteConfiguredAudienceModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConfiguredAudienceModelCommandOutput>;
63
+ deleteConfiguredAudienceModel(args: DeleteConfiguredAudienceModelCommandInput, cb: (err: any, data?: DeleteConfiguredAudienceModelCommandOutput) => void): void;
64
+ deleteConfiguredAudienceModel(args: DeleteConfiguredAudienceModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConfiguredAudienceModelCommandOutput) => void): void;
65
+ /**
66
+ * @see {@link DeleteConfiguredAudienceModelPolicyCommand}
67
+ */
68
+ deleteConfiguredAudienceModelPolicy(args: DeleteConfiguredAudienceModelPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConfiguredAudienceModelPolicyCommandOutput>;
69
+ deleteConfiguredAudienceModelPolicy(args: DeleteConfiguredAudienceModelPolicyCommandInput, cb: (err: any, data?: DeleteConfiguredAudienceModelPolicyCommandOutput) => void): void;
70
+ deleteConfiguredAudienceModelPolicy(args: DeleteConfiguredAudienceModelPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConfiguredAudienceModelPolicyCommandOutput) => void): void;
71
+ /**
72
+ * @see {@link DeleteTrainingDatasetCommand}
73
+ */
74
+ deleteTrainingDataset(args: DeleteTrainingDatasetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTrainingDatasetCommandOutput>;
75
+ deleteTrainingDataset(args: DeleteTrainingDatasetCommandInput, cb: (err: any, data?: DeleteTrainingDatasetCommandOutput) => void): void;
76
+ deleteTrainingDataset(args: DeleteTrainingDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTrainingDatasetCommandOutput) => void): void;
77
+ /**
78
+ * @see {@link GetAudienceGenerationJobCommand}
79
+ */
80
+ getAudienceGenerationJob(args: GetAudienceGenerationJobCommandInput, options?: __HttpHandlerOptions): Promise<GetAudienceGenerationJobCommandOutput>;
81
+ getAudienceGenerationJob(args: GetAudienceGenerationJobCommandInput, cb: (err: any, data?: GetAudienceGenerationJobCommandOutput) => void): void;
82
+ getAudienceGenerationJob(args: GetAudienceGenerationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAudienceGenerationJobCommandOutput) => void): void;
83
+ /**
84
+ * @see {@link GetAudienceModelCommand}
85
+ */
86
+ getAudienceModel(args: GetAudienceModelCommandInput, options?: __HttpHandlerOptions): Promise<GetAudienceModelCommandOutput>;
87
+ getAudienceModel(args: GetAudienceModelCommandInput, cb: (err: any, data?: GetAudienceModelCommandOutput) => void): void;
88
+ getAudienceModel(args: GetAudienceModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAudienceModelCommandOutput) => void): void;
89
+ /**
90
+ * @see {@link GetConfiguredAudienceModelCommand}
91
+ */
92
+ getConfiguredAudienceModel(args: GetConfiguredAudienceModelCommandInput, options?: __HttpHandlerOptions): Promise<GetConfiguredAudienceModelCommandOutput>;
93
+ getConfiguredAudienceModel(args: GetConfiguredAudienceModelCommandInput, cb: (err: any, data?: GetConfiguredAudienceModelCommandOutput) => void): void;
94
+ getConfiguredAudienceModel(args: GetConfiguredAudienceModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConfiguredAudienceModelCommandOutput) => void): void;
95
+ /**
96
+ * @see {@link GetConfiguredAudienceModelPolicyCommand}
97
+ */
98
+ getConfiguredAudienceModelPolicy(args: GetConfiguredAudienceModelPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetConfiguredAudienceModelPolicyCommandOutput>;
99
+ getConfiguredAudienceModelPolicy(args: GetConfiguredAudienceModelPolicyCommandInput, cb: (err: any, data?: GetConfiguredAudienceModelPolicyCommandOutput) => void): void;
100
+ getConfiguredAudienceModelPolicy(args: GetConfiguredAudienceModelPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConfiguredAudienceModelPolicyCommandOutput) => void): void;
101
+ /**
102
+ * @see {@link GetTrainingDatasetCommand}
103
+ */
104
+ getTrainingDataset(args: GetTrainingDatasetCommandInput, options?: __HttpHandlerOptions): Promise<GetTrainingDatasetCommandOutput>;
105
+ getTrainingDataset(args: GetTrainingDatasetCommandInput, cb: (err: any, data?: GetTrainingDatasetCommandOutput) => void): void;
106
+ getTrainingDataset(args: GetTrainingDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTrainingDatasetCommandOutput) => void): void;
107
+ /**
108
+ * @see {@link ListAudienceExportJobsCommand}
109
+ */
110
+ listAudienceExportJobs(args: ListAudienceExportJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListAudienceExportJobsCommandOutput>;
111
+ listAudienceExportJobs(args: ListAudienceExportJobsCommandInput, cb: (err: any, data?: ListAudienceExportJobsCommandOutput) => void): void;
112
+ listAudienceExportJobs(args: ListAudienceExportJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAudienceExportJobsCommandOutput) => void): void;
113
+ /**
114
+ * @see {@link ListAudienceGenerationJobsCommand}
115
+ */
116
+ listAudienceGenerationJobs(args: ListAudienceGenerationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListAudienceGenerationJobsCommandOutput>;
117
+ listAudienceGenerationJobs(args: ListAudienceGenerationJobsCommandInput, cb: (err: any, data?: ListAudienceGenerationJobsCommandOutput) => void): void;
118
+ listAudienceGenerationJobs(args: ListAudienceGenerationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAudienceGenerationJobsCommandOutput) => void): void;
119
+ /**
120
+ * @see {@link ListAudienceModelsCommand}
121
+ */
122
+ listAudienceModels(args: ListAudienceModelsCommandInput, options?: __HttpHandlerOptions): Promise<ListAudienceModelsCommandOutput>;
123
+ listAudienceModels(args: ListAudienceModelsCommandInput, cb: (err: any, data?: ListAudienceModelsCommandOutput) => void): void;
124
+ listAudienceModels(args: ListAudienceModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAudienceModelsCommandOutput) => void): void;
125
+ /**
126
+ * @see {@link ListConfiguredAudienceModelsCommand}
127
+ */
128
+ listConfiguredAudienceModels(args: ListConfiguredAudienceModelsCommandInput, options?: __HttpHandlerOptions): Promise<ListConfiguredAudienceModelsCommandOutput>;
129
+ listConfiguredAudienceModels(args: ListConfiguredAudienceModelsCommandInput, cb: (err: any, data?: ListConfiguredAudienceModelsCommandOutput) => void): void;
130
+ listConfiguredAudienceModels(args: ListConfiguredAudienceModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConfiguredAudienceModelsCommandOutput) => void): void;
131
+ /**
132
+ * @see {@link ListTagsForResourceCommand}
133
+ */
134
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
135
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
136
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
137
+ /**
138
+ * @see {@link ListTrainingDatasetsCommand}
139
+ */
140
+ listTrainingDatasets(args: ListTrainingDatasetsCommandInput, options?: __HttpHandlerOptions): Promise<ListTrainingDatasetsCommandOutput>;
141
+ listTrainingDatasets(args: ListTrainingDatasetsCommandInput, cb: (err: any, data?: ListTrainingDatasetsCommandOutput) => void): void;
142
+ listTrainingDatasets(args: ListTrainingDatasetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTrainingDatasetsCommandOutput) => void): void;
143
+ /**
144
+ * @see {@link PutConfiguredAudienceModelPolicyCommand}
145
+ */
146
+ putConfiguredAudienceModelPolicy(args: PutConfiguredAudienceModelPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutConfiguredAudienceModelPolicyCommandOutput>;
147
+ putConfiguredAudienceModelPolicy(args: PutConfiguredAudienceModelPolicyCommandInput, cb: (err: any, data?: PutConfiguredAudienceModelPolicyCommandOutput) => void): void;
148
+ putConfiguredAudienceModelPolicy(args: PutConfiguredAudienceModelPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutConfiguredAudienceModelPolicyCommandOutput) => void): void;
149
+ /**
150
+ * @see {@link StartAudienceExportJobCommand}
151
+ */
152
+ startAudienceExportJob(args: StartAudienceExportJobCommandInput, options?: __HttpHandlerOptions): Promise<StartAudienceExportJobCommandOutput>;
153
+ startAudienceExportJob(args: StartAudienceExportJobCommandInput, cb: (err: any, data?: StartAudienceExportJobCommandOutput) => void): void;
154
+ startAudienceExportJob(args: StartAudienceExportJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAudienceExportJobCommandOutput) => void): void;
155
+ /**
156
+ * @see {@link StartAudienceGenerationJobCommand}
157
+ */
158
+ startAudienceGenerationJob(args: StartAudienceGenerationJobCommandInput, options?: __HttpHandlerOptions): Promise<StartAudienceGenerationJobCommandOutput>;
159
+ startAudienceGenerationJob(args: StartAudienceGenerationJobCommandInput, cb: (err: any, data?: StartAudienceGenerationJobCommandOutput) => void): void;
160
+ startAudienceGenerationJob(args: StartAudienceGenerationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAudienceGenerationJobCommandOutput) => void): void;
161
+ /**
162
+ * @see {@link TagResourceCommand}
163
+ */
164
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
165
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
166
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
167
+ /**
168
+ * @see {@link UntagResourceCommand}
169
+ */
170
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
171
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
172
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
173
+ /**
174
+ * @see {@link UpdateConfiguredAudienceModelCommand}
175
+ */
176
+ updateConfiguredAudienceModel(args: UpdateConfiguredAudienceModelCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConfiguredAudienceModelCommandOutput>;
177
+ updateConfiguredAudienceModel(args: UpdateConfiguredAudienceModelCommandInput, cb: (err: any, data?: UpdateConfiguredAudienceModelCommandOutput) => void): void;
178
+ updateConfiguredAudienceModel(args: UpdateConfiguredAudienceModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConfiguredAudienceModelCommandOutput) => void): void;
179
+ }
180
+ /**
181
+ * @public
182
+ * <p>API Reference for Amazon Web Services Clean Rooms ML.</p>
183
+ */
184
+ export declare class CleanRoomsML extends CleanRoomsMLClient implements CleanRoomsML {
185
+ }
@@ -0,0 +1,194 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
+ import { Credentials as __Credentials } from "@aws-sdk/types";
5
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
+ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
+ import { CreateAudienceModelCommandInput, CreateAudienceModelCommandOutput } from "./commands/CreateAudienceModelCommand";
12
+ import { CreateConfiguredAudienceModelCommandInput, CreateConfiguredAudienceModelCommandOutput } from "./commands/CreateConfiguredAudienceModelCommand";
13
+ import { CreateTrainingDatasetCommandInput, CreateTrainingDatasetCommandOutput } from "./commands/CreateTrainingDatasetCommand";
14
+ import { DeleteAudienceGenerationJobCommandInput, DeleteAudienceGenerationJobCommandOutput } from "./commands/DeleteAudienceGenerationJobCommand";
15
+ import { DeleteAudienceModelCommandInput, DeleteAudienceModelCommandOutput } from "./commands/DeleteAudienceModelCommand";
16
+ import { DeleteConfiguredAudienceModelCommandInput, DeleteConfiguredAudienceModelCommandOutput } from "./commands/DeleteConfiguredAudienceModelCommand";
17
+ import { DeleteConfiguredAudienceModelPolicyCommandInput, DeleteConfiguredAudienceModelPolicyCommandOutput } from "./commands/DeleteConfiguredAudienceModelPolicyCommand";
18
+ import { DeleteTrainingDatasetCommandInput, DeleteTrainingDatasetCommandOutput } from "./commands/DeleteTrainingDatasetCommand";
19
+ import { GetAudienceGenerationJobCommandInput, GetAudienceGenerationJobCommandOutput } from "./commands/GetAudienceGenerationJobCommand";
20
+ import { GetAudienceModelCommandInput, GetAudienceModelCommandOutput } from "./commands/GetAudienceModelCommand";
21
+ import { GetConfiguredAudienceModelCommandInput, GetConfiguredAudienceModelCommandOutput } from "./commands/GetConfiguredAudienceModelCommand";
22
+ import { GetConfiguredAudienceModelPolicyCommandInput, GetConfiguredAudienceModelPolicyCommandOutput } from "./commands/GetConfiguredAudienceModelPolicyCommand";
23
+ import { GetTrainingDatasetCommandInput, GetTrainingDatasetCommandOutput } from "./commands/GetTrainingDatasetCommand";
24
+ import { ListAudienceExportJobsCommandInput, ListAudienceExportJobsCommandOutput } from "./commands/ListAudienceExportJobsCommand";
25
+ import { ListAudienceGenerationJobsCommandInput, ListAudienceGenerationJobsCommandOutput } from "./commands/ListAudienceGenerationJobsCommand";
26
+ import { ListAudienceModelsCommandInput, ListAudienceModelsCommandOutput } from "./commands/ListAudienceModelsCommand";
27
+ import { ListConfiguredAudienceModelsCommandInput, ListConfiguredAudienceModelsCommandOutput } from "./commands/ListConfiguredAudienceModelsCommand";
28
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
29
+ import { ListTrainingDatasetsCommandInput, ListTrainingDatasetsCommandOutput } from "./commands/ListTrainingDatasetsCommand";
30
+ import { PutConfiguredAudienceModelPolicyCommandInput, PutConfiguredAudienceModelPolicyCommandOutput } from "./commands/PutConfiguredAudienceModelPolicyCommand";
31
+ import { StartAudienceExportJobCommandInput, StartAudienceExportJobCommandOutput } from "./commands/StartAudienceExportJobCommand";
32
+ import { StartAudienceGenerationJobCommandInput, StartAudienceGenerationJobCommandOutput } from "./commands/StartAudienceGenerationJobCommand";
33
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
+ import { UpdateConfiguredAudienceModelCommandInput, UpdateConfiguredAudienceModelCommandOutput } from "./commands/UpdateConfiguredAudienceModelCommand";
36
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
37
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
38
+ export { __Client };
39
+ /**
40
+ * @public
41
+ */
42
+ export type ServiceInputTypes = CreateAudienceModelCommandInput | CreateConfiguredAudienceModelCommandInput | CreateTrainingDatasetCommandInput | DeleteAudienceGenerationJobCommandInput | DeleteAudienceModelCommandInput | DeleteConfiguredAudienceModelCommandInput | DeleteConfiguredAudienceModelPolicyCommandInput | DeleteTrainingDatasetCommandInput | GetAudienceGenerationJobCommandInput | GetAudienceModelCommandInput | GetConfiguredAudienceModelCommandInput | GetConfiguredAudienceModelPolicyCommandInput | GetTrainingDatasetCommandInput | ListAudienceExportJobsCommandInput | ListAudienceGenerationJobsCommandInput | ListAudienceModelsCommandInput | ListConfiguredAudienceModelsCommandInput | ListTagsForResourceCommandInput | ListTrainingDatasetsCommandInput | PutConfiguredAudienceModelPolicyCommandInput | StartAudienceExportJobCommandInput | StartAudienceGenerationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfiguredAudienceModelCommandInput;
43
+ /**
44
+ * @public
45
+ */
46
+ export type ServiceOutputTypes = CreateAudienceModelCommandOutput | CreateConfiguredAudienceModelCommandOutput | CreateTrainingDatasetCommandOutput | DeleteAudienceGenerationJobCommandOutput | DeleteAudienceModelCommandOutput | DeleteConfiguredAudienceModelCommandOutput | DeleteConfiguredAudienceModelPolicyCommandOutput | DeleteTrainingDatasetCommandOutput | GetAudienceGenerationJobCommandOutput | GetAudienceModelCommandOutput | GetConfiguredAudienceModelCommandOutput | GetConfiguredAudienceModelPolicyCommandOutput | GetTrainingDatasetCommandOutput | ListAudienceExportJobsCommandOutput | ListAudienceGenerationJobsCommandOutput | ListAudienceModelsCommandOutput | ListConfiguredAudienceModelsCommandOutput | ListTagsForResourceCommandOutput | ListTrainingDatasetsCommandOutput | PutConfiguredAudienceModelPolicyCommandOutput | StartAudienceExportJobCommandOutput | StartAudienceGenerationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfiguredAudienceModelCommandOutput;
47
+ /**
48
+ * @public
49
+ */
50
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
51
+ /**
52
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
53
+ */
54
+ requestHandler?: __HttpHandler;
55
+ /**
56
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
57
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
58
+ * @internal
59
+ */
60
+ sha256?: __ChecksumConstructor | __HashConstructor;
61
+ /**
62
+ * The function that will be used to convert strings into HTTP endpoints.
63
+ * @internal
64
+ */
65
+ urlParser?: __UrlParser;
66
+ /**
67
+ * A function that can calculate the length of a request body.
68
+ * @internal
69
+ */
70
+ bodyLengthChecker?: __BodyLengthCalculator;
71
+ /**
72
+ * A function that converts a stream into an array of bytes.
73
+ * @internal
74
+ */
75
+ streamCollector?: __StreamCollector;
76
+ /**
77
+ * The function that will be used to convert a base64-encoded string to a byte array.
78
+ * @internal
79
+ */
80
+ base64Decoder?: __Decoder;
81
+ /**
82
+ * The function that will be used to convert binary data to a base64-encoded string.
83
+ * @internal
84
+ */
85
+ base64Encoder?: __Encoder;
86
+ /**
87
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
88
+ * @internal
89
+ */
90
+ utf8Decoder?: __Decoder;
91
+ /**
92
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
93
+ * @internal
94
+ */
95
+ utf8Encoder?: __Encoder;
96
+ /**
97
+ * The runtime environment.
98
+ * @internal
99
+ */
100
+ runtime?: string;
101
+ /**
102
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
103
+ * trait of an operation.
104
+ */
105
+ disableHostPrefix?: boolean;
106
+ /**
107
+ * Unique service identifier.
108
+ * @internal
109
+ */
110
+ serviceId?: string;
111
+ /**
112
+ * Enables IPv6/IPv4 dualstack endpoint.
113
+ */
114
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
115
+ /**
116
+ * Enables FIPS compatible endpoints.
117
+ */
118
+ useFipsEndpoint?: boolean | __Provider<boolean>;
119
+ /**
120
+ * The AWS region to which this client will send requests
121
+ */
122
+ region?: string | __Provider<string>;
123
+ /**
124
+ * Default credentials provider; Not available in browser runtime.
125
+ * @internal
126
+ */
127
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
128
+ /**
129
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
130
+ * @internal
131
+ */
132
+ defaultUserAgentProvider?: Provider<__UserAgent>;
133
+ /**
134
+ * Value for how many times a request will be made at most in case of retry.
135
+ */
136
+ maxAttempts?: number | __Provider<number>;
137
+ /**
138
+ * Specifies which retry algorithm to use.
139
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
140
+ *
141
+ */
142
+ retryMode?: string | __Provider<string>;
143
+ /**
144
+ * Optional logger for logging debug/info/warn/error.
145
+ */
146
+ logger?: __Logger;
147
+ /**
148
+ * Optional extensions
149
+ */
150
+ extensions?: RuntimeExtension[];
151
+ /**
152
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
153
+ */
154
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
155
+ }
156
+ /**
157
+ * @public
158
+ */
159
+ export type CleanRoomsMLClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
160
+ /**
161
+ * @public
162
+ *
163
+ * The configuration interface of CleanRoomsMLClient class constructor that set the region, credentials and other options.
164
+ */
165
+ export interface CleanRoomsMLClientConfig extends CleanRoomsMLClientConfigType {
166
+ }
167
+ /**
168
+ * @public
169
+ */
170
+ export type CleanRoomsMLClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
171
+ /**
172
+ * @public
173
+ *
174
+ * The resolved configuration interface of CleanRoomsMLClient class. This is resolved and normalized from the {@link CleanRoomsMLClientConfig | constructor configuration interface}.
175
+ */
176
+ export interface CleanRoomsMLClientResolvedConfig extends CleanRoomsMLClientResolvedConfigType {
177
+ }
178
+ /**
179
+ * @public
180
+ * <p>API Reference for Amazon Web Services Clean Rooms ML.</p>
181
+ */
182
+ export declare class CleanRoomsMLClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, CleanRoomsMLClientResolvedConfig> {
183
+ /**
184
+ * The resolved configuration of CleanRoomsMLClient class. This is resolved and normalized from the {@link CleanRoomsMLClientConfig | constructor configuration interface}.
185
+ */
186
+ readonly config: CleanRoomsMLClientResolvedConfig;
187
+ constructor(...[configuration]: __CheckOptionalClientConfig<CleanRoomsMLClientConfig>);
188
+ /**
189
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
190
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
191
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
192
+ */
193
+ destroy(): void;
194
+ }
@@ -0,0 +1,96 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CleanRoomsMLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CleanRoomsMLClient";
5
+ import { CreateAudienceModelRequest, CreateAudienceModelResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateAudienceModelCommand}.
14
+ */
15
+ export interface CreateAudienceModelCommandInput extends CreateAudienceModelRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAudienceModelCommand}.
21
+ */
22
+ export interface CreateAudienceModelCommandOutput extends CreateAudienceModelResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Defines the information necessary to create an audience model. An audience model is a machine learning model that Clean Rooms ML trains to measure similarity between users. Clean Rooms ML manages training and storing the audience model. The audience model can be used in multiple calls to the <a>StartAudienceGenerationJob</a> API.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CleanRoomsMLClient, CreateAudienceModelCommand } from "@aws-sdk/client-cleanroomsml"; // ES Modules import
31
+ * // const { CleanRoomsMLClient, CreateAudienceModelCommand } = require("@aws-sdk/client-cleanroomsml"); // CommonJS import
32
+ * const client = new CleanRoomsMLClient(config);
33
+ * const input = { // CreateAudienceModelRequest
34
+ * trainingDataStartTime: new Date("TIMESTAMP"),
35
+ * trainingDataEndTime: new Date("TIMESTAMP"),
36
+ * name: "STRING_VALUE", // required
37
+ * trainingDatasetArn: "STRING_VALUE", // required
38
+ * kmsKeyArn: "STRING_VALUE",
39
+ * tags: { // TagMap
40
+ * "<keys>": "STRING_VALUE",
41
+ * },
42
+ * description: "STRING_VALUE",
43
+ * };
44
+ * const command = new CreateAudienceModelCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // CreateAudienceModelResponse
47
+ * // audienceModelArn: "STRING_VALUE", // required
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param CreateAudienceModelCommandInput - {@link CreateAudienceModelCommandInput}
53
+ * @returns {@link CreateAudienceModelCommandOutput}
54
+ * @see {@link CreateAudienceModelCommandInput} for command's `input` shape.
55
+ * @see {@link CreateAudienceModelCommandOutput} for command's `response` shape.
56
+ * @see {@link CleanRoomsMLClientResolvedConfig | config} for CleanRoomsMLClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>You do not have sufficient access to perform this action.</p>
60
+ *
61
+ * @throws {@link ConflictException} (client fault)
62
+ * <p>A resource with that name already exists in this region.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>The resource you are requesting does not exist.</p>
66
+ *
67
+ * @throws {@link ServiceQuotaExceededException} (client fault)
68
+ * <p>You have exceeded your service quota.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>The request parameters for this request are incorrect.</p>
72
+ *
73
+ * @throws {@link CleanRoomsMLServiceException}
74
+ * <p>Base exception class for all service exceptions from CleanRoomsML service.</p>
75
+ *
76
+ */
77
+ export declare class CreateAudienceModelCommand extends $Command<CreateAudienceModelCommandInput, CreateAudienceModelCommandOutput, CleanRoomsMLClientResolvedConfig> {
78
+ readonly input: CreateAudienceModelCommandInput;
79
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
80
+ /**
81
+ * @public
82
+ */
83
+ constructor(input: CreateAudienceModelCommandInput);
84
+ /**
85
+ * @internal
86
+ */
87
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CleanRoomsMLClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAudienceModelCommandInput, CreateAudienceModelCommandOutput>;
88
+ /**
89
+ * @internal
90
+ */
91
+ private serialize;
92
+ /**
93
+ * @internal
94
+ */
95
+ private deserialize;
96
+ }