@aws-sdk/client-kinesis 3.30.0 → 3.34.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/CHANGELOG.md +35 -0
- package/dist/cjs/KinesisClient.js +14 -14
- package/dist/cjs/KinesisClient.js.map +1 -1
- package/dist/cjs/commands/AddTagsToStreamCommand.js +3 -3
- package/dist/cjs/commands/AddTagsToStreamCommand.js.map +1 -1
- package/dist/cjs/commands/CreateStreamCommand.js +3 -3
- package/dist/cjs/commands/CreateStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DecreaseStreamRetentionPeriodCommand.js +3 -3
- package/dist/cjs/commands/DecreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteStreamCommand.js +3 -3
- package/dist/cjs/commands/DeleteStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DeregisterStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/DeregisterStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLimitsCommand.js +3 -3
- package/dist/cjs/commands/DescribeLimitsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamSummaryCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamSummaryCommand.js.map +1 -1
- package/dist/cjs/commands/DisableEnhancedMonitoringCommand.js +3 -3
- package/dist/cjs/commands/DisableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/cjs/commands/EnableEnhancedMonitoringCommand.js +3 -3
- package/dist/cjs/commands/EnableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/cjs/commands/GetRecordsCommand.js +3 -3
- package/dist/cjs/commands/GetRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/GetShardIteratorCommand.js +3 -3
- package/dist/cjs/commands/GetShardIteratorCommand.js.map +1 -1
- package/dist/cjs/commands/IncreaseStreamRetentionPeriodCommand.js +3 -3
- package/dist/cjs/commands/IncreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/cjs/commands/ListShardsCommand.js +3 -3
- package/dist/cjs/commands/ListShardsCommand.js.map +1 -1
- package/dist/cjs/commands/ListStreamConsumersCommand.js +3 -3
- package/dist/cjs/commands/ListStreamConsumersCommand.js.map +1 -1
- package/dist/cjs/commands/ListStreamsCommand.js +3 -3
- package/dist/cjs/commands/ListStreamsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForStreamCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForStreamCommand.js.map +1 -1
- package/dist/cjs/commands/MergeShardsCommand.js +3 -3
- package/dist/cjs/commands/MergeShardsCommand.js.map +1 -1
- package/dist/cjs/commands/PutRecordCommand.js +3 -3
- package/dist/cjs/commands/PutRecordCommand.js.map +1 -1
- package/dist/cjs/commands/PutRecordsCommand.js +3 -3
- package/dist/cjs/commands/PutRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/RegisterStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveTagsFromStreamCommand.js +3 -3
- package/dist/cjs/commands/RemoveTagsFromStreamCommand.js.map +1 -1
- package/dist/cjs/commands/SplitShardCommand.js +3 -3
- package/dist/cjs/commands/SplitShardCommand.js.map +1 -1
- package/dist/cjs/commands/StartStreamEncryptionCommand.js +3 -3
- package/dist/cjs/commands/StartStreamEncryptionCommand.js.map +1 -1
- package/dist/cjs/commands/StopStreamEncryptionCommand.js +3 -3
- package/dist/cjs/commands/StopStreamEncryptionCommand.js.map +1 -1
- package/dist/cjs/commands/SubscribeToShardCommand.js +3 -3
- package/dist/cjs/commands/SubscribeToShardCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateShardCountCommand.js +3 -3
- package/dist/cjs/commands/UpdateShardCountCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +35 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +43 -43
- package/dist/cjs/protocols/Aws_json1_1.js +82 -82
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForStreamExists.js +3 -3
- package/dist/cjs/waiters/waitForStreamExists.js.map +1 -1
- package/dist/cjs/waiters/waitForStreamNotExists.js +3 -3
- package/dist/cjs/waiters/waitForStreamNotExists.js.map +1 -1
- package/dist/es/Kinesis.js +1 -6
- package/dist/es/Kinesis.js.map +1 -1
- package/dist/es/KinesisClient.js +1 -11
- package/dist/es/KinesisClient.js.map +1 -1
- package/dist/es/commands/AddTagsToStreamCommand.js +2 -35
- package/dist/es/commands/AddTagsToStreamCommand.js.map +1 -1
- package/dist/es/commands/CreateStreamCommand.js +2 -67
- package/dist/es/commands/CreateStreamCommand.js.map +1 -1
- package/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js +2 -32
- package/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/es/commands/DeleteStreamCommand.js +2 -45
- package/dist/es/commands/DeleteStreamCommand.js.map +1 -1
- package/dist/es/commands/DeregisterStreamConsumerCommand.js +2 -34
- package/dist/es/commands/DeregisterStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/DescribeLimitsCommand.js +2 -30
- package/dist/es/commands/DescribeLimitsCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamCommand.js +2 -43
- package/dist/es/commands/DescribeStreamCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamConsumerCommand.js +2 -34
- package/dist/es/commands/DescribeStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamSummaryCommand.js +2 -34
- package/dist/es/commands/DescribeStreamSummaryCommand.js.map +1 -1
- package/dist/es/commands/DisableEnhancedMonitoringCommand.js +2 -27
- package/dist/es/commands/DisableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/es/commands/EnableEnhancedMonitoringCommand.js +2 -27
- package/dist/es/commands/EnableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/es/commands/GetRecordsCommand.js +2 -73
- package/dist/es/commands/GetRecordsCommand.js.map +1 -1
- package/dist/es/commands/GetShardIteratorCommand.js +2 -60
- package/dist/es/commands/GetShardIteratorCommand.js.map +1 -1
- package/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js +2 -35
- package/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/es/commands/ListShardsCommand.js +2 -35
- package/dist/es/commands/ListShardsCommand.js.map +1 -1
- package/dist/es/commands/ListStreamConsumersCommand.js +2 -29
- package/dist/es/commands/ListStreamConsumersCommand.js.map +1 -1
- package/dist/es/commands/ListStreamsCommand.js +2 -42
- package/dist/es/commands/ListStreamsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForStreamCommand.js +2 -28
- package/dist/es/commands/ListTagsForStreamCommand.js.map +1 -1
- package/dist/es/commands/MergeShardsCommand.js +2 -62
- package/dist/es/commands/MergeShardsCommand.js.map +1 -1
- package/dist/es/commands/PutRecordCommand.js +2 -62
- package/dist/es/commands/PutRecordCommand.js.map +1 -1
- package/dist/es/commands/PutRecordsCommand.js +2 -82
- package/dist/es/commands/PutRecordsCommand.js.map +1 -1
- package/dist/es/commands/RegisterStreamConsumerCommand.js +2 -40
- package/dist/es/commands/RegisterStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/RemoveTagsFromStreamCommand.js +2 -32
- package/dist/es/commands/RemoveTagsFromStreamCommand.js.map +1 -1
- package/dist/es/commands/SplitShardCommand.js +2 -68
- package/dist/es/commands/SplitShardCommand.js.map +1 -1
- package/dist/es/commands/StartStreamEncryptionCommand.js +2 -42
- package/dist/es/commands/StartStreamEncryptionCommand.js.map +1 -1
- package/dist/es/commands/StopStreamEncryptionCommand.js +2 -42
- package/dist/es/commands/StopStreamEncryptionCommand.js.map +1 -1
- package/dist/es/commands/SubscribeToShardCommand.js +2 -48
- package/dist/es/commands/SubscribeToShardCommand.js.map +1 -1
- package/dist/es/commands/UpdateShardCountCommand.js +2 -70
- package/dist/es/commands/UpdateShardCountCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -225
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +43 -43
- package/dist/es/pagination/ListStreamConsumersPaginator.js +16 -28
- package/dist/es/pagination/ListStreamConsumersPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +698 -703
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForStreamExists.js +8 -17
- package/dist/es/waiters/waitForStreamExists.js.map +1 -1
- package/dist/es/waiters/waitForStreamNotExists.js +8 -17
- package/dist/es/waiters/waitForStreamNotExists.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +43 -43
- package/protocols/Aws_json1_1.ts +10 -6
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -3,79 +3,13 @@ import { SplitShardInput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1SplitShardCommand, serializeAws_json1_1SplitShardCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Splits a shard into two new shards in the Kinesis data stream, to increase the
|
|
8
|
-
* stream's capacity to ingest and transport data. <code>SplitShard</code> is called when
|
|
9
|
-
* there is a need to increase the overall capacity of a stream because of an expected
|
|
10
|
-
* increase in the volume of data records being ingested. </p>
|
|
11
|
-
* <p>You can also use <code>SplitShard</code> when a shard appears to be approaching its
|
|
12
|
-
* maximum utilization; for example, the producers sending data into the specific shard are
|
|
13
|
-
* suddenly sending more than previously anticipated. You can also call
|
|
14
|
-
* <code>SplitShard</code> to increase stream capacity, so that more Kinesis Data
|
|
15
|
-
* Streams applications can simultaneously read data from the stream for real-time
|
|
16
|
-
* processing. </p>
|
|
17
|
-
* <p>You must specify the shard to be split and the new hash key, which is the position
|
|
18
|
-
* in the shard where the shard gets split in two. In many cases, the new hash key might be
|
|
19
|
-
* the average of the beginning and ending hash key, but it can be any hash key value in
|
|
20
|
-
* the range being mapped into the shard. For more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html">Split a
|
|
21
|
-
* Shard</a> in the <i>Amazon Kinesis Data Streams Developer
|
|
22
|
-
* Guide</i>.</p>
|
|
23
|
-
* <p>You can use <a>DescribeStream</a> to determine the shard ID and hash key
|
|
24
|
-
* values for the <code>ShardToSplit</code> and <code>NewStartingHashKey</code> parameters
|
|
25
|
-
* that are specified in the <code>SplitShard</code> request.</p>
|
|
26
|
-
* <p>
|
|
27
|
-
* <code>SplitShard</code> is an asynchronous operation. Upon receiving a
|
|
28
|
-
* <code>SplitShard</code> request, Kinesis Data Streams immediately returns a response
|
|
29
|
-
* and sets the stream status to <code>UPDATING</code>. After the operation is completed,
|
|
30
|
-
* Kinesis Data Streams sets the stream status to <code>ACTIVE</code>. Read and write
|
|
31
|
-
* operations continue to work while the stream is in the <code>UPDATING</code> state. </p>
|
|
32
|
-
* <p>You can use <code>DescribeStream</code> to check the status of the stream, which is
|
|
33
|
-
* returned in <code>StreamStatus</code>. If the stream is in the <code>ACTIVE</code>
|
|
34
|
-
* state, you can call <code>SplitShard</code>. If a stream is in <code>CREATING</code> or
|
|
35
|
-
* <code>UPDATING</code> or <code>DELETING</code> states, <code>DescribeStream</code>
|
|
36
|
-
* returns a <code>ResourceInUseException</code>.</p>
|
|
37
|
-
* <p>If the specified stream does not exist, <code>DescribeStream</code> returns a
|
|
38
|
-
* <code>ResourceNotFoundException</code>. If you try to create more shards than are
|
|
39
|
-
* authorized for your account, you receive a <code>LimitExceededException</code>. </p>
|
|
40
|
-
* <p>For the default shard limit for an AWS account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Kinesis Data Streams
|
|
41
|
-
* Limits</a> in the <i>Amazon Kinesis Data Streams Developer
|
|
42
|
-
* Guide</i>. To increase this limit, <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">contact AWS
|
|
43
|
-
* Support</a>.</p>
|
|
44
|
-
* <p>If you try to operate on too many streams simultaneously using <a>CreateStream</a>, <a>DeleteStream</a>, <a>MergeShards</a>, and/or <a>SplitShard</a>, you receive a
|
|
45
|
-
* <code>LimitExceededException</code>. </p>
|
|
46
|
-
* <p>
|
|
47
|
-
* <code>SplitShard</code> has a limit of five transactions per second per
|
|
48
|
-
* account.</p>
|
|
49
|
-
* @example
|
|
50
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
51
|
-
* ```javascript
|
|
52
|
-
* import { KinesisClient, SplitShardCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
53
|
-
* // const { KinesisClient, SplitShardCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
54
|
-
* const client = new KinesisClient(config);
|
|
55
|
-
* const command = new SplitShardCommand(input);
|
|
56
|
-
* const response = await client.send(command);
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @see {@link SplitShardCommandInput} for command's `input` shape.
|
|
60
|
-
* @see {@link SplitShardCommandOutput} for command's `response` shape.
|
|
61
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
var SplitShardCommand = /** @class */ (function (_super) {
|
|
6
|
+
var SplitShardCommand = (function (_super) {
|
|
65
7
|
__extends(SplitShardCommand, _super);
|
|
66
|
-
// Start section: command_properties
|
|
67
|
-
// End section: command_properties
|
|
68
8
|
function SplitShardCommand(input) {
|
|
69
|
-
var _this =
|
|
70
|
-
// Start section: command_constructor
|
|
71
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
72
10
|
_this.input = input;
|
|
73
11
|
return _this;
|
|
74
|
-
// End section: command_constructor
|
|
75
12
|
}
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
13
|
SplitShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
80
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
81
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitShardCommand.js","sourceRoot":"","sources":["../../../commands/SplitShardCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,uC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,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,qCAAS,GAAjB,UAAkB,KAA6B,EAAE,OAAuB;QACtE,OAAO,qCAAqC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEO,uCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,uCAAuC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAIH,wBAAC;AAAD,CAAC,AAtDD,CAAuC,QAAQ,GAsD9C"}
|
|
@@ -3,53 +3,13 @@ import { StartStreamEncryptionInput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1StartStreamEncryptionCommand, serializeAws_json1_1StartStreamEncryptionCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Enables or updates server-side encryption using an AWS KMS key for a specified
|
|
8
|
-
* stream. </p>
|
|
9
|
-
* <p>Starting encryption is an asynchronous operation. Upon receiving the request,
|
|
10
|
-
* Kinesis Data Streams returns immediately and sets the status of the stream to
|
|
11
|
-
* <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
|
|
12
|
-
* status of the stream back to <code>ACTIVE</code>. Updating or applying encryption
|
|
13
|
-
* normally takes a few seconds to complete, but it can take minutes. You can continue to
|
|
14
|
-
* read and write data to your stream while its status is <code>UPDATING</code>. Once the
|
|
15
|
-
* status of the stream is <code>ACTIVE</code>, encryption begins for records written to
|
|
16
|
-
* the stream. </p>
|
|
17
|
-
* <p>API Limits: You can successfully apply a new AWS KMS key for server-side encryption
|
|
18
|
-
* 25 times in a rolling 24-hour period.</p>
|
|
19
|
-
* <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code>
|
|
20
|
-
* status before all records written to the stream are encrypted. After you enable
|
|
21
|
-
* encryption, you can verify that encryption is applied by inspecting the API response
|
|
22
|
-
* from <code>PutRecord</code> or <code>PutRecords</code>.</p>
|
|
23
|
-
* @example
|
|
24
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
-
* ```javascript
|
|
26
|
-
* import { KinesisClient, StartStreamEncryptionCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
27
|
-
* // const { KinesisClient, StartStreamEncryptionCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
28
|
-
* const client = new KinesisClient(config);
|
|
29
|
-
* const command = new StartStreamEncryptionCommand(input);
|
|
30
|
-
* const response = await client.send(command);
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @see {@link StartStreamEncryptionCommandInput} for command's `input` shape.
|
|
34
|
-
* @see {@link StartStreamEncryptionCommandOutput} for command's `response` shape.
|
|
35
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
var StartStreamEncryptionCommand = /** @class */ (function (_super) {
|
|
6
|
+
var StartStreamEncryptionCommand = (function (_super) {
|
|
39
7
|
__extends(StartStreamEncryptionCommand, _super);
|
|
40
|
-
// Start section: command_properties
|
|
41
|
-
// End section: command_properties
|
|
42
8
|
function StartStreamEncryptionCommand(input) {
|
|
43
|
-
var _this =
|
|
44
|
-
// Start section: command_constructor
|
|
45
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
46
10
|
_this.input = input;
|
|
47
11
|
return _this;
|
|
48
|
-
// End section: command_constructor
|
|
49
12
|
}
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
13
|
StartStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
54
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
55
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StartStreamEncryptionCommand.js","sourceRoot":"","sources":["../../../commands/StartStreamEncryptionCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,kDAAkD,EAClD,gDAAgD,GACjD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"StartStreamEncryptionCommand.js","sourceRoot":"","sources":["../../../commands/StartStreamEncryptionCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,kDAAkD,EAClD,gDAAgD,GACjD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA8C7D;IAAkD,gDAIjD;IAIC,sCAAqB,KAAwC;QAA7D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAmC;;IAI7D,CAAC;IAKD,wDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA0C,EAC1C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,eAAe,CAAC;QACnC,IAAM,WAAW,GAAG,8BAA8B,CAAC;QACnD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,0BAA0B,CAAC,kBAAkB;YACtE,wBAAwB,EAAE,UAAC,MAAW,IAAK,OAAA,MAAM,EAAN,CAAM;SAClD,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,gDAAS,GAAjB,UAAkB,KAAwC,EAAE,OAAuB;QACjF,OAAO,gDAAgD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAEO,kDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,kDAAkD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAIH,mCAAC;AAAD,CAAC,AAtDD,CAAkD,QAAQ,GAsDzD"}
|
|
@@ -3,53 +3,13 @@ import { StopStreamEncryptionInput } from "../models/models_0";
|
|
|
3
3
|
import { deserializeAws_json1_1StopStreamEncryptionCommand, serializeAws_json1_1StopStreamEncryptionCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Disables server-side encryption for a specified stream. </p>
|
|
8
|
-
* <p>Stopping encryption is an asynchronous operation. Upon receiving the request,
|
|
9
|
-
* Kinesis Data Streams returns immediately and sets the status of the stream to
|
|
10
|
-
* <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
|
|
11
|
-
* status of the stream back to <code>ACTIVE</code>. Stopping encryption normally takes a
|
|
12
|
-
* few seconds to complete, but it can take minutes. You can continue to read and write
|
|
13
|
-
* data to your stream while its status is <code>UPDATING</code>. Once the status of the
|
|
14
|
-
* stream is <code>ACTIVE</code>, records written to the stream are no longer encrypted by
|
|
15
|
-
* Kinesis Data Streams. </p>
|
|
16
|
-
* <p>API Limits: You can successfully disable server-side encryption 25 times in a
|
|
17
|
-
* rolling 24-hour period. </p>
|
|
18
|
-
* <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code>
|
|
19
|
-
* status before all records written to the stream are no longer subject to encryption.
|
|
20
|
-
* After you disabled encryption, you can verify that encryption is not applied by
|
|
21
|
-
* inspecting the API response from <code>PutRecord</code> or
|
|
22
|
-
* <code>PutRecords</code>.</p>
|
|
23
|
-
* @example
|
|
24
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
-
* ```javascript
|
|
26
|
-
* import { KinesisClient, StopStreamEncryptionCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
27
|
-
* // const { KinesisClient, StopStreamEncryptionCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
28
|
-
* const client = new KinesisClient(config);
|
|
29
|
-
* const command = new StopStreamEncryptionCommand(input);
|
|
30
|
-
* const response = await client.send(command);
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @see {@link StopStreamEncryptionCommandInput} for command's `input` shape.
|
|
34
|
-
* @see {@link StopStreamEncryptionCommandOutput} for command's `response` shape.
|
|
35
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
var StopStreamEncryptionCommand = /** @class */ (function (_super) {
|
|
6
|
+
var StopStreamEncryptionCommand = (function (_super) {
|
|
39
7
|
__extends(StopStreamEncryptionCommand, _super);
|
|
40
|
-
// Start section: command_properties
|
|
41
|
-
// End section: command_properties
|
|
42
8
|
function StopStreamEncryptionCommand(input) {
|
|
43
|
-
var _this =
|
|
44
|
-
// Start section: command_constructor
|
|
45
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
46
10
|
_this.input = input;
|
|
47
11
|
return _this;
|
|
48
|
-
// End section: command_constructor
|
|
49
12
|
}
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
13
|
StopStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
54
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
55
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StopStreamEncryptionCommand.js","sourceRoot":"","sources":["../../../commands/StopStreamEncryptionCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,iDAAiD,EACjD,+CAA+C,GAChD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"StopStreamEncryptionCommand.js","sourceRoot":"","sources":["../../../commands/StopStreamEncryptionCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,iDAAiD,EACjD,+CAA+C,GAChD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA8C7D;IAAiD,+CAIhD;IAIC,qCAAqB,KAAuC;QAA5D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAkC;;IAI5D,CAAC;IAKD,uDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA0C,EAC1C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,eAAe,CAAC;QACnC,IAAM,WAAW,GAAG,6BAA6B,CAAC;QAClD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,yBAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,UAAC,MAAW,IAAK,OAAA,MAAM,EAAN,CAAM;SAClD,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,+CAAS,GAAjB,UAAkB,KAAuC,EAAE,OAAuB;QAChF,OAAO,+CAA+C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAEO,iDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,iDAAiD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAIH,kCAAC;AAAD,CAAC,AAtDD,CAAiD,QAAQ,GAsDxD"}
|
|
@@ -3,59 +3,13 @@ import { SubscribeToShardInput, SubscribeToShardOutput } from "../models/models_
|
|
|
3
3
|
import { deserializeAws_json1_1SubscribeToShardCommand, serializeAws_json1_1SubscribeToShardCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>This operation establishes an HTTP/2 connection between the consumer you specify in
|
|
8
|
-
* the <code>ConsumerARN</code> parameter and the shard you specify in the
|
|
9
|
-
* <code>ShardId</code> parameter. After the connection is successfully established,
|
|
10
|
-
* Kinesis Data Streams pushes records from the shard to the consumer over this connection.
|
|
11
|
-
* Before you call this operation, call <a>RegisterStreamConsumer</a> to
|
|
12
|
-
* register the consumer with Kinesis Data Streams.</p>
|
|
13
|
-
* <p>When the <code>SubscribeToShard</code> call succeeds, your consumer starts receiving
|
|
14
|
-
* events of type <a>SubscribeToShardEvent</a> over the HTTP/2 connection for up
|
|
15
|
-
* to 5 minutes, after which time you need to call <code>SubscribeToShard</code> again to
|
|
16
|
-
* renew the subscription if you want to continue to receive records.</p>
|
|
17
|
-
* <p>You can make one call to <code>SubscribeToShard</code> per second per registered
|
|
18
|
-
* consumer per shard. For example, if you have a 4000 shard stream and two registered
|
|
19
|
-
* stream consumers, you can make one <code>SubscribeToShard</code> request per second for
|
|
20
|
-
* each combination of shard and registered consumer, allowing you to subscribe both
|
|
21
|
-
* consumers to all 4000 shards in one second. </p>
|
|
22
|
-
* <p>If you call <code>SubscribeToShard</code> again with the same <code>ConsumerARN</code>
|
|
23
|
-
* and <code>ShardId</code> within 5 seconds of a successful call, you'll get a
|
|
24
|
-
* <code>ResourceInUseException</code>. If you call <code>SubscribeToShard</code> 5
|
|
25
|
-
* seconds or more after a successful call, the first connection will expire and the second
|
|
26
|
-
* call will take over the subscription.</p>
|
|
27
|
-
* <p>For an example of how to use this operations, see <a href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
|
|
28
|
-
* Using the Kinesis Data Streams API</a>.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { KinesisClient, SubscribeToShardCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
33
|
-
* // const { KinesisClient, SubscribeToShardCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
34
|
-
* const client = new KinesisClient(config);
|
|
35
|
-
* const command = new SubscribeToShardCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link SubscribeToShardCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link SubscribeToShardCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
var SubscribeToShardCommand = /** @class */ (function (_super) {
|
|
6
|
+
var SubscribeToShardCommand = (function (_super) {
|
|
45
7
|
__extends(SubscribeToShardCommand, _super);
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
8
|
function SubscribeToShardCommand(input) {
|
|
49
|
-
var _this =
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
52
10
|
_this.input = input;
|
|
53
11
|
return _this;
|
|
54
|
-
// End section: command_constructor
|
|
55
12
|
}
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
13
|
SubscribeToShardCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
60
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
61
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscribeToShardCommand.js","sourceRoot":"","sources":["../../../commands/SubscribeToShardCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EACL,6CAA6C,EAC7C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C,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,2CAAS,GAAjB,UAAkB,KAAmC,EAAE,OAAuB;QAC5E,OAAO,2CAA2C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,6CAAW,GAAnB,UACE,MAAsB,EACtB,OAAmD;QAEnD,OAAO,6CAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAIH,8BAAC;AAAD,CAAC,AAzDD,CAA6C,QAAQ,GAyDpD"}
|
|
@@ -3,81 +3,13 @@ import { UpdateShardCountInput, UpdateShardCountOutput } from "../models/models_
|
|
|
3
3
|
import { deserializeAws_json1_1UpdateShardCountCommand, serializeAws_json1_1UpdateShardCountCommand, } from "../protocols/Aws_json1_1";
|
|
4
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
* <p>Updates the shard count of the specified stream to the specified number of
|
|
8
|
-
* shards.</p>
|
|
9
|
-
* <p>Updating the shard count is an asynchronous operation. Upon receiving the request,
|
|
10
|
-
* Kinesis Data Streams returns immediately and sets the status of the stream to
|
|
11
|
-
* <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
|
|
12
|
-
* status of the stream back to <code>ACTIVE</code>. Depending on the size of the stream,
|
|
13
|
-
* the scaling action could take a few minutes to complete. You can continue to read and
|
|
14
|
-
* write data to your stream while its status is <code>UPDATING</code>.</p>
|
|
15
|
-
* <p>To update the shard count, Kinesis Data Streams performs splits or merges on
|
|
16
|
-
* individual shards. This can cause short-lived shards to be created, in addition to the
|
|
17
|
-
* final shards. These short-lived shards count towards your total shard limit for your
|
|
18
|
-
* account in the Region.</p>
|
|
19
|
-
* <p>When using this operation, we recommend that you specify a target shard count that
|
|
20
|
-
* is a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your
|
|
21
|
-
* shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling
|
|
22
|
-
* action might take longer to complete. </p>
|
|
23
|
-
* <p>This operation has the following default limits. By default, you cannot do the
|
|
24
|
-
* following:</p>
|
|
25
|
-
* <ul>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>Scale more than ten times per rolling 24-hour period per stream</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>Scale up to more than double your current shard count for a
|
|
31
|
-
* stream</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>Scale down below half your current shard count for a stream</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>Scale up to more than 500 shards in a stream</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>Scale a stream with more than 500 shards down unless the result is less
|
|
41
|
-
* than 500 shards</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Scale up to more than the shard limit for your account</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* </ul>
|
|
47
|
-
* <p>For the default limits for an AWS account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Streams Limits</a> in the
|
|
48
|
-
* <i>Amazon Kinesis Data Streams Developer Guide</i>. To request an
|
|
49
|
-
* increase in the call rate limit, the shard limit for this API, or your overall shard
|
|
50
|
-
* limit, use the <a href="https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&limitType=service-code-kinesis">limits form</a>.</p>
|
|
51
|
-
* @example
|
|
52
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
53
|
-
* ```javascript
|
|
54
|
-
* import { KinesisClient, UpdateShardCountCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
55
|
-
* // const { KinesisClient, UpdateShardCountCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
56
|
-
* const client = new KinesisClient(config);
|
|
57
|
-
* const command = new UpdateShardCountCommand(input);
|
|
58
|
-
* const response = await client.send(command);
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @see {@link UpdateShardCountCommandInput} for command's `input` shape.
|
|
62
|
-
* @see {@link UpdateShardCountCommandOutput} for command's `response` shape.
|
|
63
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
var UpdateShardCountCommand = /** @class */ (function (_super) {
|
|
6
|
+
var UpdateShardCountCommand = (function (_super) {
|
|
67
7
|
__extends(UpdateShardCountCommand, _super);
|
|
68
|
-
// Start section: command_properties
|
|
69
|
-
// End section: command_properties
|
|
70
8
|
function UpdateShardCountCommand(input) {
|
|
71
|
-
var _this =
|
|
72
|
-
// Start section: command_constructor
|
|
73
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
74
10
|
_this.input = input;
|
|
75
11
|
return _this;
|
|
76
|
-
// End section: command_constructor
|
|
77
12
|
}
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
13
|
UpdateShardCountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
82
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
83
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateShardCountCommand.js","sourceRoot":"","sources":["../../../commands/UpdateShardCountCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EACL,6CAA6C,EAC7C,2CAA2C,GAC5C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,M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,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,2CAAS,GAAjB,UAAkB,KAAmC,EAAE,OAAuB;QAC5E,OAAO,2CAA2C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,6CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,6CAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAIH,8BAAC;AAAD,CAAC,AAtDD,CAA6C,QAAQ,GAsDpD"}
|
package/dist/es/endpoints.js
CHANGED
|
@@ -76,7 +76,7 @@ var partitionHash = {
|
|
|
76
76
|
};
|
|
77
77
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
78
78
|
return __generator(this, function (_a) {
|
|
79
|
-
return [2
|
|
79
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "kinesis", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
80
80
|
});
|
|
81
81
|
}); };
|
|
82
82
|
//# sourceMappingURL=endpoints.js.map
|
package/dist/es/endpoints.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../endpoints.ts"],"names":[],"mappings":";AAAA,OAAO,EAA6B,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGpF,IAAM,UAAU,GAAe;IAC7B,gBAAgB,EAAE;QAChB,QAAQ,EAAE,sCAAsC;QAChD,aAAa,EAAE,WAAW;KAC3B;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,sCAAsC;QAChD,aAAa,EAAE,WAAW;KAC3B;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,sCAAsC;QAChD,aAAa,EAAE,WAAW;KAC3B;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,sCAAsC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