@aws-sdk/client-kinesis 3.451.0 → 3.457.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 +24 -0
  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 +2 -2
package/README.md CHANGED
@@ -229,6 +229,14 @@ DecreaseStreamRetentionPeriod
229
229
 
230
230
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/classes/decreasestreamretentionperiodcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/decreasestreamretentionperiodcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/decreasestreamretentionperiodcommandoutput.html)
231
231
 
232
+ </details>
233
+ <details>
234
+ <summary>
235
+ DeleteResourcePolicy
236
+ </summary>
237
+
238
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/classes/deleteresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/deleteresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/deleteresourcepolicycommandoutput.html)
239
+
232
240
  </details>
233
241
  <details>
234
242
  <summary>
@@ -301,6 +309,14 @@ GetRecords
301
309
 
302
310
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/classes/getrecordscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/getrecordscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/getrecordscommandoutput.html)
303
311
 
312
+ </details>
313
+ <details>
314
+ <summary>
315
+ GetResourcePolicy
316
+ </summary>
317
+
318
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/classes/getresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/getresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/getresourcepolicycommandoutput.html)
319
+
304
320
  </details>
305
321
  <details>
306
322
  <summary>
@@ -373,6 +389,14 @@ PutRecords
373
389
 
374
390
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/classes/putrecordscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/putrecordscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/putrecordscommandoutput.html)
375
391
 
392
+ </details>
393
+ <details>
394
+ <summary>
395
+ PutResourcePolicy
396
+ </summary>
397
+
398
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/classes/putresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/putresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kinesis/interfaces/putresourcepolicycommandoutput.html)
399
+
376
400
  </details>
377
401
  <details>
378
402
  <summary>
@@ -5,6 +5,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const AddTagsToStreamCommand_1 = require("./commands/AddTagsToStreamCommand");
6
6
  const CreateStreamCommand_1 = require("./commands/CreateStreamCommand");
7
7
  const DecreaseStreamRetentionPeriodCommand_1 = require("./commands/DecreaseStreamRetentionPeriodCommand");
8
+ const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand");
8
9
  const DeleteStreamCommand_1 = require("./commands/DeleteStreamCommand");
9
10
  const DeregisterStreamConsumerCommand_1 = require("./commands/DeregisterStreamConsumerCommand");
10
11
  const DescribeLimitsCommand_1 = require("./commands/DescribeLimitsCommand");
