@aws-sdk/client-cleanrooms 3.679.0 → 3.686.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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist-cjs/index.js +89 -36
  3. package/dist-es/commands/StartProtectedQueryCommand.js +2 -1
  4. package/dist-es/commands/UpdateProtectedQueryCommand.js +1 -1
  5. package/dist-es/models/models_0.js +31 -7
  6. package/dist-es/models/models_1.js +7 -0
  7. package/dist-es/protocols/Aws_restJson1.js +18 -2
  8. package/dist-types/commands/BatchGetCollaborationAnalysisTemplateCommand.d.ts +2 -2
  9. package/dist-types/commands/BatchGetSchemaCommand.d.ts +1 -1
  10. package/dist-types/commands/CreateAnalysisTemplateCommand.d.ts +4 -4
  11. package/dist-types/commands/CreateCollaborationCommand.d.ts +6 -4
  12. package/dist-types/commands/CreateConfiguredTableCommand.d.ts +2 -2
  13. package/dist-types/commands/CreateMembershipCommand.d.ts +3 -1
  14. package/dist-types/commands/DeleteConfiguredTableAssociationAnalysisRuleCommand.d.ts +1 -2
  15. package/dist-types/commands/GetAnalysisTemplateCommand.d.ts +2 -2
  16. package/dist-types/commands/GetCollaborationAnalysisTemplateCommand.d.ts +2 -2
  17. package/dist-types/commands/GetCollaborationCommand.d.ts +2 -1
  18. package/dist-types/commands/GetConfiguredTableAssociationAnalysisRuleCommand.d.ts +1 -3
  19. package/dist-types/commands/GetConfiguredTableCommand.d.ts +1 -1
  20. package/dist-types/commands/GetMembershipCommand.d.ts +2 -1
  21. package/dist-types/commands/GetProtectedQueryCommand.d.ts +10 -0
  22. package/dist-types/commands/GetSchemaCommand.d.ts +1 -1
  23. package/dist-types/commands/ListCollaborationsCommand.d.ts +1 -0
  24. package/dist-types/commands/ListConfiguredTablesCommand.d.ts +1 -1
  25. package/dist-types/commands/ListMembersCommand.d.ts +1 -1
  26. package/dist-types/commands/ListMembershipsCommand.d.ts +1 -1
  27. package/dist-types/commands/ListSchemasCommand.d.ts +1 -1
  28. package/dist-types/commands/PopulateIdMappingTableCommand.d.ts +3 -0
  29. package/dist-types/commands/StartProtectedQueryCommand.d.ts +19 -1
  30. package/dist-types/commands/UpdateAnalysisTemplateCommand.d.ts +2 -2
  31. package/dist-types/commands/UpdateCollaborationCommand.d.ts +2 -1
  32. package/dist-types/commands/UpdateConfiguredTableAssociationAnalysisRuleCommand.d.ts +1 -3
  33. package/dist-types/commands/UpdateConfiguredTableCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateMembershipCommand.d.ts +4 -2
  35. package/dist-types/commands/UpdateProtectedQueryCommand.d.ts +11 -2
  36. package/dist-types/models/models_0.d.ts +222 -223
  37. package/dist-types/models/models_1.d.ts +84 -11
  38. package/dist-types/ts3.4/commands/StartProtectedQueryCommand.d.ts +2 -4
  39. package/dist-types/ts3.4/commands/UpdateMembershipCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/UpdateProtectedQueryCommand.d.ts +4 -2
  41. package/dist-types/ts3.4/models/models_0.d.ts +57 -24
  42. package/dist-types/ts3.4/models/models_1.d.ts +27 -0
  43. package/package.json +35 -35
package/README.md CHANGED
@@ -18,7 +18,7 @@ party getting access to the other party's raw data.</p>
18
18
 
19
19
  ## Installing
20
20
 
21
- To install the this package, simply type add or install @aws-sdk/client-cleanrooms
21
+ To install this package, simply type add or install @aws-sdk/client-cleanrooms
22
22
  using your favorite package manager:
23
23
 
24
24
  - `npm install @aws-sdk/client-cleanrooms`
