@aws-sdk/client-bedrock-data-automation 3.706.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 (139) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +293 -0
  3. package/dist-cjs/BedrockDataAutomation.js +33 -0
  4. package/dist-cjs/BedrockDataAutomationClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateBlueprintCommand.js +27 -0
  8. package/dist-cjs/commands/CreateBlueprintVersionCommand.js +27 -0
  9. package/dist-cjs/commands/CreateDataAutomationProjectCommand.js +27 -0
  10. package/dist-cjs/commands/DeleteBlueprintCommand.js +26 -0
  11. package/dist-cjs/commands/DeleteDataAutomationProjectCommand.js +26 -0
  12. package/dist-cjs/commands/GetBlueprintCommand.js +27 -0
  13. package/dist-cjs/commands/GetDataAutomationProjectCommand.js +27 -0
  14. package/dist-cjs/commands/ListBlueprintsCommand.js +27 -0
  15. package/dist-cjs/commands/ListDataAutomationProjectsCommand.js +27 -0
  16. package/dist-cjs/commands/UpdateBlueprintCommand.js +27 -0
  17. package/dist-cjs/commands/UpdateDataAutomationProjectCommand.js +27 -0
  18. package/dist-cjs/commands/index.js +14 -0
  19. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  20. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  21. package/dist-cjs/endpoint/ruleset.js +7 -0
  22. package/dist-cjs/extensionConfiguration.js +2 -0
  23. package/dist-cjs/index.js +11 -0
  24. package/dist-cjs/models/BedrockDataAutomationServiceException.js +12 -0
  25. package/dist-cjs/models/index.js +4 -0
  26. package/dist-cjs/models/models_0.js +252 -0
  27. package/dist-cjs/pagination/Interfaces.js +2 -0
  28. package/dist-cjs/pagination/ListBlueprintsPaginator.js +7 -0
  29. package/dist-cjs/pagination/ListDataAutomationProjectsPaginator.js +7 -0
  30. package/dist-cjs/pagination/index.js +6 -0
  31. package/dist-cjs/protocols/Aws_restJson1.js +560 -0
  32. package/dist-cjs/runtimeConfig.browser.js +39 -0
  33. package/dist-cjs/runtimeConfig.js +50 -0
  34. package/dist-cjs/runtimeConfig.native.js +15 -0
  35. package/dist-cjs/runtimeConfig.shared.js +34 -0
  36. package/dist-cjs/runtimeExtensions.js +25 -0
  37. package/dist-es/BedrockDataAutomation.js +29 -0
  38. package/dist-es/BedrockDataAutomationClient.js +46 -0
  39. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  40. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  41. package/dist-es/commands/CreateBlueprintCommand.js +23 -0
  42. package/dist-es/commands/CreateBlueprintVersionCommand.js +23 -0
  43. package/dist-es/commands/CreateDataAutomationProjectCommand.js +23 -0
  44. package/dist-es/commands/DeleteBlueprintCommand.js +22 -0
  45. package/dist-es/commands/DeleteDataAutomationProjectCommand.js +22 -0
  46. package/dist-es/commands/GetBlueprintCommand.js +23 -0
  47. package/dist-es/commands/GetDataAutomationProjectCommand.js +23 -0
  48. package/dist-es/commands/ListBlueprintsCommand.js +23 -0
  49. package/dist-es/commands/ListDataAutomationProjectsCommand.js +23 -0
  50. package/dist-es/commands/UpdateBlueprintCommand.js +23 -0
  51. package/dist-es/commands/UpdateDataAutomationProjectCommand.js +23 -0
  52. package/dist-es/commands/index.js +11 -0
  53. package/dist-es/endpoint/EndpointParameters.js +14 -0
  54. package/dist-es/endpoint/endpointResolver.js +14 -0
  55. package/dist-es/endpoint/ruleset.js +4 -0
  56. package/dist-es/extensionConfiguration.js +1 -0
  57. package/dist-es/index.js +6 -0
  58. package/dist-es/models/BedrockDataAutomationServiceException.js +8 -0
  59. package/dist-es/models/index.js +1 -0
  60. package/dist-es/models/models_0.js +227 -0
  61. package/dist-es/pagination/Interfaces.js +1 -0
  62. package/dist-es/pagination/ListBlueprintsPaginator.js +4 -0
  63. package/dist-es/pagination/ListDataAutomationProjectsPaginator.js +4 -0
  64. package/dist-es/pagination/index.js +3 -0
  65. package/dist-es/protocols/Aws_restJson1.js +535 -0
  66. package/dist-es/runtimeConfig.browser.js +34 -0
  67. package/dist-es/runtimeConfig.js +45 -0
  68. package/dist-es/runtimeConfig.native.js +11 -0
  69. package/dist-es/runtimeConfig.shared.js +30 -0
  70. package/dist-es/runtimeExtensions.js +21 -0
  71. package/dist-types/BedrockDataAutomation.d.ts +89 -0
  72. package/dist-types/BedrockDataAutomationClient.d.ts +180 -0
  73. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  74. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  75. package/dist-types/commands/CreateBlueprintCommand.d.ts +112 -0
  76. package/dist-types/commands/CreateBlueprintVersionCommand.d.ts +103 -0
  77. package/dist-types/commands/CreateDataAutomationProjectCommand.d.ts +197 -0
  78. package/dist-types/commands/DeleteBlueprintCommand.d.ts +85 -0
  79. package/dist-types/commands/DeleteDataAutomationProjectCommand.d.ts +87 -0
  80. package/dist-types/commands/GetBlueprintCommand.d.ts +101 -0
  81. package/dist-types/commands/GetDataAutomationProjectCommand.d.ts +196 -0
  82. package/dist-types/commands/ListBlueprintsCommand.d.ts +104 -0
  83. package/dist-types/commands/ListDataAutomationProjectsCommand.d.ts +102 -0
  84. package/dist-types/commands/UpdateBlueprintCommand.d.ts +104 -0
  85. package/dist-types/commands/UpdateDataAutomationProjectCommand.d.ts +190 -0
  86. package/dist-types/commands/index.d.ts +11 -0
  87. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  88. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  89. package/dist-types/endpoint/ruleset.d.ts +2 -0
  90. package/dist-types/extensionConfiguration.d.ts +9 -0
  91. package/dist-types/index.d.ts +14 -0
  92. package/dist-types/models/BedrockDataAutomationServiceException.d.ts +14 -0
  93. package/dist-types/models/index.d.ts +1 -0
  94. package/dist-types/models/models_0.d.ts +1453 -0
  95. package/dist-types/pagination/Interfaces.d.ts +8 -0
  96. package/dist-types/pagination/ListBlueprintsPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListDataAutomationProjectsPaginator.d.ts +7 -0
  98. package/dist-types/pagination/index.d.ts +3 -0
  99. package/dist-types/protocols/Aws_restJson1.d.ts +101 -0
  100. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  101. package/dist-types/runtimeConfig.d.ts +48 -0
  102. package/dist-types/runtimeConfig.native.d.ts +47 -0
  103. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  104. package/dist-types/runtimeExtensions.d.ts +17 -0
  105. package/dist-types/ts3.4/BedrockDataAutomation.d.ts +196 -0
  106. package/dist-types/ts3.4/BedrockDataAutomationClient.d.ts +187 -0
  107. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  108. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  109. package/dist-types/ts3.4/commands/CreateBlueprintCommand.d.ts +50 -0
  110. package/dist-types/ts3.4/commands/CreateBlueprintVersionCommand.d.ts +51 -0
  111. package/dist-types/ts3.4/commands/CreateDataAutomationProjectCommand.d.ts +51 -0
  112. package/dist-types/ts3.4/commands/DeleteBlueprintCommand.d.ts +50 -0
  113. package/dist-types/ts3.4/commands/DeleteDataAutomationProjectCommand.d.ts +51 -0
  114. package/dist-types/ts3.4/commands/GetBlueprintCommand.d.ts +47 -0
  115. package/dist-types/ts3.4/commands/GetDataAutomationProjectCommand.d.ts +51 -0
  116. package/dist-types/ts3.4/commands/ListBlueprintsCommand.d.ts +50 -0
  117. package/dist-types/ts3.4/commands/ListDataAutomationProjectsCommand.d.ts +51 -0
  118. package/dist-types/ts3.4/commands/UpdateBlueprintCommand.d.ts +50 -0
  119. package/dist-types/ts3.4/commands/UpdateDataAutomationProjectCommand.d.ts +51 -0
  120. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  121. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  122. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  123. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  124. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  125. package/dist-types/ts3.4/index.d.ts +9 -0
  126. package/dist-types/ts3.4/models/BedrockDataAutomationServiceException.d.ts +9 -0
  127. package/dist-types/ts3.4/models/index.d.ts +1 -0
  128. package/dist-types/ts3.4/models/models_0.d.ts +463 -0
  129. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  130. package/dist-types/ts3.4/pagination/ListBlueprintsPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/ListDataAutomationProjectsPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  133. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +137 -0
  134. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  135. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  136. package/dist-types/ts3.4/runtimeConfig.native.d.ts +89 -0
  137. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  138. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  139. package/package.json +103 -0