@@ -14,6 +15,7 @@ const DescribeStreamSummaryCommand_1 = require("./commands/DescribeStreamSummary
14
15
  const DisableEnhancedMonitoringCommand_1 = require("./commands/DisableEnhancedMonitoringCommand");
15
16
  const EnableEnhancedMonitoringCommand_1 = require("./commands/EnableEnhancedMonitoringCommand");
16
17
  const GetRecordsCommand_1 = require("./commands/GetRecordsCommand");
18
+ const GetResourcePolicyCommand_1 = require("./commands/GetResourcePolicyCommand");
17
19
  const GetShardIteratorCommand_1 = require("./commands/GetShardIteratorCommand");
18
20
  const IncreaseStreamRetentionPeriodCommand_1 = require("./commands/IncreaseStreamRetentionPeriodCommand");
19
21
  const ListShardsCommand_1 = require("./commands/ListShardsCommand");
@@ -23,6 +25,7 @@ const ListTagsForStreamCommand_1 = require("./commands/ListTagsForStreamCommand"
23
25
  const MergeShardsCommand_1 = require("./commands/MergeShardsCommand");
24
26
  const PutRecordCommand_1 = require("./commands/PutRecordCommand");
25
27
  const PutRecordsCommand_1 = require("./commands/PutRecordsCommand");
28
+ const PutResourcePolicyCommand_1 = require("./commands/PutResourcePolicyCommand");
26
29
  const RegisterStreamConsumerCommand_1 = require("./commands/RegisterStreamConsumerCommand");
27
30
  const RemoveTagsFromStreamCommand_1 = require("./commands/RemoveTagsFromStreamCommand");
28
31
  const SplitShardCommand_1 = require("./commands/SplitShardCommand");
@@ -36,6 +39,7 @@ const commands = {
36
39
  AddTagsToStreamCommand: AddTagsToStreamCommand_1.AddTagsToStreamCommand,
37
40
  CreateStreamCommand: CreateStreamCommand_1.CreateStreamCommand,
38
41
  DecreaseStreamRetentionPeriodCommand: DecreaseStreamRetentionPeriodCommand_1.DecreaseStreamRetentionPeriodCommand,
42
+ DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
39
43
  DeleteStreamCommand: DeleteStreamCommand_1.DeleteStreamCommand,
40
44
  DeregisterStreamConsumerCommand: DeregisterStreamConsumerCommand_1.DeregisterStreamConsumerCommand,
41
45
  DescribeLimitsCommand: DescribeLimitsCommand_1.DescribeLimitsCommand,
@@ -45,6 +49,7 @@ const commands = {
45
49
  DisableEnhancedMonitoringCommand: DisableEnhancedMonitoringCommand_1.DisableEnhancedMonitoringCommand,
46
50
  EnableEnhancedMonitoringCommand: EnableEnhancedMonitoringCommand_1.EnableEnhancedMonitoringCommand,
47
51
  GetRecordsCommand: GetRecordsCommand_1.GetRecordsCommand,
52
+ GetResourcePolicyCommand: GetResourcePolicyCommand_1.GetResourcePolicyCommand,
48
53
  GetShardIteratorCommand: GetShardIteratorCommand_1.GetShardIteratorCommand,
49
54
  IncreaseStreamRetentionPeriodCommand: IncreaseStreamRetentionPeriodCommand_1.IncreaseStreamRetentionPeriodCommand,
50
55
  ListShardsCommand: ListShardsCommand_1.ListShardsCommand,
@@ -54,6 +59,7 @@ const commands = {
54
59
  MergeShardsCommand: MergeShardsCommand_1.MergeShardsCommand,
55
60
  PutRecordCommand: PutRecordCommand_1.PutRecordCommand,
56
61
  PutRecordsCommand: PutRecordsCommand_1.PutRecordsCommand,
62
+ PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
57
63
  RegisterStreamConsumerCommand: RegisterStreamConsumerCommand_1.RegisterStreamConsumerCommand,
58
64
  RemoveTagsFromStreamCommand: RemoveTagsFromStreamCommand_1.RemoveTagsFromStreamCommand,
59
65
  SplitShardCommand: SplitShardCommand_1.SplitShardCommand,
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteResourcePolicyCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class DeleteResourcePolicyCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ OperationType: { type: "staticContextParams", value: `control` },
14
+ ResourceARN: { type: "contextParams", name: "ResourceARN" },
15
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
+ Endpoint: { type: "builtInParams", name: "endpoint" },
17
+ Region: { type: "builtInParams", name: "region" },
18
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
+ };
20
+ }
21
+ constructor(input) {
22
+ super();
23
+ this.input = input;
24
+ }
25
+ resolveMiddleware(clientStack, configuration, options) {
26
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteResourcePolicyCommand.getEndpointParameterInstructions()));
28
+ const stack = clientStack.concat(this.middlewareStack);
29
+ const { logger } = configuration;
30
+ const clientName = "KinesisClient";
31
+ const commandName = "DeleteResourcePolicyCommand";
32
+ const handlerExecutionContext = {
33
+ logger,
34
+ clientName,
35
+ commandName,
36
+ inputFilterSensitiveLog: (_) => _,
37
+ outputFilterSensitiveLog: (_) => _,
38
+ [types_1.SMITHY_CONTEXT_KEY]: {
39
+ service: "Kinesis_20131202",
40
+ operation: "DeleteResourcePolicy",
41
+ },
42
+ };
43
+ const { requestHandler } = configuration;
44
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
+ }
46
+ serialize(input, context) {
47
+ return (0, Aws_json1_1_1.se_DeleteResourcePolicyCommand)(input, context);
48
+ }
49
+ deserialize(output, context) {
50
+ return (0, Aws_json1_1_1.de_DeleteResourcePolicyCommand)(output, context);
51
+ }
52
+ }
53
+ exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetResourcePolicyCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class GetResourcePolicyCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ OperationType: { type: "staticContextParams", value: `control` },
14
+ ResourceARN: { type: "contextParams", name: "ResourceARN" },
15
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
+ Endpoint: { type: "builtInParams", name: "endpoint" },
17
+ Region: { type: "builtInParams", name: "region" },
18
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
+ };
20
+ }
21
+ constructor(input) {
22
+ super();
23
+ this.input = input;
24
+ }
25
+ resolveMiddleware(clientStack, configuration, options) {
26
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetResourcePolicyCommand.getEndpointParameterInstructions()));
28
+ const stack = clientStack.concat(this.middlewareStack);
29
+ const { logger } = configuration;
30
+ const clientName = "KinesisClient";
31
+ const commandName = "GetResourcePolicyCommand";
32
+ const handlerExecutionContext = {
33
+ logger,
34
+ clientName,
35
+ commandName,
36
+ inputFilterSensitiveLog: (_) => _,
37
+ outputFilterSensitiveLog: (_) => _,
38
+ [types_1.SMITHY_CONTEXT_KEY]: {
39
+ service: "Kinesis_20131202",
40
+ operation: "GetResourcePolicy",
41
+ },
42
+ };
43
+ const { requestHandler } = configuration;
44
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
+ }
46
+ serialize(input, context) {
47
+ return (0, Aws_json1_1_1.se_GetResourcePolicyCommand)(input, context);
48
+ }
49
+ deserialize(output, context) {
50
+ return (0, Aws_json1_1_1.de_GetResourcePolicyCommand)(output, context);
51
+ }
52
+ }
53
+ exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutResourcePolicyCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class PutResourcePolicyCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ OperationType: { type: "staticContextParams", value: `control` },
14
+ ResourceARN: { type: "contextParams", name: "ResourceARN" },
15
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
+ Endpoint: { type: "builtInParams", name: "endpoint" },
17
+ Region: { type: "builtInParams", name: "region" },
18
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
19
+ };
20
+ }
21
+ constructor(input) {
22
+ super();
23
+ this.input = input;
24
+ }
25
+ resolveMiddleware(clientStack, configuration, options) {
26
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
27
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutResourcePolicyCommand.getEndpointParameterInstructions()));
28
+ const stack = clientStack.concat(this.middlewareStack);
29
+ const { logger } = configuration;
30
+ const clientName = "KinesisClient";
31
+ const commandName = "PutResourcePolicyCommand";
32
+ const handlerExecutionContext = {
33
+ logger,
34
+ clientName,
35
+ commandName,
36
+ inputFilterSensitiveLog: (_) => _,
37
+ outputFilterSensitiveLog: (_) => _,
38
+ [types_1.SMITHY_CONTEXT_KEY]: {
39
+ service: "Kinesis_20131202",
40
+ operation: "PutResourcePolicy",
41
+ },
42
+ };
43
+ const { requestHandler } = configuration;
44
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
+ }
46
+ serialize(input, context) {
47
+ return (0, Aws_json1_1_1.se_PutResourcePolicyCommand)(input, context);
48
+ }
49
+ deserialize(output, context) {
50
+ return (0, Aws_json1_1_1.de_PutResourcePolicyCommand)(output, context);
51
+ }
52
+ }
53
+ exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AddTagsToStreamCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CreateStreamCommand"), exports);
6
6
  tslib_1.__exportStar(require("./DecreaseStreamRetentionPeriodCommand"), exports);
