@aws-sdk/client-kinesis 3.454.0 → 3.458.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 (55) hide show
  1. package/README.md +53 -29
  2. package/dist-cjs/Kinesis.js +6 -0
  3. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +53 -0
  4. package/dist-cjs/commands/GetResourcePolicyCommand.js +53 -0
  5. package/dist-cjs/commands/PutResourcePolicyCommand.js +53 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoint/ruleset.js +3 -3
  8. package/dist-cjs/protocols/Aws_json1_1.js +149 -2
  9. package/dist-es/Kinesis.js +6 -0
  10. package/dist-es/commands/DeleteResourcePolicyCommand.js +49 -0
  11. package/dist-es/commands/GetResourcePolicyCommand.js +49 -0
  12. package/dist-es/commands/PutResourcePolicyCommand.js +49 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/endpoint/ruleset.js +3 -3
  15. package/dist-es/protocols/Aws_json1_1.js +141 -0
  16. package/dist-types/Kinesis.d.ts +21 -0
  17. package/dist-types/KinesisClient.d.ts +5 -2
  18. package/dist-types/commands/AddTagsToStreamCommand.d.ts +3 -2
  19. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +3 -2
  20. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +101 -0
  21. package/dist-types/commands/DeleteStreamCommand.d.ts +3 -2
  22. package/dist-types/commands/DescribeStreamCommand.d.ts +3 -2
  23. package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +3 -0
  24. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +3 -2
  25. package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +3 -2
  26. package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +3 -2
  27. package/dist-types/commands/GetRecordsCommand.d.ts +3 -2
  28. package/dist-types/commands/GetResourcePolicyCommand.d.ts +99 -0
  29. package/dist-types/commands/GetShardIteratorCommand.d.ts +3 -2
  30. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +3 -2
  31. package/dist-types/commands/ListShardsCommand.d.ts +3 -2
  32. package/dist-types/commands/ListTagsForStreamCommand.d.ts +3 -2
  33. package/dist-types/commands/MergeShardsCommand.d.ts +3 -2
  34. package/dist-types/commands/PutRecordCommand.d.ts +3 -2
  35. package/dist-types/commands/PutRecordsCommand.d.ts +3 -2
  36. package/dist-types/commands/PutResourcePolicyCommand.d.ts +109 -0
  37. package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +3 -2
  38. package/dist-types/commands/SplitShardCommand.d.ts +3 -2
  39. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +5 -4
  40. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +3 -2
  41. package/dist-types/commands/UpdateShardCountCommand.d.ts +6 -2
  42. package/dist-types/commands/index.d.ts +3 -0
  43. package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
  44. package/dist-types/models/models_0.d.ts +45 -0
  45. package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
  46. package/dist-types/ts3.4/Kinesis.d.ts +51 -0
  47. package/dist-types/ts3.4/KinesisClient.d.ts +18 -0
  48. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +37 -0
  49. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
  50. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +33 -0
  51. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  52. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +13 -0
  54. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  55. package/package.json +3 -3
@@ -1,6 +1,7 @@
1
1
  export * from "./AddTagsToStreamCommand";
2
2
  export * from "./CreateStreamCommand";
3
3
  export * from "./DecreaseStreamRetentionPeriodCommand";
4
+ export * from "./DeleteResourcePolicyCommand";
4
5
  export * from "./DeleteStreamCommand";
5
6
  export * from "./DeregisterStreamConsumerCommand";
6
7
  export * from "./DescribeLimitsCommand";
@@ -10,6 +11,7 @@ export * from "./DescribeStreamSummaryCommand";
10
11
  export * from "./DisableEnhancedMonitoringCommand";
11
12
  export * from "./EnableEnhancedMonitoringCommand";
12
13
  export * from "./GetRecordsCommand";
14
+ export * from "./GetResourcePolicyCommand";
13
15
  export * from "./GetShardIteratorCommand";
14
16
  export * from "./IncreaseStreamRetentionPeriodCommand";
15
17
  export * from "./ListShardsCommand";