package/dist-cjs/index.js CHANGED
@@ -38,6 +38,7 @@ __export(src_exports, {
38
38
  AnalysisTemplateValidationStatus: () => AnalysisTemplateValidationStatus,
39
39
  AnalysisTemplateValidationType: () => AnalysisTemplateValidationType,
40
40
  AnalysisType: () => AnalysisType,
41
+ AnalyticsEngine: () => AnalyticsEngine,
41
42
  BatchGetCollaborationAnalysisTemplateCommand: () => BatchGetCollaborationAnalysisTemplateCommand,
42
43
  BatchGetCollaborationAnalysisTemplateOutputFilterSensitiveLog: () => BatchGetCollaborationAnalysisTemplateOutputFilterSensitiveLog,
43
44
  BatchGetSchemaAnalysisRuleCommand: () => BatchGetSchemaAnalysisRuleCommand,
@@ -47,6 +48,7 @@ __export(src_exports, {
47
48
  CleanRoomsServiceException: () => CleanRoomsServiceException,
48
49
  CollaborationAnalysisTemplateFilterSensitiveLog: () => CollaborationAnalysisTemplateFilterSensitiveLog,
49
50
  CollaborationQueryLogStatus: () => CollaborationQueryLogStatus,
51
+ ComputeConfiguration: () => ComputeConfiguration,
50
52
  ConfigurationDetails: () => ConfigurationDetails,
51
53
  ConfiguredTableAnalysisRulePolicy: () => ConfiguredTableAnalysisRulePolicy,
52
54
  ConfiguredTableAnalysisRulePolicyV1: () => ConfiguredTableAnalysisRulePolicyV1,
@@ -184,6 +186,7 @@ __export(src_exports, {
184
186
  UpdateProtectedQueryOutputFilterSensitiveLog: () => UpdateProtectedQueryOutputFilterSensitiveLog,
185
187
  ValidationException: () => ValidationException,
186
188
  ValidationExceptionReason: () => ValidationExceptionReason,
189
+ WorkerComputeType: () => WorkerComputeType,
187
190
  __Client: () => import_smithy_client.Client,
188
191
  paginateListAnalysisTemplates: () => paginateListAnalysisTemplates,
189
192
  paginateListCollaborationAnalysisTemplates: () => paginateListCollaborationAnalysisTemplates,
@@ -413,18 +416,31 @@ var AnalysisMethod = {
413
416
  };
414
417
  var ParameterType = {
415
418
  BIGINT: "BIGINT",
419
+ BINARY: "BINARY",
416
420
  BOOLEAN: "BOOLEAN",
421
+ BYTE: "BYTE",
417
422
  CHAR: "CHAR",
423
+ CHARACTER: "CHARACTER",
418
424
  DATE: "DATE",
419
425
  DECIMAL: "DECIMAL",
426
+ DOUBLE: "DOUBLE",
420
427
  DOUBLE_PRECISION: "DOUBLE_PRECISION",
428
+ FLOAT: "FLOAT",
429
+ INT: "INT",
421
430
  INTEGER: "INTEGER",
431
+ LONG: "LONG",
432
+ NUMERIC: "NUMERIC",
422
433
  REAL: "REAL",
434
+ SHORT: "SHORT",
423
435
  SMALLINT: "SMALLINT",
436
+ STRING: "STRING",
424
437
  TIME: "TIME",
425
438
  TIMESTAMP: "TIMESTAMP",
426
439
  TIMESTAMPTZ: "TIMESTAMPTZ",
440
+ TIMESTAMP_LTZ: "TIMESTAMP_LTZ",
441
+ TIMESTAMP_NTZ: "TIMESTAMP_NTZ",
427
442
  TIMETZ: "TIMETZ",
443
+ TINYINT: "TINYINT",
428
444
  VARBYTE: "VARBYTE",
429
445
  VARCHAR: "VARCHAR"
430
446
  };
@@ -645,6 +661,10 @@ var AnalysisType = {
645
661
  ADDITIONAL_ANALYSIS: "ADDITIONAL_ANALYSIS",
646
662
  DIRECT_ANALYSIS: "DIRECT_ANALYSIS"
647
663
  };
664
+ var AnalyticsEngine = {
665
+ CLEAN_ROOMS_SQL: "CLEAN_ROOMS_SQL",
666
+ SPARK: "SPARK"
667
+ };
648
668
  var SchemaConfiguration = {
649
669
  DIFFERENTIAL_PRIVACY: "DIFFERENTIAL_PRIVACY"
650
670
  };
@@ -808,6 +828,18 @@ var MembershipStatus = {
808
828
  COLLABORATION_DELETED: "COLLABORATION_DELETED",
809
829
  REMOVED: "REMOVED"
810
830
  };
831
+ var WorkerComputeType = {
832
+ CR1X: "CR.1X",
833
+ CR4X: "CR.4X"
834
+ };
835
+ var ComputeConfiguration;
836
+ ((ComputeConfiguration3) => {
837
+ ComputeConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
838
+ if (value.worker !== void 0)
839
+ return visitor.worker(value.worker);
840
+ return visitor._(value.$unknown[0], value.$unknown[1]);
841
+ }, "visit");
842
+ })(ComputeConfiguration || (ComputeConfiguration = {}));
811
843
  var ProtectedQueryOutput;
812
844
  ((ProtectedQueryOutput2) => {
813
845
  ProtectedQueryOutput2.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -864,9 +896,6 @@ var PrivacyImpact;
864
896
  var ProtectedQueryType = {
865
897
  SQL: "SQL"
866
898
  };
867
- var TargetProtectedQueryStatus = {
868
- CANCELLED: "CANCELLED"
869
- };
870
899
  var AnalysisParameterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
871
900
  ...obj
872
901
  }), "AnalysisParameterFilterSensitiveLog");
@@ -924,7 +953,8 @@ var ProtectedQueryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
924
953
  ...obj,
925
954
  ...obj.sqlParameters && { sqlParameters: import_smithy_client.SENSITIVE_STRING },
926
955
  ...obj.resultConfiguration && { resultConfiguration: obj.resultConfiguration },
927
- ...obj.result && { result: obj.result }
956
+ ...obj.result && { result: obj.result },
957
+ ...obj.computeConfiguration && { computeConfiguration: obj.computeConfiguration }
928
958
  }), "ProtectedQueryFilterSensitiveLog");
929
959
  var GetProtectedQueryOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
930
960
  ...obj,
@@ -933,12 +963,9 @@ var GetProtectedQueryOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
933
963
  var StartProtectedQueryInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
934
964
  ...obj,
935
965
  ...obj.sqlParameters && { sqlParameters: import_smithy_client.SENSITIVE_STRING },
936
- ...obj.resultConfiguration && { resultConfiguration: obj.resultConfiguration }
966
+ ...obj.resultConfiguration && { resultConfiguration: obj.resultConfiguration },
967
+ ...obj.computeConfiguration && { computeConfiguration: obj.computeConfiguration }
937
968
  }), "StartProtectedQueryInputFilterSensitiveLog");