@@ -0,0 +1,227 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { BedrockDataAutomationServiceException as __BaseException } from "./BedrockDataAutomationServiceException";
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ }
14
+ }
15
+ export class ConflictException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "ConflictException",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "ConflictException";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, ConflictException.prototype);
25
+ }
26
+ }
27
+ export const BlueprintStage = {
28
+ DEVELOPMENT: "DEVELOPMENT",
29
+ LIVE: "LIVE",
30
+ };
31
+ export const Type = {
32
+ DOCUMENT: "DOCUMENT",
33
+ IMAGE: "IMAGE",
34
+ };
35
+ export class InternalServerException extends __BaseException {
36
+ constructor(opts) {
37
+ super({
38
+ name: "InternalServerException",
39
+ $fault: "server",
40
+ ...opts,
41
+ });
42
+ this.name = "InternalServerException";
43
+ this.$fault = "server";
44
+ Object.setPrototypeOf(this, InternalServerException.prototype);
45
+ }
46
+ }
47
+ export class ServiceQuotaExceededException extends __BaseException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "ServiceQuotaExceededException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ this.name = "ServiceQuotaExceededException";
55
+ this.$fault = "client";
56
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
57
+ }
58
+ }
59
+ export class ThrottlingException extends __BaseException {
60
+ constructor(opts) {
61
+ super({
62
+ name: "ThrottlingException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ this.name = "ThrottlingException";
67
+ this.$fault = "client";
68
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
69
+ }
70
+ }
71
+ export class ValidationException extends __BaseException {
72
+ constructor(opts) {
73
+ super({
74
+ name: "ValidationException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ this.name = "ValidationException";
79
+ this.$fault = "client";
80
+ Object.setPrototypeOf(this, ValidationException.prototype);
81
+ this.fieldList = opts.fieldList;
82
+ }
83
+ }
84
+ export class ResourceNotFoundException extends __BaseException {
85
+ constructor(opts) {
86
+ super({
87
+ name: "ResourceNotFoundException",
88
+ $fault: "client",
89
+ ...opts,
90
+ });
91
+ this.name = "ResourceNotFoundException";
92
+ this.$fault = "client";
93
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
94
+ }
95
+ }
96
+ export const BlueprintStageFilter = {
97
+ ALL: "ALL",
98
+ DEVELOPMENT: "DEVELOPMENT",
99
+ LIVE: "LIVE",
100
+ };
101
+ export const DataAutomationProjectStage = {
102
+ DEVELOPMENT: "DEVELOPMENT",
103
+ LIVE: "LIVE",
104
+ };
105
+ export const ResourceOwner = {
106
+ ACCOUNT: "ACCOUNT",
107
+ SERVICE: "SERVICE",
108
+ };
109
+ export const State = {
110
+ DISABLED: "DISABLED",
111
+ ENABLED: "ENABLED",
112
+ };
113
+ export const AudioExtractionCategoryType = {
114
+ AUDIO_CONTENT_MODERATION: "AUDIO_CONTENT_MODERATION",
115
+ CHAPTER_CONTENT_MODERATION: "CHAPTER_CONTENT_MODERATION",
116
+ TRANSCRIPT: "TRANSCRIPT",
117
+ };
118
+ export const AudioStandardGenerativeFieldType = {
119
+ AUDIO_SUMMARY: "AUDIO_SUMMARY",
120
+ CHAPTER_SUMMARY: "CHAPTER_SUMMARY",
121
+ IAB: "IAB",
122
+ };
123
+ export const DocumentExtractionGranularityType = {
124
+ DOCUMENT: "DOCUMENT",
125
+ ELEMENT: "ELEMENT",
126
+ LINE: "LINE",
127
+ PAGE: "PAGE",
128
+ WORD: "WORD",
129
+ };
130
+ export const DocumentOutputTextFormatType = {
131
+ CSV: "CSV",
132
+ HTML: "HTML",
133
+ MARKDOWN: "MARKDOWN",
134
+ PLAIN_TEXT: "PLAIN_TEXT",
135
+ };
136
+ export const ImageExtractionCategoryType = {
137
+ CONTENT_MODERATION: "CONTENT_MODERATION",
138
+ TEXT_DETECTION: "TEXT_DETECTION",
139
+ };
140
+ export const ImageStandardGenerativeFieldType = {
141
+ IAB: "IAB",
142
+ IMAGE_SUMMARY: "IMAGE_SUMMARY",
143
+ };
144
+ export const VideoExtractionCategoryType = {
145
+ CONTENT_MODERATION: "CONTENT_MODERATION",
146
+ TEXT_DETECTION: "TEXT_DETECTION",
147
+ TRANSCRIPT: "TRANSCRIPT",
148
+ };
149
+ export const VideoStandardGenerativeFieldType = {
150
+ IAB: "IAB",
151
+ SCENE_SUMMARY: "SCENE_SUMMARY",
152
+ VIDEO_SUMMARY: "VIDEO_SUMMARY",
153
+ };
154
+ export const DataAutomationProjectStatus = {
155
+ COMPLETED: "COMPLETED",
156
+ FAILED: "FAILED",
157
+ IN_PROGRESS: "IN_PROGRESS",
158
+ };
159
+ export const DataAutomationProjectStageFilter = {
160
+ ALL: "ALL",
161
+ DEVELOPMENT: "DEVELOPMENT",
162
+ LIVE: "LIVE",
163
+ };
164
+ export const CreateBlueprintRequestFilterSensitiveLog = (obj) => ({
165
+ ...obj,
166
+ ...(obj.blueprintName && { blueprintName: SENSITIVE_STRING }),
167
+ ...(obj.schema && { schema: SENSITIVE_STRING }),
168
+ });
169
+ export const BlueprintFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ ...(obj.schema && { schema: SENSITIVE_STRING }),
172
+ ...(obj.blueprintName && { blueprintName: SENSITIVE_STRING }),
173
+ });
174
+ export const CreateBlueprintResponseFilterSensitiveLog = (obj) => ({
175
+ ...obj,
176
+ ...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }),
177
+ });
178
+ export const GetBlueprintResponseFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ ...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }),
181
+ });
182
+ export const BlueprintSummaryFilterSensitiveLog = (obj) => ({
183
+ ...obj,
184
+ ...(obj.blueprintName && { blueprintName: SENSITIVE_STRING }),
185
+ });
186
+ export const ListBlueprintsResponseFilterSensitiveLog = (obj) => ({
187
+ ...obj,
188
+ ...(obj.blueprints && { blueprints: obj.blueprints.map((item) => BlueprintSummaryFilterSensitiveLog(item)) }),
189
+ });
190
+ export const UpdateBlueprintRequestFilterSensitiveLog = (obj) => ({
191
+ ...obj,
192
+ ...(obj.schema && { schema: SENSITIVE_STRING }),
193
+ });
194
+ export const UpdateBlueprintResponseFilterSensitiveLog = (obj) => ({
195
+ ...obj,
196
+ ...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }),
197
+ });
198
+ export const CreateBlueprintVersionResponseFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ ...(obj.blueprint && { blueprint: BlueprintFilterSensitiveLog(obj.blueprint) }),
201
+ });
202
+ export const CreateDataAutomationProjectRequestFilterSensitiveLog = (obj) => ({
203
+ ...obj,
204
+ ...(obj.projectName && { projectName: SENSITIVE_STRING }),
205
+ ...(obj.projectDescription && { projectDescription: SENSITIVE_STRING }),
206
+ });
207
+ export const DataAutomationProjectFilterSensitiveLog = (obj) => ({
208
+ ...obj,
209
+ ...(obj.projectName && { projectName: SENSITIVE_STRING }),
210
+ ...(obj.projectDescription && { projectDescription: SENSITIVE_STRING }),
211
+ });
212
+ export const GetDataAutomationProjectResponseFilterSensitiveLog = (obj) => ({
213
+ ...obj,
214
+ ...(obj.project && { project: DataAutomationProjectFilterSensitiveLog(obj.project) }),
215
+ });
216
+ export const DataAutomationProjectSummaryFilterSensitiveLog = (obj) => ({
217
+ ...obj,
218
+ ...(obj.projectName && { projectName: SENSITIVE_STRING }),
219
+ });
220
+ export const ListDataAutomationProjectsResponseFilterSensitiveLog = (obj) => ({
221
+ ...obj,
222
+ ...(obj.projects && { projects: obj.projects.map((item) => DataAutomationProjectSummaryFilterSensitiveLog(item)) }),
223
+ });
224
+ export const UpdateDataAutomationProjectRequestFilterSensitiveLog = (obj) => ({
225
+ ...obj,
226
+ ...(obj.projectDescription && { projectDescription: SENSITIVE_STRING }),
227
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockDataAutomationClient } from "../BedrockDataAutomationClient";
3
+ import { ListBlueprintsCommand, } from "../commands/ListBlueprintsCommand";
4
+ export const paginateListBlueprints = createPaginator(BedrockDataAutomationClient, ListBlueprintsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockDataAutomationClient } from "../BedrockDataAutomationClient";
3
+ import { ListDataAutomationProjectsCommand, } from "../commands/ListDataAutomationProjectsCommand";
4
+ export const paginateListDataAutomationProjects = createPaginator(BedrockDataAutomationClient, ListDataAutomationProjectsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,3 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListBlueprintsPaginator";
3
+ export * from "./ListDataAutomationProjectsPaginator";