@@ -19,6 +21,7 @@ export * from "./ListTagsForStreamCommand";
19
21
  export * from "./MergeShardsCommand";
20
22
  export * from "./PutRecordCommand";
21
23
  export * from "./PutRecordsCommand";
24
+ export * from "./PutResourcePolicyCommand";
22
25
  export * from "./RegisterStreamConsumerCommand";
23
26
  export * from "./RemoveTagsFromStreamCommand";
24
27
  export * from "./SplitShardCommand";
@@ -33,4 +33,5 @@ export interface EndpointParameters extends __EndpointParameters {
33
33
  StreamARN?: string;
34
34
  OperationType?: string;
35
35
  ConsumerARN?: string;
36
+ ResourceARN?: string;
36
37
  }
@@ -87,6 +87,9 @@ export interface DecreaseStreamRetentionPeriodInput {
87
87
  RetentionPeriodHours: number | undefined;
88
88
  StreamARN?: string;
89
89
  }
90
+ export interface DeleteResourcePolicyInput {
91
+ ResourceARN: string | undefined;
92
+ }
90
93
  export interface DeleteStreamInput {
91
94
  StreamName?: string;
92
95
  EnforceConsumerDeletion?: boolean;
@@ -290,6 +293,12 @@ export declare class ProvisionedThroughputExceededException extends __BaseExcept
290
293
  >
291
294
  );
292
295
  }
