@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
@@ -0,0 +1,109 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { KinesisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisClient";
5
+ import { PutResourcePolicyInput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutResourcePolicyCommand}.
14
+ */
15
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutResourcePolicyCommand}.
21
+ */
22
+ export interface PutResourcePolicyCommandOutput extends __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Attaches a resource-based policy to a data stream or registered consumer. If you are using an identity other than the root user of
27
+ * the Amazon Web Services account that owns the resource, the calling identity must have the <code>PutResourcePolicy</code> permissions on the
28
+ * specified Kinesis Data Streams resource and belong to the owner's account in order to use this operation.
29
+ * If you don't have <code>PutResourcePolicy</code> permissions, Amazon Kinesis Data Streams returns a <code>403 Access Denied error</code>.
30
+ * If you receive a <code>ResourceNotFoundException</code>, check to see if you passed a valid stream or consumer resource.
31
+ * </p>
32
+ * <p> Request patterns can be one of the following:</p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>Data stream pattern: <code>arn:aws.*:kinesis:.*:\d\{12\}:.*stream/\S+</code>
36
+ * </p>
37
+ * </li>
38
+ * <li>
39
+ * <p>Consumer pattern: <code>^(arn):aws.*:kinesis:.*:\d\{12\}:.*stream\/[a-zA-Z0-9_.-]+\/consumer\/[a-zA-Z0-9_.-]+:[0-9]+</code>
40
+ * </p>
41
+ * </li>
42
+ * </ul>
43
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html">Controlling Access to Amazon Kinesis Data Streams Resources Using IAM</a>.</p>
44
+ * @example
45
+ * Use a bare-bones client and the command you need to make an API call.
46
+ * ```javascript
47
+ * import { KinesisClient, PutResourcePolicyCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
48
+ * // const { KinesisClient, PutResourcePolicyCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
49
+ * const client = new KinesisClient(config);
50
+ * const input = { // PutResourcePolicyInput
51
+ * ResourceARN: "STRING_VALUE", // required
52
+ * Policy: "STRING_VALUE", // required
53
+ * };
54
+ * const command = new PutResourcePolicyCommand(input);
55
+ * const response = await client.send(command);
56
+ * // {};
57
+ *
58
+ * ```
59
+ *
60
+ * @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
61
+ * @returns {@link PutResourcePolicyCommandOutput}
62
+ * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
63
+ * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
64
+ * @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * <p>Specifies that you do not have the permissions required to perform this
68
+ * operation.</p>
69
+ *
70
+ * @throws {@link InvalidArgumentException} (client fault)
71
+ * <p>A specified parameter exceeds its restrictions, is not supported, or can't be used.
72
+ * For more information, see the returned message.</p>
73
+ *
74
+ * @throws {@link LimitExceededException} (client fault)
75
+ * <p>The requested resource exceeds the maximum number allowed, or the number of concurrent
76
+ * stream requests exceeds the maximum number allowed. </p>
77
+ *
78
+ * @throws {@link ResourceInUseException} (client fault)
79
+ * <p>The resource is not available for this operation. For successful operation, the
80
+ * resource must be in the <code>ACTIVE</code> state.</p>
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * <p>The requested resource could not be found. The stream might not be specified
84
+ * correctly.</p>
85
+ *
86
+ * @throws {@link KinesisServiceException}
87
+ * <p>Base exception class for all service exceptions from Kinesis service.</p>
88
+ *
89
+ */
90
+ export declare class PutResourcePolicyCommand extends $Command<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, KinesisClientResolvedConfig> {
91
+ readonly input: PutResourcePolicyCommandInput;
92
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
93
+ /**
94
+ * @public
95
+ */
96
+ constructor(input: PutResourcePolicyCommandInput);
97
+ /**
98
+ * @internal
99
+ */
100
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput>;
101
+ /**
102
+ * @internal
103
+ */
104
+ private serialize;
105
+ /**
106
+ * @internal
107
+ */
108
+ private deserialize;
109
+ }
@@ -26,8 +26,9 @@ export interface RemoveTagsFromStreamCommandOutput extends __MetadataBearer {
26
26
  * <p>Removes tags from the specified Kinesis data stream. Removed tags are deleted and
27
27
  * cannot be recovered after this operation successfully completes.</p>
28
28
  * <note>
29
- * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
30
- * parameter rather than the <code>StreamName</code> input parameter.</p>
29
+ * <p>When invoking this API, you must use either the <code>StreamARN</code> or the
30
+ * <code>StreamName</code> parameter, or both. It is recommended that you use the
31
+ * <code>StreamARN</code> input parameter when you invoke this API.</p>
31
32
  * </note>
32
33
  * <p>If you specify a tag that does not exist, it is ignored.</p>
33
34
  * <p>
@@ -29,8 +29,9 @@ export interface SplitShardCommandOutput extends __MetadataBearer {
29
29
  * increase in the volume of data records being ingested. This API is only supported for
30
30
  * the data streams with the provisioned capacity mode.</p>
31
31
  * <note>
32
- * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
33
- * parameter rather than the <code>StreamName</code> input parameter.</p>
32
+ * <p>When invoking this API, you must use either the <code>StreamARN</code> or the
33
+ * <code>StreamName</code> parameter, or both. It is recommended that you use the
34
+ * <code>StreamARN</code> input parameter when you invoke this API.</p>
34
35
  * </note>
35
36
  * <p>You can also use <code>SplitShard</code> when a shard appears to be approaching its
36
37
  * maximum utilization; for example, the producers sending data into the specific shard are
@@ -25,6 +25,11 @@ export interface StartStreamEncryptionCommandOutput extends __MetadataBearer {
25
25
  * @public
26
26
  * <p>Enables or updates server-side encryption using an Amazon Web Services KMS key for a
27
27
  * specified stream. </p>
28
+ * <note>
29
+ * <p>When invoking this API, you must use either the <code>StreamARN</code> or the
30
+ * <code>StreamName</code> parameter, or both. It is recommended that you use the
31
+ * <code>StreamARN</code> input parameter when you invoke this API.</p>
32
+ * </note>
28
33
  * <p>Starting encryption is an asynchronous operation. Upon receiving the request, Kinesis
29
34
  * Data Streams returns immediately and sets the status of the stream to
30
35
  * <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
@@ -39,10 +44,6 @@ export interface StartStreamEncryptionCommandOutput extends __MetadataBearer {
39
44
  * before all records written to the stream are encrypted. After you enable encryption, you
40
45
  * can verify that encryption is applied by inspecting the API response from
41
46
  * <code>PutRecord</code> or <code>PutRecords</code>.</p>
42
- * <note>
43
- * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
44
- * parameter rather than the <code>StreamName</code> input parameter.</p>
45
- * </note>
46
47
  * @example
47
48
  * Use a bare-bones client and the command you need to make an API call.
48
49
  * ```javascript
@@ -25,8 +25,9 @@ export interface StopStreamEncryptionCommandOutput extends __MetadataBearer {
25
25
  * @public
26
26
  * <p>Disables server-side encryption for a specified stream. </p>
27
27
  * <note>
28
- * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
29
- * parameter rather than the <code>StreamName</code> input parameter.</p>
28
+ * <p>When invoking this API, you must use either the <code>StreamARN</code> or the
29
+ * <code>StreamName</code> parameter, or both. It is recommended that you use the
30
+ * <code>StreamARN</code> input parameter when you invoke this API.</p>
30
31
  * </note>
31
32
  * <p>Stopping encryption is an asynchronous operation. Upon receiving the request, Kinesis
32
33
  * Data Streams returns immediately and sets the status of the stream to
@@ -27,8 +27,9 @@ export interface UpdateShardCountCommandOutput extends UpdateShardCountOutput, _
27
27
  * This API is only supported for the data streams with the provisioned capacity
28
28
  * mode.</p>
29
29
  * <note>
30
- * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
31
- * parameter rather than the <code>StreamName</code> input parameter.</p>
30
+ * <p>When invoking this API, you must use either the <code>StreamARN</code> or the
31
+ * <code>StreamName</code> parameter, or both. It is recommended that you use the
32
+ * <code>StreamARN</code> input parameter when you invoke this API.</p>
32
33
  * </note>
33
34
  * <p>Updating the shard count is an asynchronous operation. Upon receiving the request,
34
35
  * Kinesis Data Streams returns immediately and sets the status of the stream to
@@ -66,6 +67,9 @@ export interface UpdateShardCountCommandOutput extends UpdateShardCountOutput, _
66
67
  * <li>
67
68
  * <p>Scale up to more than the shard limit for your account</p>
68
69
  * </li>
70
+ * <li>
71
+ * <p>Make over 10 TPS. TPS over 10 will trigger the LimitExceededException</p>
72
+ * </li>
69
73
  * </ul>
70
74
  * <p>For the default limits for an Amazon Web Services account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Streams
71
75
  * Limits</a> in the <i>Amazon Kinesis Data Streams Developer
@@ -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";
@@ -22,4 +22,5 @@ export interface EndpointParameters extends __EndpointParameters {
22
22
  StreamARN?: string;
23
23
  OperationType?: string;
24
24
  ConsumerARN?: string;
25
+ ResourceARN?: string;
25
26
  }
@@ -286,6 +286,16 @@ export interface DecreaseStreamRetentionPeriodInput {
286
286
  */
287
287
  StreamARN?: string;
288
288
  }
289
+ /**
290
+ * @public
291
+ */
292
+ export interface DeleteResourcePolicyInput {
293
+ /**
294
+ * @public
295
+ * <p>The Amazon Resource Name (ARN) of the data stream or consumer.</p>
296
+ */
297
+ ResourceARN: string | undefined;
298
+ }
289
299
  /**
290
300
  * @public
291
301
  * <p>Represents the input for <a>DeleteStream</a>.</p>
@@ -1271,6 +1281,26 @@ export declare class ProvisionedThroughputExceededException extends __BaseExcept
1271
1281
  */
1272
1282
  constructor(opts: __ExceptionOptionType<ProvisionedThroughputExceededException, __BaseException>);
1273
1283
  }
1284
+ /**
1285
+ * @public
1286
+ */
1287
+ export interface GetResourcePolicyInput {
1288
+ /**
1289
+ * @public
1290
+ * <p>The Amazon Resource Name (ARN) of the data stream or consumer.</p>
1291
+ */
1292
+ ResourceARN: string | undefined;
1293
+ }
1294
+ /**
1295
+ * @public
1296
+ */
1297
+ export interface GetResourcePolicyOutput {
1298
+ /**
1299
+ * @public
1300
+ * <p>Details of the resource policy. This is formatted as a JSON string.</p>
1301
+ */
1302
+ Policy: string | undefined;
1303
+ }
1274
1304
  /**
1275
1305
  * @public
1276
1306
  * @enum
@@ -2095,6 +2125,21 @@ export interface PutRecordsOutput {
2095
2125
  */
2096
2126
  EncryptionType?: EncryptionType;
2097
2127
  }
2128
+ /**
2129
+ * @public
2130
+ */
2131
+ export interface PutResourcePolicyInput {
2132
+ /**
2133
+ * @public
2134
+ * <p>The Amazon Resource Name (ARN) of the data stream or consumer.</p>
2135
+ */
2136
+ ResourceARN: string | undefined;
2137
+ /**
2138
+ * @public
2139
+ * <p>Details of the resource policy. It must include the identity of the principal and the actions allowed on this resource. This is formatted as a JSON string.</p>
2140
+ */
2141
+ Policy: string | undefined;
2142
+ }
2098
2143
  /**
2099
2144
  * @public
2100
2145
  */
@@ -3,6 +3,7 @@ import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as _
3
3
  import { AddTagsToStreamCommandInput, AddTagsToStreamCommandOutput } from "../commands/AddTagsToStreamCommand";
4
4
  import { CreateStreamCommandInput, CreateStreamCommandOutput } from "../commands/CreateStreamCommand";
5
5
  import { DecreaseStreamRetentionPeriodCommandInput, DecreaseStreamRetentionPeriodCommandOutput } from "../commands/DecreaseStreamRetentionPeriodCommand";
6
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "../commands/DeleteResourcePolicyCommand";
6
7
  import { DeleteStreamCommandInput, DeleteStreamCommandOutput } from "../commands/DeleteStreamCommand";
7
8
  import { DeregisterStreamConsumerCommandInput, DeregisterStreamConsumerCommandOutput } from "../commands/DeregisterStreamConsumerCommand";
8
9
  import { DescribeLimitsCommandInput, DescribeLimitsCommandOutput } from "../commands/DescribeLimitsCommand";
@@ -12,6 +13,7 @@ import { DescribeStreamSummaryCommandInput, DescribeStreamSummaryCommandOutput }
12
13
  import { DisableEnhancedMonitoringCommandInput, DisableEnhancedMonitoringCommandOutput } from "../commands/DisableEnhancedMonitoringCommand";
13
14
  import { EnableEnhancedMonitoringCommandInput, EnableEnhancedMonitoringCommandOutput } from "../commands/EnableEnhancedMonitoringCommand";
14
15
  import { GetRecordsCommandInput, GetRecordsCommandOutput } from "../commands/GetRecordsCommand";
16
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "../commands/GetResourcePolicyCommand";
15
17
  import { GetShardIteratorCommandInput, GetShardIteratorCommandOutput } from "../commands/GetShardIteratorCommand";
16
18
  import { IncreaseStreamRetentionPeriodCommandInput, IncreaseStreamRetentionPeriodCommandOutput } from "../commands/IncreaseStreamRetentionPeriodCommand";
17
19
  import { ListShardsCommandInput, ListShardsCommandOutput } from "../commands/ListShardsCommand";
@@ -21,6 +23,7 @@ import { ListTagsForStreamCommandInput, ListTagsForStreamCommandOutput } from ".
21
23
  import { MergeShardsCommandInput, MergeShardsCommandOutput } from "../commands/MergeShardsCommand";
22
24
  import { PutRecordCommandInput, PutRecordCommandOutput } from "../commands/PutRecordCommand";
23
25
  import { PutRecordsCommandInput, PutRecordsCommandOutput } from "../commands/PutRecordsCommand";
26
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand";
24
27
  import { RegisterStreamConsumerCommandInput, RegisterStreamConsumerCommandOutput } from "../commands/RegisterStreamConsumerCommand";
25
28
  import { RemoveTagsFromStreamCommandInput, RemoveTagsFromStreamCommandOutput } from "../commands/RemoveTagsFromStreamCommand";
26
29
  import { SplitShardCommandInput, SplitShardCommandOutput } from "../commands/SplitShardCommand";
@@ -41,6 +44,10 @@ export declare const se_CreateStreamCommand: (input: CreateStreamCommandInput, c
41
44
  * serializeAws_json1_1DecreaseStreamRetentionPeriodCommand
42
45
  */
43
46
  export declare const se_DecreaseStreamRetentionPeriodCommand: (input: DecreaseStreamRetentionPeriodCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
47
+ /**
48
+ * serializeAws_json1_1DeleteResourcePolicyCommand
49
+ */
50
+ export declare const se_DeleteResourcePolicyCommand: (input: DeleteResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
44
51
  /**
45
52
  * serializeAws_json1_1DeleteStreamCommand
46
53
  */
@@ -77,6 +84,10 @@ export declare const se_EnableEnhancedMonitoringCommand: (input: EnableEnhancedM
77
84
  * serializeAws_json1_1GetRecordsCommand
78
85
  */
79
86
  export declare const se_GetRecordsCommand: (input: GetRecordsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
87
+ /**
88
+ * serializeAws_json1_1GetResourcePolicyCommand
89
+ */
90
+ export declare const se_GetResourcePolicyCommand: (input: GetResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
91
  /**
81
92
  * serializeAws_json1_1GetShardIteratorCommand
82
93
  */
@@ -113,6 +124,10 @@ export declare const se_PutRecordCommand: (input: PutRecordCommandInput, context
113
124
  * serializeAws_json1_1PutRecordsCommand
114
125
  */
115
126
  export declare const se_PutRecordsCommand: (input: PutRecordsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
127
+ /**
128
+ * serializeAws_json1_1PutResourcePolicyCommand
129
+ */
130
+ export declare const se_PutResourcePolicyCommand: (input: PutResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
131
  /**
117
132
  * serializeAws_json1_1RegisterStreamConsumerCommand
118
133
  */
@@ -157,6 +172,10 @@ export declare const de_CreateStreamCommand: (output: __HttpResponse, context: _
157
172
  * deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand
158
173
  */
159
174
  export declare const de_DecreaseStreamRetentionPeriodCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DecreaseStreamRetentionPeriodCommandOutput>;
175
+ /**
176
+ * deserializeAws_json1_1DeleteResourcePolicyCommand
177
+ */
178
+ export declare const de_DeleteResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteResourcePolicyCommandOutput>;
160
179
  /**
161
180
  * deserializeAws_json1_1DeleteStreamCommand
162
181
  */
@@ -193,6 +212,10 @@ export declare const de_EnableEnhancedMonitoringCommand: (output: __HttpResponse
193
212
  * deserializeAws_json1_1GetRecordsCommand
194
213
  */
195
214
  export declare const de_GetRecordsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRecordsCommandOutput>;
215
+ /**
216
+ * deserializeAws_json1_1GetResourcePolicyCommand
217
+ */
218
+ export declare const de_GetResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourcePolicyCommandOutput>;
196
219
  /**
197
220
  * deserializeAws_json1_1GetShardIteratorCommand
198
221
  */
@@ -229,6 +252,10 @@ export declare const de_PutRecordCommand: (output: __HttpResponse, context: __Se
229
252
  * deserializeAws_json1_1PutRecordsCommand
230
253
  */
231
254
  export declare const de_PutRecordsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutRecordsCommandOutput>;
255
+ /**
256
+ * deserializeAws_json1_1PutResourcePolicyCommand
257
+ */
258
+ export declare const de_PutResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutResourcePolicyCommandOutput>;
232
259
  /**
233
260
  * deserializeAws_json1_1RegisterStreamConsumerCommand
234
261
  */
@@ -11,6 +11,10 @@ import {
11
11
  DecreaseStreamRetentionPeriodCommandInput,
12
12
  DecreaseStreamRetentionPeriodCommandOutput,
13
13
  } from "./commands/DecreaseStreamRetentionPeriodCommand";
14
+ import {
15
+ DeleteResourcePolicyCommandInput,
16
+ DeleteResourcePolicyCommandOutput,
17
+ } from "./commands/DeleteResourcePolicyCommand";
14
18
  import {
15
19
  DeleteStreamCommandInput,
16
20
  DeleteStreamCommandOutput,
@@ -47,6 +51,10 @@ import {
47
51
  GetRecordsCommandInput,
48
52
  GetRecordsCommandOutput,
49
53
  } from "./commands/GetRecordsCommand";
54
+ import {
55
+ GetResourcePolicyCommandInput,
56
+ GetResourcePolicyCommandOutput,
57
+ } from "./commands/GetResourcePolicyCommand";
50
58
  import {
51
59
  GetShardIteratorCommandInput,
52
60
  GetShardIteratorCommandOutput,
@@ -83,6 +91,10 @@ import {
83
91
  PutRecordsCommandInput,
84
92
  PutRecordsCommandOutput,
85
93
  } from "./commands/PutRecordsCommand";
94
+ import {
95
+ PutResourcePolicyCommandInput,
96
+ PutResourcePolicyCommandOutput,
97
+ } from "./commands/PutResourcePolicyCommand";
86
98
  import {
87
99
  RegisterStreamConsumerCommandInput,
88
100
  RegisterStreamConsumerCommandOutput,
@@ -156,6 +168,19 @@ export interface Kinesis {
156
168
  options: __HttpHandlerOptions,
157
169
  cb: (err: any, data?: DecreaseStreamRetentionPeriodCommandOutput) => void
158
170
  ): void;
171
+ deleteResourcePolicy(
172
+ args: DeleteResourcePolicyCommandInput,
173
+ options?: __HttpHandlerOptions
174
+ ): Promise<DeleteResourcePolicyCommandOutput>;
175
+ deleteResourcePolicy(
176
+ args: DeleteResourcePolicyCommandInput,
177
+ cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
178
+ ): void;
179
+ deleteResourcePolicy(
180
+ args: DeleteResourcePolicyCommandInput,
181
+ options: __HttpHandlerOptions,
182
+ cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
183
+ ): void;
159
184
  deleteStream(
160
185
  args: DeleteStreamCommandInput,
161
186
  options?: __HttpHandlerOptions
@@ -273,6 +298,19 @@ export interface Kinesis {
273
298
  options: __HttpHandlerOptions,
274
299
  cb: (err: any, data?: GetRecordsCommandOutput) => void
275
300
  ): void;
301
+ getResourcePolicy(
302
+ args: GetResourcePolicyCommandInput,
303
+ options?: __HttpHandlerOptions
304
+ ): Promise<GetResourcePolicyCommandOutput>;
305
+ getResourcePolicy(
306
+ args: GetResourcePolicyCommandInput,
307
+ cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
308
+ ): void;
309
+ getResourcePolicy(
310
+ args: GetResourcePolicyCommandInput,
311
+ options: __HttpHandlerOptions,
312
+ cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
313
+ ): void;
276
314
  getShardIterator(
277
315
  args: GetShardIteratorCommandInput,
278
316
  options?: __HttpHandlerOptions
@@ -390,6 +428,19 @@ export interface Kinesis {
390
428
  options: __HttpHandlerOptions,
391
429
  cb: (err: any, data?: PutRecordsCommandOutput) => void
392
430
  ): void;
431
+ putResourcePolicy(
432
+ args: PutResourcePolicyCommandInput,
433
+ options?: __HttpHandlerOptions
434
+ ): Promise<PutResourcePolicyCommandOutput>;
435
+ putResourcePolicy(
436
+ args: PutResourcePolicyCommandInput,
437
+ cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
438
+ ): void;
439
+ putResourcePolicy(
440
+ args: PutResourcePolicyCommandInput,
441
+ options: __HttpHandlerOptions,
442
+ cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
443
+ ): void;
393
444
  registerStreamConsumer(
394
445
  args: RegisterStreamConsumerCommandInput,
395
446
  options?: __HttpHandlerOptions
@@ -62,6 +62,10 @@ import {
62
62
  DecreaseStreamRetentionPeriodCommandInput,
63
63
  DecreaseStreamRetentionPeriodCommandOutput,
64
64
  } from "./commands/DecreaseStreamRetentionPeriodCommand";
65
+ import {
66
+ DeleteResourcePolicyCommandInput,
67
+ DeleteResourcePolicyCommandOutput,
68
+ } from "./commands/DeleteResourcePolicyCommand";
65
69
  import {
66
70
  DeleteStreamCommandInput,
67
71
  DeleteStreamCommandOutput,
@@ -98,6 +102,10 @@ import {
98
102
  GetRecordsCommandInput,
99
103
  GetRecordsCommandOutput,
100
104
  } from "./commands/GetRecordsCommand";
105
+ import {
106
+ GetResourcePolicyCommandInput,
107
+ GetResourcePolicyCommandOutput,
108
+ } from "./commands/GetResourcePolicyCommand";
101
109
  import {
102
110
  GetShardIteratorCommandInput,
103
111
  GetShardIteratorCommandOutput,
@@ -134,6 +142,10 @@ import {
134
142
  PutRecordsCommandInput,
135
143
  PutRecordsCommandOutput,
136
144
  } from "./commands/PutRecordsCommand";
145
+ import {
146
+ PutResourcePolicyCommandInput,
147
+ PutResourcePolicyCommandOutput,
148
+ } from "./commands/PutResourcePolicyCommand";
137
149
  import {
138
150
  RegisterStreamConsumerCommandInput,
139
151
  RegisterStreamConsumerCommandOutput,
@@ -177,6 +189,7 @@ export type ServiceInputTypes =
177
189
  | AddTagsToStreamCommandInput
178
190
  | CreateStreamCommandInput
179
191
  | DecreaseStreamRetentionPeriodCommandInput
192
+ | DeleteResourcePolicyCommandInput
180
193
  | DeleteStreamCommandInput
181
194
  | DeregisterStreamConsumerCommandInput
182
195
  | DescribeLimitsCommandInput
@@ -186,6 +199,7 @@ export type ServiceInputTypes =
186
199
  | DisableEnhancedMonitoringCommandInput
187
200
  | EnableEnhancedMonitoringCommandInput
188
201
  | GetRecordsCommandInput
202
+ | GetResourcePolicyCommandInput
189
203
  | GetShardIteratorCommandInput
190
204
  | IncreaseStreamRetentionPeriodCommandInput
191
205
  | ListShardsCommandInput
@@ -195,6 +209,7 @@ export type ServiceInputTypes =
195
209
  | MergeShardsCommandInput
196
210
  | PutRecordCommandInput
197
211
  | PutRecordsCommandInput
212
+ | PutResourcePolicyCommandInput
198
213
  | RegisterStreamConsumerCommandInput
199
214
  | RemoveTagsFromStreamCommandInput
200
215
  | SplitShardCommandInput
@@ -207,6 +222,7 @@ export type ServiceOutputTypes =
207
222
  | AddTagsToStreamCommandOutput
208
223
  | CreateStreamCommandOutput
209
224
  | DecreaseStreamRetentionPeriodCommandOutput
225
+ | DeleteResourcePolicyCommandOutput
210
226
  | DeleteStreamCommandOutput
211
227
  | DeregisterStreamConsumerCommandOutput
212
228
  | DescribeLimitsCommandOutput
@@ -216,6 +232,7 @@ export type ServiceOutputTypes =
216
232
  | DisableEnhancedMonitoringCommandOutput
217
233
  | EnableEnhancedMonitoringCommandOutput
218
234
  | GetRecordsCommandOutput
235
+ | GetResourcePolicyCommandOutput
219
236
  | GetShardIteratorCommandOutput
220
237
  | IncreaseStreamRetentionPeriodCommandOutput
221
238
  | ListShardsCommandOutput
@@ -225,6 +242,7 @@ export type ServiceOutputTypes =
225
242
  | MergeShardsCommandOutput
226
243
  | PutRecordCommandOutput
227
244
  | PutRecordsCommandOutput
245
+ | PutResourcePolicyCommandOutput
228
246
  | RegisterStreamConsumerCommandOutput
229
247
  | RemoveTagsFromStreamCommandOutput
230
248
  | SplitShardCommandOutput
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ KinesisClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../KinesisClient";
14
+ import { DeleteResourcePolicyInput } from "../models/models_0";
15
+ export { __MetadataBearer, $Command };
16
+ export interface DeleteResourcePolicyCommandInput
17
+ extends DeleteResourcePolicyInput {}
18
+ export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {}
19
+ export declare class DeleteResourcePolicyCommand extends $Command<
20
+ DeleteResourcePolicyCommandInput,
21
+ DeleteResourcePolicyCommandOutput,
22
+ KinesisClientResolvedConfig
23
+ > {
24
+ readonly input: DeleteResourcePolicyCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
26
+ constructor(input: DeleteResourcePolicyCommandInput);
27
+ resolveMiddleware(
28
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
29
+ configuration: KinesisClientResolvedConfig,
30
+ options?: __HttpHandlerOptions
31
+ ): Handler<
32
+ DeleteResourcePolicyCommandInput,
33
+ DeleteResourcePolicyCommandOutput
34
+ >;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ KinesisClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../KinesisClient";
14
+ import {
15
+ GetResourcePolicyInput,
16
+ GetResourcePolicyOutput,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetResourcePolicyCommandInput extends GetResourcePolicyInput {}
20
+ export interface GetResourcePolicyCommandOutput
21
+ extends GetResourcePolicyOutput,
22
+ __MetadataBearer {}
23
+ export declare class GetResourcePolicyCommand extends $Command<
24
+ GetResourcePolicyCommandInput,
25
+ GetResourcePolicyCommandOutput,
26
+ KinesisClientResolvedConfig
27
+ > {
28
+ readonly input: GetResourcePolicyCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetResourcePolicyCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: KinesisClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,33 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ KinesisClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../KinesisClient";
14
+ import { PutResourcePolicyInput } from "../models/models_0";
15
+ export { __MetadataBearer, $Command };
16
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyInput {}
17
+ export interface PutResourcePolicyCommandOutput extends __MetadataBearer {}
18
+ export declare class PutResourcePolicyCommand extends $Command<
19
+ PutResourcePolicyCommandInput,
20
+ PutResourcePolicyCommandOutput,
21
+ KinesisClientResolvedConfig
22
+ > {
23
+ readonly input: PutResourcePolicyCommandInput;
24
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
25
+ constructor(input: PutResourcePolicyCommandInput);
26
+ resolveMiddleware(
27
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
28
+ configuration: KinesisClientResolvedConfig,
29
+ options?: __HttpHandlerOptions
30
+ ): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput>;
31
+ private serialize;
32
+ private deserialize;
33
+ }