@aws-sdk/client-kinesis 3.654.0 → 3.658.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.
@@ -71,6 +71,11 @@ declare const CreateStreamCommand_base: {
71
71
  * <p>
72
72
  * <a>CreateStream</a> has a limit of five transactions per second per
73
73
  * account.</p>
74
+ * <p>You can add tags to the stream when making a <code>CreateStream</code> request by
75
+ * setting the <code>Tags</code> parameter. If you pass <code>Tags</code> parameter, in
76
+ * addition to having <code>kinesis:createStream</code> permission, you must also have
77
+ * <code>kinesis:addTagsToStream</code> permission for the stream that will be created.
78
+ * Tags will take effect from the <code>CREATING</code> status of the stream. </p>
74
79
  * @example
75
80
  * Use a bare-bones client and the command you need to make an API call.
76
81
  * ```javascript
@@ -83,6 +88,9 @@ declare const CreateStreamCommand_base: {
83
88
  * StreamModeDetails: { // StreamModeDetails
84
89
  * StreamMode: "PROVISIONED" || "ON_DEMAND", // required
85
90
  * },
91
+ * Tags: { // TagMap
92
+ * "<keys>": "STRING_VALUE",
93
+ * },
86
94
  * };
87
95
  * const command = new CreateStreamCommand(input);
88
96
  * const response = await client.send(command);
@@ -73,6 +73,10 @@ declare const GetResourcePolicyCommand_base: {
73
73
  * <p>The requested resource exceeds the maximum number allowed, or the number of concurrent
74
74
  * stream requests exceeds the maximum number allowed. </p>
75
75
  *
76
+ * @throws {@link ResourceInUseException} (client fault)
77
+ * <p>The resource is not available for this operation. For successful operation, the
78
+ * resource must be in the <code>ACTIVE</code> state.</p>
79
+ *
76
80
  * @throws {@link ResourceNotFoundException} (client fault)
77
81
  * <p>The requested resource could not be found. The stream might not be specified
78
82
  * correctly.</p>
@@ -34,7 +34,7 @@ declare const RegisterStreamConsumerCommand_base: {
34
34
  * read from the same stream.</p>
35
35
  * <p>You can register up to 20 consumers per stream. A given consumer can only be
36
36
  * registered with one stream at a time.</p>
37
- * <p>For an example of how to use this operations, see <a href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
37
+ * <p>For an example of how to use this operation, see <a href="https://docs.aws.amazon.com/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
38
38
  * Using the Kinesis Data Streams API</a>.</p>
39
39
  * <p>The use of this operation has a limit of five transactions per second per account.
40
40
  * Also, only 5 consumers can be created simultaneously. In other words, you cannot have
@@ -48,7 +48,7 @@ declare const SubscribeToShardCommand_base: {
48
48
  * seconds or more after a successful call, the second call takes over the subscription and
49
49
  * the previous connection expires or fails with a
50
50
  * <code>ResourceInUseException</code>.</p>
51
- * <p>For an example of how to use this operations, see <a href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
51
+ * <p>For an example of how to use this operation, see <a href="https://docs.aws.amazon.com/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
52
52
  * Using the Kinesis Data Streams API</a>.</p>
53
53
  * @example
54
54
  * Use a bare-bones client and the command you need to make an API call.
@@ -263,6 +263,11 @@ export interface CreateStreamInput {
263
263
  * @public
264
264
  */
265
265
  StreamModeDetails?: StreamModeDetails;
266
+ /**
267
+ * <p>A set of up to 10 key-value pairs to use to create the tags.</p>
268
+ * @public
269
+ */
270
+ Tags?: Record<string, string>;
266
271
  }
267
272
  /**
268
273
  * <p>Represents the input for <a>DecreaseStreamRetentionPeriod</a>.</p>
@@ -81,6 +81,7 @@ export interface CreateStreamInput {
81
81
  StreamName: string | undefined;
82
82
  ShardCount?: number;
83
83
  StreamModeDetails?: StreamModeDetails;
84
+ Tags?: Record<string, string>;
84
85
  }
85
86
  export interface DecreaseStreamRetentionPeriodInput {
86
87
  StreamName?: string;
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.654.0",
4
+ "version": "3.658.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",
@@ -21,10 +21,10 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/client-sso-oidc": "3.654.0",
25
- "@aws-sdk/client-sts": "3.654.0",
26
- "@aws-sdk/core": "3.654.0",
27
- "@aws-sdk/credential-provider-node": "3.654.0",
24
+ "@aws-sdk/client-sso-oidc": "3.658.0",
25
+ "@aws-sdk/client-sts": "3.658.0",
26
+ "@aws-sdk/core": "3.658.0",
27
+ "@aws-sdk/credential-provider-node": "3.658.0",
28
28
  "@aws-sdk/middleware-host-header": "3.654.0",
29
29
  "@aws-sdk/middleware-logger": "3.654.0",
30
30
  "@aws-sdk/middleware-recursion-detection": "3.654.0",