7
+ tslib_1.__exportStar(require("./DeleteResourcePolicyCommand"), exports);
7
8
  tslib_1.__exportStar(require("./DeleteStreamCommand"), exports);
8
9
  tslib_1.__exportStar(require("./DeregisterStreamConsumerCommand"), exports);
9
10
  tslib_1.__exportStar(require("./DescribeLimitsCommand"), exports);
@@ -13,6 +14,7 @@ tslib_1.__exportStar(require("./DescribeStreamSummaryCommand"), exports);
13
14
  tslib_1.__exportStar(require("./DisableEnhancedMonitoringCommand"), exports);
14
15
  tslib_1.__exportStar(require("./EnableEnhancedMonitoringCommand"), exports);
15
16
  tslib_1.__exportStar(require("./GetRecordsCommand"), exports);
17
+ tslib_1.__exportStar(require("./GetResourcePolicyCommand"), exports);
16
18
  tslib_1.__exportStar(require("./GetShardIteratorCommand"), exports);
17
19
  tslib_1.__exportStar(require("./IncreaseStreamRetentionPeriodCommand"), exports);
18
20
  tslib_1.__exportStar(require("./ListShardsCommand"), exports);
@@ -22,6 +24,7 @@ tslib_1.__exportStar(require("./ListTagsForStreamCommand"), exports);
22
24
  tslib_1.__exportStar(require("./MergeShardsCommand"), exports);
23
25
  tslib_1.__exportStar(require("./PutRecordCommand"), exports);
24
26
  tslib_1.__exportStar(require("./PutRecordsCommand"), exports);
27
+ tslib_1.__exportStar(require("./PutResourcePolicyCommand"), exports);
25
28
  tslib_1.__exportStar(require("./RegisterStreamConsumerCommand"), exports);
26
29
  tslib_1.__exportStar(require("./RemoveTagsFromStreamCommand"), exports);
