@aws-sdk/client-kinesis 3.43.0 → 3.44.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 (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +2 -2
  3. package/dist-cjs/Kinesis.js +15 -0
  4. package/dist-cjs/commands/UpdateStreamModeCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/models/models_0.js +25 -2
  7. package/dist-cjs/protocols/Aws_json1_1.js +151 -2
  8. package/dist-es/Kinesis.js +15 -0
  9. package/dist-es/commands/UpdateStreamModeCommand.js +39 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/models_0.js +17 -0
  12. package/dist-es/protocols/Aws_json1_1.js +189 -35
  13. package/dist-types/Kinesis.d.ts +165 -143
  14. package/dist-types/KinesisClient.d.ts +5 -4
  15. package/dist-types/commands/AddTagsToStreamCommand.d.ts +2 -4
  16. package/dist-types/commands/CreateStreamCommand.d.ts +19 -19
  17. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +5 -5
  18. package/dist-types/commands/DeleteStreamCommand.d.ts +5 -4
  19. package/dist-types/commands/DescribeStreamCommand.d.ts +5 -1
  20. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +5 -5
  21. package/dist-types/commands/GetRecordsCommand.d.ts +29 -19
  22. package/dist-types/commands/GetShardIteratorCommand.d.ts +7 -7
  23. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +3 -3
  24. package/dist-types/commands/ListShardsCommand.d.ts +4 -2
  25. package/dist-types/commands/ListStreamsCommand.d.ts +1 -1
  26. package/dist-types/commands/MergeShardsCommand.d.ts +5 -5
  27. package/dist-types/commands/PutRecordCommand.d.ts +8 -8
  28. package/dist-types/commands/PutRecordsCommand.d.ts +7 -7
  29. package/dist-types/commands/SplitShardCommand.d.ts +17 -19
  30. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +10 -10
  31. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +8 -9
  32. package/dist-types/commands/SubscribeToShardCommand.d.ts +3 -2
  33. package/dist-types/commands/UpdateShardCountCommand.d.ts +10 -11
  34. package/dist-types/commands/UpdateStreamModeCommand.d.ts +38 -0
  35. package/dist-types/commands/index.d.ts +1 -0
  36. package/dist-types/models/models_0.d.ts +333 -152
  37. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  38. package/dist-types/ts3.4/Kinesis.d.ts +5 -0
  39. package/dist-types/ts3.4/KinesisClient.d.ts +3 -2
  40. package/dist-types/ts3.4/commands/UpdateStreamModeCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +54 -1
  43. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  44. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { KinesisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisClient";
4
+ import { UpdateStreamModeInput } from "../models/models_0";
5
+ export interface UpdateStreamModeCommandInput extends UpdateStreamModeInput {
6
+ }
7
+ export interface UpdateStreamModeCommandOutput extends __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p> Updates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you
11
+ * can choose between an <b>on-demand</b> capacity mode and a
12
+ * <b>provisioned</b> capacity mode for your data stream.
13
+ * </p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { KinesisClient, UpdateStreamModeCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
18
+ * // const { KinesisClient, UpdateStreamModeCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
19
+ * const client = new KinesisClient(config);
20
+ * const command = new UpdateStreamModeCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link UpdateStreamModeCommandInput} for command's `input` shape.
25
+ * @see {@link UpdateStreamModeCommandOutput} for command's `response` shape.
26
+ * @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class UpdateStreamModeCommand extends $Command<UpdateStreamModeCommandInput, UpdateStreamModeCommandOutput, KinesisClientResolvedConfig> {
30
+ readonly input: UpdateStreamModeCommandInput;
31
+ constructor(input: UpdateStreamModeCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateStreamModeCommandInput, UpdateStreamModeCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -26,3 +26,4 @@ export * from "./StartStreamEncryptionCommand";
26
26
  export * from "./StopStreamEncryptionCommand";
27
27
  export * from "./SubscribeToShardCommand";
28
28
  export * from "./UpdateShardCountCommand";
29
+ export * from "./UpdateStreamModeCommand";