@aws-sdk/client-cleanroomsml 3.899.0 → 3.901.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -21,12 +21,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/index.ts
22
22
  var index_exports = {};
23
23
  __export(index_exports, {
24
+ AccessBudgetType: () => AccessBudgetType,
24
25
  AccessDeniedException: () => AccessDeniedException,
25
26
  AudienceExportJobStatus: () => AudienceExportJobStatus,
26
27
  AudienceGenerationJobDataSourceFilterSensitiveLog: () => AudienceGenerationJobDataSourceFilterSensitiveLog,
27
28
  AudienceGenerationJobStatus: () => AudienceGenerationJobStatus,
28
29
  AudienceModelStatus: () => AudienceModelStatus,
29
30
  AudienceSizeType: () => AudienceSizeType,
31
+ AutoRefreshMode: () => AutoRefreshMode,
30
32
  CancelTrainedModelCommand: () => CancelTrainedModelCommand,
31
33
  CancelTrainedModelInferenceJobCommand: () => CancelTrainedModelInferenceJobCommand,
32
34
  CleanRoomsML: () => CleanRoomsML,
@@ -100,6 +102,7 @@ __export(index_exports, {
100
102
  MetricsStatus: () => MetricsStatus,
101
103
  NoiseLevelType: () => NoiseLevelType,
102
104
  PolicyExistenceCondition: () => PolicyExistenceCondition,
105
+ PrivacyBudgets: () => PrivacyBudgets,
103
106
  ProtectedQueryInputParametersFilterSensitiveLog: () => ProtectedQueryInputParametersFilterSensitiveLog,
104
107
  ProtectedQuerySQLParametersFilterSensitiveLog: () => ProtectedQuerySQLParametersFilterSensitiveLog,
105
108
  PutConfiguredAudienceModelPolicyCommand: () => PutConfiguredAudienceModelPolicyCommand,
@@ -322,6 +325,16 @@ var CleanRoomsMLServiceException = class _CleanRoomsMLServiceException extends i
322
325
 
323
326
  // src/models/models_0.ts
324
327
 
328
+ var AutoRefreshMode = {
329
+ DISABLED: "DISABLED",
330
+ ENABLED: "ENABLED"
331
+ };
332
+ var AccessBudgetType = {
333
+ CALENDAR_DAY: "CALENDAR_DAY",
334
+ CALENDAR_MONTH: "CALENDAR_MONTH",
335
+ CALENDAR_WEEK: "CALENDAR_WEEK",
336
+ LIFETIME: "LIFETIME"
337
+ };
325
338
  var AccessDeniedException = class _AccessDeniedException extends CleanRoomsMLServiceException {
326
339
  static {
327
340
  __name(this, "AccessDeniedException");
@@ -583,6 +596,13 @@ var InputChannelDataSource;
583
596
  return visitor._(value.$unknown[0], value.$unknown[1]);
584
597
  }, "visit");
585
598
  })(InputChannelDataSource || (InputChannelDataSource = {}));
599
+ var PrivacyBudgets;
600
+ ((PrivacyBudgets3) => {
601
+ PrivacyBudgets3.visit = /* @__PURE__ */ __name((value, visitor) => {
602
+ if (value.accessBudgets !== void 0) return visitor.accessBudgets(value.accessBudgets);
603
+ return visitor._(value.$unknown[0], value.$unknown[1]);
604
+ }, "visit");
605
+ })(PrivacyBudgets || (PrivacyBudgets = {}));
586
606
  var S3DataDistributionType = {
587
607
  FULLY_REPLICATED: "FullyReplicated",
588
608
  SHARDED_BY_S3_KEY: "ShardedByS3Key"
@@ -892,6 +912,7 @@ var CreateMLInputChannelRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj)
892
912
  }), "CreateMLInputChannelRequestFilterSensitiveLog");
893
913
  var GetMLInputChannelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
894
914
  ...obj,
915
+ ...obj.privacyBudgets && { privacyBudgets: obj.privacyBudgets },
895
916
  ...obj.inputChannel && { inputChannel: InputChannelFilterSensitiveLog(obj.inputChannel) }
