@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
@@ -11,10 +11,13 @@ import type { BatchGetCollectionGroupCommandInput, BatchGetCollectionGroupComman
11
11
  import type { BatchGetEffectiveLifecyclePolicyCommandInput, BatchGetEffectiveLifecyclePolicyCommandOutput } from "./commands/BatchGetEffectiveLifecyclePolicyCommand";
12
12
  import type { BatchGetLifecyclePolicyCommandInput, BatchGetLifecyclePolicyCommandOutput } from "./commands/BatchGetLifecyclePolicyCommand";
13
13
  import type { BatchGetVpcEndpointCommandInput, BatchGetVpcEndpointCommandOutput } from "./commands/BatchGetVpcEndpointCommand";
14
+ import type { CancelIngestionJobCommandInput, CancelIngestionJobCommandOutput } from "./commands/CancelIngestionJobCommand";
14
15
  import type { CreateAccessPolicyCommandInput, CreateAccessPolicyCommandOutput } from "./commands/CreateAccessPolicyCommand";
15
16
  import type { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
16
17
  import type { CreateCollectionGroupCommandInput, CreateCollectionGroupCommandOutput } from "./commands/CreateCollectionGroupCommand";
17
18
  import type { CreateIndexCommandInput, CreateIndexCommandOutput } from "./commands/CreateIndexCommand";
19
+ import type { CreateIngestionJobCommandInput, CreateIngestionJobCommandOutput } from "./commands/CreateIngestionJobCommand";
20
+ import type { CreateIngestionStreamCommandInput, CreateIngestionStreamCommandOutput } from "./commands/CreateIngestionStreamCommand";
18
21
  import type { CreateLifecyclePolicyCommandInput, CreateLifecyclePolicyCommandOutput } from "./commands/CreateLifecyclePolicyCommand";
19
22
  import type { CreateSecurityConfigCommandInput, CreateSecurityConfigCommandOutput } from "./commands/CreateSecurityConfigCommand";
20
23
  import type { CreateSecurityPolicyCommandInput, CreateSecurityPolicyCommandOutput } from "./commands/CreateSecurityPolicyCommand";
@@ -23,6 +26,7 @@ import type { DeleteAccessPolicyCommandInput, DeleteAccessPolicyCommandOutput }
23
26
  import type { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./commands/DeleteCollectionCommand";
24
27
  import type { DeleteCollectionGroupCommandInput, DeleteCollectionGroupCommandOutput } from "./commands/DeleteCollectionGroupCommand";
25
28
  import type { DeleteIndexCommandInput, DeleteIndexCommandOutput } from "./commands/DeleteIndexCommand";
29
+ import type { DeleteIngestionStreamCommandInput, DeleteIngestionStreamCommandOutput } from "./commands/DeleteIngestionStreamCommand";
26
30
  import type { DeleteLifecyclePolicyCommandInput, DeleteLifecyclePolicyCommandOutput } from "./commands/DeleteLifecyclePolicyCommand";
27
31
  import type { DeleteSecurityConfigCommandInput, DeleteSecurityConfigCommandOutput } from "./commands/DeleteSecurityConfigCommand";
28
32
  import type { DeleteSecurityPolicyCommandInput, DeleteSecurityPolicyCommandOutput } from "./commands/DeleteSecurityPolicyCommand";
@@ -30,12 +34,16 @@ import type { DeleteVpcEndpointCommandInput, DeleteVpcEndpointCommandOutput } fr
30
34
  import type { GetAccessPolicyCommandInput, GetAccessPolicyCommandOutput } from "./commands/GetAccessPolicyCommand";
31
35
  import type { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand";
32
36
  import type { GetIndexCommandInput, GetIndexCommandOutput } from "./commands/GetIndexCommand";
37
+ import type { GetIngestionJobCommandInput, GetIngestionJobCommandOutput } from "./commands/GetIngestionJobCommand";
38
+ import type { GetIngestionStreamCommandInput, GetIngestionStreamCommandOutput } from "./commands/GetIngestionStreamCommand";
33
39
  import type { GetPoliciesStatsCommandInput, GetPoliciesStatsCommandOutput } from "./commands/GetPoliciesStatsCommand";
34
40
  import type { GetSecurityConfigCommandInput, GetSecurityConfigCommandOutput } from "./commands/GetSecurityConfigCommand";
35
41
  import type { GetSecurityPolicyCommandInput, GetSecurityPolicyCommandOutput } from "./commands/GetSecurityPolicyCommand";
36
42
  import type { ListAccessPoliciesCommandInput, ListAccessPoliciesCommandOutput } from "./commands/ListAccessPoliciesCommand";
37
43
  import type { ListCollectionGroupsCommandInput, ListCollectionGroupsCommandOutput } from "./commands/ListCollectionGroupsCommand";
38
44
  import type { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./commands/ListCollectionsCommand";
45
+ import type { ListIngestionJobsCommandInput, ListIngestionJobsCommandOutput } from "./commands/ListIngestionJobsCommand";
46
+ import type { ListIngestionStreamsCommandInput, ListIngestionStreamsCommandOutput } from "./commands/ListIngestionStreamsCommand";
39
47
  import type { ListLifecyclePoliciesCommandInput, ListLifecyclePoliciesCommandOutput } from "./commands/ListLifecyclePoliciesCommand";
40
48
  import type { ListSecurityConfigsCommandInput, ListSecurityConfigsCommandOutput } from "./commands/ListSecurityConfigsCommand";
41
49
  import type { ListSecurityPoliciesCommandInput, ListSecurityPoliciesCommandOutput } from "./commands/ListSecurityPoliciesCommand";
@@ -58,11 +66,11 @@ export { __Client };
58
66
  /**
59
67
  * @public
60
68
  */
61
- export type ServiceInputTypes = BatchGetCollectionCommandInput | BatchGetCollectionGroupCommandInput | BatchGetEffectiveLifecyclePolicyCommandInput | BatchGetLifecyclePolicyCommandInput | BatchGetVpcEndpointCommandInput | CreateAccessPolicyCommandInput | CreateCollectionCommandInput | CreateCollectionGroupCommandInput | CreateIndexCommandInput | CreateLifecyclePolicyCommandInput | CreateSecurityConfigCommandInput | CreateSecurityPolicyCommandInput | CreateVpcEndpointCommandInput | DeleteAccessPolicyCommandInput | DeleteCollectionCommandInput | DeleteCollectionGroupCommandInput | DeleteIndexCommandInput | DeleteLifecyclePolicyCommandInput | DeleteSecurityConfigCommandInput | DeleteSecurityPolicyCommandInput | DeleteVpcEndpointCommandInput | GetAccessPolicyCommandInput | GetAccountSettingsCommandInput | GetIndexCommandInput | GetPoliciesStatsCommandInput | GetSecurityConfigCommandInput | GetSecurityPolicyCommandInput | ListAccessPoliciesCommandInput | ListCollectionGroupsCommandInput | ListCollectionsCommandInput | ListLifecyclePoliciesCommandInput | ListSecurityConfigsCommandInput | ListSecurityPoliciesCommandInput | ListTagsForResourceCommandInput | ListVpcEndpointsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccessPolicyCommandInput | UpdateAccountSettingsCommandInput | UpdateCollectionCommandInput | UpdateCollectionGroupCommandInput | UpdateIndexCommandInput | UpdateLifecyclePolicyCommandInput | UpdateSecurityConfigCommandInput | UpdateSecurityPolicyCommandInput | UpdateVpcEndpointCommandInput;
69
+ export type ServiceInputTypes = BatchGetCollectionCommandInput | BatchGetCollectionGroupCommandInput | BatchGetEffectiveLifecyclePolicyCommandInput | BatchGetLifecyclePolicyCommandInput | BatchGetVpcEndpointCommandInput | CancelIngestionJobCommandInput | CreateAccessPolicyCommandInput | CreateCollectionCommandInput | CreateCollectionGroupCommandInput | CreateIndexCommandInput | CreateIngestionJobCommandInput | CreateIngestionStreamCommandInput | CreateLifecyclePolicyCommandInput | CreateSecurityConfigCommandInput | CreateSecurityPolicyCommandInput | CreateVpcEndpointCommandInput | DeleteAccessPolicyCommandInput | DeleteCollectionCommandInput | DeleteCollectionGroupCommandInput | DeleteIndexCommandInput | DeleteIngestionStreamCommandInput | DeleteLifecyclePolicyCommandInput | DeleteSecurityConfigCommandInput | DeleteSecurityPolicyCommandInput | DeleteVpcEndpointCommandInput | GetAccessPolicyCommandInput | GetAccountSettingsCommandInput | GetIndexCommandInput | GetIngestionJobCommandInput | GetIngestionStreamCommandInput | GetPoliciesStatsCommandInput | GetSecurityConfigCommandInput | GetSecurityPolicyCommandInput | ListAccessPoliciesCommandInput | ListCollectionGroupsCommandInput | ListCollectionsCommandInput | ListIngestionJobsCommandInput | ListIngestionStreamsCommandInput | ListLifecyclePoliciesCommandInput | ListSecurityConfigsCommandInput | ListSecurityPoliciesCommandInput | ListTagsForResourceCommandInput | ListVpcEndpointsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccessPolicyCommandInput | UpdateAccountSettingsCommandInput | UpdateCollectionCommandInput | UpdateCollectionGroupCommandInput | UpdateIndexCommandInput | UpdateLifecyclePolicyCommandInput | UpdateSecurityConfigCommandInput | UpdateSecurityPolicyCommandInput | UpdateVpcEndpointCommandInput;
62
70
  /**
63
71
  * @public
64
72
  */
65
- export type ServiceOutputTypes = BatchGetCollectionCommandOutput | BatchGetCollectionGroupCommandOutput | BatchGetEffectiveLifecyclePolicyCommandOutput | BatchGetLifecyclePolicyCommandOutput | BatchGetVpcEndpointCommandOutput | CreateAccessPolicyCommandOutput | CreateCollectionCommandOutput | CreateCollectionGroupCommandOutput | CreateIndexCommandOutput | CreateLifecyclePolicyCommandOutput | CreateSecurityConfigCommandOutput | CreateSecurityPolicyCommandOutput | CreateVpcEndpointCommandOutput | DeleteAccessPolicyCommandOutput | DeleteCollectionCommandOutput | DeleteCollectionGroupCommandOutput | DeleteIndexCommandOutput | DeleteLifecyclePolicyCommandOutput | DeleteSecurityConfigCommandOutput | DeleteSecurityPolicyCommandOutput | DeleteVpcEndpointCommandOutput | GetAccessPolicyCommandOutput | GetAccountSettingsCommandOutput | GetIndexCommandOutput | GetPoliciesStatsCommandOutput | GetSecurityConfigCommandOutput | GetSecurityPolicyCommandOutput | ListAccessPoliciesCommandOutput | ListCollectionGroupsCommandOutput | ListCollectionsCommandOutput | ListLifecyclePoliciesCommandOutput | ListSecurityConfigsCommandOutput | ListSecurityPoliciesCommandOutput | ListTagsForResourceCommandOutput | ListVpcEndpointsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccessPolicyCommandOutput | UpdateAccountSettingsCommandOutput | UpdateCollectionCommandOutput | UpdateCollectionGroupCommandOutput | UpdateIndexCommandOutput | UpdateLifecyclePolicyCommandOutput | UpdateSecurityConfigCommandOutput | UpdateSecurityPolicyCommandOutput | UpdateVpcEndpointCommandOutput;
73
+ export type ServiceOutputTypes = BatchGetCollectionCommandOutput | BatchGetCollectionGroupCommandOutput | BatchGetEffectiveLifecyclePolicyCommandOutput | BatchGetLifecyclePolicyCommandOutput | BatchGetVpcEndpointCommandOutput | CancelIngestionJobCommandOutput | CreateAccessPolicyCommandOutput | CreateCollectionCommandOutput | CreateCollectionGroupCommandOutput | CreateIndexCommandOutput | CreateIngestionJobCommandOutput | CreateIngestionStreamCommandOutput | CreateLifecyclePolicyCommandOutput | CreateSecurityConfigCommandOutput | CreateSecurityPolicyCommandOutput | CreateVpcEndpointCommandOutput | DeleteAccessPolicyCommandOutput | DeleteCollectionCommandOutput | DeleteCollectionGroupCommandOutput | DeleteIndexCommandOutput | DeleteIngestionStreamCommandOutput | DeleteLifecyclePolicyCommandOutput | DeleteSecurityConfigCommandOutput | DeleteSecurityPolicyCommandOutput | DeleteVpcEndpointCommandOutput | GetAccessPolicyCommandOutput | GetAccountSettingsCommandOutput | GetIndexCommandOutput | GetIngestionJobCommandOutput | GetIngestionStreamCommandOutput | GetPoliciesStatsCommandOutput | GetSecurityConfigCommandOutput | GetSecurityPolicyCommandOutput | ListAccessPoliciesCommandOutput | ListCollectionGroupsCommandOutput | ListCollectionsCommandOutput | ListIngestionJobsCommandOutput | ListIngestionStreamsCommandOutput | ListLifecyclePoliciesCommandOutput | ListSecurityConfigsCommandOutput | ListSecurityPoliciesCommandOutput | ListTagsForResourceCommandOutput | ListVpcEndpointsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccessPolicyCommandOutput | UpdateAccountSettingsCommandOutput | UpdateCollectionCommandOutput | UpdateCollectionGroupCommandOutput | UpdateIndexCommandOutput | UpdateLifecyclePolicyCommandOutput | UpdateSecurityConfigCommandOutput | UpdateSecurityPolicyCommandOutput | UpdateVpcEndpointCommandOutput;
66
74
  /**
67
75
  * @public
68
76
  */
@@ -174,7 +182,8 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
174
182
  maxAttempts?: number | __Provider<number>;
175
183
  /**
176
184
  * Specifies which retry algorithm to use.
177
- * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
185
+ * Accepted values are "standard" and "adaptive".
186
+ * @see https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
178
187
  *
179
188
  */
180
189
  retryMode?: string | __Provider<string>;
@@ -0,0 +1,88 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CancelIngestionJobRequest, CancelIngestionJobResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CancelIngestionJobCommand}.
11
+ */
12
+ export interface CancelIngestionJobCommandInput extends CancelIngestionJobRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CancelIngestionJobCommand}.
18
+ */
19
+ export interface CancelIngestionJobCommandOutput extends CancelIngestionJobResponse, __MetadataBearer {
20
+ }
21
+ declare const CancelIngestionJobCommand_base: {
22
+ new (input: CancelIngestionJobCommandInput): import("@smithy/core/client").CommandImpl<CancelIngestionJobCommandInput, CancelIngestionJobCommandOutput, import("..").OpenSearchServerlessClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CancelIngestionJobCommandInput): import("@smithy/core/client").CommandImpl<CancelIngestionJobCommandInput, CancelIngestionJobCommandOutput, import("..").OpenSearchServerlessClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Cancels an in-progress ingestion job. Documents that were already indexed before the cancellation remain in the index.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { OpenSearchServerlessClient, CancelIngestionJobCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
32
+ * // const { OpenSearchServerlessClient, CancelIngestionJobCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
33
+ * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
34
+ * const config = {}; // type is OpenSearchServerlessClientConfig
35
+ * const client = new OpenSearchServerlessClient(config);
36
+ * const input = { // CancelIngestionJobRequest
37
+ * collectionId: "STRING_VALUE", // required
38
+ * ingestionJobId: "STRING_VALUE", // required
39
+ * clientToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new CancelIngestionJobCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // CancelIngestionJobResponse
44
+ * // ingestionJobId: "STRING_VALUE",
45
+ * // collectionId: "STRING_VALUE",
46
+ * // ingestionJobName: "STRING_VALUE",
47
+ * // status: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param CancelIngestionJobCommandInput - {@link CancelIngestionJobCommandInput}
53
+ * @returns {@link CancelIngestionJobCommandOutput}
54
+ * @see {@link CancelIngestionJobCommandInput} for command's `input` shape.
55
+ * @see {@link CancelIngestionJobCommandOutput} for command's `response` shape.
56
+ * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
57
+ *
58
+ * @throws {@link ConflictException} (client fault)
59
+ * <p>When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>Thrown when an error internal to the service occurs while processing a request.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>Thrown when accessing or deleting a resource that does not exist.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>Thrown when the HTTP request contains invalid input or is missing required input.</p>
69
+ *
70
+ * @throws {@link OpenSearchServerlessServiceException}
71
+ * <p>Base exception class for all service exceptions from OpenSearchServerless service.</p>
72
+ *
73
+ *
74
+ * @public
75
+ */
76
+ export declare class CancelIngestionJobCommand extends CancelIngestionJobCommand_base {
77
+ /** @internal type navigation helper, not in runtime. */
78
+ protected static __types: {
79
+ api: {
80
+ input: CancelIngestionJobRequest;
81
+ output: CancelIngestionJobResponse;
82
+ };
83
+ sdk: {
84
+ input: CancelIngestionJobCommandInput;
85
+ output: CancelIngestionJobCommandOutput;
86
+ };
87
+ };
88
+ }
@@ -0,0 +1,141 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateIngestionJobRequest, CreateIngestionJobResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateIngestionJobCommand}.
11
+ */
12
+ export interface CreateIngestionJobCommandInput extends CreateIngestionJobRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateIngestionJobCommand}.
18
+ */
19
+ export interface CreateIngestionJobCommandOutput extends CreateIngestionJobResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateIngestionJobCommand_base: {
22
+ new (input: CreateIngestionJobCommandInput): import("@smithy/core/client").CommandImpl<CreateIngestionJobCommandInput, CreateIngestionJobCommandOutput, import("..").OpenSearchServerlessClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateIngestionJobCommandInput): import("@smithy/core/client").CommandImpl<CreateIngestionJobCommandInput, CreateIngestionJobCommandOutput, import("..").OpenSearchServerlessClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates an ingestion job that performs a one-time bulk ingestion of data from an Amazon S3 bucket into an index in an OpenSearch Serverless collection. An ingestion job scans the source bucket, indexes the documents it finds, and then completes. To continuously ingest new data as it arrives, use <code>CreateIngestionStream</code> instead.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { OpenSearchServerlessClient, CreateIngestionJobCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
32
+ * // const { OpenSearchServerlessClient, CreateIngestionJobCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
33
+ * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
34
+ * const config = {}; // type is OpenSearchServerlessClientConfig
35
+ * const client = new OpenSearchServerlessClient(config);
36
+ * const input = { // CreateIngestionJobRequest
37
+ * collectionId: "STRING_VALUE", // required
38
+ * ingestionJobName: "STRING_VALUE", // required
39
+ * indexName: "STRING_VALUE", // required
40
+ * failureIndexName: "STRING_VALUE",
41
+ * source: { // IngestionJobSource
42
+ * s3: { // IngestionJobS3Source
43
+ * bucket: "STRING_VALUE",
44
+ * bucketOwnerAccountId: "STRING_VALUE",
45
+ * keyPrefix: "STRING_VALUE",
46
+ * },
47
+ * },
48
+ * tags: [ // Tags
49
+ * { // Tag
50
+ * key: "STRING_VALUE", // required
51
+ * value: "STRING_VALUE", // required
52
+ * },
53
+ * ],
54
+ * clientToken: "STRING_VALUE",
55
+ * };
56
+ * const command = new CreateIngestionJobCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // CreateIngestionJobResponse
59
+ * // ingestionJobDetail: { // IngestionJobDetail
60
+ * // ingestionJobId: "STRING_VALUE",
61
+ * // arn: "STRING_VALUE",
62
+ * // collectionId: "STRING_VALUE",
63
+ * // ingestionJobName: "STRING_VALUE",
64
+ * // indexName: "STRING_VALUE",
65
+ * // failureIndexName: "STRING_VALUE",
66
+ * // source: { // IngestionJobSource
67
+ * // s3: { // IngestionJobS3Source
68
+ * // bucket: "STRING_VALUE",
69
+ * // bucketOwnerAccountId: "STRING_VALUE",
70
+ * // keyPrefix: "STRING_VALUE",
71
+ * // },
72
+ * // },
73
+ * // status: "STRING_VALUE",
74
+ * // state: "STRING_VALUE",
75
+ * // statistics: { // IngestionStatistics
76
+ * // s3: { // S3Statistics
77
+ * // objectsDiscovered: Number("long"),
78
+ * // objectsIngested: Number("long"),
79
+ * // objectsFailed: Number("long"),
80
+ * // },
81
+ * // },
82
+ * // revision: Number("long"),
83
+ * // createdAt: new Date("TIMESTAMP"),
84
+ * // updatedAt: new Date("TIMESTAMP"),
85
+ * // failureReasons: [ // IngestionFailureReasons
86
+ * // { // IngestionFailureReason
87
+ * // code: "STRING_VALUE",
88
+ * // message: "STRING_VALUE",
89
+ * // },
90
+ * // ],
91
+ * // activeAlerts: [ // IngestionAlerts
92
+ * // { // IngestionAlert
93
+ * // code: "STRING_VALUE",
94
+ * // message: "STRING_VALUE",
95
+ * // },
96
+ * // ],
97
+ * // },
98
+ * // };
99
+ *
100
+ * ```
101
+ *
102
+ * @param CreateIngestionJobCommandInput - {@link CreateIngestionJobCommandInput}
103
+ * @returns {@link CreateIngestionJobCommandOutput}
104
+ * @see {@link CreateIngestionJobCommandInput} for command's `input` shape.
105
+ * @see {@link CreateIngestionJobCommandOutput} for command's `response` shape.
106
+ * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
107
+ *
108
+ * @throws {@link ConflictException} (client fault)
109
+ * <p>When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.</p>
110
+ *
111
+ * @throws {@link InternalServerException} (server fault)
112
+ * <p>Thrown when an error internal to the service occurs while processing a request.</p>
113
+ *
114
+ * @throws {@link ResourceNotFoundException} (client fault)
115
+ * <p>Thrown when accessing or deleting a resource that does not exist.</p>
116
+ *
117
+ * @throws {@link ServiceQuotaExceededException} (client fault)
118
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
119
+ *
120
+ * @throws {@link ValidationException} (client fault)
121
+ * <p>Thrown when the HTTP request contains invalid input or is missing required input.</p>
122
+ *
123
+ * @throws {@link OpenSearchServerlessServiceException}
124
+ * <p>Base exception class for all service exceptions from OpenSearchServerless service.</p>
125
+ *
126
+ *
127
+ * @public
128
+ */
129
+ export declare class CreateIngestionJobCommand extends CreateIngestionJobCommand_base {
130
+ /** @internal type navigation helper, not in runtime. */
131
+ protected static __types: {
132
+ api: {
133
+ input: CreateIngestionJobRequest;
134
+ output: CreateIngestionJobResponse;
135
+ };
136
+ sdk: {
137
+ input: CreateIngestionJobCommandInput;
138
+ output: CreateIngestionJobCommandOutput;
139
+ };
140
+ };
141
+ }
@@ -0,0 +1,153 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateIngestionStreamRequest, CreateIngestionStreamResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateIngestionStreamCommand}.
11
+ */
12
+ export interface CreateIngestionStreamCommandInput extends CreateIngestionStreamRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateIngestionStreamCommand}.
18
+ */
19
+ export interface CreateIngestionStreamCommandOutput extends CreateIngestionStreamResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateIngestionStreamCommand_base: {
22
+ new (input: CreateIngestionStreamCommandInput): import("@smithy/core/client").CommandImpl<CreateIngestionStreamCommandInput, CreateIngestionStreamCommandOutput, import("..").OpenSearchServerlessClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateIngestionStreamCommandInput): import("@smithy/core/client").CommandImpl<CreateIngestionStreamCommandInput, CreateIngestionStreamCommandOutput, import("..").OpenSearchServerlessClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates an ingestion stream that continuously ingests data from an Amazon S3 bucket into an index in an OpenSearch Serverless collection. An ingestion stream processes Amazon S3 event notifications delivered to an Amazon SQS queue and ingests new objects as they arrive. The stream continues to ingest data until you delete it. To perform a one-time bulk ingestion instead, use <code>CreateIngestionJob</code>.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { OpenSearchServerlessClient, CreateIngestionStreamCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
32
+ * // const { OpenSearchServerlessClient, CreateIngestionStreamCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
33
+ * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
34
+ * const config = {}; // type is OpenSearchServerlessClientConfig
35
+ * const client = new OpenSearchServerlessClient(config);
36
+ * const input = { // CreateIngestionStreamRequest
37
+ * collectionId: "STRING_VALUE", // required
38
+ * ingestionStreamName: "STRING_VALUE", // required
39
+ * indexName: "STRING_VALUE", // required
40
+ * failureIndexName: "STRING_VALUE",
41
+ * source: { // IngestionStreamSource
42
+ * s3: { // IngestionStreamS3Source
43
+ * sqsArn: "STRING_VALUE", // required
44
+ * buckets: [ // StreamBucketConfigs
45
+ * { // StreamBucketConfig
46
+ * bucket: "STRING_VALUE", // required
47
+ * bucketOwnerAccountId: "STRING_VALUE",
48
+ * initialScan: "STRING_VALUE",
49
+ * },
50
+ * ],
51
+ * },
52
+ * },
53
+ * roleArn: "STRING_VALUE", // required
54
+ * tags: [ // Tags
55
+ * { // Tag
56
+ * key: "STRING_VALUE", // required
57
+ * value: "STRING_VALUE", // required
58
+ * },
59
+ * ],
60
+ * clientToken: "STRING_VALUE",
61
+ * };
62
+ * const command = new CreateIngestionStreamCommand(input);
63
+ * const response = await client.send(command);
64
+ * // { // CreateIngestionStreamResponse
65
+ * // ingestionStreamDetail: { // IngestionStreamDetail
66
+ * // ingestionStreamId: "STRING_VALUE",
67
+ * // arn: "STRING_VALUE",
68
+ * // collectionId: "STRING_VALUE",
69
+ * // ingestionStreamName: "STRING_VALUE",
70
+ * // indexName: "STRING_VALUE",
71
+ * // failureIndexName: "STRING_VALUE",
72
+ * // source: { // IngestionStreamSource
73
+ * // s3: { // IngestionStreamS3Source
74
+ * // sqsArn: "STRING_VALUE", // required
75
+ * // buckets: [ // StreamBucketConfigs
76
+ * // { // StreamBucketConfig
77
+ * // bucket: "STRING_VALUE", // required
78
+ * // bucketOwnerAccountId: "STRING_VALUE",
79
+ * // initialScan: "STRING_VALUE",
80
+ * // },
81
+ * // ],
82
+ * // },
83
+ * // },
84
+ * // roleArn: "STRING_VALUE",
85
+ * // status: "STRING_VALUE",
86
+ * // state: "STRING_VALUE",
87
+ * // statistics: { // IngestionStatistics
88
+ * // s3: { // S3Statistics
89
+ * // objectsDiscovered: Number("long"),
90
+ * // objectsIngested: Number("long"),
91
+ * // objectsFailed: Number("long"),
92
+ * // },
93
+ * // },
94
+ * // revision: Number("long"),
95
+ * // createdAt: new Date("TIMESTAMP"),
96
+ * // updatedAt: new Date("TIMESTAMP"),
97
+ * // failureReasons: [ // IngestionFailureReasons
98
+ * // { // IngestionFailureReason
99
+ * // code: "STRING_VALUE",
100
+ * // message: "STRING_VALUE",
101
+ * // },
102
+ * // ],
103
+ * // activeAlerts: [ // IngestionAlerts
104
+ * // { // IngestionAlert
105
+ * // code: "STRING_VALUE",
106
+ * // message: "STRING_VALUE",
107
+ * // },
108
+ * // ],
109
+ * // },
110
+ * // };
111
+ *
112
+ * ```
113
+ *
114
+ * @param CreateIngestionStreamCommandInput - {@link CreateIngestionStreamCommandInput}
115
+ * @returns {@link CreateIngestionStreamCommandOutput}
116
+ * @see {@link CreateIngestionStreamCommandInput} for command's `input` shape.
117
+ * @see {@link CreateIngestionStreamCommandOutput} for command's `response` shape.
118
+ * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
119
+ *
120
+ * @throws {@link ConflictException} (client fault)
121
+ * <p>When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.</p>
122
+ *
123
+ * @throws {@link InternalServerException} (server fault)
124
+ * <p>Thrown when an error internal to the service occurs while processing a request.</p>
125
+ *
126
+ * @throws {@link ResourceNotFoundException} (client fault)
127
+ * <p>Thrown when accessing or deleting a resource that does not exist.</p>
128
+ *
129
+ * @throws {@link ServiceQuotaExceededException} (client fault)
130
+ * <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
131
+ *
132
+ * @throws {@link ValidationException} (client fault)
133
+ * <p>Thrown when the HTTP request contains invalid input or is missing required input.</p>
134
+ *
135
+ * @throws {@link OpenSearchServerlessServiceException}
136
+ * <p>Base exception class for all service exceptions from OpenSearchServerless service.</p>
137
+ *
138
+ *
139
+ * @public
140
+ */
141
+ export declare class CreateIngestionStreamCommand extends CreateIngestionStreamCommand_base {
142
+ /** @internal type navigation helper, not in runtime. */
143
+ protected static __types: {
144
+ api: {
145
+ input: CreateIngestionStreamRequest;
146
+ output: CreateIngestionStreamResponse;
147
+ };
148
+ sdk: {
149
+ input: CreateIngestionStreamCommandInput;
150
+ output: CreateIngestionStreamCommandOutput;
151
+ };
152
+ };
153
+ }
@@ -0,0 +1,88 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DeleteIngestionStreamRequest, DeleteIngestionStreamResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DeleteIngestionStreamCommand}.
11
+ */
12
+ export interface DeleteIngestionStreamCommandInput extends DeleteIngestionStreamRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DeleteIngestionStreamCommand}.
18
+ */
19
+ export interface DeleteIngestionStreamCommandOutput extends DeleteIngestionStreamResponse, __MetadataBearer {
20
+ }
21
+ declare const DeleteIngestionStreamCommand_base: {
22
+ new (input: DeleteIngestionStreamCommandInput): import("@smithy/core/client").CommandImpl<DeleteIngestionStreamCommandInput, DeleteIngestionStreamCommandOutput, import("..").OpenSearchServerlessClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteIngestionStreamCommandInput): import("@smithy/core/client").CommandImpl<DeleteIngestionStreamCommandInput, DeleteIngestionStreamCommandOutput, import("..").OpenSearchServerlessClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Deletes an ingestion stream. Documents that were already indexed by the stream remain in the index.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { OpenSearchServerlessClient, DeleteIngestionStreamCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import
32
+ * // const { OpenSearchServerlessClient, DeleteIngestionStreamCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import
33
+ * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
34
+ * const config = {}; // type is OpenSearchServerlessClientConfig
35
+ * const client = new OpenSearchServerlessClient(config);
36
+ * const input = { // DeleteIngestionStreamRequest
37
+ * collectionId: "STRING_VALUE", // required
38
+ * ingestionStreamId: "STRING_VALUE", // required
39
+ * clientToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new DeleteIngestionStreamCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // DeleteIngestionStreamResponse
44
+ * // ingestionStreamId: "STRING_VALUE",
45
+ * // collectionId: "STRING_VALUE",
46
+ * // ingestionStreamName: "STRING_VALUE",
47
+ * // status: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param DeleteIngestionStreamCommandInput - {@link DeleteIngestionStreamCommandInput}
53
+ * @returns {@link DeleteIngestionStreamCommandOutput}
54
+ * @see {@link DeleteIngestionStreamCommandInput} for command's `input` shape.
55
+ * @see {@link DeleteIngestionStreamCommandOutput} for command's `response` shape.
56
+ * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape.
57
+ *
58
+ * @throws {@link ConflictException} (client fault)
59
+ * <p>When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>Thrown when an error internal to the service occurs while processing a request.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>Thrown when accessing or deleting a resource that does not exist.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>Thrown when the HTTP request contains invalid input or is missing required input.</p>
69
+ *
70
+ * @throws {@link OpenSearchServerlessServiceException}
71
+ * <p>Base exception class for all service exceptions from OpenSearchServerless service.</p>
72
+ *
73
+ *
74
+ * @public
75
+ */
76
+ export declare class DeleteIngestionStreamCommand extends DeleteIngestionStreamCommand_base {
77
+ /** @internal type navigation helper, not in runtime. */
78
+ protected static __types: {
79
+ api: {
80
+ input: DeleteIngestionStreamRequest;
81
+ output: DeleteIngestionStreamResponse;
82
+ };
83
+ sdk: {
84
+ input: DeleteIngestionStreamCommandInput;
85
+ output: DeleteIngestionStreamCommandOutput;
86
+ };
87
+ };
88
+ }