296
+ export interface GetResourcePolicyInput {
297
+ ResourceARN: string | undefined;
298
+ }
299
+ export interface GetResourcePolicyOutput {
300
+ Policy: string | undefined;
301
+ }
293
302
  export declare const ShardIteratorType: {
294
303
  readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
295
304
  readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
@@ -439,6 +448,10 @@ export interface PutRecordsOutput {
439
448
  Records: PutRecordsResultEntry[] | undefined;
440
449
  EncryptionType?: EncryptionType;
441
450
  }
451
+ export interface PutResourcePolicyInput {
452
+ ResourceARN: string | undefined;
453
+ Policy: string | undefined;
454
+ }
442
455
  export interface RegisterStreamConsumerInput {
443
456
  StreamARN: string | undefined;
444
457
  ConsumerName: string | undefined;
@@ -18,6 +18,10 @@ import {
18
18
  DecreaseStreamRetentionPeriodCommandInput,
19
19
  DecreaseStreamRetentionPeriodCommandOutput,
20
20
  } from "../commands/DecreaseStreamRetentionPeriodCommand";
21
+ import {
22
+ DeleteResourcePolicyCommandInput,
23
+ DeleteResourcePolicyCommandOutput,
24
+ } from "../commands/DeleteResourcePolicyCommand";
21
25
  import {
22
26
  DeleteStreamCommandInput,
23
27
  DeleteStreamCommandOutput,
@@ -54,6 +58,10 @@ import {
54
58
  GetRecordsCommandInput,
55
59
  GetRecordsCommandOutput,
56
60
  } from "../commands/GetRecordsCommand";
61
+ import {
62
+ GetResourcePolicyCommandInput,
63
+ GetResourcePolicyCommandOutput,
64
+ } from "../commands/GetResourcePolicyCommand";
57
65
  import {
58
66
  GetShardIteratorCommandInput,
59
67
  GetShardIteratorCommandOutput,
@@ -90,6 +98,10 @@ import {
90
98
  PutRecordsCommandInput,
91
99
  PutRecordsCommandOutput,
92
100
  } from "../commands/PutRecordsCommand";
101
+ import {
102
+ PutResourcePolicyCommandInput,
103
+ PutResourcePolicyCommandOutput,
104
+ } from "../commands/PutResourcePolicyCommand";
93
105
  import {
94
106
  RegisterStreamConsumerCommandInput,
95
107
  RegisterStreamConsumerCommandOutput,
@@ -134,6 +146,10 @@ export declare const se_DecreaseStreamRetentionPeriodCommand: (
134
146
  input: DecreaseStreamRetentionPeriodCommandInput,
135
147
  context: __SerdeContext
136
148
  ) => Promise<__HttpRequest>;
149
+ export declare const se_DeleteResourcePolicyCommand: (
150
+ input: DeleteResourcePolicyCommandInput,
151
+ context: __SerdeContext
152
+ ) => Promise<__HttpRequest>;
137
153
  export declare const se_DeleteStreamCommand: (
138
154
  input: DeleteStreamCommandInput,
139
155
  context: __SerdeContext
@@ -170,6 +186,10 @@ export declare const se_GetRecordsCommand: (
170
186
  input: GetRecordsCommandInput,
171
187
  context: __SerdeContext
172
188
  ) => Promise<__HttpRequest>;
189
+ export declare const se_GetResourcePolicyCommand: (
190
+ input: GetResourcePolicyCommandInput,
191
+ context: __SerdeContext
192
+ ) => Promise<__HttpRequest>;
173
193
  export declare const se_GetShardIteratorCommand: (
174
194
  input: GetShardIteratorCommandInput,
175
195
  context: __SerdeContext
@@ -206,6 +226,10 @@ export declare const se_PutRecordsCommand: (
206
226
  input: PutRecordsCommandInput,
207
227
  context: __SerdeContext
208
228
  ) => Promise<__HttpRequest>;
229
+ export declare const se_PutResourcePolicyCommand: (
230
+ input: PutResourcePolicyCommandInput,
231
+ context: __SerdeContext
232
+ ) => Promise<__HttpRequest>;
209
233
  export declare const se_RegisterStreamConsumerCommand: (
210
234
  input: RegisterStreamConsumerCommandInput,
211
235
  context: __SerdeContext
@@ -250,6 +274,10 @@ export declare const de_DecreaseStreamRetentionPeriodCommand: (
250
274
  output: __HttpResponse,
251
275
  context: __SerdeContext
252
276
  ) => Promise<DecreaseStreamRetentionPeriodCommandOutput>;
277
+ export declare const de_DeleteResourcePolicyCommand: (
278
+ output: __HttpResponse,
279
+ context: __SerdeContext
280
+ ) => Promise<DeleteResourcePolicyCommandOutput>;
253
281
  export declare const de_DeleteStreamCommand: (
254
282
  output: __HttpResponse,
255
283
  context: __SerdeContext
@@ -286,6 +314,10 @@ export declare const de_GetRecordsCommand: (
286
314
  output: __HttpResponse,
287
315
  context: __SerdeContext
288
316
  ) => Promise<GetRecordsCommandOutput>;
317
+ export declare const de_GetResourcePolicyCommand: (
318
+ output: __HttpResponse,
319
+ context: __SerdeContext
320
+ ) => Promise<GetResourcePolicyCommandOutput>;
289
321
  export declare const de_GetShardIteratorCommand: (
290
322
  output: __HttpResponse,
291
323
  context: __SerdeContext
@@ -322,6 +354,10 @@ export declare const de_PutRecordsCommand: (
322
354
  output: __HttpResponse,
323
355
  context: __SerdeContext
324
356
  ) => Promise<PutRecordsCommandOutput>;
357
+ export declare const de_PutResourcePolicyCommand: (
358
+ output: __HttpResponse,
359
+ context: __SerdeContext
360
+ ) => Promise<PutResourcePolicyCommandOutput>;
325
361
  export declare const de_RegisterStreamConsumerCommand: (
326
362
  output: __HttpResponse,
327
363
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis",
3
3
  "description": "AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native",
4
- "version": "3.454.0",
4
+ "version": "3.458.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",
@@ -22,9 +22,9 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/client-sts": "3.454.0",
25
+ "@aws-sdk/client-sts": "3.458.0",
26
26
  "@aws-sdk/core": "3.451.0",
27
- "@aws-sdk/credential-provider-node": "3.451.0",
27
+ "@aws-sdk/credential-provider-node": "3.458.0",
28
28
  "@aws-sdk/middleware-host-header": "3.451.0",
29
29
  "@aws-sdk/middleware-logger": "3.451.0",
30
30
  "@aws-sdk/middleware-recursion-detection": "3.451.0",