@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.
- package/README.md +24 -0
- package/dist-cjs/Kinesis.js +6 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +53 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +53 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +53 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/protocols/Aws_json1_1.js +149 -2
- package/dist-es/Kinesis.js +6 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +49 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +49 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +49 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +141 -0
- package/dist-types/Kinesis.d.ts +21 -0
- package/dist-types/KinesisClient.d.ts +5 -2
- package/dist-types/commands/AddTagsToStreamCommand.d.ts +3 -2
- package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +3 -2
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +101 -0
- package/dist-types/commands/DeleteStreamCommand.d.ts +3 -2
- package/dist-types/commands/DescribeStreamCommand.d.ts +3 -2
- package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +3 -0
- package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +3 -2
- package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +3 -2
- package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +3 -2
- package/dist-types/commands/GetRecordsCommand.d.ts +3 -2
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +99 -0
- package/dist-types/commands/GetShardIteratorCommand.d.ts +3 -2
- package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +3 -2
- package/dist-types/commands/ListShardsCommand.d.ts +3 -2
- package/dist-types/commands/ListTagsForStreamCommand.d.ts +3 -2
- package/dist-types/commands/MergeShardsCommand.d.ts +3 -2
- package/dist-types/commands/PutRecordCommand.d.ts +3 -2
- package/dist-types/commands/PutRecordsCommand.d.ts +3 -2
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +109 -0
- package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +3 -2
- package/dist-types/commands/SplitShardCommand.d.ts +3 -2
- package/dist-types/commands/StartStreamEncryptionCommand.d.ts +5 -4
- package/dist-types/commands/StopStreamEncryptionCommand.d.ts +3 -2
- package/dist-types/commands/UpdateShardCountCommand.d.ts +6 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +45 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/Kinesis.d.ts +51 -0
- package/dist-types/ts3.4/KinesisClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +2 -2
|
@@ -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_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetResourcePolicyCommand 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, GetResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "KinesisClient";
|
|
28
|
+
const commandName = "GetResourcePolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
36
|
+
service: "Kinesis_20131202",
|
|
37
|
+
operation: "GetResourcePolicy",
|
|
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_GetResourcePolicyCommand(input, context);
|
|
45
|
+
}
|
|
46
|
+
deserialize(output, context) {
|
|
47
|
+
return de_GetResourcePolicyCommand(output, context);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -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_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutResourcePolicyCommand 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, PutResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "KinesisClient";
|
|
28
|
+
const commandName = "PutResourcePolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
36
|
+
service: "Kinesis_20131202",
|
|
37
|
+
operation: "PutResourcePolicy",
|
|
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_PutResourcePolicyCommand(input, context);
|
|
45
|
+
}
|
|
46
|
+
deserialize(output, context) {
|
|
47
|
+
return de_PutResourcePolicyCommand(output, context);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = true, b = "isSet", c = "stringEquals", d = "aws.parseArn", e = "arn", f = "booleanEquals", g = "endpoint", h = "tree", i = "error", j = { [
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j, StreamARN: j, OperationType: j, ConsumerARN: j }, [
|
|
1
|
+
const H = "required", I = "type", J = "rules", K = "conditions", L = "fn", M = "argv", N = "ref", O = "assign", P = "url", Q = "properties", R = "headers";
|
|
2
|
+
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" }];
|
|
3
|
+
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 }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -20,6 +20,12 @@ export const se_DecreaseStreamRetentionPeriodCommand = async (input, context) =>
|
|
|
20
20
|
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
+
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
24
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
25
|
+
let body;
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
+
};
|
|
23
29
|
export const se_DeleteStreamCommand = async (input, context) => {
|
|
24
30
|
const headers = sharedHeaders("DeleteStream");
|
|
25
31
|
let body;
|
|
@@ -74,6 +80,12 @@ export const se_GetRecordsCommand = async (input, context) => {
|
|
|
74
80
|
body = JSON.stringify(_json(input));
|
|
75
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
82
|
};
|
|
83
|
+
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
84
|
+
const headers = sharedHeaders("GetResourcePolicy");
|
|
85
|
+
let body;
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
|
+
};
|
|
77
89
|
export const se_GetShardIteratorCommand = async (input, context) => {
|
|
78
90
|
const headers = sharedHeaders("GetShardIterator");
|
|
79
91
|
let body;
|
|
@@ -128,6 +140,12 @@ export const se_PutRecordsCommand = async (input, context) => {
|
|
|
128
140
|
body = JSON.stringify(se_PutRecordsInput(input, context));
|
|
129
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
142
|
};
|
|
143
|
+
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
144
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
131
149
|
export const se_RegisterStreamConsumerCommand = async (input, context) => {
|
|
132
150
|
const headers = sharedHeaders("RegisterStreamConsumer");
|
|
133
151
|
let body;
|
|
@@ -293,6 +311,47 @@ const de_DecreaseStreamRetentionPeriodCommandError = async (output, context) =>
|
|
|
293
311
|
});
|
|
294
312
|
}
|
|
295
313
|
};
|
|
314
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
315
|
+
if (output.statusCode >= 300) {
|
|
316
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
317
|
+
}
|
|
318
|
+
await collectBody(output.body, context);
|
|
319
|
+
const response = {
|
|
320
|
+
$metadata: deserializeMetadata(output),
|
|
321
|
+
};
|
|
322
|
+
return response;
|
|
323
|
+
};
|
|
324
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
325
|
+
const parsedOutput = {
|
|
326
|
+
...output,
|
|
327
|
+
body: await parseErrorBody(output.body, context),
|
|
328
|
+
};
|
|
329
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
|
+
switch (errorCode) {
|
|
331
|
+
case "AccessDeniedException":
|
|
332
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
333
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
334
|
+
case "InvalidArgumentException":
|
|
335
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
336
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
337
|
+
case "LimitExceededException":
|
|
338
|
+
case "com.amazonaws.kinesis#LimitExceededException":
|
|
339
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
340
|
+
case "ResourceInUseException":
|
|
341
|
+
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
342
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
343
|
+
case "ResourceNotFoundException":
|
|
344
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
345
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
346
|
+
default:
|
|
347
|
+
const parsedBody = parsedOutput.body;
|
|
348
|
+
return throwDefaultError({
|
|
349
|
+
output,
|
|
350
|
+
parsedBody,
|
|
351
|
+
errorCode,
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
};
|
|
296
355
|
export const de_DeleteStreamCommand = async (output, context) => {
|
|
297
356
|
if (output.statusCode >= 300) {
|
|
298
357
|
return de_DeleteStreamCommandError(output, context);
|
|
@@ -671,6 +730,47 @@ const de_GetRecordsCommandError = async (output, context) => {
|
|
|
671
730
|
});
|
|
672
731
|
}
|
|
673
732
|
};
|
|
733
|
+
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
734
|
+
if (output.statusCode >= 300) {
|
|
735
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
736
|
+
}
|
|
737
|
+
const data = await parseBody(output.body, context);
|
|
738
|
+
let contents = {};
|
|
739
|
+
contents = _json(data);
|
|
740
|
+
const response = {
|
|
741
|
+
$metadata: deserializeMetadata(output),
|
|
742
|
+
...contents,
|
|
743
|
+
};
|
|
744
|
+
return response;
|
|
745
|
+
};
|
|
746
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
747
|
+
const parsedOutput = {
|
|
748
|
+
...output,
|
|
749
|
+
body: await parseErrorBody(output.body, context),
|
|
750
|
+
};
|
|
751
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
+
switch (errorCode) {
|
|
753
|
+
case "AccessDeniedException":
|
|
754
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
755
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
756
|
+
case "InvalidArgumentException":
|
|
757
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
758
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
759
|
+
case "LimitExceededException":
|
|
760
|
+
case "com.amazonaws.kinesis#LimitExceededException":
|
|
761
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
762
|
+
case "ResourceNotFoundException":
|
|
763
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
764
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
765
|
+
default:
|
|
766
|
+
const parsedBody = parsedOutput.body;
|
|
767
|
+
return throwDefaultError({
|
|
768
|
+
output,
|
|
769
|
+
parsedBody,
|
|
770
|
+
errorCode,
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
};
|
|
674
774
|
export const de_GetShardIteratorCommand = async (output, context) => {
|
|
675
775
|
if (output.statusCode >= 300) {
|
|
676
776
|
return de_GetShardIteratorCommandError(output, context);
|
|
@@ -1085,6 +1185,47 @@ const de_PutRecordsCommandError = async (output, context) => {
|
|
|
1085
1185
|
});
|
|
1086
1186
|
}
|
|
1087
1187
|
};
|
|
1188
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1189
|
+
if (output.statusCode >= 300) {
|
|
1190
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
1191
|
+
}
|
|
1192
|
+
await collectBody(output.body, context);
|
|
1193
|
+
const response = {
|
|
1194
|
+
$metadata: deserializeMetadata(output),
|
|
1195
|
+
};
|
|
1196
|
+
return response;
|
|
1197
|
+
};
|
|
1198
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1199
|
+
const parsedOutput = {
|
|
1200
|
+
...output,
|
|
1201
|
+
body: await parseErrorBody(output.body, context),
|
|
1202
|
+
};
|
|
1203
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
+
switch (errorCode) {
|
|
1205
|
+
case "AccessDeniedException":
|
|
1206
|
+
case "com.amazonaws.kinesis#AccessDeniedException":
|
|
1207
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1208
|
+
case "InvalidArgumentException":
|
|
1209
|
+
case "com.amazonaws.kinesis#InvalidArgumentException":
|
|
1210
|
+
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1211
|
+
case "LimitExceededException":
|
|
1212
|
+
case "com.amazonaws.kinesis#LimitExceededException":
|
|
1213
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1214
|
+
case "ResourceInUseException":
|
|
1215
|
+
case "com.amazonaws.kinesis#ResourceInUseException":
|
|
1216
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1217
|
+
case "ResourceNotFoundException":
|
|
1218
|
+
case "com.amazonaws.kinesis#ResourceNotFoundException":
|
|
1219
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1220
|
+
default:
|
|
1221
|
+
const parsedBody = parsedOutput.body;
|
|
1222
|
+
return throwDefaultError({
|
|
1223
|
+
output,
|
|
1224
|
+
parsedBody,
|
|
1225
|
+
errorCode,
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1088
1229
|
export const de_RegisterStreamConsumerCommand = async (output, context) => {
|
|
1089
1230
|
if (output.statusCode >= 300) {
|
|
1090
1231
|
return de_RegisterStreamConsumerCommandError(output, context);
|
package/dist-types/Kinesis.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
|
2
2
|
import { AddTagsToStreamCommandInput, AddTagsToStreamCommandOutput } from "./commands/AddTagsToStreamCommand";
|
|
3
3
|
import { CreateStreamCommandInput, CreateStreamCommandOutput } from "./commands/CreateStreamCommand";
|
|
4
4
|
import { DecreaseStreamRetentionPeriodCommandInput, DecreaseStreamRetentionPeriodCommandOutput } from "./commands/DecreaseStreamRetentionPeriodCommand";
|
|
5
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
5
6
|
import { DeleteStreamCommandInput, DeleteStreamCommandOutput } from "./commands/DeleteStreamCommand";
|
|
6
7
|
import { DeregisterStreamConsumerCommandInput, DeregisterStreamConsumerCommandOutput } from "./commands/DeregisterStreamConsumerCommand";
|
|
7
8
|
import { DescribeLimitsCommandInput, DescribeLimitsCommandOutput } from "./commands/DescribeLimitsCommand";
|
|
@@ -11,6 +12,7 @@ import { DescribeStreamSummaryCommandInput, DescribeStreamSummaryCommandOutput }
|
|
|
11
12
|
import { DisableEnhancedMonitoringCommandInput, DisableEnhancedMonitoringCommandOutput } from "./commands/DisableEnhancedMonitoringCommand";
|
|
12
13
|
import { EnableEnhancedMonitoringCommandInput, EnableEnhancedMonitoringCommandOutput } from "./commands/EnableEnhancedMonitoringCommand";
|
|
13
14
|
import { GetRecordsCommandInput, GetRecordsCommandOutput } from "./commands/GetRecordsCommand";
|
|
15
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
14
16
|
import { GetShardIteratorCommandInput, GetShardIteratorCommandOutput } from "./commands/GetShardIteratorCommand";
|
|
15
17
|
import { IncreaseStreamRetentionPeriodCommandInput, IncreaseStreamRetentionPeriodCommandOutput } from "./commands/IncreaseStreamRetentionPeriodCommand";
|
|
16
18
|
import { ListShardsCommandInput, ListShardsCommandOutput } from "./commands/ListShardsCommand";
|
|
@@ -20,6 +22,7 @@ import { ListTagsForStreamCommandInput, ListTagsForStreamCommandOutput } from ".
|
|
|
20
22
|
import { MergeShardsCommandInput, MergeShardsCommandOutput } from "./commands/MergeShardsCommand";
|
|
21
23
|
import { PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
|
|
22
24
|
import { PutRecordsCommandInput, PutRecordsCommandOutput } from "./commands/PutRecordsCommand";
|
|
25
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
23
26
|
import { RegisterStreamConsumerCommandInput, RegisterStreamConsumerCommandOutput } from "./commands/RegisterStreamConsumerCommand";
|
|
24
27
|
import { RemoveTagsFromStreamCommandInput, RemoveTagsFromStreamCommandOutput } from "./commands/RemoveTagsFromStreamCommand";
|
|
25
28
|
import { SplitShardCommandInput, SplitShardCommandOutput } from "./commands/SplitShardCommand";
|
|
@@ -48,6 +51,12 @@ export interface Kinesis {
|
|
|
48
51
|
decreaseStreamRetentionPeriod(args: DecreaseStreamRetentionPeriodCommandInput, options?: __HttpHandlerOptions): Promise<DecreaseStreamRetentionPeriodCommandOutput>;
|
|
49
52
|
decreaseStreamRetentionPeriod(args: DecreaseStreamRetentionPeriodCommandInput, cb: (err: any, data?: DecreaseStreamRetentionPeriodCommandOutput) => void): void;
|
|
50
53
|
decreaseStreamRetentionPeriod(args: DecreaseStreamRetentionPeriodCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DecreaseStreamRetentionPeriodCommandOutput) => void): void;
|
|
54
|
+
/**
|
|
55
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
56
|
+
*/
|
|
57
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
58
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
59
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
51
60
|
/**
|
|
52
61
|
* @see {@link DeleteStreamCommand}
|
|
53
62
|
*/
|
|
@@ -102,6 +111,12 @@ export interface Kinesis {
|
|
|
102
111
|
getRecords(args: GetRecordsCommandInput, options?: __HttpHandlerOptions): Promise<GetRecordsCommandOutput>;
|
|
103
112
|
getRecords(args: GetRecordsCommandInput, cb: (err: any, data?: GetRecordsCommandOutput) => void): void;
|
|
104
113
|
getRecords(args: GetRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecordsCommandOutput) => void): void;
|
|
114
|
+
/**
|
|
115
|
+
* @see {@link GetResourcePolicyCommand}
|
|
116
|
+
*/
|
|
117
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
118
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
119
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
105
120
|
/**
|
|
106
121
|
* @see {@link GetShardIteratorCommand}
|
|
107
122
|
*/
|
|
@@ -156,6 +171,12 @@ export interface Kinesis {
|
|
|
156
171
|
putRecords(args: PutRecordsCommandInput, options?: __HttpHandlerOptions): Promise<PutRecordsCommandOutput>;
|
|
157
172
|
putRecords(args: PutRecordsCommandInput, cb: (err: any, data?: PutRecordsCommandOutput) => void): void;
|
|
158
173
|
putRecords(args: PutRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecordsCommandOutput) => void): void;
|
|
174
|
+
/**
|
|
175
|
+
* @see {@link PutResourcePolicyCommand}
|
|
176
|
+
*/
|
|
177
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
178
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
179
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
159
180
|
/**
|
|
160
181
|
* @see {@link RegisterStreamConsumerCommand}
|
|
161
182
|
*/
|
|
@@ -12,6 +12,7 @@ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConf
|
|
|
12
12
|
import { AddTagsToStreamCommandInput, AddTagsToStreamCommandOutput } from "./commands/AddTagsToStreamCommand";
|
|
13
13
|
import { CreateStreamCommandInput, CreateStreamCommandOutput } from "./commands/CreateStreamCommand";
|
|
14
14
|
import { DecreaseStreamRetentionPeriodCommandInput, DecreaseStreamRetentionPeriodCommandOutput } from "./commands/DecreaseStreamRetentionPeriodCommand";
|
|
15
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
15
16
|
import { DeleteStreamCommandInput, DeleteStreamCommandOutput } from "./commands/DeleteStreamCommand";
|
|
16
17
|
import { DeregisterStreamConsumerCommandInput, DeregisterStreamConsumerCommandOutput } from "./commands/DeregisterStreamConsumerCommand";
|
|
17
18
|
import { DescribeLimitsCommandInput, DescribeLimitsCommandOutput } from "./commands/DescribeLimitsCommand";
|
|
@@ -21,6 +22,7 @@ import { DescribeStreamSummaryCommandInput, DescribeStreamSummaryCommandOutput }
|
|
|
21
22
|
import { DisableEnhancedMonitoringCommandInput, DisableEnhancedMonitoringCommandOutput } from "./commands/DisableEnhancedMonitoringCommand";
|
|
22
23
|
import { EnableEnhancedMonitoringCommandInput, EnableEnhancedMonitoringCommandOutput } from "./commands/EnableEnhancedMonitoringCommand";
|
|
23
24
|
import { GetRecordsCommandInput, GetRecordsCommandOutput } from "./commands/GetRecordsCommand";
|
|
25
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
24
26
|
import { GetShardIteratorCommandInput, GetShardIteratorCommandOutput } from "./commands/GetShardIteratorCommand";
|
|
25
27
|
import { IncreaseStreamRetentionPeriodCommandInput, IncreaseStreamRetentionPeriodCommandOutput } from "./commands/IncreaseStreamRetentionPeriodCommand";
|
|
26
28
|
import { ListShardsCommandInput, ListShardsCommandOutput } from "./commands/ListShardsCommand";
|
|
@@ -30,6 +32,7 @@ import { ListTagsForStreamCommandInput, ListTagsForStreamCommandOutput } from ".
|
|
|
30
32
|
import { MergeShardsCommandInput, MergeShardsCommandOutput } from "./commands/MergeShardsCommand";
|
|
31
33
|
import { PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
|
|
32
34
|
import { PutRecordsCommandInput, PutRecordsCommandOutput } from "./commands/PutRecordsCommand";
|
|
35
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
33
36
|
import { RegisterStreamConsumerCommandInput, RegisterStreamConsumerCommandOutput } from "./commands/RegisterStreamConsumerCommand";
|
|
34
37
|
import { RemoveTagsFromStreamCommandInput, RemoveTagsFromStreamCommandOutput } from "./commands/RemoveTagsFromStreamCommand";
|
|
35
38
|
import { SplitShardCommandInput, SplitShardCommandOutput } from "./commands/SplitShardCommand";
|
|
@@ -44,11 +47,11 @@ export { __Client };
|
|
|
44
47
|
/**
|
|
45
48
|
* @public
|
|
46
49
|
*/
|
|
47
|
-
export type ServiceInputTypes = AddTagsToStreamCommandInput | CreateStreamCommandInput | DecreaseStreamRetentionPeriodCommandInput | DeleteStreamCommandInput | DeregisterStreamConsumerCommandInput | DescribeLimitsCommandInput | DescribeStreamCommandInput | DescribeStreamConsumerCommandInput | DescribeStreamSummaryCommandInput | DisableEnhancedMonitoringCommandInput | EnableEnhancedMonitoringCommandInput | GetRecordsCommandInput | GetShardIteratorCommandInput | IncreaseStreamRetentionPeriodCommandInput | ListShardsCommandInput | ListStreamConsumersCommandInput | ListStreamsCommandInput | ListTagsForStreamCommandInput | MergeShardsCommandInput | PutRecordCommandInput | PutRecordsCommandInput | RegisterStreamConsumerCommandInput | RemoveTagsFromStreamCommandInput | SplitShardCommandInput | StartStreamEncryptionCommandInput | StopStreamEncryptionCommandInput | SubscribeToShardCommandInput | UpdateShardCountCommandInput | UpdateStreamModeCommandInput;
|
|
50
|
+
export type ServiceInputTypes = AddTagsToStreamCommandInput | CreateStreamCommandInput | DecreaseStreamRetentionPeriodCommandInput | DeleteResourcePolicyCommandInput | DeleteStreamCommandInput | DeregisterStreamConsumerCommandInput | DescribeLimitsCommandInput | DescribeStreamCommandInput | DescribeStreamConsumerCommandInput | DescribeStreamSummaryCommandInput | DisableEnhancedMonitoringCommandInput | EnableEnhancedMonitoringCommandInput | GetRecordsCommandInput | GetResourcePolicyCommandInput | GetShardIteratorCommandInput | IncreaseStreamRetentionPeriodCommandInput | ListShardsCommandInput | ListStreamConsumersCommandInput | ListStreamsCommandInput | ListTagsForStreamCommandInput | MergeShardsCommandInput | PutRecordCommandInput | PutRecordsCommandInput | PutResourcePolicyCommandInput | RegisterStreamConsumerCommandInput | RemoveTagsFromStreamCommandInput | SplitShardCommandInput | StartStreamEncryptionCommandInput | StopStreamEncryptionCommandInput | SubscribeToShardCommandInput | UpdateShardCountCommandInput | UpdateStreamModeCommandInput;
|
|
48
51
|
/**
|
|
49
52
|
* @public
|
|
50
53
|
*/
|
|
51
|
-
export type ServiceOutputTypes = AddTagsToStreamCommandOutput | CreateStreamCommandOutput | DecreaseStreamRetentionPeriodCommandOutput | DeleteStreamCommandOutput | DeregisterStreamConsumerCommandOutput | DescribeLimitsCommandOutput | DescribeStreamCommandOutput | DescribeStreamConsumerCommandOutput | DescribeStreamSummaryCommandOutput | DisableEnhancedMonitoringCommandOutput | EnableEnhancedMonitoringCommandOutput | GetRecordsCommandOutput | GetShardIteratorCommandOutput | IncreaseStreamRetentionPeriodCommandOutput | ListShardsCommandOutput | ListStreamConsumersCommandOutput | ListStreamsCommandOutput | ListTagsForStreamCommandOutput | MergeShardsCommandOutput | PutRecordCommandOutput | PutRecordsCommandOutput | RegisterStreamConsumerCommandOutput | RemoveTagsFromStreamCommandOutput | SplitShardCommandOutput | StartStreamEncryptionCommandOutput | StopStreamEncryptionCommandOutput | SubscribeToShardCommandOutput | UpdateShardCountCommandOutput | UpdateStreamModeCommandOutput;
|
|
54
|
+
export type ServiceOutputTypes = AddTagsToStreamCommandOutput | CreateStreamCommandOutput | DecreaseStreamRetentionPeriodCommandOutput | DeleteResourcePolicyCommandOutput | DeleteStreamCommandOutput | DeregisterStreamConsumerCommandOutput | DescribeLimitsCommandOutput | DescribeStreamCommandOutput | DescribeStreamConsumerCommandOutput | DescribeStreamSummaryCommandOutput | DisableEnhancedMonitoringCommandOutput | EnableEnhancedMonitoringCommandOutput | GetRecordsCommandOutput | GetResourcePolicyCommandOutput | GetShardIteratorCommandOutput | IncreaseStreamRetentionPeriodCommandOutput | ListShardsCommandOutput | ListStreamConsumersCommandOutput | ListStreamsCommandOutput | ListTagsForStreamCommandOutput | MergeShardsCommandOutput | PutRecordCommandOutput | PutRecordsCommandOutput | PutResourcePolicyCommandOutput | RegisterStreamConsumerCommandOutput | RemoveTagsFromStreamCommandOutput | SplitShardCommandOutput | StartStreamEncryptionCommandOutput | StopStreamEncryptionCommandOutput | SubscribeToShardCommandOutput | UpdateShardCountCommandOutput | UpdateStreamModeCommandOutput;
|
|
52
55
|
/**
|
|
53
56
|
* @public
|
|
54
57
|
*/
|
|
@@ -26,8 +26,9 @@ export interface AddTagsToStreamCommandOutput extends __MetadataBearer {
|
|
|
26
26
|
* <p>Adds or updates tags for the specified Kinesis data stream. You can assign up to 50
|
|
27
27
|
* tags to a data stream.</p>
|
|
28
28
|
* <note>
|
|
29
|
-
* <p>When invoking this API,
|
|
30
|
-
*
|
|
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 tags have already been assigned to the stream, <code>AddTagsToStream</code>
|
|
33
34
|
* overwrites any existing tags that correspond to the specified tag keys.</p>
|
|
@@ -27,8 +27,9 @@ export interface DecreaseStreamRetentionPeriodCommandOutput extends __MetadataBe
|
|
|
27
27
|
* records are accessible after they are added to the stream. The minimum value of a
|
|
28
28
|
* stream's retention period is 24 hours.</p>
|
|
29
29
|
* <note>
|
|
30
|
-
* <p>When invoking this API,
|
|
31
|
-
*
|
|
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>This operation may result in lost data. For example, if the stream's retention period
|
|
34
35
|
* is 48 hours and is decreased to 24 hours, any data already in the stream that is older
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { DeleteResourcePolicyInput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Delete a policy for the specified data stream or consumer. Request patterns can be one of the following:</p>
|
|
27
|
+
* <ul>
|
|
28
|
+
* <li>
|
|
29
|
+
* <p>Data stream pattern: <code>arn:aws.*:kinesis:.*:\d\{12\}:.*stream/\S+</code>
|
|
30
|
+
* </p>
|
|
31
|
+
* </li>
|
|
32
|
+
* <li>
|
|
33
|
+
* <p>Consumer pattern: <code>^(arn):aws.*:kinesis:.*:\d\{12\}:.*stream\/[a-zA-Z0-9_.-]+\/consumer\/[a-zA-Z0-9_.-]+:[0-9]+</code>
|
|
34
|
+
* </p>
|
|
35
|
+
* </li>
|
|
36
|
+
* </ul>
|
|
37
|
+
* @example
|
|
38
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
+
* ```javascript
|
|
40
|
+
* import { KinesisClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
41
|
+
* // const { KinesisClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
42
|
+
* const client = new KinesisClient(config);
|
|
43
|
+
* const input = { // DeleteResourcePolicyInput
|
|
44
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
45
|
+
* };
|
|
46
|
+
* const command = new DeleteResourcePolicyCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // {};
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
|
|
53
|
+
* @returns {@link DeleteResourcePolicyCommandOutput}
|
|
54
|
+
* @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
59
|
+
* <p>Specifies that you do not have the permissions required to perform this
|
|
60
|
+
* operation.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InvalidArgumentException} (client fault)
|
|
63
|
+
* <p>A specified parameter exceeds its restrictions, is not supported, or can't be used.
|
|
64
|
+
* For more information, see the returned message.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
67
|
+
* <p>The requested resource exceeds the maximum number allowed, or the number of concurrent
|
|
68
|
+
* stream requests exceeds the maximum number allowed. </p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceInUseException} (client fault)
|
|
71
|
+
* <p>The resource is not available for this operation. For successful operation, the
|
|
72
|
+
* resource must be in the <code>ACTIVE</code> state.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
75
|
+
* <p>The requested resource could not be found. The stream might not be specified
|
|
76
|
+
* correctly.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link KinesisServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Kinesis service.</p>
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
export declare class DeleteResourcePolicyCommand extends $Command<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, KinesisClientResolvedConfig> {
|
|
83
|
+
readonly input: DeleteResourcePolicyCommandInput;
|
|
84
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
constructor(input: DeleteResourcePolicyCommandInput);
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput>;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
private serialize;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
private deserialize;
|
|
101
|
+
}
|
|
@@ -28,8 +28,9 @@ export interface DeleteStreamCommandOutput extends __MetadataBearer {
|
|
|
28
28
|
* application attempts to operate on a deleted stream, it receives the exception
|
|
29
29
|
* <code>ResourceNotFoundException</code>.</p>
|
|
30
30
|
* <note>
|
|
31
|
-
* <p>When invoking this API,
|
|
32
|
-
*
|
|
31
|
+
* <p>When invoking this API, you must use either the <code>StreamARN</code> or the
|
|
32
|
+
* <code>StreamName</code> parameter, or both. It is recommended that you use the
|
|
33
|
+
* <code>StreamARN</code> input parameter when you invoke this API.</p>
|
|
33
34
|
* </note>
|
|
34
35
|
* <p>If the stream is in the <code>ACTIVE</code> state, you can delete it. After a
|
|
35
36
|
* <code>DeleteStream</code> request, the specified stream is in the
|
|
@@ -30,8 +30,9 @@ export interface DescribeStreamCommandOutput extends DescribeStreamOutput, __Met
|
|
|
30
30
|
* shards in a specified data stream and obtain information about each shard. </p>
|
|
31
31
|
* </note>
|
|
32
32
|
* <note>
|
|
33
|
-
* <p>When invoking this API,
|
|
34
|
-
*
|
|
33
|
+
* <p>When invoking this API, you must use either the <code>StreamARN</code> or the
|
|
34
|
+
* <code>StreamName</code> parameter, or both. It is recommended that you use the
|
|
35
|
+
* <code>StreamARN</code> input parameter when you invoke this API.</p>
|
|
35
36
|
* </note>
|
|
36
37
|
* <p>The information returned includes the stream name, Amazon Resource Name (ARN),
|
|
37
38
|
* creation time, enhanced metric configuration, and shard map. The shard map is an array
|
|
@@ -31,6 +31,9 @@ export interface DescribeStreamConsumerCommandOutput extends DescribeStreamConsu
|
|
|
31
31
|
* operation to get a list of the descriptions of all the consumers that are currently
|
|
32
32
|
* registered with a given data stream.</p>
|
|
33
33
|
* <p>This operation has a limit of 20 transactions per second per stream.</p>
|
|
34
|
+
* <note>
|
|
35
|
+
* <p>When making a cross-account call with <code>DescribeStreamConsumer</code>, make sure to provide the ARN of the consumer. </p>
|
|
36
|
+
* </note>
|
|
34
37
|
* @example
|
|
35
38
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
39
|
* ```javascript
|