@aws-sdk/client-opensearchserverless 3.1154.0 → 3.1156.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 (53) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/index.js +402 -11
  3. package/dist-es/OpenSearchServerless.js +20 -0
  4. package/dist-es/commands/CancelIngestionJobCommand.js +4 -0
  5. package/dist-es/commands/CreateIngestionJobCommand.js +4 -0
  6. package/dist-es/commands/CreateIngestionStreamCommand.js +4 -0
  7. package/dist-es/commands/DeleteIngestionStreamCommand.js +4 -0
  8. package/dist-es/commands/GetIngestionJobCommand.js +4 -0
  9. package/dist-es/commands/GetIngestionStreamCommand.js +4 -0
  10. package/dist-es/commands/ListIngestionJobsCommand.js +4 -0
  11. package/dist-es/commands/ListIngestionStreamsCommand.js +4 -0
  12. package/dist-es/commands/index.js +8 -0
  13. package/dist-es/models/enums.js +44 -0
  14. package/dist-es/pagination/ListIngestionJobsPaginator.js +4 -0
  15. package/dist-es/pagination/ListIngestionStreamsPaginator.js +4 -0
  16. package/dist-es/pagination/index.js +2 -0
  17. package/dist-es/schemas/schemas_0.js +266 -10
  18. package/dist-types/OpenSearchServerless.d.ts +70 -0
  19. package/dist-types/OpenSearchServerlessClient.d.ts +12 -3
  20. package/dist-types/commands/CancelIngestionJobCommand.d.ts +88 -0
  21. package/dist-types/commands/CreateIngestionJobCommand.d.ts +141 -0
  22. package/dist-types/commands/CreateIngestionStreamCommand.d.ts +153 -0
  23. package/dist-types/commands/DeleteIngestionStreamCommand.d.ts +88 -0
  24. package/dist-types/commands/GetIngestionJobCommand.d.ts +119 -0
  25. package/dist-types/commands/GetIngestionStreamCommand.d.ts +125 -0
  26. package/dist-types/commands/ListIngestionJobsCommand.d.ts +93 -0
  27. package/dist-types/commands/ListIngestionStreamsCommand.d.ts +93 -0
  28. package/dist-types/commands/UpdateCollectionCommand.d.ts +5 -0
  29. package/dist-types/commands/index.d.ts +8 -0
  30. package/dist-types/models/enums.d.ts +158 -0
  31. package/dist-types/models/models_0.d.ts +723 -2
  32. package/dist-types/pagination/ListIngestionJobsPaginator.d.ts +7 -0
  33. package/dist-types/pagination/ListIngestionStreamsPaginator.d.ts +7 -0
  34. package/dist-types/pagination/index.d.ts +2 -0
  35. package/dist-types/schemas/schemas_0.d.ts +37 -0
  36. package/dist-types/ts3.4/OpenSearchServerless.d.ts +150 -0
  37. package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +48 -0
  38. package/dist-types/ts3.4/commands/CancelIngestionJobCommand.d.ts +39 -0
  39. package/dist-types/ts3.4/commands/CreateIngestionJobCommand.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/CreateIngestionStreamCommand.d.ts +39 -0
  41. package/dist-types/ts3.4/commands/DeleteIngestionStreamCommand.d.ts +39 -0
  42. package/dist-types/ts3.4/commands/GetIngestionJobCommand.d.ts +38 -0
  43. package/dist-types/ts3.4/commands/GetIngestionStreamCommand.d.ts +39 -0
  44. package/dist-types/ts3.4/commands/ListIngestionJobsCommand.d.ts +39 -0
  45. package/dist-types/ts3.4/commands/ListIngestionStreamsCommand.d.ts +39 -0
  46. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  47. package/dist-types/ts3.4/models/enums.d.ts +51 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +176 -0
  49. package/dist-types/ts3.4/pagination/ListIngestionJobsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/ListIngestionStreamsPaginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  52. package/dist-types/ts3.4/schemas/schemas_0.d.ts +37 -0
  53. package/package.json +5 -5
