@aws-sdk/client-timestream-write 3.185.0 → 3.188.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 +19 -0
- package/dist-cjs/endpoints.js +32 -1
- package/dist-es/TimestreamWrite.js +62 -69
- package/dist-es/TimestreamWriteClient.js +23 -29
- package/dist-es/commands/CreateDatabaseCommand.js +22 -29
- package/dist-es/commands/CreateTableCommand.js +22 -29
- package/dist-es/commands/DeleteDatabaseCommand.js +23 -30
- package/dist-es/commands/DeleteTableCommand.js +23 -30
- package/dist-es/commands/DescribeDatabaseCommand.js +22 -29
- package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
- package/dist-es/commands/DescribeTableCommand.js +22 -29
- package/dist-es/commands/ListDatabasesCommand.js +22 -29
- package/dist-es/commands/ListTablesCommand.js +22 -29
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateDatabaseCommand.js +22 -29
- package/dist-es/commands/UpdateTableCommand.js +22 -29
- package/dist-es/commands/WriteRecordsCommand.js +22 -29
- package/dist-es/endpoints.js +39 -8
- package/dist-es/models/TimestreamWriteServiceException.js +5 -10
- package/dist-es/models/models_0.js +232 -151
- package/dist-es/pagination/ListDatabasesPaginator.js +25 -68
- package/dist-es/pagination/ListTablesPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +1175 -1496
- package/dist-es/runtimeConfig.browser.js +27 -12
- package/dist-es/runtimeConfig.js +31 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +34 -34
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
4
|
import { UpdateDatabaseRequestFilterSensitiveLog, UpdateDatabaseResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
5
|
import { deserializeAws_json1_0UpdateDatabaseCommand, serializeAws_json1_0UpdateDatabaseCommand, } from "../protocols/Aws_json1_0";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_this.input = input;
|
|
12
|
-
return _this;
|
|
6
|
+
export class UpdateDatabaseCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
13
10
|
}
|
|
14
|
-
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
12
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
|
-
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logger
|
|
23
|
-
clientName
|
|
24
|
-
commandName
|
|
13
|
+
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
|
|
14
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
15
|
+
const { logger } = configuration;
|
|
16
|
+
const clientName = "TimestreamWriteClient";
|
|
17
|
+
const commandName = "UpdateDatabaseCommand";
|
|
18
|
+
const handlerExecutionContext = {
|
|
19
|
+
logger,
|
|
20
|
+
clientName,
|
|
21
|
+
commandName,
|
|
25
22
|
inputFilterSensitiveLog: UpdateDatabaseRequestFilterSensitiveLog,
|
|
26
23
|
outputFilterSensitiveLog: UpdateDatabaseResponseFilterSensitiveLog,
|
|
27
24
|
};
|
|
28
|
-
|
|
29
|
-
return stack.resolve(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
UpdateDatabaseCommand.prototype.serialize = function (input, context) {
|
|
25
|
+
const { requestHandler } = configuration;
|
|
26
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
27
|
+
}
|
|
28
|
+
serialize(input, context) {
|
|
34
29
|
return serializeAws_json1_0UpdateDatabaseCommand(input, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
30
|
+
}
|
|
31
|
+
deserialize(output, context) {
|
|
37
32
|
return deserializeAws_json1_0UpdateDatabaseCommand(output, context);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}($Command));
|
|
41
|
-
export { UpdateDatabaseCommand };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
4
|
import { UpdateTableRequestFilterSensitiveLog, UpdateTableResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
5
|
import { deserializeAws_json1_0UpdateTableCommand, serializeAws_json1_0UpdateTableCommand, } from "../protocols/Aws_json1_0";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_this.input = input;
|
|
12
|
-
return _this;
|
|
6
|
+
export class UpdateTableCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
13
10
|
}
|
|
14
|
-
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
12
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
|
-
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logger
|
|
23
|
-
clientName
|
|
24
|
-
commandName
|
|
13
|
+
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
|
|
14
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
15
|
+
const { logger } = configuration;
|
|
16
|
+
const clientName = "TimestreamWriteClient";
|
|
17
|
+
const commandName = "UpdateTableCommand";
|
|
18
|
+
const handlerExecutionContext = {
|
|
19
|
+
logger,
|
|
20
|
+
clientName,
|
|
21
|
+
commandName,
|
|
25
22
|
inputFilterSensitiveLog: UpdateTableRequestFilterSensitiveLog,
|
|
26
23
|
outputFilterSensitiveLog: UpdateTableResponseFilterSensitiveLog,
|
|
27
24
|
};
|
|
28
|
-
|
|
29
|
-
return stack.resolve(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
UpdateTableCommand.prototype.serialize = function (input, context) {
|
|
25
|
+
const { requestHandler } = configuration;
|
|
26
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
27
|
+
}
|
|
28
|
+
serialize(input, context) {
|
|
34
29
|
return serializeAws_json1_0UpdateTableCommand(input, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
30
|
+
}
|
|
31
|
+
deserialize(output, context) {
|
|
37
32
|
return deserializeAws_json1_0UpdateTableCommand(output, context);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}($Command));
|
|
41
|
-
export { UpdateTableCommand };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
4
|
import { WriteRecordsRequestFilterSensitiveLog, WriteRecordsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
5
|
import { deserializeAws_json1_0WriteRecordsCommand, serializeAws_json1_0WriteRecordsCommand, } from "../protocols/Aws_json1_0";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_this.input = input;
|
|
12
|
-
return _this;
|
|
6
|
+
export class WriteRecordsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
13
10
|
}
|
|
14
|
-
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
12
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
|
-
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logger
|
|
23
|
-
clientName
|
|
24
|
-
commandName
|
|
13
|
+
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
|
|
14
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
15
|
+
const { logger } = configuration;
|
|
16
|
+
const clientName = "TimestreamWriteClient";
|
|
17
|
+
const commandName = "WriteRecordsCommand";
|
|
18
|
+
const handlerExecutionContext = {
|
|
19
|
+
logger,
|
|
20
|
+
clientName,
|
|
21
|
+
commandName,
|
|
25
22
|
inputFilterSensitiveLog: WriteRecordsRequestFilterSensitiveLog,
|
|
26
23
|
outputFilterSensitiveLog: WriteRecordsResponseFilterSensitiveLog,
|
|
27
24
|
};
|
|
28
|
-
|
|
29
|
-
return stack.resolve(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
WriteRecordsCommand.prototype.serialize = function (input, context) {
|
|
25
|
+
const { requestHandler } = configuration;
|
|
26
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
27
|
+
}
|
|
28
|
+
serialize(input, context) {
|
|
34
29
|
return serializeAws_json1_0WriteRecordsCommand(input, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
30
|
+
}
|
|
31
|
+
deserialize(output, context) {
|
|
37
32
|
return deserializeAws_json1_0WriteRecordsCommand(output, context);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}($Command));
|
|
41
|
-
export { WriteRecordsCommand };
|
|
33
|
+
}
|
|
34
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,7 +1,34 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const regionHash = {
|
|
3
|
+
"ingest-fips-us-east-1": {
|
|
4
|
+
variants: [
|
|
5
|
+
{
|
|
6
|
+
hostname: "ingest.timestream-fips.us-east-1.amazonaws.com",
|
|
7
|
+
tags: [],
|
|
8
|
+
},
|
|
9
|
+
],
|
|
10
|
+
signingRegion: "us-east-1",
|
|
11
|
+
},
|
|
12
|
+
"ingest-fips-us-east-2": {
|
|
13
|
+
variants: [
|
|
14
|
+
{
|
|
15
|
+
hostname: "ingest.timestream-fips.us-east-2.amazonaws.com",
|
|
16
|
+
tags: [],
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
signingRegion: "us-east-2",
|
|
20
|
+
},
|
|
21
|
+
"ingest-fips-us-west-2": {
|
|
22
|
+
variants: [
|
|
23
|
+
{
|
|
24
|
+
hostname: "ingest.timestream-fips.us-west-2.amazonaws.com",
|
|
25
|
+
tags: [],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
signingRegion: "us-west-2",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const partitionHash = {
|
|
5
32
|
aws: {
|
|
6
33
|
regions: [
|
|
7
34
|
"af-south-1",
|
|
@@ -20,6 +47,9 @@ var partitionHash = {
|
|
|
20
47
|
"eu-west-1",
|
|
21
48
|
"eu-west-2",
|
|
22
49
|
"eu-west-3",
|
|
50
|
+
"ingest-fips-us-east-1",
|
|
51
|
+
"ingest-fips-us-east-2",
|
|
52
|
+
"ingest-fips-us-west-2",
|
|
23
53
|
"me-central-1",
|
|
24
54
|
"me-south-1",
|
|
25
55
|
"sa-east-1",
|
|
@@ -121,8 +151,9 @@ var partitionHash = {
|
|
|
121
151
|
],
|
|
122
152
|
},
|
|
123
153
|
};
|
|
124
|
-
export
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
154
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
155
|
+
...options,
|
|
156
|
+
signingService: "timestream",
|
|
157
|
+
regionHash,
|
|
158
|
+
partitionHash,
|
|
159
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, TimestreamWriteServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class TimestreamWriteServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, TimestreamWriteServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { TimestreamWriteServiceException };
|
|
7
|
+
}
|