@aws-sdk/client-kinesis 3.916.0 → 3.918.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.
package/README.md CHANGED
@@ -469,6 +469,14 @@ UntagResource
469
469
 
470
470
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/UntagResourceCommandOutput/)
471
471
 
472
+ </details>
473
+ <details>
474
+ <summary>
475
+ UpdateMaxRecordSize
476
+ </summary>
477
+
478
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis/command/UpdateMaxRecordSizeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/UpdateMaxRecordSizeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/UpdateMaxRecordSizeCommandOutput/)
479
+
472
480
  </details>
473
481
  <details>
474
482
  <summary>
package/dist-cjs/index.js CHANGED
@@ -612,6 +612,12 @@ const se_UntagResourceCommand = async (input, context) => {
612
612
  body = JSON.stringify(smithyClient._json(input));
613
613
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
614
614
  };
615
+ const se_UpdateMaxRecordSizeCommand = async (input, context) => {
616
+ const headers = sharedHeaders("UpdateMaxRecordSize");
617
+ let body;
618
+ body = JSON.stringify(smithyClient._json(input));
619
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
620
+ };
615
621
  const se_UpdateShardCountCommand = async (input, context) => {
616
622
  const headers = sharedHeaders("UpdateShardCount");
617
623
  let body;
@@ -1006,6 +1012,16 @@ const de_UntagResourceCommand = async (output, context) => {
1006
1012
  };
1007
1013
  return response;
1008
1014
  };