938
- var StartProtectedQueryOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
939
- ...obj,
940
- ...obj.protectedQuery && { protectedQuery: ProtectedQueryFilterSensitiveLog(obj.protectedQuery) }
941
- }), "StartProtectedQueryOutputFilterSensitiveLog");
942
969
 
943
970
  // src/protocols/Aws_restJson1.ts
944
971
  var import_core2 = require("@aws-sdk/core");
@@ -1022,6 +1049,7 @@ var se_CreateCollaborationCommand = /* @__PURE__ */ __name(async (input, context
1022
1049
  let body;
1023
1050
  body = JSON.stringify(
1024
1051
  (0, import_smithy_client.take)(input, {
1052
+ analyticsEngine: [],
1025
1053
  creatorDisplayName: [],
1026
1054
  creatorMemberAbilities: (_) => (0, import_smithy_client._json)(_),
1027
1055
  creatorPaymentConfiguration: (_) => (0, import_smithy_client._json)(_),
@@ -1870,6 +1898,7 @@ var se_StartProtectedQueryCommand = /* @__PURE__ */ __name(async (input, context
1870
1898
  let body;
1871
1899
  body = JSON.stringify(
1872
1900
  (0, import_smithy_client.take)(input, {
1901
+ computeConfiguration: (_) => (0, import_smithy_client._json)(_),
1873
1902
  resultConfiguration: (_) => (0, import_smithy_client._json)(_),
1874
1903
  sqlParameters: (_) => (0, import_smithy_client._json)(_),
1875
1904
  type: []
@@ -3419,8 +3448,14 @@ var de_AnalysisTemplateSummaryList = /* @__PURE__ */ __name((output, context) =>
3419
3448
  });
3420
3449
  return retVal;
3421
3450
  }, "de_AnalysisTemplateSummaryList");
3451
+ var de_BilledResourceUtilization = /* @__PURE__ */ __name((output, context) => {
3452
+ return (0, import_smithy_client.take)(output, {
3453
+ units: import_smithy_client.limitedParseDouble
3454
+ });
3455
+ }, "de_BilledResourceUtilization");
3422
3456
  var de_Collaboration = /* @__PURE__ */ __name((output, context) => {
3423
3457
  return (0, import_smithy_client.take)(output, {
3458
+ analyticsEngine: import_smithy_client.expectString,
3424
3459
  arn: import_smithy_client.expectString,
3425
3460
  createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3426
3461
  creatorAccountId: import_smithy_client.expectString,
@@ -3603,6 +3638,7 @@ var de_CollaborationPrivacyBudgetTemplateSummaryList = /* @__PURE__ */ __name((o
3603
3638
  }, "de_CollaborationPrivacyBudgetTemplateSummaryList");
3604
3639
  var de_CollaborationSummary = /* @__PURE__ */ __name((output, context) => {
3605
3640
  return (0, import_smithy_client.take)(output, {
3641
+ analyticsEngine: import_smithy_client.expectString,
3606
3642
  arn: import_smithy_client.expectString,
3607
3643
  createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3608
3644
  creatorAccountId: import_smithy_client.expectString,
@@ -3969,6 +4005,7 @@ var de_PrivacyBudgetTemplateSummaryList = /* @__PURE__ */ __name((output, contex
3969
4005
  }, "de_PrivacyBudgetTemplateSummaryList");
3970
4006
  var de_ProtectedQuery = /* @__PURE__ */ __name((output, context) => {
3971
4007
  return (0, import_smithy_client.take)(output, {
4008
+ computeConfiguration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
3972
4009
  createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3973
4010
  differentialPrivacy: (_) => de_DifferentialPrivacyParameters(_, context),
3974
4011
  error: import_smithy_client._json,
@@ -3978,10 +4015,16 @@ var de_ProtectedQuery = /* @__PURE__ */ __name((output, context) => {
3978
4015
  result: import_smithy_client._json,
3979
4016
  resultConfiguration: import_smithy_client._json,
3980
4017
  sqlParameters: import_smithy_client._json,
3981
- statistics: import_smithy_client._json,
4018
+ statistics: (_) => de_ProtectedQueryStatistics(_, context),
3982
4019
  status: import_smithy_client.expectString
3983
4020
  });
3984
4021
  }, "de_ProtectedQuery");
4022
+ var de_ProtectedQueryStatistics = /* @__PURE__ */ __name((output, context) => {
4023
+ return (0, import_smithy_client.take)(output, {
4024
+ billedResourceUtilization: (_) => de_BilledResourceUtilization(_, context),
4025
+ totalDurationInMillis: import_smithy_client.expectLong
4026
+ });
4027
+ }, "de_ProtectedQueryStatistics");
3985
4028
  var de_ProtectedQuerySummary = /* @__PURE__ */ __name((output, context) => {
3986
4029
  return (0, import_smithy_client.take)(output, {
3987
4030
  createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -4975,6 +5018,37 @@ var PreviewPrivacyImpactCommand = _PreviewPrivacyImpactCommand;
4975
5018
 
4976
5019
 
4977
5020
 
5021
+
5022
+ // src/models/models_1.ts
5023
+ var TargetProtectedQueryStatus = {
5024
+ CANCELLED: "CANCELLED"
5025
+ };
5026
+ var PrivacyBudgetTemplateParametersInput;
5027
+ ((PrivacyBudgetTemplateParametersInput2) => {
5028
+ PrivacyBudgetTemplateParametersInput2.visit = /* @__PURE__ */ __name((value, visitor) => {
5029
+ if (value.differentialPrivacy !== void 0)
5030
+ return visitor.differentialPrivacy(value.differentialPrivacy);
5031
+ return visitor._(value.$unknown[0], value.$unknown[1]);
5032
+ }, "visit");
5033
+ })(PrivacyBudgetTemplateParametersInput || (PrivacyBudgetTemplateParametersInput = {}));
5034
+ var PrivacyBudgetTemplateUpdateParameters;
5035
+ ((PrivacyBudgetTemplateUpdateParameters2) => {
5036
+ PrivacyBudgetTemplateUpdateParameters2.visit = /* @__PURE__ */ __name((value, visitor) => {
5037
+ if (value.differentialPrivacy !== void 0)
5038
+ return visitor.differentialPrivacy(value.differentialPrivacy);
5039
+ return visitor._(value.$unknown[0], value.$unknown[1]);
5040
+ }, "visit");
5041
+ })(PrivacyBudgetTemplateUpdateParameters || (PrivacyBudgetTemplateUpdateParameters = {}));
5042
+ var StartProtectedQueryOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5043
+ ...obj,
5044
+ ...obj.protectedQuery && { protectedQuery: ProtectedQueryFilterSensitiveLog(obj.protectedQuery) }
5045
+ }), "StartProtectedQueryOutputFilterSensitiveLog");
5046
+ var UpdateProtectedQueryOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5047
+ ...obj,
5048
+ ...obj.protectedQuery && { protectedQuery: ProtectedQueryFilterSensitiveLog(obj.protectedQuery) }
5049
+ }), "UpdateProtectedQueryOutputFilterSensitiveLog");
5050
+
5051
+ // src/commands/StartProtectedQueryCommand.ts
4978
5052
  var _StartProtectedQueryCommand = class _StartProtectedQueryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4979
5053
  return [
4980
5054
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -5171,30 +5245,6 @@ var UpdatePrivacyBudgetTemplateCommand = _UpdatePrivacyBudgetTemplateCommand;
5171
5245
 
5172
5246
 
5173
5247
 
5174
-
5175
- // src/models/models_1.ts
5176
- var PrivacyBudgetTemplateParametersInput;
5177
- ((PrivacyBudgetTemplateParametersInput2) => {
5178
- PrivacyBudgetTemplateParametersInput2.visit = /* @__PURE__ */ __name((value, visitor) => {
5179
- if (value.differentialPrivacy !== void 0)
5180
- return visitor.differentialPrivacy(value.differentialPrivacy);
5181
- return visitor._(value.$unknown[0], value.$unknown[1]);
5182
- }, "visit");
5183
- })(PrivacyBudgetTemplateParametersInput || (PrivacyBudgetTemplateParametersInput = {}));
5184
- var PrivacyBudgetTemplateUpdateParameters;
5185
- ((PrivacyBudgetTemplateUpdateParameters2) => {
5186
- PrivacyBudgetTemplateUpdateParameters2.visit = /* @__PURE__ */ __name((value, visitor) => {
5187
- if (value.differentialPrivacy !== void 0)
5188
- return visitor.differentialPrivacy(value.differentialPrivacy);
5189
- return visitor._(value.$unknown[0], value.$unknown[1]);
5190
- }, "visit");
5191
- })(PrivacyBudgetTemplateUpdateParameters || (PrivacyBudgetTemplateUpdateParameters = {}));
5192
- var UpdateProtectedQueryOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5193
- ...obj,
5194
- ...obj.protectedQuery && { protectedQuery: ProtectedQueryFilterSensitiveLog(obj.protectedQuery) }
5195
- }), "UpdateProtectedQueryOutputFilterSensitiveLog");
5196
-
5197
- // src/commands/UpdateProtectedQueryCommand.ts
5198
5248
  var _UpdateProtectedQueryCommand = class _UpdateProtectedQueryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5199
5249
  return [
5200
5250
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -5505,6 +5555,7 @@ var paginateListSchemas = (0, import_core.createPaginator)(CleanRoomsClient, Lis
5505
5555
  ValidationExceptionReason,
5506
5556
  ValidationException,
5507
5557
  AnalysisType,
5558
+ AnalyticsEngine,
5508
5559
  SchemaConfiguration,
5509
5560
  SchemaStatusReasonCode,
5510
5561
  SchemaStatus,
@@ -5531,6 +5582,8 @@ var paginateListSchemas = (0, import_core.createPaginator)(CleanRoomsClient, Lis
5531
5582
  MembershipProtectedQueryOutputConfiguration,
5532
5583
  MembershipQueryLogStatus,
5533
5584
  MembershipStatus,
5585
+ WorkerComputeType,
5586
+ ComputeConfiguration,
5534
5587
  ProtectedQueryOutput,
5535
5588
  ProtectedQueryOutputConfiguration,
5536
5589
  ProtectedQueryStatus,
@@ -5538,7 +5591,6 @@ var paginateListSchemas = (0, import_core.createPaginator)(CleanRoomsClient, Lis
5538
5591
  PreviewPrivacyImpactParametersInput,
5539
5592
  PrivacyImpact,
5540
5593
  ProtectedQueryType,
5541
- TargetProtectedQueryStatus,
5542
5594
  AnalysisParameterFilterSensitiveLog,
5543
5595
  AnalysisSourceFilterSensitiveLog,
5544
5596
  AnalysisTemplateFilterSensitiveLog,
@@ -5553,9 +5605,10 @@ var paginateListSchemas = (0, import_core.createPaginator)(CleanRoomsClient, Lis
5553
5605
  ProtectedQueryFilterSensitiveLog,
5554
5606
  GetProtectedQueryOutputFilterSensitiveLog,
5555
5607
  StartProtectedQueryInputFilterSensitiveLog,
5556
- StartProtectedQueryOutputFilterSensitiveLog,
5608
+ TargetProtectedQueryStatus,
5557
5609
  PrivacyBudgetTemplateParametersInput,
5558
5610
  PrivacyBudgetTemplateUpdateParameters,
5611
+ StartProtectedQueryOutputFilterSensitiveLog,
5559
5612
  UpdateProtectedQueryOutputFilterSensitiveLog
5560
5613
  });
5561
5614
 
@@ -2,7 +2,8 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { StartProtectedQueryInputFilterSensitiveLog, StartProtectedQueryOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { StartProtectedQueryInputFilterSensitiveLog } from "../models/models_0";
6
+ import { StartProtectedQueryOutputFilterSensitiveLog } from "../models/models_1";
6
7
  import { de_StartProtectedQueryCommand, se_StartProtectedQueryCommand } from "../protocols/Aws_restJson1";
7
8
  export { $Command };
8
9
  export class StartProtectedQueryCommand extends $Command
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdateProtectedQueryOutputFilterSensitiveLog } from "../models/models_1";
5
+ import { UpdateProtectedQueryOutputFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_UpdateProtectedQueryCommand, se_UpdateProtectedQueryCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class UpdateProtectedQueryCommand extends $Command
@@ -39,18 +39,31 @@ export const AnalysisMethod = {
39
39
  };
40
40
  export const ParameterType = {
41
41
  BIGINT: "BIGINT",
42
+ BINARY: "BINARY",
42
43
  BOOLEAN: "BOOLEAN",
44
+ BYTE: "BYTE",
43
45
  CHAR: "CHAR",
46
+ CHARACTER: "CHARACTER",
44
47
  DATE: "DATE",
45
48
  DECIMAL: "DECIMAL",
49
+ DOUBLE: "DOUBLE",
46
50
  DOUBLE_PRECISION: "DOUBLE_PRECISION",
51
+ FLOAT: "FLOAT",
52
+ INT: "INT",
47
53
  INTEGER: "INTEGER",
54
+ LONG: "LONG",
55
+ NUMERIC: "NUMERIC",
48
56
  REAL: "REAL",
57
+ SHORT: "SHORT",
49
58
  SMALLINT: "SMALLINT",
59
+ STRING: "STRING",
50
60
  TIME: "TIME",
51
61
  TIMESTAMP: "TIMESTAMP",
52
62
  TIMESTAMPTZ: "TIMESTAMPTZ",
63
+ TIMESTAMP_LTZ: "TIMESTAMP_LTZ",
64
+ TIMESTAMP_NTZ: "TIMESTAMP_NTZ",
53
65
  TIMETZ: "TIMETZ",
66
+ TINYINT: "TINYINT",
54
67
  VARBYTE: "VARBYTE",
55
68
  VARCHAR: "VARCHAR",
56
69
  };
@@ -241,6 +254,10 @@ export const AnalysisType = {
241
254
  ADDITIONAL_ANALYSIS: "ADDITIONAL_ANALYSIS",
242
255
  DIRECT_ANALYSIS: "DIRECT_ANALYSIS",
243
256
  };
257
+ export const AnalyticsEngine = {
258
+ CLEAN_ROOMS_SQL: "CLEAN_ROOMS_SQL",
259
+ SPARK: "SPARK",
260
+ };
244
261
  export const SchemaConfiguration = {
245
262
  DIFFERENTIAL_PRIVACY: "DIFFERENTIAL_PRIVACY",
246
263
  };
@@ -404,6 +421,18 @@ export const MembershipStatus = {
404
421
  COLLABORATION_DELETED: "COLLABORATION_DELETED",
405
422
  REMOVED: "REMOVED",
406
423
  };
424
+ export const WorkerComputeType = {
425
+ CR1X: "CR.1X",
426
+ CR4X: "CR.4X",
427
+ };
428
+ export var ComputeConfiguration;
429
+ (function (ComputeConfiguration) {
430
+ ComputeConfiguration.visit = (value, visitor) => {
431
+ if (value.worker !== undefined)
432
+ return visitor.worker(value.worker);
433
+ return visitor._(value.$unknown[0], value.$unknown[1]);
434
+ };
435
+ })(ComputeConfiguration || (ComputeConfiguration = {}));
407
436
  export var ProtectedQueryOutput;
408
437
  (function (ProtectedQueryOutput) {
409
438
  ProtectedQueryOutput.visit = (value, visitor) => {
@@ -460,9 +489,6 @@ export var PrivacyImpact;
460
489
  export const ProtectedQueryType = {
461
490
  SQL: "SQL",
462
491
  };
463
- export const TargetProtectedQueryStatus = {
464
- CANCELLED: "CANCELLED",
465
- };
466
492
  export const AnalysisParameterFilterSensitiveLog = (obj) => ({
467
493
  ...obj,
468
494
  });
@@ -519,6 +545,7 @@ export const ProtectedQueryFilterSensitiveLog = (obj) => ({
519
545
  ...(obj.sqlParameters && { sqlParameters: SENSITIVE_STRING }),
520
546
  ...(obj.resultConfiguration && { resultConfiguration: obj.resultConfiguration }),
521
547
  ...(obj.result && { result: obj.result }),
548
+ ...(obj.computeConfiguration && { computeConfiguration: obj.computeConfiguration }),
522
549
  });
523
550
  export const GetProtectedQueryOutputFilterSensitiveLog = (obj) => ({
524
551
  ...obj,
@@ -528,8 +555,5 @@ export const StartProtectedQueryInputFilterSensitiveLog = (obj) => ({
528
555
  ...obj,
529
556
  ...(obj.sqlParameters && { sqlParameters: SENSITIVE_STRING }),
530
557
  ...(obj.resultConfiguration && { resultConfiguration: obj.resultConfiguration }),
531
- });
532
- export const StartProtectedQueryOutputFilterSensitiveLog = (obj) => ({
533
- ...obj,
534
- ...(obj.protectedQuery && { protectedQuery: ProtectedQueryFilterSensitiveLog(obj.protectedQuery) }),
558
+ ...(obj.computeConfiguration && { computeConfiguration: obj.computeConfiguration }),
535
559
  });
@@ -1,4 +1,7 @@
1
1
  import { ProtectedQueryFilterSensitiveLog, } from "./models_0";
2
+ export const TargetProtectedQueryStatus = {
3
+ CANCELLED: "CANCELLED",
4
+ };
2
5
  export var PrivacyBudgetTemplateParametersInput;
3
6
  (function (PrivacyBudgetTemplateParametersInput) {
4
7
  PrivacyBudgetTemplateParametersInput.visit = (value, visitor) => {
@@ -15,6 +18,10 @@ export var PrivacyBudgetTemplateUpdateParameters;
15
18
  return visitor._(value.$unknown[0], value.$unknown[1]);
16
19
  };
17
20
  })(PrivacyBudgetTemplateUpdateParameters || (PrivacyBudgetTemplateUpdateParameters = {}));
21
+ export const StartProtectedQueryOutputFilterSensitiveLog = (obj) => ({
22
+ ...obj,
23
+ ...(obj.protectedQuery && { protectedQuery: ProtectedQueryFilterSensitiveLog(obj.protectedQuery) }),
24
+ });
18
25
  export const UpdateProtectedQueryOutputFilterSensitiveLog = (obj) => ({
19
26
  ...obj,
20
27
  ...(obj.protectedQuery && { protectedQuery: ProtectedQueryFilterSensitiveLog(obj.protectedQuery) }),
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { CleanRoomsServiceException as __BaseException } from "../models/CleanRoomsServiceException";
5
5
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
6
  export const se_BatchGetCollaborationAnalysisTemplateCommand = async (input, context) => {
@@ -72,6 +72,7 @@ export const se_CreateCollaborationCommand = async (input, context) => {
72
72
  b.bp("/collaborations");
73
73
  let body;
74
74
  body = JSON.stringify(take(input, {
75
+ analyticsEngine: [],
75
76
  creatorDisplayName: [],
76
77
  creatorMemberAbilities: (_) => _json(_),
77
78
  creatorPaymentConfiguration: (_) => _json(_),
@@ -816,6 +817,7 @@ export const se_StartProtectedQueryCommand = async (input, context) => {
816
817
  b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
817
818
  let body;
818
819
  body = JSON.stringify(take(input, {
820
+ computeConfiguration: (_) => _json(_),
819
821
  resultConfiguration: (_) => _json(_),
820
822
  sqlParameters: (_) => _json(_),
821
823
  type: [],
@@ -2311,8 +2313,14 @@ const de_AnalysisTemplateSummaryList = (output, context) => {
2311
2313
  });
2312
2314
  return retVal;
2313
2315
  };
2316
+ const de_BilledResourceUtilization = (output, context) => {
2317
+ return take(output, {
2318
+ units: __limitedParseDouble,
2319
+ });
2320
+ };
2314
2321
  const de_Collaboration = (output, context) => {
2315
2322
  return take(output, {
2323
+ analyticsEngine: __expectString,
2316
2324
  arn: __expectString,
2317
2325
  createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2318
2326
  creatorAccountId: __expectString,
@@ -2507,6 +2515,7 @@ const de_CollaborationPrivacyBudgetTemplateSummaryList = (output, context) => {
2507
2515
  };
2508
2516
  const de_CollaborationSummary = (output, context) => {
2509
2517
  return take(output, {
2518
+ analyticsEngine: __expectString,
2510
2519
  arn: __expectString,
2511
2520
  createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2512
2521
  creatorAccountId: __expectString,
@@ -2897,6 +2906,7 @@ const de_PrivacyBudgetTemplateSummaryList = (output, context) => {
2897
2906
  };
2898
2907
  const de_ProtectedQuery = (output, context) => {
2899
2908
  return take(output, {
2909
+ computeConfiguration: (_) => _json(__expectUnion(_)),
2900
2910
  createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2901
2911
  differentialPrivacy: (_) => de_DifferentialPrivacyParameters(_, context),
2902
2912
  error: _json,
@@ -2906,10 +2916,16 @@ const de_ProtectedQuery = (output, context) => {
2906
2916
  result: _json,
2907
2917
  resultConfiguration: _json,
2908
2918
  sqlParameters: _json,
2909
- statistics: _json,
2919
+ statistics: (_) => de_ProtectedQueryStatistics(_, context),
2910
2920
  status: __expectString,
2911
2921
  });
2912
2922
  };
2923
+ const de_ProtectedQueryStatistics = (output, context) => {
2924
+ return take(output, {
2925
+ billedResourceUtilization: (_) => de_BilledResourceUtilization(_, context),
2926
+ totalDurationInMillis: __expectLong,
2927
+ });
2928
+ };
2913
2929
  const de_ProtectedQuerySummary = (output, context) => {
2914
2930
  return take(output, {
2915
2931
  createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -60,14 +60,14 @@ declare const BatchGetCollaborationAnalysisTemplateCommand_base: {
60
60
  * // "STRING_VALUE",
61
61
  * // ],
62
62
  * // },
63
- * // format: "STRING_VALUE", // required
63
+ * // format: "SQL", // required
64
64
  * // source: { // AnalysisSource Union: only one key present
65
65
  * // text: "STRING_VALUE",
66
66
  * // },
67
67
  * // analysisParameters: [ // AnalysisParameterList
68
68
  * // { // AnalysisParameter
69
69
  * // name: "STRING_VALUE", // required
70
- * // type: "SMALLINT" || "INTEGER" || "BIGINT" || "DECIMAL" || "REAL" || "DOUBLE_PRECISION" || "BOOLEAN" || "CHAR" || "VARCHAR" || "DATE" || "TIMESTAMP" || "TIMESTAMPTZ" || "TIME" || "TIMETZ" || "VARBYTE", // required
70
+ * // type: "SMALLINT" || "INTEGER" || "BIGINT" || "DECIMAL" || "REAL" || "DOUBLE_PRECISION" || "BOOLEAN" || "CHAR" || "VARCHAR" || "DATE" || "TIMESTAMP" || "TIMESTAMPTZ" || "TIME" || "TIMETZ" || "VARBYTE" || "BINARY" || "BYTE" || "CHARACTER" || "DOUBLE" || "FLOAT" || "INT" || "LONG" || "NUMERIC" || "SHORT" || "STRING" || "TIMESTAMP_LTZ" || "TIMESTAMP_NTZ" || "TINYINT", // required
71
71
  * // defaultValue: "STRING_VALUE",
72
72
  * // },
73
73
  * // ],
@@ -60,7 +60,7 @@ declare const BatchGetSchemaCommand_base: {
60
60
  * // analysisRuleTypes: [ // AnalysisRuleTypeList // required
61
61
  * // "AGGREGATION" || "LIST" || "CUSTOM" || "ID_MAPPING_TABLE",
62
62
  * // ],
63
- * // analysisMethod: "STRING_VALUE",
63
+ * // analysisMethod: "DIRECT_QUERY",
64
64
  * // creatorAccountId: "STRING_VALUE", // required
65
65
  * // name: "STRING_VALUE", // required
66
66
  * // collaborationId: "STRING_VALUE", // required
@@ -38,7 +38,7 @@ declare const CreateAnalysisTemplateCommand_base: {
38
38
  * description: "STRING_VALUE",
39
39
  * membershipIdentifier: "STRING_VALUE", // required
40
40
  * name: "STRING_VALUE", // required
41
- * format: "STRING_VALUE", // required
41
+ * format: "SQL", // required
42
42
  * source: { // AnalysisSource Union: only one key present
43
43
  * text: "STRING_VALUE",
44
44
  * },
@@ -48,7 +48,7 @@ declare const CreateAnalysisTemplateCommand_base: {
48
48
  * analysisParameters: [ // AnalysisParameterList
49
49
  * { // AnalysisParameter
50
50
  * name: "STRING_VALUE", // required
51
- * type: "SMALLINT" || "INTEGER" || "BIGINT" || "DECIMAL" || "REAL" || "DOUBLE_PRECISION" || "BOOLEAN" || "CHAR" || "VARCHAR" || "DATE" || "TIMESTAMP" || "TIMESTAMPTZ" || "TIME" || "TIMETZ" || "VARBYTE", // required
51
+ * type: "SMALLINT" || "INTEGER" || "BIGINT" || "DECIMAL" || "REAL" || "DOUBLE_PRECISION" || "BOOLEAN" || "CHAR" || "VARCHAR" || "DATE" || "TIMESTAMP" || "TIMESTAMPTZ" || "TIME" || "TIMETZ" || "VARBYTE" || "BINARY" || "BYTE" || "CHARACTER" || "DOUBLE" || "FLOAT" || "INT" || "LONG" || "NUMERIC" || "SHORT" || "STRING" || "TIMESTAMP_LTZ" || "TIMESTAMP_NTZ" || "TINYINT", // required
52
52
  * defaultValue: "STRING_VALUE",
53
53
  * },
54
54
  * ],
@@ -72,14 +72,14 @@ declare const CreateAnalysisTemplateCommand_base: {
72
72
  * // "STRING_VALUE",
73
73
  * // ],
74
74
  * // },
75
- * // format: "STRING_VALUE", // required
75
+ * // format: "SQL", // required
76
76
  * // source: { // AnalysisSource Union: only one key present
77
77
  * // text: "STRING_VALUE",
78
78
  * // },
79
79
  * // analysisParameters: [ // AnalysisParameterList
80
80
  * // { // AnalysisParameter
81
81
  * // name: "STRING_VALUE", // required
82
- * // type: "SMALLINT" || "INTEGER" || "BIGINT" || "DECIMAL" || "REAL" || "DOUBLE_PRECISION" || "BOOLEAN" || "CHAR" || "VARCHAR" || "DATE" || "TIMESTAMP" || "TIMESTAMPTZ" || "TIME" || "TIMETZ" || "VARBYTE", // required
82
+ * // type: "SMALLINT" || "INTEGER" || "BIGINT" || "DECIMAL" || "REAL" || "DOUBLE_PRECISION" || "BOOLEAN" || "CHAR" || "VARCHAR" || "DATE" || "TIMESTAMP" || "TIMESTAMPTZ" || "TIME" || "TIMETZ" || "VARBYTE" || "BINARY" || "BYTE" || "CHARACTER" || "DOUBLE" || "FLOAT" || "INT" || "LONG" || "NUMERIC" || "SHORT" || "STRING" || "TIMESTAMP_LTZ" || "TIMESTAMP_NTZ" || "TINYINT", // required
83
83
  * // defaultValue: "STRING_VALUE",
84
84
  * // },
85
85
  * // ],
@@ -39,7 +39,7 @@ declare const CreateCollaborationCommand_base: {
39
39
  * { // MemberSpecification
40
40
  * accountId: "STRING_VALUE", // required
41
41
  * memberAbilities: [ // MemberAbilities // required
42
- * "STRING_VALUE",
42
+ * "CAN_QUERY" || "CAN_RECEIVE_RESULTS",
43
43
  * ],
44
44
  * displayName: "STRING_VALUE", // required
45
45
  * paymentConfiguration: { // PaymentConfiguration
@@ -52,7 +52,7 @@ declare const CreateCollaborationCommand_base: {
52
52
  * name: "STRING_VALUE", // required
53
53
  * description: "STRING_VALUE", // required
54
54
  * creatorMemberAbilities: [ // required
55
- * "STRING_VALUE",
55
+ * "CAN_QUERY" || "CAN_RECEIVE_RESULTS",
56
56
  * ],
57
57
  * creatorDisplayName: "STRING_VALUE", // required
58
58
  * dataEncryptionMetadata: { // DataEncryptionMetadata
@@ -61,7 +61,7 @@ declare const CreateCollaborationCommand_base: {
61
61
  * allowJoinsOnColumnsWithDifferentNames: true || false, // required
62
62
  * preserveNulls: true || false, // required
63
63
  * },
64
- * queryLogStatus: "STRING_VALUE", // required
64
+ * queryLogStatus: "ENABLED" || "DISABLED", // required
65
65
  * tags: { // TagMap
66
66
  * "<keys>": "STRING_VALUE",
67
67
  * },
@@ -70,6 +70,7 @@ declare const CreateCollaborationCommand_base: {
70
70
  * isResponsible: true || false, // required
71
71
  * },
72
72
  * },
73
+ * analyticsEngine: "SPARK" || "CLEAN_ROOMS_SQL",
73
74
  * };
74
75
  * const command = new CreateCollaborationCommand(input);
75
76
  * const response = await client.send(command);
@@ -92,7 +93,8 @@ declare const CreateCollaborationCommand_base: {
92
93
  * // allowJoinsOnColumnsWithDifferentNames: true || false, // required
93
94
  * // preserveNulls: true || false, // required
94
95
  * // },
95
- * // queryLogStatus: "STRING_VALUE", // required
96
+ * // queryLogStatus: "ENABLED" || "DISABLED", // required
97
+ * // analyticsEngine: "SPARK" || "CLEAN_ROOMS_SQL",
96
98
  * // },
97
99
  * // };
98
100
  *
@@ -46,7 +46,7 @@ declare const CreateConfiguredTableCommand_base: {
46
46
  * allowedColumns: [ // AllowedColumnList // required
47
47
  * "STRING_VALUE",
48
48
  * ],
49
- * analysisMethod: "STRING_VALUE", // required
49
+ * analysisMethod: "DIRECT_QUERY", // required
50
50
  * tags: { // TagMap
51
51
  * "<keys>": "STRING_VALUE",
52
52
  * },
@@ -70,7 +70,7 @@ declare const CreateConfiguredTableCommand_base: {
70
70
  * // analysisRuleTypes: [ // ConfiguredTableAnalysisRuleTypeList // required
71
71
  * // "AGGREGATION" || "LIST" || "CUSTOM",
72
72
  * // ],
73
- * // analysisMethod: "STRING_VALUE", // required
73
+ * // analysisMethod: "DIRECT_QUERY", // required
74
74
  * // allowedColumns: [ // AllowedColumnList // required
75
75
  * // "STRING_VALUE",
76
76
  * // ],
@@ -47,6 +47,7 @@ declare const CreateMembershipCommand_base: {
47
47
  * resultFormat: "STRING_VALUE", // required
48
48
  * bucket: "STRING_VALUE", // required
49
49
  * keyPrefix: "STRING_VALUE",
50
+ * singleFileOutput: true || false,
50
51
  * },
51
52
  * },
52
53
  * roleArn: "STRING_VALUE",
@@ -72,7 +73,7 @@ declare const CreateMembershipCommand_base: {
72
73
  * // updateTime: new Date("TIMESTAMP"), // required
73
74
  * // status: "STRING_VALUE", // required
74
75
  * // memberAbilities: [ // MemberAbilities // required
75
- * // "STRING_VALUE",
76
+ * // "CAN_QUERY" || "CAN_RECEIVE_RESULTS",
76
77
  * // ],
77
78
  * // queryLogStatus: "STRING_VALUE", // required
78
79
  * // defaultResultConfiguration: { // MembershipProtectedQueryResultConfiguration
@@ -81,6 +82,7 @@ declare const CreateMembershipCommand_base: {
81
82
  * // resultFormat: "STRING_VALUE", // required
82
83
  * // bucket: "STRING_VALUE", // required
83
84
  * // keyPrefix: "STRING_VALUE",
85
+ * // singleFileOutput: true || false,
84
86
  * // },
85
87
  * // },
86
88
  * // roleArn: "STRING_VALUE",