@aws-sdk/client-schemas 3.300.0 → 3.303.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 (35) hide show
  1. package/dist-cjs/models/models_0.js +13 -16
  2. package/dist-es/models/models_0.js +13 -16
  3. package/dist-types/commands/CreateDiscovererCommand.d.ts +2 -2
  4. package/dist-types/commands/CreateRegistryCommand.d.ts +2 -2
  5. package/dist-types/commands/CreateSchemaCommand.d.ts +2 -2
  6. package/dist-types/commands/DeleteDiscovererCommand.d.ts +1 -1
  7. package/dist-types/commands/DeleteRegistryCommand.d.ts +1 -1
  8. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -1
  9. package/dist-types/commands/DeleteSchemaCommand.d.ts +1 -1
  10. package/dist-types/commands/DeleteSchemaVersionCommand.d.ts +1 -1
  11. package/dist-types/commands/DescribeCodeBindingCommand.d.ts +1 -1
  12. package/dist-types/commands/DescribeDiscovererCommand.d.ts +1 -1
  13. package/dist-types/commands/DescribeRegistryCommand.d.ts +1 -1
  14. package/dist-types/commands/DescribeSchemaCommand.d.ts +1 -1
  15. package/dist-types/commands/GetCodeBindingSourceCommand.d.ts +1 -1
  16. package/dist-types/commands/GetDiscoveredSchemaCommand.d.ts +2 -2
  17. package/dist-types/commands/GetResourcePolicyCommand.d.ts +1 -1
  18. package/dist-types/commands/ListDiscoverersCommand.d.ts +1 -1
  19. package/dist-types/commands/ListRegistriesCommand.d.ts +1 -1
  20. package/dist-types/commands/ListSchemaVersionsCommand.d.ts +1 -1
  21. package/dist-types/commands/ListSchemasCommand.d.ts +1 -1
  22. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  23. package/dist-types/commands/PutCodeBindingCommand.d.ts +1 -1
  24. package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -1
  25. package/dist-types/commands/SearchSchemasCommand.d.ts +1 -1
  26. package/dist-types/commands/StartDiscovererCommand.d.ts +1 -1
  27. package/dist-types/commands/StopDiscovererCommand.d.ts +1 -1
  28. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  29. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  30. package/dist-types/commands/UpdateDiscovererCommand.d.ts +1 -1
  31. package/dist-types/commands/UpdateRegistryCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateSchemaCommand.d.ts +1 -1
  33. package/dist-types/models/models_0.d.ts +28 -13
  34. package/dist-types/ts3.4/models/models_0.d.ts +18 -13
  35. package/package.json +35 -35
@@ -2,16 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PreconditionFailedException = exports.GoneException = exports.TooManyRequestsException = exports.NotFoundException = exports.UnauthorizedException = exports.ServiceUnavailableException = exports.InternalServerErrorException = exports.ForbiddenException = exports.ConflictException = exports.CodeGenerationStatus = exports.BadRequestException = exports.Type = exports.DiscovererState = void 0;
4
4
  const SchemasServiceException_1 = require("./SchemasServiceException");