@@ -4,10 +4,13 @@ import { BatchGetCollectionGroupCommand, } from "./commands/BatchGetCollectionGr
4
4
  import { BatchGetEffectiveLifecyclePolicyCommand, } from "./commands/BatchGetEffectiveLifecyclePolicyCommand";
5
5
  import { BatchGetLifecyclePolicyCommand, } from "./commands/BatchGetLifecyclePolicyCommand";
6
6
  import { BatchGetVpcEndpointCommand, } from "./commands/BatchGetVpcEndpointCommand";
7
+ import { CancelIngestionJobCommand, } from "./commands/CancelIngestionJobCommand";
7
8
  import { CreateAccessPolicyCommand, } from "./commands/CreateAccessPolicyCommand";
8
9
  import { CreateCollectionCommand, } from "./commands/CreateCollectionCommand";
9
10
  import { CreateCollectionGroupCommand, } from "./commands/CreateCollectionGroupCommand";
10
11
  import { CreateIndexCommand, } from "./commands/CreateIndexCommand";
12
+ import { CreateIngestionJobCommand, } from "./commands/CreateIngestionJobCommand";
13
+ import { CreateIngestionStreamCommand, } from "./commands/CreateIngestionStreamCommand";
11
14
  import { CreateLifecyclePolicyCommand, } from "./commands/CreateLifecyclePolicyCommand";
12
15
  import { CreateSecurityConfigCommand, } from "./commands/CreateSecurityConfigCommand";
13
16
  import { CreateSecurityPolicyCommand, } from "./commands/CreateSecurityPolicyCommand";
@@ -16,6 +19,7 @@ import { DeleteAccessPolicyCommand, } from "./commands/DeleteAccessPolicyCommand
16
19
  import { DeleteCollectionCommand, } from "./commands/DeleteCollectionCommand";
17
20
  import { DeleteCollectionGroupCommand, } from "./commands/DeleteCollectionGroupCommand";
18
21
  import { DeleteIndexCommand, } from "./commands/DeleteIndexCommand";
22
+ import { DeleteIngestionStreamCommand, } from "./commands/DeleteIngestionStreamCommand";
19
23
  import { DeleteLifecyclePolicyCommand, } from "./commands/DeleteLifecyclePolicyCommand";
20
24
  import { DeleteSecurityConfigCommand, } from "./commands/DeleteSecurityConfigCommand";
21
25
  import { DeleteSecurityPolicyCommand, } from "./commands/DeleteSecurityPolicyCommand";
@@ -23,12 +27,16 @@ import { DeleteVpcEndpointCommand, } from "./commands/DeleteVpcEndpointCommand";
23
27
  import { GetAccessPolicyCommand, } from "./commands/GetAccessPolicyCommand";
24
28
  import { GetAccountSettingsCommand, } from "./commands/GetAccountSettingsCommand";
25
29
  import { GetIndexCommand } from "./commands/GetIndexCommand";
30
+ import { GetIngestionJobCommand, } from "./commands/GetIngestionJobCommand";
31
+ import { GetIngestionStreamCommand, } from "./commands/GetIngestionStreamCommand";
26
32
  import { GetPoliciesStatsCommand, } from "./commands/GetPoliciesStatsCommand";
27
33
  import { GetSecurityConfigCommand, } from "./commands/GetSecurityConfigCommand";
28
34
  import { GetSecurityPolicyCommand, } from "./commands/GetSecurityPolicyCommand";
29
35
  import { ListAccessPoliciesCommand, } from "./commands/ListAccessPoliciesCommand";
30
36
  import { ListCollectionGroupsCommand, } from "./commands/ListCollectionGroupsCommand";
31
37
  import { ListCollectionsCommand, } from "./commands/ListCollectionsCommand";
38
+ import { ListIngestionJobsCommand, } from "./commands/ListIngestionJobsCommand";
39
+ import { ListIngestionStreamsCommand, } from "./commands/ListIngestionStreamsCommand";
32
40
  import { ListLifecyclePoliciesCommand, } from "./commands/ListLifecyclePoliciesCommand";
