@aws-sdk/client-timestream-influxdb 3.534.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/LICENSE +201 -0
- package/README.md +293 -0
- package/dist-cjs/TimestreamInfluxDB.js +33 -0
- package/dist-cjs/TimestreamInfluxDBClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateDbInstanceCommand.js +29 -0
- package/dist-cjs/commands/CreateDbParameterGroupCommand.js +28 -0
- package/dist-cjs/commands/DeleteDbInstanceCommand.js +28 -0
- package/dist-cjs/commands/GetDbInstanceCommand.js +28 -0
- package/dist-cjs/commands/GetDbParameterGroupCommand.js +28 -0
- package/dist-cjs/commands/ListDbInstancesCommand.js +28 -0
- package/dist-cjs/commands/ListDbParameterGroupsCommand.js +28 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
- package/dist-cjs/commands/TagResourceCommand.js +28 -0
- package/dist-cjs/commands/UntagResourceCommand.js +28 -0
- package/dist-cjs/commands/UpdateDbInstanceCommand.js +28 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/TimestreamInfluxDBServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +159 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListDbInstancesPaginator.js +7 -0
- package/dist-cjs/pagination/ListDbParameterGroupsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_json1_0.js +365 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/TimestreamInfluxDB.js +29 -0
- package/dist-es/TimestreamInfluxDBClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateDbInstanceCommand.js +25 -0
- package/dist-es/commands/CreateDbParameterGroupCommand.js +24 -0
- package/dist-es/commands/DeleteDbInstanceCommand.js +24 -0
- package/dist-es/commands/GetDbInstanceCommand.js +24 -0
- package/dist-es/commands/GetDbParameterGroupCommand.js +24 -0
- package/dist-es/commands/ListDbInstancesCommand.js +24 -0
- package/dist-es/commands/ListDbParameterGroupsCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/UpdateDbInstanceCommand.js +24 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/TimestreamInfluxDBServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +148 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListDbInstancesPaginator.js +4 -0
- package/dist-es/pagination/ListDbParameterGroupsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_0.js +340 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/TimestreamInfluxDB.d.ts +87 -0
- package/dist-types/TimestreamInfluxDBClient.d.ts +182 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateDbInstanceCommand.d.ts +129 -0
- package/dist-types/commands/CreateDbParameterGroupCommand.d.ts +108 -0
- package/dist-types/commands/DeleteDbInstanceCommand.d.ts +101 -0
- package/dist-types/commands/GetDbInstanceCommand.d.ts +98 -0
- package/dist-types/commands/GetDbParameterGroupCommand.d.ts +87 -0
- package/dist-types/commands/ListDbInstancesCommand.d.ts +87 -0
- package/dist-types/commands/ListDbParameterGroupsCommand.d.ts +82 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +63 -0
- package/dist-types/commands/TagResourceCommand.d.ts +62 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +62 -0
- package/dist-types/commands/UpdateDbInstanceCommand.d.ts +108 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/TimestreamInfluxDBServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1099 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListDbInstancesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDbParameterGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +101 -0
- package/dist-types/runtimeConfig.browser.d.ts +45 -0
- package/dist-types/runtimeConfig.d.ts +45 -0
- package/dist-types/runtimeConfig.native.d.ts +44 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/TimestreamInfluxDB.d.ts +194 -0
- package/dist-types/ts3.4/TimestreamInfluxDBClient.d.ts +189 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/CreateDbInstanceCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/CreateDbParameterGroupCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteDbInstanceCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/GetDbInstanceCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/GetDbParameterGroupCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListDbInstancesCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/ListDbParameterGroupsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +24 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +24 -0
- package/dist-types/ts3.4/commands/UpdateDbInstanceCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/TimestreamInfluxDBServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +319 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListDbInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDbParameterGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +137 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +101 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
|
+
export const defaultTimestreamInfluxDBHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: (await normalizeProvider(config.region)()) ||
|
|
7
|
+
(() => {
|
|
8
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
9
|
+
})(),
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
13
|
+
return {
|
|
14
|
+
schemeId: "aws.auth#sigv4",
|
|
15
|
+
signingProperties: {
|
|
16
|
+
name: "timestream-influxdb",
|
|
17
|
+
region: authParameters.region,
|
|
18
|
+
},
|
|
19
|
+
propertiesExtractor: (config, context) => ({
|
|
20
|
+
signingProperties: {
|
|
21
|
+
config,
|
|
22
|
+
context,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export const defaultTimestreamInfluxDBHttpAuthSchemeProvider = (authParameters) => {
|
|
28
|
+
const options = [];
|
|
29
|
+
switch (authParameters.operation) {
|
|
30
|
+
default: {
|
|
31
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return options;
|
|
35
|
+
};
|
|
36
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
+
return {
|
|
39
|
+
...config_0,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { CreateDbInstanceInputFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_CreateDbInstanceCommand, se_CreateDbInstanceCommand } from "../protocols/Aws_json1_0";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class CreateDbInstanceCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonTimestreamInfluxDB", "CreateDbInstance", {})
|
|
20
|
+
.n("TimestreamInfluxDBClient", "CreateDbInstanceCommand")
|
|
21
|
+
.f(CreateDbInstanceInputFilterSensitiveLog, void 0)
|
|
22
|
+
.ser(se_CreateDbInstanceCommand)
|
|
23
|
+
.de(de_CreateDbInstanceCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CreateDbParameterGroupCommand, se_CreateDbParameterGroupCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateDbParameterGroupCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "CreateDbParameterGroup", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "CreateDbParameterGroupCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CreateDbParameterGroupCommand)
|
|
22
|
+
.de(de_CreateDbParameterGroupCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DeleteDbInstanceCommand, se_DeleteDbInstanceCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteDbInstanceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "DeleteDbInstance", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "DeleteDbInstanceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DeleteDbInstanceCommand)
|
|
22
|
+
.de(de_DeleteDbInstanceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetDbInstanceCommand, se_GetDbInstanceCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetDbInstanceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "GetDbInstance", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "GetDbInstanceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetDbInstanceCommand)
|
|
22
|
+
.de(de_GetDbInstanceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetDbParameterGroupCommand, se_GetDbParameterGroupCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetDbParameterGroupCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "GetDbParameterGroup", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "GetDbParameterGroupCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetDbParameterGroupCommand)
|
|
22
|
+
.de(de_GetDbParameterGroupCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListDbInstancesCommand, se_ListDbInstancesCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListDbInstancesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "ListDbInstances", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "ListDbInstancesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListDbInstancesCommand)
|
|
22
|
+
.de(de_ListDbInstancesCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListDbParameterGroupsCommand, se_ListDbParameterGroupsCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListDbParameterGroupsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "ListDbParameterGroups", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "ListDbParameterGroupsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListDbParameterGroupsCommand)
|
|
22
|
+
.de(de_ListDbParameterGroupsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListTagsForResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "ListTagsForResource", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "ListTagsForResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListTagsForResourceCommand)
|
|
22
|
+
.de(de_ListTagsForResourceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class TagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "TagResource", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "TagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_TagResourceCommand)
|
|
22
|
+
.de(de_TagResourceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UntagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "UntagResource", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "UntagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UntagResourceCommand)
|
|
22
|
+
.de(de_UntagResourceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateDbInstanceCommand, se_UpdateDbInstanceCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateDbInstanceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonTimestreamInfluxDB", "UpdateDbInstance", {})
|
|
19
|
+
.n("TimestreamInfluxDBClient", "UpdateDbInstanceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateDbInstanceCommand)
|
|
22
|
+
.de(de_UpdateDbInstanceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./CreateDbInstanceCommand";
|
|
2
|
+
export * from "./CreateDbParameterGroupCommand";
|
|
3
|
+
export * from "./DeleteDbInstanceCommand";
|
|
4
|
+
export * from "./GetDbInstanceCommand";
|
|
5
|
+
export * from "./GetDbParameterGroupCommand";
|
|
6
|
+
export * from "./ListDbInstancesCommand";
|
|
7
|
+
export * from "./ListDbParameterGroupsCommand";
|
|
8
|
+
export * from "./ListTagsForResourceCommand";
|
|
9
|
+
export * from "./TagResourceCommand";
|
|
10
|
+
export * from "./UntagResourceCommand";
|
|
11
|
+
export * from "./UpdateDbInstanceCommand";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return {
|
|
3
|
+
...options,
|
|
4
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
|
+
defaultSigningName: "timestream-influxdb",
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://timestream-influxdb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://timestream-influxdb-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://timestream-influxdb.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://timestream-influxdb.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./TimestreamInfluxDBClient";
|
|
2
|
+
export * from "./TimestreamInfluxDB";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models";
|
|
6
|
+
import "@aws-sdk/util-endpoints";
|
|
7
|
+
export { TimestreamInfluxDBServiceException } from "./models/TimestreamInfluxDBServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class TimestreamInfluxDBServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, TimestreamInfluxDBServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { TimestreamInfluxDBServiceException as __BaseException } from "./TimestreamInfluxDBServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class ConflictException extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "ConflictException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "ConflictException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
25
|
+
this.resourceId = opts.resourceId;
|
|
26
|
+
this.resourceType = opts.resourceType;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export const DbInstanceType = {
|
|
30
|
+
DB_INFLUX_12XLARGE: "db.influx.12xlarge",
|
|
31
|
+
DB_INFLUX_16XLARGE: "db.influx.16xlarge",
|
|
32
|
+
DB_INFLUX_2XLARGE: "db.influx.2xlarge",
|
|
33
|
+
DB_INFLUX_4XLARGE: "db.influx.4xlarge",
|
|
34
|
+
DB_INFLUX_8XLARGE: "db.influx.8xlarge",
|
|
35
|
+
DB_INFLUX_LARGE: "db.influx.large",
|
|
36
|
+
DB_INFLUX_MEDIUM: "db.influx.medium",
|
|
37
|
+
DB_INFLUX_XLARGE: "db.influx.xlarge",
|
|
38
|
+
};
|
|
39
|
+
export const DbStorageType = {
|
|
40
|
+
INFLUX_IO_INCLUDED_T1: "InfluxIOIncludedT1",
|
|
41
|
+
INFLUX_IO_INCLUDED_T2: "InfluxIOIncludedT2",
|
|
42
|
+
INFLUX_IO_INCLUDED_T3: "InfluxIOIncludedT3",
|
|
43
|
+
};
|
|
44
|
+
export const DeploymentType = {
|
|
45
|
+
SINGLE_AZ: "SINGLE_AZ",
|
|
46
|
+
WITH_MULTIAZ_STANDBY: "WITH_MULTIAZ_STANDBY",
|
|
47
|
+
};
|
|
48
|
+
export const Status = {
|
|
49
|
+
AVAILABLE: "AVAILABLE",
|
|
50
|
+
CREATING: "CREATING",
|
|
51
|
+
DELETED: "DELETED",
|
|
52
|
+
DELETING: "DELETING",
|
|
53
|
+
FAILED: "FAILED",
|
|
54
|
+
MODIFYING: "MODIFYING",
|
|
55
|
+
UPDATING: "UPDATING",
|
|
56
|
+
};
|
|
57
|
+
export class InternalServerException extends __BaseException {
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "InternalServerException",
|
|
61
|
+
$fault: "server",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
this.name = "InternalServerException";
|
|
65
|
+
this.$fault = "server";
|
|
66
|
+
this.$retryable = {};
|
|
67
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
71
|
+
constructor(opts) {
|
|
72
|
+
super({
|
|
73
|
+
name: "ResourceNotFoundException",
|
|
74
|
+
$fault: "client",
|
|
75
|
+
...opts,
|
|
76
|
+
});
|
|
77
|
+
this.name = "ResourceNotFoundException";
|
|
78
|
+
this.$fault = "client";
|
|
79
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
80
|
+
this.resourceId = opts.resourceId;
|
|
81
|
+
this.resourceType = opts.resourceType;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
85
|
+
constructor(opts) {
|
|
86
|
+
super({
|
|
87
|
+
name: "ServiceQuotaExceededException",
|
|
88
|
+
$fault: "client",
|
|
89
|
+
...opts,
|
|
90
|
+
});
|
|
91
|
+
this.name = "ServiceQuotaExceededException";
|
|
92
|
+
this.$fault = "client";
|
|
93
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export class ThrottlingException extends __BaseException {
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "ThrottlingException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
this.name = "ThrottlingException";
|
|
104
|
+
this.$fault = "client";
|
|
105
|
+
this.$retryable = {};
|
|
106
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
107
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export const ValidationExceptionReason = {
|
|
111
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
112
|
+
OTHER: "OTHER",
|
|
113
|
+
};
|
|
114
|
+
export class ValidationException extends __BaseException {
|
|
115
|
+
constructor(opts) {
|
|
116
|
+
super({
|
|
117
|
+
name: "ValidationException",
|
|
118
|
+
$fault: "client",
|
|
119
|
+
...opts,
|
|
120
|
+
});
|
|
121
|
+
this.name = "ValidationException";
|
|
122
|
+
this.$fault = "client";
|
|
123
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
124
|
+
this.reason = opts.reason;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export const LogLevel = {
|
|
128
|
+
DEBUG: "debug",
|
|
129
|
+
ERROR: "error",
|
|
130
|
+
INFO: "info",
|
|
131
|
+
};
|
|
132
|
+
export const TracingType = {
|
|
133
|
+
JAEGER: "jaeger",
|
|
134
|
+
LOG: "log",
|
|
135
|
+
};
|
|
136
|
+
export var _Parameters;
|
|
137
|
+
(function (_Parameters) {
|
|
138
|
+
_Parameters.visit = (value, visitor) => {
|
|
139
|
+
if (value.InfluxDBv2 !== undefined)
|
|
140
|
+
return visitor.InfluxDBv2(value.InfluxDBv2);
|
|
141
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
142
|
+
};
|
|
143
|
+
})(_Parameters || (_Parameters = {}));
|
|
144
|
+
export const CreateDbInstanceInputFilterSensitiveLog = (obj) => ({
|
|
145
|
+
...obj,
|
|
146
|
+
...(obj.username && { username: SENSITIVE_STRING }),
|
|
147
|
+
...(obj.password && { password: SENSITIVE_STRING }),
|
|
148
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListDbInstancesCommand, } from "../commands/ListDbInstancesCommand";
|
|
3
|
+
import { TimestreamInfluxDBClient } from "../TimestreamInfluxDBClient";
|
|
4
|
+
export const paginateListDbInstances = createPaginator(TimestreamInfluxDBClient, ListDbInstancesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListDbParameterGroupsCommand, } from "../commands/ListDbParameterGroupsCommand";
|
|
3
|
+
import { TimestreamInfluxDBClient } from "../TimestreamInfluxDBClient";
|
|
4
|
+
export const paginateListDbParameterGroups = createPaginator(TimestreamInfluxDBClient, ListDbParameterGroupsCommand, "nextToken", "nextToken", "maxResults");
|