896
917
  }), "GetMLInputChannelResponseFilterSensitiveLog");
897
918
 
@@ -2032,6 +2053,7 @@ var de_GetCollaborationMLInputChannelCommand = /* @__PURE__ */ __name(async (out
2032
2053
  mlInputChannelArn: import_smithy_client.expectString,
2033
2054
  name: import_smithy_client.expectString,
2034
2055
  numberOfRecords: import_smithy_client.expectLong,
2056
+ privacyBudgets: /* @__PURE__ */ __name((_) => de_PrivacyBudgets((0, import_core2.awsExpectUnion)(_), context), "privacyBudgets"),
2035
2057
  retentionInDays: import_smithy_client.expectInt32,
2036
2058
  status: import_smithy_client.expectString,
2037
2059
  statusDetails: import_smithy_client._json,
@@ -2199,6 +2221,7 @@ var de_GetMLInputChannelCommand = /* @__PURE__ */ __name(async (output, context)
2199
2221
  name: import_smithy_client.expectString,
2200
2222
  numberOfFiles: import_smithy_client.limitedParseDouble,
2201
2223
  numberOfRecords: import_smithy_client.expectLong,
2224
+ privacyBudgets: /* @__PURE__ */ __name((_) => de_PrivacyBudgets((0, import_core2.awsExpectUnion)(_), context), "privacyBudgets"),
2202
2225
  protectedQueryIdentifier: import_smithy_client.expectString,
2203
2226
  retentionInDays: import_smithy_client.expectInt32,
2204
2227
  sizeInGb: import_smithy_client.limitedParseDouble,
@@ -2847,6 +2870,35 @@ var se_TrainedModelsConfigurationPolicy = /* @__PURE__ */ __name((input, context
2847
2870
  maxArtifactSize: /* @__PURE__ */ __name((_) => se_TrainedModelArtifactMaxSize(_, context), "maxArtifactSize")
2848
2871
  });
2849
2872
  }, "se_TrainedModelsConfigurationPolicy");
2873
+ var de_AccessBudget = /* @__PURE__ */ __name((output, context) => {
2874
+ return (0, import_smithy_client.take)(output, {
2875
+ aggregateRemainingBudget: import_smithy_client.expectInt32,
2876
+ details: /* @__PURE__ */ __name((_) => de_AccessBudgetDetailsList(_, context), "details"),
2877
+ resourceArn: import_smithy_client.expectString
2878
+ });
2879
+ }, "de_AccessBudget");
2880
+ var de_AccessBudgetDetails = /* @__PURE__ */ __name((output, context) => {
2881
+ return (0, import_smithy_client.take)(output, {
2882
+ autoRefresh: import_smithy_client.expectString,
2883
+ budget: import_smithy_client.expectInt32,
2884
+ budgetType: import_smithy_client.expectString,
2885
+ endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "endTime"),
2886
+ remainingBudget: import_smithy_client.expectInt32,
2887
+ startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startTime")
2888
+ });
2889
+ }, "de_AccessBudgetDetails");
2890
+ var de_AccessBudgetDetailsList = /* @__PURE__ */ __name((output, context) => {
2891
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2892
+ return de_AccessBudgetDetails(entry, context);
2893
+ });
2894
+ return retVal;
2895
+ }, "de_AccessBudgetDetailsList");
2896
+ var de_AccessBudgets = /* @__PURE__ */ __name((output, context) => {
2897
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2898
+ return de_AccessBudget(entry, context);
2899
+ });
2900
+ return retVal;
2901
+ }, "de_AccessBudgets");
2850
2902
  var de_AudienceExportJobList = /* @__PURE__ */ __name((output, context) => {
2851
2903
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
2852
2904
  return de_AudienceExportJobSummary(entry, context);
@@ -3089,6 +3141,14 @@ var de_MLInputChannelSummary = /* @__PURE__ */ __name((output, context) => {
3089
3141
  updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
3090
3142
  });
3091
3143
  }, "de_MLInputChannelSummary");