27
30
  tslib_1.__exportStar(require("./SplitShardCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const G = "required", H = "type", I = "rules", J = "conditions", K = "fn", L = "argv", M = "ref", N = "assign", O = "url", P = "properties", Q = "headers";
5
- const a = true, b = "isSet", c = "stringEquals", d = "aws.parseArn", e = "arn", f = "booleanEquals", g = "endpoint", h = "tree", i = "error", j = { [G]: false, [H]: "String" }, k = { [G]: true, "default": false, [H]: "Boolean" }, l = { [K]: "not", [L]: [{ [K]: b, [L]: [{ [M]: "Endpoint" }] }] }, m = { [M]: "Endpoint" }, n = { [K]: b, [L]: [{ [M]: "Region" }] }, o = { [K]: "aws.partition", [L]: [{ [M]: "Region" }], [N]: "PartitionResult" }, p = { [K]: "not", [L]: [{ [K]: c, [L]: [{ [K]: "getAttr", [L]: [{ [M]: "PartitionResult" }, "name"] }, "aws-iso"] }] }, q = { [K]: "getAttr", [L]: [{ [M]: "PartitionResult" }, "name"] }, r = { [K]: "not", [L]: [{ [K]: c, [L]: [q, "aws-iso-b"] }] }, s = { [K]: "getAttr", [L]: [{ [M]: "PartitionResult" }, "supportsFIPS"] }, t = {}, u = { [i]: "FIPS is enabled but this partition does not support FIPS", [H]: i }, v = { [i]: "DualStack is enabled but this partition does not support DualStack", [H]: i }, w = { [i]: "Invalid ARN: Failed to parse ARN.", [H]: i }, x = { [K]: f, [L]: [true, { [K]: "getAttr", [L]: [{ [M]: "PartitionResult" }, "supportsDualStack"] }] }, y = [{ [M]: "StreamARN" }], z = [{ [K]: b, [L]: [m] }], A = [{ [J]: [{ [K]: "isValidHostLabel", [L]: [{ [K]: "getAttr", [L]: [{ [M]: e }, "accountId"] }, false] }], [I]: [{ [J]: [{ [K]: "isValidHostLabel", [L]: [{ [K]: "getAttr", [L]: [{ [M]: e }, "region"] }, false] }], [I]: [{ [J]: [{ [K]: c, [L]: [{ [K]: "getAttr", [L]: [{ [M]: e }, "service"] }, "kinesis"] }], [I]: [{ [J]: [{ [K]: "getAttr", [L]: [{ [M]: e }, "resourceId[0]"], [N]: "arnType" }, { [K]: "not", [L]: [{ [K]: c, [L]: [{ [M]: "arnType" }, ""] }] }], [I]: [{ [J]: [{ [K]: c, [L]: [{ [M]: "arnType" }, "stream"] }], [I]: [{ [J]: [{ [K]: c, [L]: [q, "{arn#partition}"] }], [I]: [{ [J]: [{ [K]: b, [L]: [{ [M]: "OperationType" }] }], [I]: [{ [J]: [{ [K]: f, [L]: [{ [M]: "UseFIPS" }, true] }, { [K]: f, [L]: [{ [M]: "UseDualStack" }, true] }], [I]: [{ [J]: [{ [K]: f, [L]: [s, true] }], [I]: [{ [J]: [{ [K]: f, [L]: [{ [K]: "getAttr", [L]: [{ [M]: "PartitionResult" }, "supportsDualStack"] }, true] }], [I]: [{ [g]: { [O]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [P]: {}, [Q]: {} }, [H]: g }], [H]: h }, { [i]: "DualStack is enabled, but this partition does not support DualStack.", [H]: i }], [H]: h }, { [i]: "FIPS is enabled, but this partition does not support FIPS.", [H]: i }], [H]: h }, { [J]: [{ [K]: f, [L]: [{ [M]: "UseFIPS" }, true] }], [I]: [{ [J]: [{ [K]: f, [L]: [s, true] }], [I]: [{ [g]: { [O]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [P]: {}, [Q]: {} }, [H]: g }], [H]: h }, u], [H]: h }, { [J]: [{ [K]: f, [L]: [{ [M]: "UseDualStack" }, true] }], [I]: [{ [J]: [{ [K]: f, [L]: [{ [K]: "getAttr", [L]: [{ [M]: "PartitionResult" }, "supportsDualStack"] }, true] }], [I]: [{ [g]: { [O]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [P]: {}, [Q]: {} }, [H]: g }], [H]: h }, v], [H]: h }, { [g]: { [O]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", [P]: {}, [Q]: {} }, [H]: g }], [H]: h }, { [i]: "Operation Type is not set. Please contact service team for resolution.", [H]: i }], [H]: h }, { [i]: "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", [H]: i }], [H]: h }, { [i]: "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.", [H]: i }], [H]: h }, { [i]: "Invalid ARN: No ARN type specified", [H]: i }], [H]: h }, { [i]: "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.", [H]: i }], [H]: h }, { [i]: "Invalid ARN: Invalid region.", [H]: i }], [H]: h }, { [i]: "Invalid ARN: Invalid account id.", [H]: i }], B = [{ [K]: f, [L]: [{ [M]: "UseFIPS" }, true] }, { [K]: f, [L]: [{ [M]: "UseDualStack" }, true] }], C = [{ [K]: f, [L]: [s, true] }], D = [{ [K]: f, [L]: [{ [M]: "UseFIPS" }, true] }], E = [{ [K]: f, [L]: [{ [M]: "UseDualStack" }, true] }], F = [{ [M]: "ConsumerARN" }];
6
- const _data = { version: "1.0", parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j, StreamARN: j, OperationType: j, ConsumerARN: j }, [I]: [{ [J]: [{ [K]: b, [L]: y }, l, n, o, p, r], [I]: [{ [J]: [{ [K]: d, [L]: y, [N]: e }], [I]: A, [H]: h }, w], [H]: h }, { [J]: [{ [K]: b, [L]: F }, l, n, o, p, r], [I]: [{ [J]: [{ [K]: d, [L]: F, [N]: e }], [I]: A, [H]: h }, w], [H]: h }, { [J]: z, [I]: [{ [J]: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [H]: i }, { [J]: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [H]: i }, { endpoint: { [O]: m, [P]: t, [Q]: t }, [H]: g }], [H]: h }, { [J]: [n], [I]: [{ [J]: [o], [I]: [{ [J]: B, [I]: [{ [J]: [{ [K]: f, [L]: [a, s] }, x], [I]: [{ endpoint: { [O]: "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [P]: t, [Q]: t }, [H]: g }], [H]: h }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [H]: i }], [H]: h }, { [J]: D, [I]: [{ [J]: C, [I]: [{ [J]: [{ [K]: c, [L]: [q, "aws-us-gov"] }], endpoint: { [O]: "https://kinesis.{Region}.amazonaws.com", [P]: t, [Q]: t }, [H]: g }, { endpoint: { [O]: "https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [P]: t, [Q]: t }, [H]: g }], [H]: h }, u], [H]: h }, { [J]: E, [I]: [{ [J]: [x], [I]: [{ endpoint: { [O]: "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [P]: t, [Q]: t }, [H]: g }], [H]: h }, v], [H]: h }, { endpoint: { [O]: "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", [P]: t, [Q]: t }, [H]: g }], [H]: h }], [H]: h }, { error: "Invalid Configuration: Missing Region", [H]: i }] };
4
+ const H = "required", I = "type", J = "rules", K = "conditions", L = "fn", M = "argv", N = "ref", O = "assign", P = "url", Q = "properties", R = "headers";
5
+ const a = true, b = "isSet", c = "stringEquals", d = "aws.parseArn", e = "arn", f = "booleanEquals", g = "endpoint", h = "tree", i = "error", j = { [H]: false, [I]: "String" }, k = { [H]: true, "default": false, [I]: "Boolean" }, l = { [L]: "not", [M]: [{ [L]: b, [M]: [{ [N]: "Endpoint" }] }] }, m = { [N]: "Endpoint" }, n = { [L]: b, [M]: [{ [N]: "Region" }] }, o = { [L]: "aws.partition", [M]: [{ [N]: "Region" }], [O]: "PartitionResult" }, p = { [L]: "not", [M]: [{ [L]: c, [M]: [{ [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "name"] }, "aws-iso"] }] }, q = { [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "name"] }, r = { [L]: "not", [M]: [{ [L]: c, [M]: [q, "aws-iso-b"] }] }, s = { [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "supportsFIPS"] }, t = {}, u = { [i]: "FIPS is enabled but this partition does not support FIPS", [I]: i }, v = { [i]: "DualStack is enabled but this partition does not support DualStack", [I]: i }, w = { [i]: "Invalid ARN: Failed to parse ARN.", [I]: i }, x = { [L]: f, [M]: [true, { [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "supportsDualStack"] }] }, y = [{ [N]: "StreamARN" }], z = [{ [L]: b, [M]: [m] }], A = [{ [K]: [{ [L]: "isValidHostLabel", [M]: [{ [L]: "getAttr", [M]: [{ [N]: e }, "accountId"] }, false] }], [J]: [{ [K]: [{ [L]: "isValidHostLabel", [M]: [{ [L]: "getAttr", [M]: [{ [N]: e }, "region"] }, false] }], [J]: [{ [K]: [{ [L]: c, [M]: [{ [L]: "getAttr", [M]: [{ [N]: e }, "service"] }, "kinesis"] }], [J]: [{ [K]: [{ [L]: "getAttr", [M]: [{ [N]: e }, "resourceId[0]"], [O]: "arnType" }, { [L]: "not", [M]: [{ [L]: c, [M]: [{ [N]: "arnType" }, ""] }] }], [J]: [{ [K]: [{ [L]: c, [M]: [{ [N]: "arnType" }, "stream"] }], [J]: [{ [K]: [{ [L]: c, [M]: [q, "{arn#partition}"] }], [J]: [{ [K]: [{ [L]: b, [M]: [{ [N]: "OperationType" }] }], [J]: [{ [K]: [{ [L]: f, [M]: [{ [N]: "UseFIPS" }, true] }, { [L]: f, [M]: [{ [N]: "UseDualStack" }, true] }], [J]: [{ [K]: [{ [L]: f, [M]: [s, true] }], [J]: [{ [K]: [{ [L]: f, [M]: [{ [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "supportsDualStack"] }, true] }], [J]: [{ [g]: { [P]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [Q]: {}, [R]: {} }, [I]: g }], [I]: h }, { [i]: "DualStack is enabled, but this partition does not support DualStack.", [I]: i }], [I]: h }, { [i]: "FIPS is enabled, but this partition does not support FIPS.", [I]: i }], [I]: h }, { [K]: [{ [L]: f, [M]: [{ [N]: "UseFIPS" }, true] }], [J]: [{ [K]: [{ [L]: f, [M]: [s, true] }], [J]: [{ [g]: { [P]: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [Q]: {}, [R]: {} }, [I]: g }], [I]: h }, u], [I]: h }, { [K]: [{ [L]: f, [M]: [{ [N]: "UseDualStack" }, true] }], [J]: [{ [K]: [{ [L]: f, [M]: [{ [L]: "getAttr", [M]: [{ [N]: "PartitionResult" }, "supportsDualStack"] }, true] }], [J]: [{ [g]: { [P]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [Q]: {}, [R]: {} }, [I]: g }], [I]: h }, v], [I]: h }, { [g]: { [P]: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", [Q]: {}, [R]: {} }, [I]: g }], [I]: h }, { [i]: "Operation Type is not set. Please contact service team for resolution.", [I]: i }], [I]: h }, { [i]: "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", [I]: i }], [I]: h }, { [i]: "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.", [I]: i }], [I]: h }, { [i]: "Invalid ARN: No ARN type specified", [I]: i }], [I]: h }, { [i]: "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.", [I]: i }], [I]: h }, { [i]: "Invalid ARN: Invalid region.", [I]: i }], [I]: h }, { [i]: "Invalid ARN: Invalid account id.", [I]: i }], B = [{ [L]: f, [M]: [{ [N]: "UseFIPS" }, true] }, { [L]: f, [M]: [{ [N]: "UseDualStack" }, true] }], C = [{ [L]: f, [M]: [s, true] }], D = [{ [L]: f, [M]: [{ [N]: "UseFIPS" }, true] }], E = [{ [L]: f, [M]: [{ [N]: "UseDualStack" }, true] }], F = [{ [N]: "ConsumerARN" }], G = [{ [N]: "ResourceARN" }];
6
+ const _data = { version: "1.0", parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j, StreamARN: j, OperationType: j, ConsumerARN: j, ResourceARN: j }, [J]: [{ [K]: [{ [L]: b, [M]: y }, l, n, o, p, r], [J]: [{ [K]: [{ [L]: d, [M]: y, [O]: e }], [J]: A, [I]: h }, w], [I]: h }, { [K]: [{ [L]: b, [M]: F }, l, n, o, p, r], [J]: [{ [K]: [{ [L]: d, [M]: F, [O]: e }], [J]: A, [I]: h }, w], [I]: h }, { [K]: [{ [L]: b, [M]: G }, l, n, o, p, r], [J]: [{ [K]: [{ [L]: d, [M]: G, [O]: e }], [J]: A, [I]: h }, w], [I]: h }, { [K]: z, [J]: [{ [K]: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [I]: i }, { [K]: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [I]: i }, { endpoint: { [P]: m, [Q]: t, [R]: t }, [I]: g }], [I]: h }, { [K]: [n], [J]: [{ [K]: [o], [J]: [{ [K]: B, [J]: [{ [K]: [{ [L]: f, [M]: [a, s] }, x], [J]: [{ endpoint: { [P]: "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [Q]: t, [R]: t }, [I]: g }], [I]: h }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [I]: i }], [I]: h }, { [K]: D, [J]: [{ [K]: C, [J]: [{ [K]: [{ [L]: c, [M]: [q, "aws-us-gov"] }], endpoint: { [P]: "https://kinesis.{Region}.amazonaws.com", [Q]: t, [R]: t }, [I]: g }, { endpoint: { [P]: "https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", [Q]: t, [R]: t }, [I]: g }], [I]: h }, u], [I]: h }, { [K]: E, [J]: [{ [K]: [x], [J]: [{ endpoint: { [P]: "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", [Q]: t, [R]: t }, [I]: g }], [I]: h }, v], [I]: h }, { endpoint: { [P]: "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", [Q]: t, [R]: t }, [I]: g }], [I]: h }], [I]: h }, { error: "Invalid Configuration: Missing Region", [I]: i }] };
7
7
  exports.ruleSet = _data;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_PutRecordsCommand = exports.de_PutRecordCommand = exports.de_MergeShardsCommand = exports.de_ListTagsForStreamCommand = exports.de_ListStreamsCommand = exports.de_ListStreamConsumersCommand = exports.de_ListShardsCommand = exports.de_IncreaseStreamRetentionPeriodCommand = exports.de_GetShardIteratorCommand = exports.de_GetRecordsCommand = exports.de_EnableEnhancedMonitoringCommand = exports.de_DisableEnhancedMonitoringCommand = exports.de_DescribeStreamSummaryCommand = exports.de_DescribeStreamConsumerCommand = exports.de_DescribeStreamCommand = exports.de_DescribeLimitsCommand = exports.de_DeregisterStreamConsumerCommand = exports.de_DeleteStreamCommand = exports.de_DecreaseStreamRetentionPeriodCommand = exports.de_CreateStreamCommand = exports.de_AddTagsToStreamCommand = exports.se_UpdateStreamModeCommand = exports.se_UpdateShardCountCommand = exports.se_SubscribeToShardCommand = exports.se_StopStreamEncryptionCommand = exports.se_StartStreamEncryptionCommand = exports.se_SplitShardCommand = exports.se_RemoveTagsFromStreamCommand = exports.se_RegisterStreamConsumerCommand = exports.se_PutRecordsCommand = exports.se_PutRecordCommand = exports.se_MergeShardsCommand = exports.se_ListTagsForStreamCommand = exports.se_ListStreamsCommand = exports.se_ListStreamConsumersCommand = exports.se_ListShardsCommand = exports.se_IncreaseStreamRetentionPeriodCommand = exports.se_GetShardIteratorCommand = exports.se_GetRecordsCommand = exports.se_EnableEnhancedMonitoringCommand = exports.se_DisableEnhancedMonitoringCommand = exports.se_DescribeStreamSummaryCommand = exports.se_DescribeStreamConsumerCommand = exports.se_DescribeStreamCommand = exports.se_DescribeLimitsCommand = exports.se_DeregisterStreamConsumerCommand = exports.se_DeleteStreamCommand = exports.se_DecreaseStreamRetentionPeriodCommand = exports.se_CreateStreamCommand = exports.se_AddTagsToStreamCommand = void 0;
4
- exports.de_UpdateStreamModeCommand = exports.de_UpdateShardCountCommand = exports.de_SubscribeToShardCommand = exports.de_StopStreamEncryptionCommand = exports.de_StartStreamEncryptionCommand = exports.de_SplitShardCommand = exports.de_RemoveTagsFromStreamCommand = exports.de_RegisterStreamConsumerCommand = void 0;
3
+ exports.de_ListStreamConsumersCommand = exports.de_ListShardsCommand = exports.de_IncreaseStreamRetentionPeriodCommand = exports.de_GetShardIteratorCommand = exports.de_GetResourcePolicyCommand = exports.de_GetRecordsCommand = exports.de_EnableEnhancedMonitoringCommand = exports.de_DisableEnhancedMonitoringCommand = exports.de_DescribeStreamSummaryCommand = exports.de_DescribeStreamConsumerCommand = exports.de_DescribeStreamCommand = exports.de_DescribeLimitsCommand = exports.de_DeregisterStreamConsumerCommand = exports.de_DeleteStreamCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DecreaseStreamRetentionPeriodCommand = exports.de_CreateStreamCommand = exports.de_AddTagsToStreamCommand = exports.se_UpdateStreamModeCommand = exports.se_UpdateShardCountCommand = exports.se_SubscribeToShardCommand = exports.se_StopStreamEncryptionCommand = exports.se_StartStreamEncryptionCommand = exports.se_SplitShardCommand = exports.se_RemoveTagsFromStreamCommand = exports.se_RegisterStreamConsumerCommand = exports.se_PutResourcePolicyCommand = exports.se_PutRecordsCommand = exports.se_PutRecordCommand = exports.se_MergeShardsCommand = exports.se_ListTagsForStreamCommand = exports.se_ListStreamsCommand = exports.se_ListStreamConsumersCommand = exports.se_ListShardsCommand = exports.se_IncreaseStreamRetentionPeriodCommand = exports.se_GetShardIteratorCommand = exports.se_GetResourcePolicyCommand = exports.se_GetRecordsCommand = exports.se_EnableEnhancedMonitoringCommand = exports.se_DisableEnhancedMonitoringCommand = exports.se_DescribeStreamSummaryCommand = exports.se_DescribeStreamConsumerCommand = exports.se_DescribeStreamCommand = exports.se_DescribeLimitsCommand = exports.se_DeregisterStreamConsumerCommand = exports.se_DeleteStreamCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DecreaseStreamRetentionPeriodCommand = exports.se_CreateStreamCommand = exports.se_AddTagsToStreamCommand = void 0;
4
+ exports.de_UpdateStreamModeCommand = exports.de_UpdateShardCountCommand = exports.de_SubscribeToShardCommand = exports.de_StopStreamEncryptionCommand = exports.de_StartStreamEncryptionCommand = exports.de_SplitShardCommand = exports.de_RemoveTagsFromStreamCommand = exports.de_RegisterStreamConsumerCommand = exports.de_PutResourcePolicyCommand = exports.de_PutRecordsCommand = exports.de_PutRecordCommand = exports.de_MergeShardsCommand = exports.de_ListTagsForStreamCommand = exports.de_ListStreamsCommand = void 0;
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const KinesisServiceException_1 = require("../models/KinesisServiceException");
@@ -27,6 +27,13 @@ const se_DecreaseStreamRetentionPeriodCommand = async (input, context) => {
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  exports.se_DecreaseStreamRetentionPeriodCommand = se_DecreaseStreamRetentionPeriodCommand;
30
+ const se_DeleteResourcePolicyCommand = async (input, context) => {
31
+ const headers = sharedHeaders("DeleteResourcePolicy");
32
+ let body;
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
34
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
+ };
36
+ exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
30
37
  const se_DeleteStreamCommand = async (input, context) => {
31
38
  const headers = sharedHeaders("DeleteStream");
32
39
  let body;
@@ -90,6 +97,13 @@ const se_GetRecordsCommand = async (input, context) => {
90
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
98
  };
92
99
  exports.se_GetRecordsCommand = se_GetRecordsCommand;
100
+ const se_GetResourcePolicyCommand = async (input, context) => {
101
+ const headers = sharedHeaders("GetResourcePolicy");
102
+ let body;
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
104
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
+ };
106
+ exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
93
107
  const se_GetShardIteratorCommand = async (input, context) => {
94
108
  const headers = sharedHeaders("GetShardIterator");
95
109
  let body;
@@ -153,6 +167,13 @@ const se_PutRecordsCommand = async (input, context) => {
153
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
168
  };
155
169
  exports.se_PutRecordsCommand = se_PutRecordsCommand;
170
+ const se_PutResourcePolicyCommand = async (input, context) => {
171
+ const headers = sharedHeaders("PutResourcePolicy");
172
+ let body;
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
174
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
+ };
176
+ exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
156
177
  const se_RegisterStreamConsumerCommand = async (input, context) => {
157
178
  const headers = sharedHeaders("RegisterStreamConsumer");
158
179
  let body;
@@ -329,6 +350,48 @@ const de_DecreaseStreamRetentionPeriodCommandError = async (output, context) =>
329
350
  });
330
351
  }
331
352
  };
353
+ const de_DeleteResourcePolicyCommand = async (output, context) => {
354
+ if (output.statusCode >= 300) {
355
+ return de_DeleteResourcePolicyCommandError(output, context);
356
+ }
357
+ await (0, smithy_client_1.collectBody)(output.body, context);
358
+ const response = {
359
+ $metadata: deserializeMetadata(output),
360
+ };
361
+ return response;
362
+ };
363
+ exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
364
+ const de_DeleteResourcePolicyCommandError = async (output, context) => {
365
+ const parsedOutput = {
366
+ ...output,
367
+ body: await parseErrorBody(output.body, context),
368
+ };
369
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
370
+ switch (errorCode) {
371
+ case "AccessDeniedException":
372
+ case "com.amazonaws.kinesis#AccessDeniedException":
373
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
374
+ case "InvalidArgumentException":
375
+ case "com.amazonaws.kinesis#InvalidArgumentException":
376
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
377
+ case "LimitExceededException":
378
+ case "com.amazonaws.kinesis#LimitExceededException":
379
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
380
+ case "ResourceInUseException":
381
+ case "com.amazonaws.kinesis#ResourceInUseException":
382
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
383
+ case "ResourceNotFoundException":
384
+ case "com.amazonaws.kinesis#ResourceNotFoundException":
385
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
386
+ default:
387
+ const parsedBody = parsedOutput.body;
388
+ return throwDefaultError({
389
+ output,
390
+ parsedBody,
391
+ errorCode,
392
+ });
393
+ }
394
+ };
332
395
  const de_DeleteStreamCommand = async (output, context) => {
333
396
  if (output.statusCode >= 300) {
334
397
  return de_DeleteStreamCommandError(output, context);
@@ -716,6 +779,48 @@ const de_GetRecordsCommandError = async (output, context) => {
716
779
  });
717
780
  }
718
781
  };
782
+ const de_GetResourcePolicyCommand = async (output, context) => {
783
+ if (output.statusCode >= 300) {
784
+ return de_GetResourcePolicyCommandError(output, context);
785
+ }
786
+ const data = await parseBody(output.body, context);
787
+ let contents = {};
788
+ contents = (0, smithy_client_1._json)(data);
789
+ const response = {
790
+ $metadata: deserializeMetadata(output),
791
+ ...contents,
792
+ };
793
+ return response;
794
+ };
795
+ exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
796
+ const de_GetResourcePolicyCommandError = async (output, context) => {
797
+ const parsedOutput = {
798
+ ...output,
799
+ body: await parseErrorBody(output.body, context),
800
+ };
801
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
802
+ switch (errorCode) {
803
+ case "AccessDeniedException":
804
+ case "com.amazonaws.kinesis#AccessDeniedException":
805
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
806
+ case "InvalidArgumentException":
807
+ case "com.amazonaws.kinesis#InvalidArgumentException":
808
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
809
+ case "LimitExceededException":
810
+ case "com.amazonaws.kinesis#LimitExceededException":
811
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
812
+ case "ResourceNotFoundException":
813
+ case "com.amazonaws.kinesis#ResourceNotFoundException":
814
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
815
+ default:
816
+ const parsedBody = parsedOutput.body;
817
+ return throwDefaultError({
818
+ output,
819
+ parsedBody,
820
+ errorCode,
821
+ });
822
+ }
823
+ };
719
824
  const de_GetShardIteratorCommand = async (output, context) => {
720
825
  if (output.statusCode >= 300) {
721
826
  return de_GetShardIteratorCommandError(output, context);
@@ -1139,6 +1244,48 @@ const de_PutRecordsCommandError = async (output, context) => {
1139
1244
  });
1140
1245
  }
1141
1246
  };
1247
+ const de_PutResourcePolicyCommand = async (output, context) => {
1248
+ if (output.statusCode >= 300) {
1249
+ return de_PutResourcePolicyCommandError(output, context);
1250
+ }
1251
+ await (0, smithy_client_1.collectBody)(output.body, context);
1252
+ const response = {
1253
+ $metadata: deserializeMetadata(output),
1254
+ };
1255
+ return response;
1256
+ };
1257
+ exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
1258
+ const de_PutResourcePolicyCommandError = async (output, context) => {
1259
+ const parsedOutput = {
1260
+ ...output,
1261
+ body: await parseErrorBody(output.body, context),
1262
+ };
1263
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1264
+ switch (errorCode) {
1265
+ case "AccessDeniedException":
1266
+ case "com.amazonaws.kinesis#AccessDeniedException":
1267
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1268
+ case "InvalidArgumentException":
1269
+ case "com.amazonaws.kinesis#InvalidArgumentException":
1270
+ throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1271
+ case "LimitExceededException":
1272
+ case "com.amazonaws.kinesis#LimitExceededException":
1273
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1274
+ case "ResourceInUseException":
1275
+ case "com.amazonaws.kinesis#ResourceInUseException":
1276
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1277
+ case "ResourceNotFoundException":
1278
+ case "com.amazonaws.kinesis#ResourceNotFoundException":
1279
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1280
+ default:
1281
+ const parsedBody = parsedOutput.body;
1282
+ return throwDefaultError({
1283
+ output,
1284
+ parsedBody,
1285
+ errorCode,
1286
+ });
1287
+ }
1288
+ };
1142
1289
  const de_RegisterStreamConsumerCommand = async (output, context) => {
1143
1290
  if (output.statusCode >= 300) {
1144
1291
  return de_RegisterStreamConsumerCommandError(output, context);
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { AddTagsToStreamCommand, } from "./commands/AddTagsToStreamCommand";
3
3
  import { CreateStreamCommand, } from "./commands/CreateStreamCommand";
4
4
  import { DecreaseStreamRetentionPeriodCommand, } from "./commands/DecreaseStreamRetentionPeriodCommand";
5
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
5
6
  import { DeleteStreamCommand, } from "./commands/DeleteStreamCommand";
6
7
  import { DeregisterStreamConsumerCommand, } from "./commands/DeregisterStreamConsumerCommand";
7
8
  import { DescribeLimitsCommand, } from "./commands/DescribeLimitsCommand";
@@ -11,6 +12,7 @@ import { DescribeStreamSummaryCommand, } from "./commands/DescribeStreamSummaryC
11
12
  import { DisableEnhancedMonitoringCommand, } from "./commands/DisableEnhancedMonitoringCommand";
12
13
  import { EnableEnhancedMonitoringCommand, } from "./commands/EnableEnhancedMonitoringCommand";
13
14
  import { GetRecordsCommand } from "./commands/GetRecordsCommand";
15
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
14
16
  import { GetShardIteratorCommand, } from "./commands/GetShardIteratorCommand";
15
17
  import { IncreaseStreamRetentionPeriodCommand, } from "./commands/IncreaseStreamRetentionPeriodCommand";
16
18
  import { ListShardsCommand } from "./commands/ListShardsCommand";
@@ -20,6 +22,7 @@ import { ListTagsForStreamCommand, } from "./commands/ListTagsForStreamCommand";
20
22
  import { MergeShardsCommand } from "./commands/MergeShardsCommand";
21
23
  import { PutRecordCommand } from "./commands/PutRecordCommand";
22
24
  import { PutRecordsCommand } from "./commands/PutRecordsCommand";
25
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
23
26
  import { RegisterStreamConsumerCommand, } from "./commands/RegisterStreamConsumerCommand";
24
27
  import { RemoveTagsFromStreamCommand, } from "./commands/RemoveTagsFromStreamCommand";
25
28
  import { SplitShardCommand } from "./commands/SplitShardCommand";
@@ -33,6 +36,7 @@ const commands = {
33
36
  AddTagsToStreamCommand,
34
37
  CreateStreamCommand,
35
38
  DecreaseStreamRetentionPeriodCommand,
39
+ DeleteResourcePolicyCommand,
36
40
  DeleteStreamCommand,
37
41
  DeregisterStreamConsumerCommand,
38
42
  DescribeLimitsCommand,
@@ -42,6 +46,7 @@ const commands = {
42
46
  DisableEnhancedMonitoringCommand,
43
47
  EnableEnhancedMonitoringCommand,
44
48
  GetRecordsCommand,
49
+ GetResourcePolicyCommand,
45
50
  GetShardIteratorCommand,
46
51
  IncreaseStreamRetentionPeriodCommand,
47
52
  ListShardsCommand,
@@ -51,6 +56,7 @@ const commands = {
51
56
  MergeShardsCommand,
52
57
  PutRecordCommand,
53
58
  PutRecordsCommand,
59
+ PutResourcePolicyCommand,
54
60
  RegisterStreamConsumerCommand,
55
61
  RemoveTagsFromStreamCommand,
56
62
  SplitShardCommand,
@@ -0,0 +1,49 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DeleteResourcePolicyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ OperationType: { type: "staticContextParams", value: `control` },
11
+ ResourceARN: { type: "contextParams", name: "ResourceARN" },
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteResourcePolicyCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "KinesisClient";
28
+ const commandName = "DeleteResourcePolicyCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ [SMITHY_CONTEXT_KEY]: {
36
+ service: "Kinesis_20131202",
37
+ operation: "DeleteResourcePolicy",
38
+ },
39
+ };
40
+ const { requestHandler } = configuration;
41
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
+ }
43
+ serialize(input, context) {
44
+ return se_DeleteResourcePolicyCommand(input, context);
45
+ }
46
+ deserialize(output, context) {
47
+ return de_DeleteResourcePolicyCommand(output, context);
48
+ }
49
+ }