1015
+ const de_UpdateMaxRecordSizeCommand = async (output, context) => {
1016
+ if (output.statusCode >= 300) {
1017
+ return de_CommandError(output, context);
1018
+ }
1019
+ await smithyClient.collectBody(output.body, context);
1020
+ const response = {
1021
+ $metadata: deserializeMetadata(output),
1022
+ };
1023
+ return response;
1024
+ };
1009
1025
  const de_UpdateShardCountCommand = async (output, context) => {
1010
1026
  if (output.statusCode >= 300) {
1011
1027
  return de_CommandError(output, context);
@@ -1547,6 +1563,7 @@ const de_StreamDescriptionSummary = (output, context) => {
1547
1563
  EncryptionType: smithyClient.expectString,
1548
1564
  EnhancedMonitoring: smithyClient._json,
1549
1565
  KeyId: smithyClient.expectString,
1566
+ MaxRecordSizeInKiB: smithyClient.expectInt32,
1550
1567
  OpenShardCount: smithyClient.expectInt32,
1551
1568
  RetentionPeriodHours: smithyClient.expectInt32,
1552
1569
  StreamARN: smithyClient.expectString,
@@ -2297,6 +2314,27 @@ class UntagResourceCommand extends smithyClient.Command
2297
2314
  .build() {
2298
2315
  }
2299
2316
 
2317
+ class UpdateMaxRecordSizeCommand extends smithyClient.Command
2318
+ .classBuilder()
2319
+ .ep({
2320
+ ...commonParams,
2321
+ OperationType: { type: "staticContextParams", value: `control` },
2322
+ StreamARN: { type: "contextParams", name: "StreamARN" },
2323
+ })
2324
+ .m(function (Command, cs, config, o) {
2325
+ return [
2326
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2327
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2328
+ ];
2329
+ })
2330
+ .s("Kinesis_20131202", "UpdateMaxRecordSize", {})
2331
+ .n("KinesisClient", "UpdateMaxRecordSizeCommand")
2332
+ .f(void 0, void 0)
2333
+ .ser(se_UpdateMaxRecordSizeCommand)
2334
+ .de(de_UpdateMaxRecordSizeCommand)
2335
+ .build() {
2336
+ }
2337
+
2300
2338
  class UpdateShardCountCommand extends smithyClient.Command
2301
2339
  .classBuilder()
2302
2340
  .ep({
@@ -2373,6 +2411,7 @@ const commands = {
2373
2411
  SubscribeToShardCommand,
2374
2412
  TagResourceCommand,
2375
2413
  UntagResourceCommand,
2414
+ UpdateMaxRecordSizeCommand,
2376
2415
  UpdateShardCountCommand,
2377
2416
  UpdateStreamModeCommand,
2378
2417
  };
@@ -2507,6 +2546,7 @@ exports.SubscribeToShardEventStreamFilterSensitiveLog = SubscribeToShardEventStr
2507
2546
  exports.SubscribeToShardOutputFilterSensitiveLog = SubscribeToShardOutputFilterSensitiveLog;
2508
2547
  exports.TagResourceCommand = TagResourceCommand;
2509
2548
  exports.UntagResourceCommand = UntagResourceCommand;
2549
+ exports.UpdateMaxRecordSizeCommand = UpdateMaxRecordSizeCommand;
2510
2550
  exports.UpdateShardCountCommand = UpdateShardCountCommand;
2511
2551
  exports.UpdateStreamModeCommand = UpdateStreamModeCommand;
2512
2552
  exports.ValidationException = ValidationException;
@@ -32,6 +32,7 @@ import { StopStreamEncryptionCommand, } from "./commands/StopStreamEncryptionCom
32
32
  import { SubscribeToShardCommand, } from "./commands/SubscribeToShardCommand";
33
33
  import { TagResourceCommand } from "./commands/TagResourceCommand";
34
34
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
35
+ import { UpdateMaxRecordSizeCommand, } from "./commands/UpdateMaxRecordSizeCommand";
35
36
  import { UpdateShardCountCommand, } from "./commands/UpdateShardCountCommand";
36
37
  import { UpdateStreamModeCommand, } from "./commands/UpdateStreamModeCommand";
37
38
  import { KinesisClient } from "./KinesisClient";
@@ -69,6 +70,7 @@ const commands = {
69
70
  SubscribeToShardCommand,
70
71
  TagResourceCommand,
71
72
  UntagResourceCommand,
73
+ UpdateMaxRecordSizeCommand,
72
74
  UpdateShardCountCommand,
73
75
  UpdateStreamModeCommand,
74
76
  };
@@ -0,0 +1,26 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateMaxRecordSizeCommand, se_UpdateMaxRecordSizeCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UpdateMaxRecordSizeCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ OperationType: { type: "staticContextParams", value: `control` },
12
+ StreamARN: { type: "contextParams", name: "StreamARN" },
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ ];
19
+ })
20
+ .s("Kinesis_20131202", "UpdateMaxRecordSize", {})
21
+ .n("KinesisClient", "UpdateMaxRecordSizeCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_UpdateMaxRecordSizeCommand)
24
+ .de(de_UpdateMaxRecordSizeCommand)
25
+ .build() {
26
+ }
@@ -31,5 +31,6 @@ export * from "./StopStreamEncryptionCommand";
31
31
  export * from "./SubscribeToShardCommand";
32
32
  export * from "./TagResourceCommand";
33
33
  export * from "./UntagResourceCommand";
34
+ export * from "./UpdateMaxRecordSizeCommand";
34
35
  export * from "./UpdateShardCountCommand";
35
36
  export * from "./UpdateStreamModeCommand";
@@ -201,6 +201,12 @@ export const se_UntagResourceCommand = async (input, context) => {
201
201
  body = JSON.stringify(_json(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
+ export const se_UpdateMaxRecordSizeCommand = async (input, context) => {
205
+ const headers = sharedHeaders("UpdateMaxRecordSize");
206
+ let body;
207
+ body = JSON.stringify(_json(input));
208
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
+ };
204
210
  export const se_UpdateShardCountCommand = async (input, context) => {
205
211
  const headers = sharedHeaders("UpdateShardCount");
206
212
  let body;
@@ -595,6 +601,16 @@ export const de_UntagResourceCommand = async (output, context) => {
595
601
  };
596
602
  return response;
597
603
  };
604
+ export const de_UpdateMaxRecordSizeCommand = async (output, context) => {
605
+ if (output.statusCode >= 300) {
606
+ return de_CommandError(output, context);
607
+ }
608
+ await collectBody(output.body, context);
609
+ const response = {
610
+ $metadata: deserializeMetadata(output),
611
+ };
612
+ return response;
613
+ };
598
614
  export const de_UpdateShardCountCommand = async (output, context) => {
599
615
  if (output.statusCode >= 300) {
600
616
  return de_CommandError(output, context);
@@ -1136,6 +1152,7 @@ const de_StreamDescriptionSummary = (output, context) => {
1136
1152
  EncryptionType: __expectString,
1137
1153
  EnhancedMonitoring: _json,
1138
1154
  KeyId: __expectString,
1155
+ MaxRecordSizeInKiB: __expectInt32,
1139
1156
  OpenShardCount: __expectInt32,
1140
1157
  RetentionPeriodHours: __expectInt32,
1141
1158
  StreamARN: __expectString,
@@ -32,6 +32,7 @@ import { StopStreamEncryptionCommandInput, StopStreamEncryptionCommandOutput } f
32
32
  import { SubscribeToShardCommandInput, SubscribeToShardCommandOutput } from "./commands/SubscribeToShardCommand";
33
33
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
34
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
+ import { UpdateMaxRecordSizeCommandInput, UpdateMaxRecordSizeCommandOutput } from "./commands/UpdateMaxRecordSizeCommand";
35
36
  import { UpdateShardCountCommandInput, UpdateShardCountCommandOutput } from "./commands/UpdateShardCountCommand";
36
37
  import { UpdateStreamModeCommandInput, UpdateStreamModeCommandOutput } from "./commands/UpdateStreamModeCommand";
37
38
  import { KinesisClient } from "./KinesisClient";
@@ -243,6 +244,12 @@ export interface Kinesis {
243
244
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
244
245
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
245
246
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
247
+ /**
248
+ * @see {@link UpdateMaxRecordSizeCommand}
249
+ */
250
+ updateMaxRecordSize(args: UpdateMaxRecordSizeCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMaxRecordSizeCommandOutput>;
251
+ updateMaxRecordSize(args: UpdateMaxRecordSizeCommandInput, cb: (err: any, data?: UpdateMaxRecordSizeCommandOutput) => void): void;
252
+ updateMaxRecordSize(args: UpdateMaxRecordSizeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMaxRecordSizeCommandOutput) => void): void;
246
253
  /**
247
254
  * @see {@link UpdateShardCountCommand}
248
255
  */
@@ -41,6 +41,7 @@ import { StopStreamEncryptionCommandInput, StopStreamEncryptionCommandOutput } f
41
41
  import { SubscribeToShardCommandInput, SubscribeToShardCommandOutput } from "./commands/SubscribeToShardCommand";
42
42
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
43
43
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
44
+ import { UpdateMaxRecordSizeCommandInput, UpdateMaxRecordSizeCommandOutput } from "./commands/UpdateMaxRecordSizeCommand";
44
45
  import { UpdateShardCountCommandInput, UpdateShardCountCommandOutput } from "./commands/UpdateShardCountCommand";
45
46
  import { UpdateStreamModeCommandInput, UpdateStreamModeCommandOutput } from "./commands/UpdateStreamModeCommand";
46
47
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -49,11 +50,11 @@ export { __Client };
49
50
  /**
50
51
  * @public
51
52
  */
52
- export type ServiceInputTypes = AddTagsToStreamCommandInput | CreateStreamCommandInput | DecreaseStreamRetentionPeriodCommandInput | DeleteResourcePolicyCommandInput | DeleteStreamCommandInput | DeregisterStreamConsumerCommandInput | DescribeLimitsCommandInput | DescribeStreamCommandInput | DescribeStreamConsumerCommandInput | DescribeStreamSummaryCommandInput | DisableEnhancedMonitoringCommandInput | EnableEnhancedMonitoringCommandInput | GetRecordsCommandInput | GetResourcePolicyCommandInput | GetShardIteratorCommandInput | IncreaseStreamRetentionPeriodCommandInput | ListShardsCommandInput | ListStreamConsumersCommandInput | ListStreamsCommandInput | ListTagsForResourceCommandInput | ListTagsForStreamCommandInput | MergeShardsCommandInput | PutRecordCommandInput | PutRecordsCommandInput | PutResourcePolicyCommandInput | RegisterStreamConsumerCommandInput | RemoveTagsFromStreamCommandInput | SplitShardCommandInput | StartStreamEncryptionCommandInput | StopStreamEncryptionCommandInput | SubscribeToShardCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateShardCountCommandInput | UpdateStreamModeCommandInput;
53
+ export type ServiceInputTypes = AddTagsToStreamCommandInput | CreateStreamCommandInput | DecreaseStreamRetentionPeriodCommandInput | DeleteResourcePolicyCommandInput | DeleteStreamCommandInput | DeregisterStreamConsumerCommandInput | DescribeLimitsCommandInput | DescribeStreamCommandInput | DescribeStreamConsumerCommandInput | DescribeStreamSummaryCommandInput | DisableEnhancedMonitoringCommandInput | EnableEnhancedMonitoringCommandInput | GetRecordsCommandInput | GetResourcePolicyCommandInput | GetShardIteratorCommandInput | IncreaseStreamRetentionPeriodCommandInput | ListShardsCommandInput | ListStreamConsumersCommandInput | ListStreamsCommandInput | ListTagsForResourceCommandInput | ListTagsForStreamCommandInput | MergeShardsCommandInput | PutRecordCommandInput | PutRecordsCommandInput | PutResourcePolicyCommandInput | RegisterStreamConsumerCommandInput | RemoveTagsFromStreamCommandInput | SplitShardCommandInput | StartStreamEncryptionCommandInput | StopStreamEncryptionCommandInput | SubscribeToShardCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMaxRecordSizeCommandInput | UpdateShardCountCommandInput | UpdateStreamModeCommandInput;
53
54
  /**
54
55
  * @public
55
56
  */
56
- export type ServiceOutputTypes = AddTagsToStreamCommandOutput | CreateStreamCommandOutput | DecreaseStreamRetentionPeriodCommandOutput | DeleteResourcePolicyCommandOutput | DeleteStreamCommandOutput | DeregisterStreamConsumerCommandOutput | DescribeLimitsCommandOutput | DescribeStreamCommandOutput | DescribeStreamConsumerCommandOutput | DescribeStreamSummaryCommandOutput | DisableEnhancedMonitoringCommandOutput | EnableEnhancedMonitoringCommandOutput | GetRecordsCommandOutput | GetResourcePolicyCommandOutput | GetShardIteratorCommandOutput | IncreaseStreamRetentionPeriodCommandOutput | ListShardsCommandOutput | ListStreamConsumersCommandOutput | ListStreamsCommandOutput | ListTagsForResourceCommandOutput | ListTagsForStreamCommandOutput | MergeShardsCommandOutput | PutRecordCommandOutput | PutRecordsCommandOutput | PutResourcePolicyCommandOutput | RegisterStreamConsumerCommandOutput | RemoveTagsFromStreamCommandOutput | SplitShardCommandOutput | StartStreamEncryptionCommandOutput | StopStreamEncryptionCommandOutput | SubscribeToShardCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateShardCountCommandOutput | UpdateStreamModeCommandOutput;
57
+ export type ServiceOutputTypes = AddTagsToStreamCommandOutput | CreateStreamCommandOutput | DecreaseStreamRetentionPeriodCommandOutput | DeleteResourcePolicyCommandOutput | DeleteStreamCommandOutput | DeregisterStreamConsumerCommandOutput | DescribeLimitsCommandOutput | DescribeStreamCommandOutput | DescribeStreamConsumerCommandOutput | DescribeStreamSummaryCommandOutput | DisableEnhancedMonitoringCommandOutput | EnableEnhancedMonitoringCommandOutput | GetRecordsCommandOutput | GetResourcePolicyCommandOutput | GetShardIteratorCommandOutput | IncreaseStreamRetentionPeriodCommandOutput | ListShardsCommandOutput | ListStreamConsumersCommandOutput | ListStreamsCommandOutput | ListTagsForResourceCommandOutput | ListTagsForStreamCommandOutput | MergeShardsCommandOutput | PutRecordCommandOutput | PutRecordsCommandOutput | PutResourcePolicyCommandOutput | RegisterStreamConsumerCommandOutput | RemoveTagsFromStreamCommandOutput | SplitShardCommandOutput | StartStreamEncryptionCommandOutput | StopStreamEncryptionCommandOutput | SubscribeToShardCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMaxRecordSizeCommandOutput | UpdateShardCountCommandOutput | UpdateStreamModeCommandOutput;
57
58
  /**
58
59
  * @public
59
60
  */
@@ -89,6 +89,7 @@ declare const CreateStreamCommand_base: {
89
89
  * Tags: { // TagMap
90
90
  * "<keys>": "STRING_VALUE",
91
91
  * },
92
+ * MaxRecordSizeInKiB: Number("int"),
92
93
  * };
93
94
  * const command = new CreateStreamCommand(input);
94
95
  * const response = await client.send(command);
@@ -75,6 +75,7 @@ declare const DescribeStreamSummaryCommand_base: {
75
75
  * // KeyId: "STRING_VALUE",
76
76
  * // OpenShardCount: Number("int"), // required
77
77
  * // ConsumerCount: Number("int"),
78
+ * // MaxRecordSizeInKiB: Number("int"),
78
79
  * // },
79
80
  * // };
80
81
  *
@@ -30,7 +30,7 @@ declare const PutRecordCommand_base: {
30
30
  * <p>Writes a single data record into an Amazon Kinesis data stream. Call
31
31
  * <code>PutRecord</code> to send data into the stream for real-time ingestion and
32
32
  * subsequent processing, one record at a time. Each shard can support writes up to 1,000
33
- * records per second, up to a maximum data write total of 1 MiB per second.</p>
33
+ * records per second, up to a maximum data write total of 10 MiB per second.</p>
34
34
  * <note>
35
35
  * <p>When invoking this API, you must use either the <code>StreamARN</code> or the
36
36
  * <code>StreamName</code> parameter, or both. It is recommended that you use the
@@ -36,9 +36,9 @@ declare const PutRecordsCommand_base: {
36
36
  * <code>StreamARN</code> input parameter when you invoke this API.</p>
37
37
  * </note>
38
38
  * <p>Each <code>PutRecords</code> request can support up to 500 records. Each record in the
39
- * request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request,
39
+ * request can be as large as 10 MiB, up to a limit of 10 MiB for the entire request,
40
40
  * including partition keys. Each shard can support writes up to 1,000 records per second,
41
- * up to a maximum data write total of 1 MiB per second.</p>
41
+ * up to a maximum data write total of 1 MB per second.</p>
42
42
  * <p>You must specify the name of the stream that captures, stores, and transports the
43
43
  * data; and an array of request <code>Records</code>, with each record in the array
44
44
  * requiring a partition key and data blob. The record size limit applies to the total size
@@ -0,0 +1,98 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { KinesisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisClient";
4
+ import { UpdateMaxRecordSizeInput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateMaxRecordSizeCommand}.
14
+ */
15
+ export interface UpdateMaxRecordSizeCommandInput extends UpdateMaxRecordSizeInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateMaxRecordSizeCommand}.
21
+ */
22
+ export interface UpdateMaxRecordSizeCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const UpdateMaxRecordSizeCommand_base: {
25
+ new (input: UpdateMaxRecordSizeCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateMaxRecordSizeCommandInput, UpdateMaxRecordSizeCommandOutput, KinesisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateMaxRecordSizeCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateMaxRecordSizeCommandInput, UpdateMaxRecordSizeCommandOutput, KinesisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>This allows you to update the <code>MaxRecordSize</code> of a single record that you can write to, and read from a stream. You can ingest and digest single records up to 10240 KiB.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KinesisClient, UpdateMaxRecordSizeCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
35
+ * // const { KinesisClient, UpdateMaxRecordSizeCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
36
+ * // import type { KinesisClientConfig } from "@aws-sdk/client-kinesis";
37
+ * const config = {}; // type is KinesisClientConfig
38
+ * const client = new KinesisClient(config);
39
+ * const input = { // UpdateMaxRecordSizeInput
40
+ * StreamARN: "STRING_VALUE",
41
+ * MaxRecordSizeInKiB: Number("int"), // required
42
+ * };
43
+ * const command = new UpdateMaxRecordSizeCommand(input);
44
+ * const response = await client.send(command);
45
+ * // {};
46
+ *
47
+ * ```
48
+ *
49
+ * @param UpdateMaxRecordSizeCommandInput - {@link UpdateMaxRecordSizeCommandInput}
50
+ * @returns {@link UpdateMaxRecordSizeCommandOutput}
51
+ * @see {@link UpdateMaxRecordSizeCommandInput} for command's `input` shape.
52
+ * @see {@link UpdateMaxRecordSizeCommandOutput} for command's `response` shape.
53
+ * @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>Specifies that you do not have the permissions required to perform this
57
+ * operation.</p>
58
+ *
59
+ * @throws {@link InvalidArgumentException} (client fault)
60
+ * <p>A specified parameter exceeds its restrictions, is not supported, or can't be used.
61
+ * For more information, see the returned message.</p>
62
+ *
63
+ * @throws {@link LimitExceededException} (client fault)
64
+ * <p>The requested resource exceeds the maximum number allowed, or the number of concurrent
65
+ * stream requests exceeds the maximum number allowed. </p>
66
+ *
67
+ * @throws {@link ResourceInUseException} (client fault)
68
+ * <p>The resource is not available for this operation. For successful operation, the
69
+ * resource must be in the <code>ACTIVE</code> state.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>The requested resource could not be found. The stream might not be specified
73
+ * correctly.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p>Specifies that you tried to invoke this API for a data stream with the on-demand
77
+ * capacity mode. This API is only supported for data streams with the provisioned capacity
78
+ * mode. </p>
79
+ *
80
+ * @throws {@link KinesisServiceException}
81
+ * <p>Base exception class for all service exceptions from Kinesis service.</p>
82
+ *
83
+ *
84
+ * @public
85
+ */
86
+ export declare class UpdateMaxRecordSizeCommand extends UpdateMaxRecordSizeCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: UpdateMaxRecordSizeInput;
91
+ output: {};
92
+ };
93
+ sdk: {
94
+ input: UpdateMaxRecordSizeCommandInput;
95
+ output: UpdateMaxRecordSizeCommandOutput;
96
+ };
97
+ };
98
+ }
@@ -31,5 +31,6 @@ export * from "./StopStreamEncryptionCommand";
31
31
  export * from "./SubscribeToShardCommand";
32
32
  export * from "./TagResourceCommand";
33
33
  export * from "./UntagResourceCommand";
34
+ export * from "./UpdateMaxRecordSizeCommand";
34
35
  export * from "./UpdateShardCountCommand";
35
36
  export * from "./UpdateStreamModeCommand";
@@ -268,6 +268,11 @@ export interface CreateStreamInput {
268
268
  * @public
269
269
  */
270
270
  Tags?: Record<string, string> | undefined;
271
+ /**
272
+ * <p>The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream.</p>
273
+ * @public
274
+ */
275
+ MaxRecordSizeInKiB?: number | undefined;
271
276
  }
272
277
  /**
273
278
  * <p>Represents the input for <a>DecreaseStreamRetentionPeriod</a>.</p>
@@ -885,6 +890,11 @@ export interface StreamDescriptionSummary {
885
890
  * @public
886
891
  */
887
892
  ConsumerCount?: number | undefined;
893
+ /**
894
+ * <p>The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream.</p>
895
+ * @public
896
+ */
897
+ MaxRecordSizeInKiB?: number | undefined;
888
898
  }
889
899
  /**
890
900
  * @public
@@ -2726,6 +2736,21 @@ export interface UntagResourceInput {
2726
2736
  */
2727
2737
  ResourceARN: string | undefined;
2728
2738
  }
2739
+ /**
2740
+ * @public
2741
+ */
2742
+ export interface UpdateMaxRecordSizeInput {
2743
+ /**
2744
+ * <p>The Amazon Resource Name (ARN) of the stream for the <code>MaxRecordSize</code> update.</p>
2745
+ * @public
2746
+ */
2747
+ StreamARN?: string | undefined;
2748
+ /**
2749
+ * <p>The maximum record size of a single record in KiB that you can write to, and read from a stream. Specify a value between 1024 and 10240 KiB (1 to 10 MiB). If you specify a value that is out of this range, <code>UpdateMaxRecordSize</code> sends back an <code>ValidationException</code> message.</p>
2750
+ * @public
2751
+ */
2752
+ MaxRecordSizeInKiB: number | undefined;
2753
+ }
2729
2754
  /**
2730
2755
  * @public
2731
2756
  * @enum
@@ -33,6 +33,7 @@ import { StopStreamEncryptionCommandInput, StopStreamEncryptionCommandOutput } f
33
33
  import { SubscribeToShardCommandInput, SubscribeToShardCommandOutput } from "../commands/SubscribeToShardCommand";
34
34
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
35
35
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
36
+ import { UpdateMaxRecordSizeCommandInput, UpdateMaxRecordSizeCommandOutput } from "../commands/UpdateMaxRecordSizeCommand";
36
37
  import { UpdateShardCountCommandInput, UpdateShardCountCommandOutput } from "../commands/UpdateShardCountCommand";
37
38
  import { UpdateStreamModeCommandInput, UpdateStreamModeCommandOutput } from "../commands/UpdateStreamModeCommand";
38
39
  /**
@@ -167,6 +168,10 @@ export declare const se_TagResourceCommand: (input: TagResourceCommandInput, con
167
168
  * serializeAws_json1_1UntagResourceCommand
168
169
  */
169
170
  export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
171
+ /**
172
+ * serializeAws_json1_1UpdateMaxRecordSizeCommand
173
+ */
174
+ export declare const se_UpdateMaxRecordSizeCommand: (input: UpdateMaxRecordSizeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
170
175
  /**
171
176
  * serializeAws_json1_1UpdateShardCountCommand
172
177
  */
@@ -307,6 +312,10 @@ export declare const de_TagResourceCommand: (output: __HttpResponse, context: __
307
312
  * deserializeAws_json1_1UntagResourceCommand
308
313
  */
309
314
  export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
315
+ /**
316
+ * deserializeAws_json1_1UpdateMaxRecordSizeCommand
317
+ */
318
+ export declare const de_UpdateMaxRecordSizeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateMaxRecordSizeCommandOutput>;
310
319
  /**
311
320
  * deserializeAws_json1_1UpdateShardCountCommand
312
321
  */
@@ -131,6 +131,10 @@ import {
131
131
  UntagResourceCommandInput,
132
132
  UntagResourceCommandOutput,
133
133
  } from "./commands/UntagResourceCommand";
134
+ import {
135
+ UpdateMaxRecordSizeCommandInput,
136
+ UpdateMaxRecordSizeCommandOutput,
137
+ } from "./commands/UpdateMaxRecordSizeCommand";
134
138
  import {
135
139
  UpdateShardCountCommandInput,
136
140
  UpdateShardCountCommandOutput,
@@ -579,6 +583,19 @@ export interface Kinesis {
579
583
  options: __HttpHandlerOptions,
580
584
  cb: (err: any, data?: UntagResourceCommandOutput) => void
581
585
  ): void;
586
+ updateMaxRecordSize(
587
+ args: UpdateMaxRecordSizeCommandInput,
588
+ options?: __HttpHandlerOptions
589
+ ): Promise<UpdateMaxRecordSizeCommandOutput>;
590
+ updateMaxRecordSize(
591
+ args: UpdateMaxRecordSizeCommandInput,
592
+ cb: (err: any, data?: UpdateMaxRecordSizeCommandOutput) => void
593
+ ): void;
594
+ updateMaxRecordSize(
595
+ args: UpdateMaxRecordSizeCommandInput,
596
+ options: __HttpHandlerOptions,
597
+ cb: (err: any, data?: UpdateMaxRecordSizeCommandOutput) => void
598
+ ): void;
582
599
  updateShardCount(
583
600
  args: UpdateShardCountCommandInput,
584
601
  options?: __HttpHandlerOptions
@@ -182,6 +182,10 @@ import {
182
182
  UntagResourceCommandInput,
183
183
  UntagResourceCommandOutput,
184
184
  } from "./commands/UntagResourceCommand";
185
+ import {
186
+ UpdateMaxRecordSizeCommandInput,
187
+ UpdateMaxRecordSizeCommandOutput,
188
+ } from "./commands/UpdateMaxRecordSizeCommand";
185
189
  import {
186
190
  UpdateShardCountCommandInput,
187
191
  UpdateShardCountCommandOutput,
@@ -231,6 +235,7 @@ export type ServiceInputTypes =
231
235
  | SubscribeToShardCommandInput
232
236
  | TagResourceCommandInput
233
237
  | UntagResourceCommandInput
238
+ | UpdateMaxRecordSizeCommandInput
234
239
  | UpdateShardCountCommandInput
235
240
  | UpdateStreamModeCommandInput;
236
241
  export type ServiceOutputTypes =
@@ -267,6 +272,7 @@ export type ServiceOutputTypes =
267
272
  | SubscribeToShardCommandOutput
268
273
  | TagResourceCommandOutput
269
274
  | UntagResourceCommandOutput
275
+ | UpdateMaxRecordSizeCommandOutput
270
276
  | UpdateShardCountCommandOutput
271
277
  | UpdateStreamModeCommandOutput;
272
278
  export interface ClientDefaults
@@ -0,0 +1,46 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ KinesisClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../KinesisClient";
8
+ import { UpdateMaxRecordSizeInput } from "../models/models_0";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface UpdateMaxRecordSizeCommandInput
12
+ extends UpdateMaxRecordSizeInput {}
13
+ export interface UpdateMaxRecordSizeCommandOutput extends __MetadataBearer {}
14
+ declare const UpdateMaxRecordSizeCommand_base: {
15
+ new (
16
+ input: UpdateMaxRecordSizeCommandInput
17
+ ): import("@smithy/smithy-client").CommandImpl<
18
+ UpdateMaxRecordSizeCommandInput,
19
+ UpdateMaxRecordSizeCommandOutput,
20
+ KinesisClientResolvedConfig,
21
+ ServiceInputTypes,
22
+ ServiceOutputTypes
23
+ >;
24
+ new (
25
+ input: UpdateMaxRecordSizeCommandInput
26
+ ): import("@smithy/smithy-client").CommandImpl<
27
+ UpdateMaxRecordSizeCommandInput,
28
+ UpdateMaxRecordSizeCommandOutput,
29
+ KinesisClientResolvedConfig,
30
+ ServiceInputTypes,
31
+ ServiceOutputTypes
32
+ >;
33
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
34
+ };
35
+ export declare class UpdateMaxRecordSizeCommand extends UpdateMaxRecordSizeCommand_base {
36
+ protected static __types: {
37
+ api: {
38
+ input: UpdateMaxRecordSizeInput;
39
+ output: {};
40
+ };
41
+ sdk: {
42
+ input: UpdateMaxRecordSizeCommandInput;
43
+ output: UpdateMaxRecordSizeCommandOutput;
44
+ };
45
+ };
46
+ }
@@ -31,5 +31,6 @@ export * from "./StopStreamEncryptionCommand";
31
31
  export * from "./SubscribeToShardCommand";
32
32
  export * from "./TagResourceCommand";
33
33
  export * from "./UntagResourceCommand";
34
+ export * from "./UpdateMaxRecordSizeCommand";
34
35
  export * from "./UpdateShardCountCommand";
35
36
  export * from "./UpdateStreamModeCommand";
@@ -82,6 +82,7 @@ export interface CreateStreamInput {
82
82
  ShardCount?: number | undefined;
83
83
  StreamModeDetails?: StreamModeDetails | undefined;
84
84
  Tags?: Record<string, string> | undefined;
85
+ MaxRecordSizeInKiB?: number | undefined;
85
86
  }
86
87
  export interface DecreaseStreamRetentionPeriodInput {
87
88
  StreamName?: string | undefined;
@@ -192,6 +193,7 @@ export interface StreamDescriptionSummary {
192
193
  KeyId?: string | undefined;
193
194
  OpenShardCount: number | undefined;
194
195
  ConsumerCount?: number | undefined;
196
+ MaxRecordSizeInKiB?: number | undefined;
195
197
  }
196
198
  export interface DescribeStreamSummaryOutput {
197
199
  StreamDescriptionSummary: StreamDescriptionSummary | undefined;
@@ -691,6 +693,10 @@ export interface UntagResourceInput {
691
693
  TagKeys: string[] | undefined;
692
694
  ResourceARN: string | undefined;
693
695
  }
696
+ export interface UpdateMaxRecordSizeInput {
697
+ StreamARN?: string | undefined;
698
+ MaxRecordSizeInKiB: number | undefined;
699
+ }
694
700
  export declare const ScalingType: {
695
701
  readonly UNIFORM_SCALING: "UNIFORM_SCALING";
696
702
  };
@@ -138,6 +138,10 @@ import {
138
138
  UntagResourceCommandInput,
139
139
  UntagResourceCommandOutput,
140
140
  } from "../commands/UntagResourceCommand";
141
+ import {
142
+ UpdateMaxRecordSizeCommandInput,
143
+ UpdateMaxRecordSizeCommandOutput,
144
+ } from "../commands/UpdateMaxRecordSizeCommand";
141
145
  import {
142
146
  UpdateShardCountCommandInput,
143
147
  UpdateShardCountCommandOutput,
@@ -278,6 +282,10 @@ export declare const se_UntagResourceCommand: (
278
282
  input: UntagResourceCommandInput,
279
283
  context: __SerdeContext
280
284
  ) => Promise<__HttpRequest>;
285
+ export declare const se_UpdateMaxRecordSizeCommand: (
286
+ input: UpdateMaxRecordSizeCommandInput,
287
+ context: __SerdeContext
288
+ ) => Promise<__HttpRequest>;
281
289
  export declare const se_UpdateShardCountCommand: (
282
290
  input: UpdateShardCountCommandInput,
283
291
  context: __SerdeContext
@@ -418,6 +426,10 @@ export declare const de_UntagResourceCommand: (
418
426
  output: __HttpResponse,
419
427
  context: __SerdeContext
420
428
  ) => Promise<UntagResourceCommandOutput>;
429
+ export declare const de_UpdateMaxRecordSizeCommand: (
430
+ output: __HttpResponse,
431
+ context: __SerdeContext
432
+ ) => Promise<UpdateMaxRecordSizeCommandOutput>;
421
433
  export declare const de_UpdateShardCountCommand: (
422
434
  output: __HttpResponse,
423
435
  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.916.0",
4
+ "version": "3.918.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kinesis",
@@ -23,7 +23,7 @@
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
25
  "@aws-sdk/core": "3.916.0",
26
- "@aws-sdk/credential-provider-node": "3.916.0",
26
+ "@aws-sdk/credential-provider-node": "3.918.0",
27
27
  "@aws-sdk/middleware-host-header": "3.914.0",
28
28
  "@aws-sdk/middleware-logger": "3.914.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.914.0",