3144
+ var de_PrivacyBudgets = /* @__PURE__ */ __name((output, context) => {
3145
+ if (output.accessBudgets != null) {
3146
+ return {
3147
+ accessBudgets: de_AccessBudgets(output.accessBudgets, context)
3148
+ };
3149
+ }
3150
+ return { $unknown: Object.entries(output)[0] };
3151
+ }, "de_PrivacyBudgets");
3092
3152
  var de_PrivacyConfiguration = /* @__PURE__ */ __name((output, context) => {
3093
3153
  return (0, import_smithy_client.take)(output, {
3094
3154
  policies: /* @__PURE__ */ __name((_) => de_PrivacyConfigurationPolicies(_, context), "policies")
@@ -4333,6 +4393,8 @@ var paginateListTrainingDatasets = (0, import_core.createPaginator)(CleanRoomsML
4333
4393
  paginateListTrainedModelVersions,
4334
4394
  paginateListTrainedModels,
4335
4395
  paginateListTrainingDatasets,
4396
+ AutoRefreshMode,
4397
+ AccessBudgetType,
4336
4398
  AccessDeniedException,
4337
4399
  AudienceSizeType,
4338
4400
  AudienceExportJobStatus,
@@ -4364,6 +4426,7 @@ var paginateListTrainingDatasets = (0, import_core.createPaginator)(CleanRoomsML
4364
4426
  TrainedModelStatus,
4365
4427
  ResultFormat,
4366
4428
  InputChannelDataSource,
4429
+ PrivacyBudgets,
4367
4430
  S3DataDistributionType,
4368
4431
  _InstanceType,
4369
4432
  TrainingInputMode,
@@ -1,5 +1,15 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { CleanRoomsMLServiceException as __BaseException } from "./CleanRoomsMLServiceException";
3
+ export const AutoRefreshMode = {
4
+ DISABLED: "DISABLED",
5
+ ENABLED: "ENABLED",
6
+ };
7
+ export const AccessBudgetType = {
8
+ CALENDAR_DAY: "CALENDAR_DAY",
9
+ CALENDAR_MONTH: "CALENDAR_MONTH",
10
+ CALENDAR_WEEK: "CALENDAR_WEEK",
11
+ LIFETIME: "LIFETIME",
12
+ };
3
13
  export class AccessDeniedException extends __BaseException {
4
14
  name = "AccessDeniedException";
5
15
  $fault = "client";
@@ -218,6 +228,14 @@ export var InputChannelDataSource;
218
228
  return visitor._(value.$unknown[0], value.$unknown[1]);
219
229
  };
220
230
  })(InputChannelDataSource || (InputChannelDataSource = {}));
231
+ export var PrivacyBudgets;
232
+ (function (PrivacyBudgets) {
233
+ PrivacyBudgets.visit = (value, visitor) => {
234
+ if (value.accessBudgets !== undefined)
235
+ return visitor.accessBudgets(value.accessBudgets);
236
+ return visitor._(value.$unknown[0], value.$unknown[1]);
237
+ };
238
+ })(PrivacyBudgets || (PrivacyBudgets = {}));
221
239
  export const S3DataDistributionType = {
222
240
  FULLY_REPLICATED: "FullyReplicated",
223
241
  SHARDED_BY_S3_KEY: "ShardedByS3Key",
@@ -522,5 +540,6 @@ export const CreateMLInputChannelRequestFilterSensitiveLog = (obj) => ({
522
540
  });
523
541
  export const GetMLInputChannelResponseFilterSensitiveLog = (obj) => ({
524
542
  ...obj,
543
+ ...(obj.privacyBudgets && { privacyBudgets: obj.privacyBudgets }),
525
544
  ...(obj.inputChannel && { inputChannel: InputChannelFilterSensitiveLog(obj.inputChannel) }),
526
545
  });
@@ -1,4 +1,4 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
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
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { CleanRoomsMLServiceException as __BaseException } from "../models/CleanRoomsMLServiceException";
@@ -1088,6 +1088,7 @@ export const de_GetCollaborationMLInputChannelCommand = async (output, context)
1088
1088
  mlInputChannelArn: __expectString,
1089
1089
  name: __expectString,
1090
1090
  numberOfRecords: __expectLong,
1091
+ privacyBudgets: (_) => de_PrivacyBudgets(__expectUnion(_), context),
1091
1092
  retentionInDays: __expectInt32,
1092
1093
  status: __expectString,
1093
1094
  statusDetails: _json,
@@ -1255,6 +1256,7 @@ export const de_GetMLInputChannelCommand = async (output, context) => {
1255
1256
  name: __expectString,
1256
1257
  numberOfFiles: __limitedParseDouble,
1257
1258
  numberOfRecords: __expectLong,
1259
+ privacyBudgets: (_) => de_PrivacyBudgets(__expectUnion(_), context),
1258
1260
  protectedQueryIdentifier: __expectString,
1259
1261
  retentionInDays: __expectInt32,
1260
1262
  sizeInGb: __limitedParseDouble,
@@ -1903,6 +1905,39 @@ const se_TrainedModelsConfigurationPolicy = (input, context) => {
1903
1905
  maxArtifactSize: (_) => se_TrainedModelArtifactMaxSize(_, context),
1904
1906
  });
1905
1907
  };
1908
+ const de_AccessBudget = (output, context) => {
1909
+ return take(output, {
1910
+ aggregateRemainingBudget: __expectInt32,
1911
+ details: (_) => de_AccessBudgetDetailsList(_, context),
1912
+ resourceArn: __expectString,
1913
+ });
1914
+ };
1915
+ const de_AccessBudgetDetails = (output, context) => {
1916
+ return take(output, {
1917
+ autoRefresh: __expectString,
1918
+ budget: __expectInt32,
1919
+ budgetType: __expectString,
1920
+ endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1921
+ remainingBudget: __expectInt32,
1922
+ startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1923
+ });
1924
+ };
1925
+ const de_AccessBudgetDetailsList = (output, context) => {
1926
+ const retVal = (output || [])
1927
+ .filter((e) => e != null)
1928
+ .map((entry) => {
1929
+ return de_AccessBudgetDetails(entry, context);
1930
+ });
1931
+ return retVal;
1932
+ };
1933
+ const de_AccessBudgets = (output, context) => {
1934
+ const retVal = (output || [])
1935
+ .filter((e) => e != null)
1936
+ .map((entry) => {
1937
+ return de_AccessBudget(entry, context);
1938
+ });
1939
+ return retVal;
1940
+ };
1906
1941
  const de_AudienceExportJobList = (output, context) => {
1907
1942
  const retVal = (output || [])
1908
1943
  .filter((e) => e != null)
@@ -2169,6 +2204,14 @@ const de_MLInputChannelSummary = (output, context) => {
2169
2204
  updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2170
2205
  });
2171
2206
  };
2207
+ const de_PrivacyBudgets = (output, context) => {
2208
+ if (output.accessBudgets != null) {
2209
+ return {
2210
+ accessBudgets: de_AccessBudgets(output.accessBudgets, context),
2211
+ };
2212
+ }
2213
+ return { $unknown: Object.entries(output)[0] };
2214
+ };
2172
2215
  const de_PrivacyConfiguration = (output, context) => {
2173
2216
  return take(output, {
2174
2217
  policies: (_) => de_PrivacyConfigurationPolicies(_, context),
@@ -57,6 +57,24 @@ declare const GetCollaborationMLInputChannelCommand_base: {
57
57
  * // },
58
58
  * // retentionInDays: Number("int"), // required
59
59
  * // numberOfRecords: Number("long"),
60
+ * // privacyBudgets: { // PrivacyBudgets Union: only one key present
61
+ * // accessBudgets: [ // AccessBudgets
62
+ * // { // AccessBudget
63
+ * // resourceArn: "STRING_VALUE", // required
64
+ * // details: [ // AccessBudgetDetailsList // required
65
+ * // { // AccessBudgetDetails
66
+ * // startTime: new Date("TIMESTAMP"), // required
67
+ * // endTime: new Date("TIMESTAMP"),
68
+ * // remainingBudget: Number("int"), // required
69
+ * // budget: Number("int"), // required
70
+ * // budgetType: "CALENDAR_DAY" || "CALENDAR_MONTH" || "CALENDAR_WEEK" || "LIFETIME", // required
71
+ * // autoRefresh: "ENABLED" || "DISABLED",
72
+ * // },
73
+ * // ],
74
+ * // aggregateRemainingBudget: Number("int"), // required
75
+ * // },
76
+ * // ],
77
+ * // },
60
78
  * // description: "STRING_VALUE",
61
79
  * // createTime: new Date("TIMESTAMP"), // required
62
80
  * // updateTime: new Date("TIMESTAMP"), // required
@@ -57,6 +57,24 @@ declare const GetMLInputChannelCommand_base: {
57
57
  * // },
58
58
  * // retentionInDays: Number("int"), // required
59
59
  * // numberOfRecords: Number("long"),
60
+ * // privacyBudgets: { // PrivacyBudgets Union: only one key present
61
+ * // accessBudgets: [ // AccessBudgets
62
+ * // { // AccessBudget
63
+ * // resourceArn: "STRING_VALUE", // required
64
+ * // details: [ // AccessBudgetDetailsList // required
65
+ * // { // AccessBudgetDetails
66
+ * // startTime: new Date("TIMESTAMP"), // required
67
+ * // endTime: new Date("TIMESTAMP"),
68
+ * // remainingBudget: Number("int"), // required
69
+ * // budget: Number("int"), // required
70
+ * // budgetType: "CALENDAR_DAY" || "CALENDAR_MONTH" || "CALENDAR_WEEK" || "LIFETIME", // required
71
+ * // autoRefresh: "ENABLED" || "DISABLED",
72
+ * // },
73
+ * // ],
74
+ * // aggregateRemainingBudget: Number("int"), // required
75
+ * // },
76
+ * // ],
77
+ * // },
60
78
  * // description: "STRING_VALUE",
61
79
  * // createTime: new Date("TIMESTAMP"), // required
62
80
  * // updateTime: new Date("TIMESTAMP"), // required
@@ -1,5 +1,88 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { CleanRoomsMLServiceException as __BaseException } from "./CleanRoomsMLServiceException";
3
+ /**
4
+ * @public
5
+ * @enum
6
+ */
7
+ export declare const AutoRefreshMode: {
8
+ readonly DISABLED: "DISABLED";
9
+ readonly ENABLED: "ENABLED";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type AutoRefreshMode = (typeof AutoRefreshMode)[keyof typeof AutoRefreshMode];
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const AccessBudgetType: {
20
+ readonly CALENDAR_DAY: "CALENDAR_DAY";
21
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
22
+ readonly CALENDAR_WEEK: "CALENDAR_WEEK";
23
+ readonly LIFETIME: "LIFETIME";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type AccessBudgetType = (typeof AccessBudgetType)[keyof typeof AccessBudgetType];
29
+ /**
30
+ * <p>The detailed information for a specific budget period, including time boundaries and budget amounts.</p>
31
+ * @public
32
+ */
33
+ export interface AccessBudgetDetails {
34
+ /**
35
+ * <p>The start time of this budget period.</p>
36
+ * @public
37
+ */
38
+ startTime: Date | undefined;
39
+ /**
40
+ * <p>The end time of this budget period. If not specified, the budget period continues indefinitely.</p>
41
+ * @public
42
+ */
43
+ endTime?: Date | undefined;
44
+ /**
45
+ * <p>The amount of budget remaining in this period.</p>
46
+ * @public
47
+ */
48
+ remainingBudget: number | undefined;
49
+ /**
50
+ * <p>The total budget amount allocated for this period.</p>
51
+ * @public
52
+ */
53
+ budget: number | undefined;
54
+ /**
55
+ * <p>The type of budget period. Calendar-based types reset automatically at regular intervals, while LIFETIME budgets never reset.</p>
56
+ * @public
57
+ */
58
+ budgetType: AccessBudgetType | undefined;
59
+ /**
60
+ * <p>Specifies whether this budget automatically refreshes when the current period ends.</p>
61
+ * @public
62
+ */
63
+ autoRefresh?: AutoRefreshMode | undefined;
64
+ }
65
+ /**
66
+ * <p>An access budget that defines consumption limits for a specific resource within defined time periods.</p>
67
+ * @public
68
+ */
69
+ export interface AccessBudget {
70
+ /**
71
+ * <p>The Amazon Resource Name (ARN) of the resource that this access budget applies to.</p>
72
+ * @public
73
+ */
74
+ resourceArn: string | undefined;
75
+ /**
76
+ * <p>A list of budget details for this resource. Contains active budget periods that apply to the resource.</p>
77
+ * @public
78
+ */
79
+ details: AccessBudgetDetails[] | undefined;
80
+ /**
81
+ * <p>The total remaining budget across all active budget periods for this resource.</p>
82
+ * @public
83
+ */
84
+ aggregateRemainingBudget: number | undefined;
85
+ }
3
86
  /**
4
87
  * <p>You do not have sufficient access to perform this action.</p>
5
88
  * @public
@@ -3088,6 +3171,36 @@ export interface GetCollaborationMLInputChannelRequest {
3088
3171
  */
3089
3172
  collaborationIdentifier: string | undefined;
3090
3173
  }
3174
+ /**
3175
+ * <p>The privacy budget information that controls access to Clean Rooms ML input channels.</p>
3176
+ * @public
3177
+ */
3178
+ export type PrivacyBudgets = PrivacyBudgets.AccessBudgetsMember | PrivacyBudgets.$UnknownMember;
3179
+ /**
3180
+ * @public
3181
+ */
3182
+ export declare namespace PrivacyBudgets {
3183
+ /**
3184
+ * <p>A list of access budgets that apply to resources associated with this Clean Rooms ML input channel.</p>
3185
+ * @public
3186
+ */
3187
+ interface AccessBudgetsMember {
3188
+ accessBudgets: AccessBudget[];
3189
+ $unknown?: never;
3190
+ }
3191
+ /**
3192
+ * @public
3193
+ */
3194
+ interface $UnknownMember {
3195
+ accessBudgets?: never;
3196
+ $unknown: [string, any];
3197
+ }
3198
+ interface Visitor<T> {
3199
+ accessBudgets: (value: AccessBudget[]) => T;
3200
+ _: (name: string, value: any) => T;
3201
+ }
3202
+ const visit: <T>(value: PrivacyBudgets, visitor: Visitor<T>) => T;
3203
+ }
3091
3204
  /**
3092
3205
  * @public
3093
3206
  */
@@ -3137,6 +3250,11 @@ export interface GetCollaborationMLInputChannelResponse {
3137
3250
  * @public
3138
3251
  */
3139
3252
  numberOfRecords?: number | undefined;
3253
+ /**
3254
+ * <p>Returns the privacy budgets that control access to this Clean Rooms ML input channel. Use these budgets to monitor and limit resource consumption over specified time periods.</p>
3255
+ * @public
3256
+ */
3257
+ privacyBudgets?: PrivacyBudgets | undefined;
3140
3258
  /**
3141
3259
  * <p>The description of the ML input channel.</p>
3142
3260
  * @public
@@ -3222,6 +3340,11 @@ export interface GetMLInputChannelResponse {
3222
3340
  * @public
3223
3341
  */
3224
3342
  numberOfRecords?: number | undefined;
3343
+ /**
3344
+ * <p>Returns the privacy budgets that control access to this Clean Rooms ML input channel. Use these budgets to monitor and limit resource consumption over specified time periods.</p>
3345
+ * @public
3346
+ */
3347
+ privacyBudgets?: PrivacyBudgets | undefined;
3225
3348
  /**
3226
3349
  * <p>The description of the ML input channel.</p>
3227
3350
  * @public
@@ -1,5 +1,32 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { CleanRoomsMLServiceException as __BaseException } from "./CleanRoomsMLServiceException";
3
+ export declare const AutoRefreshMode: {
4
+ readonly DISABLED: "DISABLED";
5
+ readonly ENABLED: "ENABLED";
6
+ };
7
+ export type AutoRefreshMode =
8
+ (typeof AutoRefreshMode)[keyof typeof AutoRefreshMode];
9
+ export declare const AccessBudgetType: {
10
+ readonly CALENDAR_DAY: "CALENDAR_DAY";
11
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
12
+ readonly CALENDAR_WEEK: "CALENDAR_WEEK";
13
+ readonly LIFETIME: "LIFETIME";
14
+ };
15
+ export type AccessBudgetType =
16
+ (typeof AccessBudgetType)[keyof typeof AccessBudgetType];
17
+ export interface AccessBudgetDetails {
18
+ startTime: Date | undefined;
19
+ endTime?: Date | undefined;
20
+ remainingBudget: number | undefined;
21
+ budget: number | undefined;
22
+ budgetType: AccessBudgetType | undefined;
23
+ autoRefresh?: AutoRefreshMode | undefined;
24
+ }
25
+ export interface AccessBudget {
26
+ resourceArn: string | undefined;
27
+ details: AccessBudgetDetails[] | undefined;
28
+ aggregateRemainingBudget: number | undefined;
29
+ }
3
30
  export declare class AccessDeniedException extends __BaseException {
4
31
  readonly name: "AccessDeniedException";
5
32
  readonly $fault: "client";
@@ -890,6 +917,24 @@ export interface GetCollaborationMLInputChannelRequest {
890
917
  mlInputChannelArn: string | undefined;
891
918
  collaborationIdentifier: string | undefined;
892
919
  }
920
+ export type PrivacyBudgets =
921
+ | PrivacyBudgets.AccessBudgetsMember
922
+ | PrivacyBudgets.$UnknownMember;
923
+ export declare namespace PrivacyBudgets {
924
+ interface AccessBudgetsMember {
925
+ accessBudgets: AccessBudget[];
926
+ $unknown?: never;
927
+ }
928
+ interface $UnknownMember {
929
+ accessBudgets?: never;
930
+ $unknown: [string, any];
931
+ }
932
+ interface Visitor<T> {
933
+ accessBudgets: (value: AccessBudget[]) => T;
934
+ _: (name: string, value: any) => T;
935
+ }
936
+ const visit: <T>(value: PrivacyBudgets, visitor: Visitor<T>) => T;
937
+ }
893
938
  export interface GetCollaborationMLInputChannelResponse {
894
939
  membershipIdentifier: string | undefined;
895
940
  collaborationIdentifier: string | undefined;
@@ -900,6 +945,7 @@ export interface GetCollaborationMLInputChannelResponse {
900
945
  statusDetails?: StatusDetails | undefined;
901
946
  retentionInDays: number | undefined;
902
947
  numberOfRecords?: number | undefined;
948
+ privacyBudgets?: PrivacyBudgets | undefined;
903
949
  description?: string | undefined;
904
950
  createTime: Date | undefined;
905
951
  updateTime: Date | undefined;
@@ -919,6 +965,7 @@ export interface GetMLInputChannelResponse {
919
965
  statusDetails?: StatusDetails | undefined;
920
966
  retentionInDays: number | undefined;
921
967
  numberOfRecords?: number | undefined;
968
+ privacyBudgets?: PrivacyBudgets | undefined;
922
969
  description?: string | undefined;
923
970
  createTime: Date | undefined;
924
971
  updateTime: Date | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cleanroomsml",
3
3
  "description": "AWS SDK for JavaScript Cleanroomsml Client for Node.js, Browser and React Native",
4
- "version": "3.899.0",
4
+ "version": "3.901.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cleanroomsml",
@@ -20,42 +20,42 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.899.0",
24
- "@aws-sdk/credential-provider-node": "3.899.0",
25
- "@aws-sdk/middleware-host-header": "3.893.0",
26
- "@aws-sdk/middleware-logger": "3.893.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.893.0",
28
- "@aws-sdk/middleware-user-agent": "3.899.0",
29
- "@aws-sdk/region-config-resolver": "3.893.0",
30
- "@aws-sdk/types": "3.893.0",
31
- "@aws-sdk/util-endpoints": "3.895.0",
32
- "@aws-sdk/util-user-agent-browser": "3.893.0",
33
- "@aws-sdk/util-user-agent-node": "3.899.0",
34
- "@smithy/config-resolver": "^4.2.2",
35
- "@smithy/core": "^3.13.0",
36
- "@smithy/fetch-http-handler": "^5.2.1",
37
- "@smithy/hash-node": "^4.1.1",
38
- "@smithy/invalid-dependency": "^4.1.1",
39
- "@smithy/middleware-content-length": "^4.1.1",
40
- "@smithy/middleware-endpoint": "^4.2.5",
41
- "@smithy/middleware-retry": "^4.3.1",
42
- "@smithy/middleware-serde": "^4.1.1",
43
- "@smithy/middleware-stack": "^4.1.1",
44
- "@smithy/node-config-provider": "^4.2.2",
45
- "@smithy/node-http-handler": "^4.2.1",
46
- "@smithy/protocol-http": "^5.2.1",
47
- "@smithy/smithy-client": "^4.6.5",
48
- "@smithy/types": "^4.5.0",
49
- "@smithy/url-parser": "^4.1.1",
50
- "@smithy/util-base64": "^4.1.0",
51
- "@smithy/util-body-length-browser": "^4.1.0",
52
- "@smithy/util-body-length-node": "^4.1.0",
53
- "@smithy/util-defaults-mode-browser": "^4.1.5",
54
- "@smithy/util-defaults-mode-node": "^4.1.5",
55
- "@smithy/util-endpoints": "^3.1.2",
56
- "@smithy/util-middleware": "^4.1.1",
57
- "@smithy/util-retry": "^4.1.2",
58
- "@smithy/util-utf8": "^4.1.0",
23
+ "@aws-sdk/core": "3.901.0",
24
+ "@aws-sdk/credential-provider-node": "3.901.0",
25
+ "@aws-sdk/middleware-host-header": "3.901.0",
26
+ "@aws-sdk/middleware-logger": "3.901.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.901.0",
28
+ "@aws-sdk/middleware-user-agent": "3.901.0",
29
+ "@aws-sdk/region-config-resolver": "3.901.0",
30
+ "@aws-sdk/types": "3.901.0",
31
+ "@aws-sdk/util-endpoints": "3.901.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.901.0",
33
+ "@aws-sdk/util-user-agent-node": "3.901.0",
34
+ "@smithy/config-resolver": "^4.3.0",
35
+ "@smithy/core": "^3.14.0",
36
+ "@smithy/fetch-http-handler": "^5.3.0",
37
+ "@smithy/hash-node": "^4.2.0",
38
+ "@smithy/invalid-dependency": "^4.2.0",
39
+ "@smithy/middleware-content-length": "^4.2.0",
40
+ "@smithy/middleware-endpoint": "^4.3.0",
41
+ "@smithy/middleware-retry": "^4.4.0",
42
+ "@smithy/middleware-serde": "^4.2.0",
43
+ "@smithy/middleware-stack": "^4.2.0",
44
+ "@smithy/node-config-provider": "^4.3.0",
45
+ "@smithy/node-http-handler": "^4.3.0",
46
+ "@smithy/protocol-http": "^5.3.0",
47
+ "@smithy/smithy-client": "^4.7.0",
48
+ "@smithy/types": "^4.6.0",
49
+ "@smithy/url-parser": "^4.2.0",
50
+ "@smithy/util-base64": "^4.2.0",
51
+ "@smithy/util-body-length-browser": "^4.2.0",
52
+ "@smithy/util-body-length-node": "^4.2.0",
53
+ "@smithy/util-defaults-mode-browser": "^4.2.0",
54
+ "@smithy/util-defaults-mode-node": "^4.2.0",
55
+ "@smithy/util-endpoints": "^3.2.0",
56
+ "@smithy/util-middleware": "^4.2.0",
57
+ "@smithy/util-retry": "^4.2.0",
58
+ "@smithy/util-utf8": "^4.2.0",
59
59
  "tslib": "^2.6.2"
60
60
  },
61
61
  "devDependencies": {