33
41
  import { ListSecurityConfigsCommand, } from "./commands/ListSecurityConfigsCommand";
34
42
  import { ListSecurityPoliciesCommand, } from "./commands/ListSecurityPoliciesCommand";
@@ -49,6 +57,8 @@ import { OpenSearchServerlessClient } from "./OpenSearchServerlessClient";
49
57
  import { paginateListAccessPolicies } from "./pagination/ListAccessPoliciesPaginator";
50
58
  import { paginateListCollectionGroups } from "./pagination/ListCollectionGroupsPaginator";
51
59
  import { paginateListCollections } from "./pagination/ListCollectionsPaginator";
60
+ import { paginateListIngestionJobs } from "./pagination/ListIngestionJobsPaginator";
61
+ import { paginateListIngestionStreams } from "./pagination/ListIngestionStreamsPaginator";
52
62
  import { paginateListLifecyclePolicies } from "./pagination/ListLifecyclePoliciesPaginator";
53
63
  import { paginateListSecurityConfigs } from "./pagination/ListSecurityConfigsPaginator";
54
64
  import { paginateListSecurityPolicies } from "./pagination/ListSecurityPoliciesPaginator";
@@ -59,10 +69,13 @@ const commands = {
59
69
  BatchGetEffectiveLifecyclePolicyCommand,
60
70
  BatchGetLifecyclePolicyCommand,
61
71
  BatchGetVpcEndpointCommand,
72
+ CancelIngestionJobCommand,
62
73
  CreateAccessPolicyCommand,
63
74
  CreateCollectionCommand,
64
75
  CreateCollectionGroupCommand,
65
76
  CreateIndexCommand,
77
+ CreateIngestionJobCommand,
78
+ CreateIngestionStreamCommand,
66
79
  CreateLifecyclePolicyCommand,
67
80
  CreateSecurityConfigCommand,
68
81
  CreateSecurityPolicyCommand,
@@ -71,6 +84,7 @@ const commands = {
71
84
  DeleteCollectionCommand,
72
85
  DeleteCollectionGroupCommand,
73
86
  DeleteIndexCommand,
87
+ DeleteIngestionStreamCommand,
74
88
  DeleteLifecyclePolicyCommand,
75
89
  DeleteSecurityConfigCommand,
76
90
  DeleteSecurityPolicyCommand,
@@ -78,12 +92,16 @@ const commands = {
78
92
  GetAccessPolicyCommand,
79
93
  GetAccountSettingsCommand,
80
94
  GetIndexCommand,
95
+ GetIngestionJobCommand,
96
+ GetIngestionStreamCommand,
81
97
  GetPoliciesStatsCommand,
82
98
  GetSecurityConfigCommand,
83
99
  GetSecurityPolicyCommand,
84
100
  ListAccessPoliciesCommand,
85
101
  ListCollectionGroupsCommand,
86
102
  ListCollectionsCommand,
103
+ ListIngestionJobsCommand,
104
+ ListIngestionStreamsCommand,
87
105
  ListLifecyclePoliciesCommand,
88
106
  ListSecurityConfigsCommand,
89
107
  ListSecurityPoliciesCommand,
@@ -105,6 +123,8 @@ const paginators = {
105
123
  paginateListAccessPolicies,
106
124
  paginateListCollectionGroups,
107
125
  paginateListCollections,
126
+ paginateListIngestionJobs,
127
+ paginateListIngestionStreams,
108
128
  paginateListLifecyclePolicies,
109
129
  paginateListSecurityConfigs,
110
130
  paginateListSecurityPolicies,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CancelIngestionJob$ } from "../schemas/schemas_0";
3
+ export class CancelIngestionJobCommand extends command(_ep0, _mw0, "CancelIngestionJob", CancelIngestionJob$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateIngestionJob$ } from "../schemas/schemas_0";
3
+ export class CreateIngestionJobCommand extends command(_ep0, _mw0, "CreateIngestionJob", CreateIngestionJob$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateIngestionStream$ } from "../schemas/schemas_0";
3
+ export class CreateIngestionStreamCommand extends command(_ep0, _mw0, "CreateIngestionStream", CreateIngestionStream$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteIngestionStream$ } from "../schemas/schemas_0";
3
+ export class DeleteIngestionStreamCommand extends command(_ep0, _mw0, "DeleteIngestionStream", DeleteIngestionStream$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetIngestionJob$ } from "../schemas/schemas_0";
3
+ export class GetIngestionJobCommand extends command(_ep0, _mw0, "GetIngestionJob", GetIngestionJob$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetIngestionStream$ } from "../schemas/schemas_0";
3
+ export class GetIngestionStreamCommand extends command(_ep0, _mw0, "GetIngestionStream", GetIngestionStream$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListIngestionJobs$ } from "../schemas/schemas_0";
3
+ export class ListIngestionJobsCommand extends command(_ep0, _mw0, "ListIngestionJobs", ListIngestionJobs$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListIngestionStreams$ } from "../schemas/schemas_0";
3
+ export class ListIngestionStreamsCommand extends command(_ep0, _mw0, "ListIngestionStreams", ListIngestionStreams$) {
4
+ }
@@ -3,10 +3,13 @@ export * from "./BatchGetCollectionGroupCommand";
3
3
  export * from "./BatchGetEffectiveLifecyclePolicyCommand";
4
4
  export * from "./BatchGetLifecyclePolicyCommand";
5
5
  export * from "./BatchGetVpcEndpointCommand";
6
+ export * from "./CancelIngestionJobCommand";
6
7
  export * from "./CreateAccessPolicyCommand";
7
8
  export * from "./CreateCollectionCommand";
8
9
  export * from "./CreateCollectionGroupCommand";
9
10
  export * from "./CreateIndexCommand";
11
+ export * from "./CreateIngestionJobCommand";
12
+ export * from "./CreateIngestionStreamCommand";
10
13
  export * from "./CreateLifecyclePolicyCommand";
11
14
  export * from "./CreateSecurityConfigCommand";
12
15
  export * from "./CreateSecurityPolicyCommand";
@@ -15,6 +18,7 @@ export * from "./DeleteAccessPolicyCommand";
15
18
  export * from "./DeleteCollectionCommand";
16
19
  export * from "./DeleteCollectionGroupCommand";
17
20
  export * from "./DeleteIndexCommand";
21
+ export * from "./DeleteIngestionStreamCommand";
18
22
  export * from "./DeleteLifecyclePolicyCommand";
19
23
  export * from "./DeleteSecurityConfigCommand";
20
24
  export * from "./DeleteSecurityPolicyCommand";
@@ -22,12 +26,16 @@ export * from "./DeleteVpcEndpointCommand";
22
26
  export * from "./GetAccessPolicyCommand";
23
27
  export * from "./GetAccountSettingsCommand";
24
28
  export * from "./GetIndexCommand";
29
+ export * from "./GetIngestionJobCommand";
30
+ export * from "./GetIngestionStreamCommand";
25
31
  export * from "./GetPoliciesStatsCommand";
26
32
  export * from "./GetSecurityConfigCommand";
27
33
  export * from "./GetSecurityPolicyCommand";
28
34
  export * from "./ListAccessPoliciesCommand";
29
35
  export * from "./ListCollectionGroupsCommand";
30
36
  export * from "./ListCollectionsCommand";
37
+ export * from "./ListIngestionJobsCommand";
38
+ export * from "./ListIngestionStreamsCommand";
31
39
  export * from "./ListLifecyclePoliciesCommand";
32
40
  export * from "./ListSecurityConfigsCommand";
33
41
  export * from "./ListSecurityPoliciesCommand";
@@ -48,6 +48,16 @@ export const VpcEndpointStatus = {
48
48
  FAILED: "FAILED",
49
49
  PENDING: "PENDING",
50
50
  };
51
+ export const IngestionJobStatus = {
52
+ ACTIVE: "ACTIVE",
53
+ CANCELLED: "CANCELLED",
54
+ CANCELLING: "CANCELLING",
55
+ CANCEL_FAILED: "CANCEL_FAILED",
56
+ COMPLETED: "COMPLETED",
57
+ CREATE_FAILED: "CREATE_FAILED",
58
+ CREATING: "CREATING",
59
+ FAILED: "FAILED",
60
+ };
51
61
  export const IamIdentityCenterGroupAttribute = {
52
62
  GroupId: "GroupId",
53
63
  GroupName: "GroupName",
@@ -57,6 +67,40 @@ export const IamIdentityCenterUserAttribute = {
57
67
  UserId: "UserId",
58
68
  UserName: "UserName",
59
69
  };
70
+ export const IngestionAlertCode = {
71
+ DESTINATION_ACCESS_DENIED: "DESTINATION_ACCESS_DENIED",
72
+ DESTINATION_RESOURCE_NOT_FOUND: "DESTINATION_RESOURCE_NOT_FOUND",
73
+ INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
74
+ SOURCE_ACCESS_DENIED: "SOURCE_ACCESS_DENIED",
75
+ SOURCE_RESOURCE_NOT_FOUND: "SOURCE_RESOURCE_NOT_FOUND",
76
+ };
77
+ export const IngestionFailureCode = {
78
+ DESTINATION_ACCESS_DENIED: "DESTINATION_ACCESS_DENIED",
79
+ DESTINATION_RESOURCE_NOT_FOUND: "DESTINATION_RESOURCE_NOT_FOUND",
80
+ INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
81
+ SOURCE_ACCESS_DENIED: "SOURCE_ACCESS_DENIED",
82
+ SOURCE_RESOURCE_NOT_FOUND: "SOURCE_RESOURCE_NOT_FOUND",
83
+ };
84
+ export const IngestionState = {
85
+ FAILED: "FAILED",
86
+ INGESTION_COMPLETE: "INGESTION_COMPLETE",
87
+ INGESTION_IN_PROGRESS: "INGESTION_IN_PROGRESS",
88
+ SCANNING: "SCANNING",
89
+ STARTING: "STARTING",
90
+ STOPPED: "STOPPED",
91
+ };
92
+ export const InitialScan = {
93
+ DISABLED: "DISABLED",
94
+ ENABLED: "ENABLED",
95
+ };
96
+ export const IngestionStreamStatus = {
97
+ ACTIVE: "ACTIVE",
98
+ CREATE_FAILED: "CREATE_FAILED",
99
+ CREATING: "CREATING",
100
+ DELETED: "DELETED",
101
+ DELETE_FAILED: "DELETE_FAILED",
102
+ DELETING: "DELETING",
103
+ };
60
104
  export const SecurityConfigType = {
61
105
  iamfederation: "iamfederation",
62
106
  iamidentitycenter: "iamidentitycenter",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListIngestionJobsCommand, } from "../commands/ListIngestionJobsCommand";
3
+ import { OpenSearchServerlessClient } from "../OpenSearchServerlessClient";
4
+ export const paginateListIngestionJobs = createPaginator(OpenSearchServerlessClient, ListIngestionJobsCommand, "nextToken", "nextToken", "");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListIngestionStreamsCommand, } from "../commands/ListIngestionStreamsCommand";
3
+ import { OpenSearchServerlessClient } from "../OpenSearchServerlessClient";
4
+ export const paginateListIngestionStreams = createPaginator(OpenSearchServerlessClient, ListIngestionStreamsCommand, "nextToken", "nextToken", "");
@@ -2,6 +2,8 @@ export * from "./Interfaces";
2
2
  export * from "./ListAccessPoliciesPaginator";
3
3
  export * from "./ListCollectionGroupsPaginator";
4
4
  export * from "./ListCollectionsPaginator";
5
+ export * from "./ListIngestionJobsPaginator";
6
+ export * from "./ListIngestionStreamsPaginator";
5
7
  export * from "./ListLifecyclePoliciesPaginator";
6
8
  export * from "./ListSecurityConfigsPaginator";
7
9
  export * from "./ListSecurityPoliciesPaginator";