5
- var DiscovererState;
6
- (function (DiscovererState) {
7
- DiscovererState["STARTED"] = "STARTED";
8
- DiscovererState["STOPPED"] = "STOPPED";
9
- })(DiscovererState = exports.DiscovererState || (exports.DiscovererState = {}));
10
- var Type;
11
- (function (Type) {
12
- Type["JSONSchemaDraft4"] = "JSONSchemaDraft4";
13
- Type["OpenApi3"] = "OpenApi3";
14
- })(Type = exports.Type || (exports.Type = {}));
5
+ exports.DiscovererState = {
6
+ STARTED: "STARTED",
7
+ STOPPED: "STOPPED",
8
+ };
9
+ exports.Type = {
10
+ JSONSchemaDraft4: "JSONSchemaDraft4",
11
+ OpenApi3: "OpenApi3",
12
+ };
15
13
  class BadRequestException extends SchemasServiceException_1.SchemasServiceException {
16
14
  constructor(opts) {
17
15
  super({
@@ -27,12 +25,11 @@ class BadRequestException extends SchemasServiceException_1.SchemasServiceExcept
27
25
  }
28
26
  }
29
27
  exports.BadRequestException = BadRequestException;
30
- var CodeGenerationStatus;
31
- (function (CodeGenerationStatus) {
32
- CodeGenerationStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
33
- CodeGenerationStatus["CREATE_FAILED"] = "CREATE_FAILED";
34
- CodeGenerationStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
35
- })(CodeGenerationStatus = exports.CodeGenerationStatus || (exports.CodeGenerationStatus = {}));
28
+ exports.CodeGenerationStatus = {
29
+ CREATE_COMPLETE: "CREATE_COMPLETE",
30
+ CREATE_FAILED: "CREATE_FAILED",
31
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
32
+ };
36
33
  class ConflictException extends SchemasServiceException_1.SchemasServiceException {
37
34
  constructor(opts) {
38
35
  super({
@@ -1,14 +1,12 @@
1
1
  import { SchemasServiceException as __BaseException } from "./SchemasServiceException";
2
- export var DiscovererState;
3
- (function (DiscovererState) {
4
- DiscovererState["STARTED"] = "STARTED";
5
- DiscovererState["STOPPED"] = "STOPPED";
6
- })(DiscovererState || (DiscovererState = {}));
7
- export var Type;
8
- (function (Type) {
9
- Type["JSONSchemaDraft4"] = "JSONSchemaDraft4";
10
- Type["OpenApi3"] = "OpenApi3";
11
- })(Type || (Type = {}));
2
+ export const DiscovererState = {
3
+ STARTED: "STARTED",
4
+ STOPPED: "STOPPED",
5
+ };
6
+ export const Type = {
7
+ JSONSchemaDraft4: "JSONSchemaDraft4",
8
+ OpenApi3: "OpenApi3",
9
+ };
12
10
  export class BadRequestException extends __BaseException {
13
11
  constructor(opts) {
14
12
  super({
@@ -23,12 +21,11 @@ export class BadRequestException extends __BaseException {
23
21
  this.Message = opts.Message;
24
22
  }
25
23
  }
26
- export var CodeGenerationStatus;
27
- (function (CodeGenerationStatus) {
28
- CodeGenerationStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
29
- CodeGenerationStatus["CREATE_FAILED"] = "CREATE_FAILED";
30
- CodeGenerationStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
31
- })(CodeGenerationStatus || (CodeGenerationStatus = {}));
24
+ export const CodeGenerationStatus = {
25
+ CREATE_COMPLETE: "CREATE_COMPLETE",
26
+ CREATE_FAILED: "CREATE_FAILED",
27
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
28
+ };
32
29
  export class ConflictException extends __BaseException {
33
30
  constructor(opts) {
34
31
  super({
@@ -26,11 +26,11 @@ export interface CreateDiscovererCommandOutput extends CreateDiscovererResponse,
26
26
  * import { SchemasClient, CreateDiscovererCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, CreateDiscovererCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // CreateDiscovererRequest
30
30
  * Description: "STRING_VALUE",
31
31
  * SourceArn: "STRING_VALUE", // required
32
32
  * CrossAccount: true || false,
33
- * Tags: {
33
+ * Tags: { // Tags
34
34
  * "<keys>": "STRING_VALUE",
35
35
  * },
36
36
  * };
@@ -26,10 +26,10 @@ export interface CreateRegistryCommandOutput extends CreateRegistryResponse, __M
26
26
  * import { SchemasClient, CreateRegistryCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, CreateRegistryCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // CreateRegistryRequest
30
30
  * Description: "STRING_VALUE",
31
31
  * RegistryName: "STRING_VALUE", // required
32
- * Tags: {
32
+ * Tags: { // Tags
33
33
  * "<keys>": "STRING_VALUE",
34
34
  * },
35
35
  * };
@@ -26,12 +26,12 @@ export interface CreateSchemaCommandOutput extends CreateSchemaResponse, __Metad
26
26
  * import { SchemasClient, CreateSchemaCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, CreateSchemaCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // CreateSchemaRequest
30
30
  * Content: "STRING_VALUE", // required
31
31
  * Description: "STRING_VALUE",
32
32
  * RegistryName: "STRING_VALUE", // required
33
33
  * SchemaName: "STRING_VALUE", // required
34
- * Tags: {
34
+ * Tags: { // Tags
35
35
  * "<keys>": "STRING_VALUE",
36
36
  * },
37
37
  * Type: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface DeleteDiscovererCommandOutput extends __MetadataBearer {
26
26
  * import { SchemasClient, DeleteDiscovererCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DeleteDiscovererCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DeleteDiscovererRequest
30
30
  * DiscovererId: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DeleteDiscovererCommand(input);
@@ -26,7 +26,7 @@ export interface DeleteRegistryCommandOutput extends __MetadataBearer {
26
26
  * import { SchemasClient, DeleteRegistryCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DeleteRegistryCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DeleteRegistryRequest
30
30
  * RegistryName: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DeleteRegistryCommand(input);
@@ -26,7 +26,7 @@ export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {
26
26
  * import { SchemasClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DeleteResourcePolicyRequest
30
30
  * RegistryName: "STRING_VALUE",
31
31
  * };
32
32
  * const command = new DeleteResourcePolicyCommand(input);
@@ -26,7 +26,7 @@ export interface DeleteSchemaCommandOutput extends __MetadataBearer {
26
26
  * import { SchemasClient, DeleteSchemaCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DeleteSchemaCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DeleteSchemaRequest
30
30
  * RegistryName: "STRING_VALUE", // required
31
31
  * SchemaName: "STRING_VALUE", // required
32
32
  * };
@@ -26,7 +26,7 @@ export interface DeleteSchemaVersionCommandOutput extends __MetadataBearer {
26
26
  * import { SchemasClient, DeleteSchemaVersionCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DeleteSchemaVersionCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DeleteSchemaVersionRequest
30
30
  * RegistryName: "STRING_VALUE", // required
31
31
  * SchemaName: "STRING_VALUE", // required
32
32
  * SchemaVersion: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface DescribeCodeBindingCommandOutput extends DescribeCodeBindingRes
26
26
  * import { SchemasClient, DescribeCodeBindingCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DescribeCodeBindingCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DescribeCodeBindingRequest
30
30
  * Language: "STRING_VALUE", // required
31
31
  * RegistryName: "STRING_VALUE", // required
32
32
  * SchemaName: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface DescribeDiscovererCommandOutput extends DescribeDiscovererRespo
26
26
  * import { SchemasClient, DescribeDiscovererCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DescribeDiscovererCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DescribeDiscovererRequest
30
30
  * DiscovererId: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DescribeDiscovererCommand(input);
@@ -26,7 +26,7 @@ export interface DescribeRegistryCommandOutput extends DescribeRegistryResponse,
26
26
  * import { SchemasClient, DescribeRegistryCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DescribeRegistryCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DescribeRegistryRequest
30
30
  * RegistryName: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DescribeRegistryCommand(input);
@@ -26,7 +26,7 @@ export interface DescribeSchemaCommandOutput extends DescribeSchemaResponse, __M
26
26
  * import { SchemasClient, DescribeSchemaCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, DescribeSchemaCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // DescribeSchemaRequest
30
30
  * RegistryName: "STRING_VALUE", // required
31
31
  * SchemaName: "STRING_VALUE", // required
32
32
  * SchemaVersion: "STRING_VALUE",
@@ -26,7 +26,7 @@ export interface GetCodeBindingSourceCommandOutput extends GetCodeBindingSourceR
26
26
  * import { SchemasClient, GetCodeBindingSourceCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, GetCodeBindingSourceCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // GetCodeBindingSourceRequest
30
30
  * Language: "STRING_VALUE", // required
31
31
  * RegistryName: "STRING_VALUE", // required
32
32
  * SchemaName: "STRING_VALUE", // required
@@ -26,8 +26,8 @@ export interface GetDiscoveredSchemaCommandOutput extends GetDiscoveredSchemaRes
26
26
  * import { SchemasClient, GetDiscoveredSchemaCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, GetDiscoveredSchemaCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
30
- * Events: [ // required
29
+ * const input = { // GetDiscoveredSchemaRequest
30
+ * Events: [ // __listOfGetDiscoveredSchemaVersionItemInput // required
31
31
  * "STRING_VALUE",
32
32
  * ],
33
33
  * Type: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyRespons
26
26
  * import { SchemasClient, GetResourcePolicyCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, GetResourcePolicyCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // GetResourcePolicyRequest
30
30
  * RegistryName: "STRING_VALUE",
31
31
  * };
32
32
  * const command = new GetResourcePolicyCommand(input);
@@ -26,7 +26,7 @@ export interface ListDiscoverersCommandOutput extends ListDiscoverersResponse, _
26
26
  * import { SchemasClient, ListDiscoverersCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, ListDiscoverersCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // ListDiscoverersRequest
30
30
  * DiscovererIdPrefix: "STRING_VALUE",
31
31
  * Limit: Number("int"),
32
32
  * NextToken: "STRING_VALUE",
@@ -26,7 +26,7 @@ export interface ListRegistriesCommandOutput extends ListRegistriesResponse, __M
26
26
  * import { SchemasClient, ListRegistriesCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, ListRegistriesCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // ListRegistriesRequest
30
30
  * Limit: Number("int"),
31
31
  * NextToken: "STRING_VALUE",
32
32
  * RegistryNamePrefix: "STRING_VALUE",
@@ -26,7 +26,7 @@ export interface ListSchemaVersionsCommandOutput extends ListSchemaVersionsRespo
26
26
  * import { SchemasClient, ListSchemaVersionsCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, ListSchemaVersionsCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // ListSchemaVersionsRequest
30
30
  * Limit: Number("int"),
31
31
  * NextToken: "STRING_VALUE",
32
32
  * RegistryName: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface ListSchemasCommandOutput extends ListSchemasResponse, __Metadat
26
26
  * import { SchemasClient, ListSchemasCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, ListSchemasCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // ListSchemasRequest
30
30
  * Limit: Number("int"),
31
31
  * NextToken: "STRING_VALUE",
32
32
  * RegistryName: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
26
26
  * import { SchemasClient, ListTagsForResourceCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, ListTagsForResourceCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceRequest
30
30
  * ResourceArn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new ListTagsForResourceCommand(input);
@@ -26,7 +26,7 @@ export interface PutCodeBindingCommandOutput extends PutCodeBindingResponse, __M
26
26
  * import { SchemasClient, PutCodeBindingCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, PutCodeBindingCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // PutCodeBindingRequest
30
30
  * Language: "STRING_VALUE", // required
31
31
  * RegistryName: "STRING_VALUE", // required
32
32
  * SchemaName: "STRING_VALUE", // required
@@ -26,7 +26,7 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyRespons
26
26
  * import { SchemasClient, PutResourcePolicyCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, PutResourcePolicyCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // PutResourcePolicyRequest
30
30
  * Policy: "STRING_VALUE", // required
31
31
  * RegistryName: "STRING_VALUE",
32
32
  * RevisionId: "STRING_VALUE",
@@ -26,7 +26,7 @@ export interface SearchSchemasCommandOutput extends SearchSchemasResponse, __Met
26
26
  * import { SchemasClient, SearchSchemasCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, SearchSchemasCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // SearchSchemasRequest
30
30
  * Keywords: "STRING_VALUE", // required
31
31
  * Limit: Number("int"),
32
32
  * NextToken: "STRING_VALUE",
@@ -26,7 +26,7 @@ export interface StartDiscovererCommandOutput extends StartDiscovererResponse, _
26
26
  * import { SchemasClient, StartDiscovererCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, StartDiscovererCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // StartDiscovererRequest
30
30
  * DiscovererId: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new StartDiscovererCommand(input);
@@ -26,7 +26,7 @@ export interface StopDiscovererCommandOutput extends StopDiscovererResponse, __M
26
26
  * import { SchemasClient, StopDiscovererCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, StopDiscovererCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // StopDiscovererRequest
30
30
  * DiscovererId: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new StopDiscovererCommand(input);
@@ -26,9 +26,9 @@ export interface TagResourceCommandOutput extends __MetadataBearer {
26
26
  * import { SchemasClient, TagResourceCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, TagResourceCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // TagResourceRequest
30
30
  * ResourceArn: "STRING_VALUE", // required
31
- * Tags: { // required
31
+ * Tags: { // Tags // required
32
32
  * "<keys>": "STRING_VALUE",
33
33
  * },
34
34
  * };
@@ -26,9 +26,9 @@ export interface UntagResourceCommandOutput extends __MetadataBearer {
26
26
  * import { SchemasClient, UntagResourceCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, UntagResourceCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // UntagResourceRequest
30
30
  * ResourceArn: "STRING_VALUE", // required
31
- * TagKeys: [ // required
31
+ * TagKeys: [ // __listOf__string // required
32
32
  * "STRING_VALUE",
33
33
  * ],
34
34
  * };
@@ -26,7 +26,7 @@ export interface UpdateDiscovererCommandOutput extends UpdateDiscovererResponse,
26
26
  * import { SchemasClient, UpdateDiscovererCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, UpdateDiscovererCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // UpdateDiscovererRequest
30
30
  * Description: "STRING_VALUE",
31
31
  * DiscovererId: "STRING_VALUE", // required
32
32
  * CrossAccount: true || false,
@@ -26,7 +26,7 @@ export interface UpdateRegistryCommandOutput extends UpdateRegistryResponse, __M
26
26
  * import { SchemasClient, UpdateRegistryCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, UpdateRegistryCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // UpdateRegistryRequest
30
30
  * Description: "STRING_VALUE",
31
31
  * RegistryName: "STRING_VALUE", // required
32
32
  * };
@@ -26,7 +26,7 @@ export interface UpdateSchemaCommandOutput extends UpdateSchemaResponse, __Metad
26
26
  * import { SchemasClient, UpdateSchemaCommand } from "@aws-sdk/client-schemas"; // ES Modules import
27
27
  * // const { SchemasClient, UpdateSchemaCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
28
28
  * const client = new SchemasClient(config);
29
- * const input = {
29
+ * const input = { // UpdateSchemaRequest
30
30
  * ClientTokenId: "STRING_VALUE",
31
31
  * Content: "STRING_VALUE",
32
32
  * Description: "STRING_VALUE",
@@ -2,11 +2,16 @@ import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJ
2
2
  import { SchemasServiceException as __BaseException } from "./SchemasServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum DiscovererState {
7
- STARTED = "STARTED",
8
- STOPPED = "STOPPED"
9
- }
7
+ export declare const DiscovererState: {
8
+ readonly STARTED: "STARTED";
9
+ readonly STOPPED: "STOPPED";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type DiscovererState = (typeof DiscovererState)[keyof typeof DiscovererState];
10
15
  /**
11
16
  * @public
12
17
  */
@@ -81,11 +86,16 @@ export interface SchemaSummary {
81
86
  }
82
87
  /**
83
88
  * @public
89
+ * @enum
84
90
  */
85
- export declare enum Type {
86
- JSONSchemaDraft4 = "JSONSchemaDraft4",
87
- OpenApi3 = "OpenApi3"
88
- }
91
+ export declare const Type: {
92
+ readonly JSONSchemaDraft4: "JSONSchemaDraft4";
93
+ readonly OpenApi3: "OpenApi3";
94
+ };
95
+ /**
96
+ * @public
97
+ */
98
+ export type Type = (typeof Type)[keyof typeof Type];
89
99
  /**
90
100
  * @public
91
101
  */
@@ -166,12 +176,17 @@ export declare class BadRequestException extends __BaseException {
166
176
  }
167
177
  /**
168
178
  * @public
179
+ * @enum
169
180
  */
170
- export declare enum CodeGenerationStatus {
171
- CREATE_COMPLETE = "CREATE_COMPLETE",
172
- CREATE_FAILED = "CREATE_FAILED",
173
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS"
174
- }
181
+ export declare const CodeGenerationStatus: {
182
+ readonly CREATE_COMPLETE: "CREATE_COMPLETE";
183
+ readonly CREATE_FAILED: "CREATE_FAILED";
184
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
185
+ };
186
+ /**
187
+ * @public
188
+ */
189
+ export type CodeGenerationStatus = (typeof CodeGenerationStatus)[keyof typeof CodeGenerationStatus];
175
190
  /**
176
191
  * @public
177
192
  */
@@ -3,10 +3,12 @@ import {
3
3
  LazyJsonString as __LazyJsonString,
4
4
  } from "@aws-sdk/smithy-client";
5
5
  import { SchemasServiceException as __BaseException } from "./SchemasServiceException";
6
- export declare enum DiscovererState {
7
- STARTED = "STARTED",
8
- STOPPED = "STOPPED",
9
- }
6
+ export declare const DiscovererState: {
7
+ readonly STARTED: "STARTED";
8
+ readonly STOPPED: "STOPPED";
9
+ };
10
+ export type DiscovererState =
11
+ (typeof DiscovererState)[keyof typeof DiscovererState];
10
12
  export interface DiscovererSummary {
11
13
  DiscovererArn?: string;
12
14
  DiscovererId?: string;
@@ -27,10 +29,11 @@ export interface SchemaSummary {
27
29
  Tags?: Record<string, string>;
28
30
  VersionCount?: number;
29
31
  }
30
- export declare enum Type {
31
- JSONSchemaDraft4 = "JSONSchemaDraft4",
32
- OpenApi3 = "OpenApi3",
33
- }
32
+ export declare const Type: {
33
+ readonly JSONSchemaDraft4: "JSONSchemaDraft4";
34
+ readonly OpenApi3: "OpenApi3";
35
+ };
36
+ export type Type = (typeof Type)[keyof typeof Type];
34
37
  export interface SchemaVersionSummary {
35
38
  SchemaArn?: string;
36
39
  SchemaName?: string;
@@ -57,11 +60,13 @@ export declare class BadRequestException extends __BaseException {
57
60
  opts: __ExceptionOptionType<BadRequestException, __BaseException>
58
61
  );
59
62
  }
60
- export declare enum CodeGenerationStatus {
61
- CREATE_COMPLETE = "CREATE_COMPLETE",
62
- CREATE_FAILED = "CREATE_FAILED",
63
- CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS",
64
- }
63
+ export declare const CodeGenerationStatus: {
64
+ readonly CREATE_COMPLETE: "CREATE_COMPLETE";
65
+ readonly CREATE_FAILED: "CREATE_FAILED";
66
+ readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
67
+ };
68
+ export type CodeGenerationStatus =
69
+ (typeof CodeGenerationStatus)[keyof typeof CodeGenerationStatus];
65
70
  export declare class ConflictException extends __BaseException {
66
71
  readonly name: "ConflictException";
67
72
  readonly $fault: "client";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-schemas",
3
3
  "description": "AWS SDK for JavaScript Schemas Client for Node.js, Browser and React Native",
4
- "version": "3.300.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,44 +21,44 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
56
- "@aws-sdk/util-waiter": "3.296.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
+ "@aws-sdk/util-waiter": "3.303.0",
57
57
  "tslib": "^2.5.0",
58
58
  "uuid": "^8.3.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
61
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
62
62
  "@tsconfig/node14": "1.0.3",
63
63
  "@types/node": "^14.14.31",
64
64
  "@types/uuid": "^8.3.0",