@aws-sdk/client-timestream-write 3.194.0 → 3.196.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/TimestreamWriteClient.js +12 -9
  3. package/dist-cjs/commands/CreateDatabaseCommand.js +10 -0
  4. package/dist-cjs/commands/CreateTableCommand.js +10 -0
  5. package/dist-cjs/commands/DeleteDatabaseCommand.js +10 -0
  6. package/dist-cjs/commands/DeleteTableCommand.js +10 -0
  7. package/dist-cjs/commands/DescribeDatabaseCommand.js +10 -0
  8. package/dist-cjs/commands/DescribeEndpointsCommand.js +10 -0
  9. package/dist-cjs/commands/DescribeTableCommand.js +10 -0
  10. package/dist-cjs/commands/ListDatabasesCommand.js +10 -0
  11. package/dist-cjs/commands/ListTablesCommand.js +10 -0
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  13. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  14. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  15. package/dist-cjs/commands/UpdateDatabaseCommand.js +10 -0
  16. package/dist-cjs/commands/UpdateTableCommand.js +10 -0
  17. package/dist-cjs/commands/WriteRecordsCommand.js +10 -0
  18. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  19. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  20. package/dist-cjs/endpoint/ruleset.js +312 -0
  21. package/dist-cjs/runtimeConfig.shared.js +3 -3
  22. package/dist-es/TimestreamWriteClient.js +13 -10
  23. package/dist-es/commands/CreateDatabaseCommand.js +10 -0
  24. package/dist-es/commands/CreateTableCommand.js +10 -0
  25. package/dist-es/commands/DeleteDatabaseCommand.js +10 -0
  26. package/dist-es/commands/DeleteTableCommand.js +10 -0
  27. package/dist-es/commands/DescribeDatabaseCommand.js +10 -0
  28. package/dist-es/commands/DescribeEndpointsCommand.js +10 -0
  29. package/dist-es/commands/DescribeTableCommand.js +10 -0
  30. package/dist-es/commands/ListDatabasesCommand.js +10 -0
  31. package/dist-es/commands/ListTablesCommand.js +10 -0
  32. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  33. package/dist-es/commands/TagResourceCommand.js +10 -0
  34. package/dist-es/commands/UntagResourceCommand.js +10 -0
  35. package/dist-es/commands/UpdateDatabaseCommand.js +10 -0
  36. package/dist-es/commands/UpdateTableCommand.js +10 -0
  37. package/dist-es/commands/WriteRecordsCommand.js +10 -0
  38. package/dist-es/endpoint/EndpointParameters.js +8 -0
  39. package/dist-es/endpoint/endpointResolver.js +8 -0
  40. package/dist-es/endpoint/ruleset.js +309 -0
  41. package/dist-es/runtimeConfig.shared.js +2 -2
  42. package/dist-types/TimestreamWriteClient.d.ts +6 -9
  43. package/dist-types/commands/CreateDatabaseCommand.d.ts +2 -0
  44. package/dist-types/commands/CreateTableCommand.d.ts +2 -0
  45. package/dist-types/commands/DeleteDatabaseCommand.d.ts +2 -0
  46. package/dist-types/commands/DeleteTableCommand.d.ts +2 -0
  47. package/dist-types/commands/DescribeDatabaseCommand.d.ts +2 -0
  48. package/dist-types/commands/DescribeEndpointsCommand.d.ts +2 -0
  49. package/dist-types/commands/DescribeTableCommand.d.ts +2 -0
  50. package/dist-types/commands/ListDatabasesCommand.d.ts +2 -0
  51. package/dist-types/commands/ListTablesCommand.d.ts +2 -0
  52. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  53. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  54. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  55. package/dist-types/commands/UpdateDatabaseCommand.d.ts +2 -0
  56. package/dist-types/commands/UpdateTableCommand.d.ts +2 -0
  57. package/dist-types/commands/WriteRecordsCommand.d.ts +2 -0
  58. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  59. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  60. package/dist-types/endpoint/ruleset.d.ts +2 -0
  61. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  62. package/dist-types/runtimeConfig.d.ts +4 -2
  63. package/dist-types/runtimeConfig.native.d.ts +4 -2
  64. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  65. package/dist-types/ts3.4/TimestreamWriteClient.d.ts +15 -8
  66. package/dist-types/ts3.4/commands/CreateDatabaseCommand.d.ts +2 -0
  67. package/dist-types/ts3.4/commands/CreateTableCommand.d.ts +2 -0
  68. package/dist-types/ts3.4/commands/DeleteDatabaseCommand.d.ts +2 -0
  69. package/dist-types/ts3.4/commands/DeleteTableCommand.d.ts +2 -0
  70. package/dist-types/ts3.4/commands/DescribeDatabaseCommand.d.ts +2 -0
  71. package/dist-types/ts3.4/commands/DescribeEndpointsCommand.d.ts +2 -0
  72. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -0
  73. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +2 -0
  74. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -0
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  76. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  77. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  78. package/dist-types/ts3.4/commands/UpdateDatabaseCommand.d.ts +2 -0
  79. package/dist-types/ts3.4/commands/UpdateTableCommand.d.ts +2 -0
  80. package/dist-types/ts3.4/commands/WriteRecordsCommand.d.ts +2 -0
  81. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  82. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  83. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  84. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  85. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  86. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  87. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  88. package/package.json +5 -3
  89. package/dist-cjs/endpoints.js +0 -163
  90. package/dist-es/endpoints.js +0 -159
  91. package/dist-types/endpoints.d.ts +0 -2
  92. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { UpdateTableRequest, UpdateTableResponse } from "../models/models_0";
@@ -32,6 +33,7 @@ export interface UpdateTableCommandOutput extends UpdateTableResponse, __Metadat
32
33
  */
33
34
  export declare class UpdateTableCommand extends $Command<UpdateTableCommandInput, UpdateTableCommandOutput, TimestreamWriteClientResolvedConfig> {
34
35
  readonly input: UpdateTableCommandInput;
36
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
35
37
  constructor(input: UpdateTableCommandInput);
36
38
  /**
37
39
  * @internal
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { WriteRecordsRequest, WriteRecordsResponse } from "../models/models_0";
@@ -68,6 +69,7 @@ export interface WriteRecordsCommandOutput extends WriteRecordsResponse, __Metad
68
69
  */
69
70
  export declare class WriteRecordsCommand extends $Command<WriteRecordsCommandInput, WriteRecordsCommandOutput, TimestreamWriteClientResolvedConfig> {
70
71
  readonly input: WriteRecordsCommandInput;
72
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
71
73
  constructor(input: WriteRecordsCommandInput);
72
74
  /**
73
75
  * @internal
@@ -0,0 +1,19 @@
1
+ import { EndpointParameters as __EndpointParameters, Provider } from "@aws-sdk/types";
2
+ export interface ClientInputEndpointParameters {
3
+ region?: string | Provider<string>;
4
+ useDualstackEndpoint?: boolean | Provider<boolean>;
5
+ useFipsEndpoint?: boolean | Provider<boolean>;
6
+ endpoint?: string | Provider<string>;
7
+ }
8
+ export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
9
+ defaultSigningName: string;
10
+ };
11
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
12
+ defaultSigningName: string;
13
+ };
14
+ export interface EndpointParameters extends __EndpointParameters {
15
+ Region?: string;
16
+ UseDualStack?: boolean;
17
+ UseFIPS?: boolean;
18
+ Endpoint?: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -27,8 +27,10 @@ export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) =>
27
27
  disableHostPrefix: boolean;
28
28
  logger: import("@aws-sdk/types").Logger;
29
29
  serviceId: string;
30
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
31
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
31
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
32
+ logger?: import("@aws-sdk/types").Logger | undefined;
33
+ }) => import("@aws-sdk/types").EndpointV2;
32
34
  tls?: boolean | undefined;
33
35
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
36
  credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
@@ -27,8 +27,10 @@ export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) =>
27
27
  disableHostPrefix: boolean;
28
28
  logger: import("@aws-sdk/types").Logger;
29
29
  serviceId: string;
30
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
31
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
31
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
32
+ logger?: import("@aws-sdk/types").Logger | undefined;
33
+ }) => import("@aws-sdk/types").EndpointV2;
32
34
  tls?: boolean | undefined;
33
35
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
36
  credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
@@ -23,11 +23,13 @@ export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) =>
23
23
  serviceId: string;
24
24
  region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
26
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
27
  endpointDiscoveryEnabledProvider: import("@aws-sdk/types").Provider<boolean | undefined>;
29
28
  defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
30
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ endpoint?: string | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Endpoint & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").EndpointV2 & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> & import("@aws-sdk/types").Provider<string>) | undefined;
30
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
+ logger?: import("@aws-sdk/types").Logger | undefined;
32
+ }) => import("@aws-sdk/types").EndpointV2;
31
33
  tls?: boolean | undefined;
32
34
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
33
35
  credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
@@ -6,8 +6,10 @@ import { TimestreamWriteClientConfig } from "./TimestreamWriteClient";
6
6
  export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) => {
7
7
  apiVersion: string;
8
8
  disableHostPrefix: boolean;
9
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
10
+ logger?: __Logger | undefined;
11
+ }) => import("@aws-sdk/types").EndpointV2;
9
12
  logger: __Logger;
10
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
11
13
  serviceId: string;
12
14
  urlParser: import("@aws-sdk/types").UrlParser;
13
15
  };
@@ -1,9 +1,11 @@
1
1
  import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
2
  RegionInputConfig,
5
3
  RegionResolvedConfig,
6
4
  } from "@aws-sdk/config-resolver";
5
+ import {
6
+ EndpointInputConfig,
7
+ EndpointResolvedConfig,
8
+ } from "@aws-sdk/middleware-endpoint";
7
9
  import {
8
10
  EndpointDiscoveryInputConfig,
9
11
  EndpointDiscoveryResolvedConfig,
@@ -41,7 +43,6 @@ import {
41
43
  Logger as __Logger,
42
44
  Provider as __Provider,
43
45
  Provider,
44
- RegionInfoProvider,
45
46
  StreamCollector as __StreamCollector,
46
47
  UrlParser as __UrlParser,
47
48
  UserAgent as __UserAgent,
@@ -106,6 +107,11 @@ import {
106
107
  WriteRecordsCommandInput,
107
108
  WriteRecordsCommandOutput,
108
109
  } from "./commands/WriteRecordsCommand";
110
+ import {
111
+ ClientInputEndpointParameters,
112
+ ClientResolvedEndpointParameters,
113
+ EndpointParameters,
114
+ } from "./endpoint/EndpointParameters";
109
115
  export declare type ServiceInputTypes =
110
116
  | CreateDatabaseCommandInput
111
117
  | CreateTableCommandInput
@@ -159,7 +165,6 @@ export interface ClientDefaults
159
165
  serviceId?: string;
160
166
  region?: string | __Provider<string>;
161
167
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
162
- regionInfoProvider?: RegionInfoProvider;
163
168
  defaultUserAgentProvider?: Provider<__UserAgent>;
164
169
  endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
165
170
  defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
@@ -169,24 +174,26 @@ declare type TimestreamWriteClientConfigType = Partial<
169
174
  > &
170
175
  ClientDefaults &
171
176
  RegionInputConfig &
172
- EndpointsInputConfig &
177
+ EndpointInputConfig<EndpointParameters> &
173
178
  RetryInputConfig &
174
179
  HostHeaderInputConfig &
175
180
  AwsAuthInputConfig &
176
181
  UserAgentInputConfig &
177
- EndpointDiscoveryInputConfig;
182
+ EndpointDiscoveryInputConfig &
183
+ ClientInputEndpointParameters;
178
184
  export interface TimestreamWriteClientConfig
179
185
  extends TimestreamWriteClientConfigType {}
180
186
  declare type TimestreamWriteClientResolvedConfigType =
181
187
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
182
188
  Required<ClientDefaults> &
183
189
  RegionResolvedConfig &
184
- EndpointsResolvedConfig &
190
+ EndpointResolvedConfig<EndpointParameters> &
185
191
  RetryResolvedConfig &
186
192
  HostHeaderResolvedConfig &
187
193
  AwsAuthResolvedConfig &
188
194
  UserAgentResolvedConfig &
189
- EndpointDiscoveryResolvedConfig;
195
+ EndpointDiscoveryResolvedConfig &
196
+ ClientResolvedEndpointParameters;
190
197
  export interface TimestreamWriteClientResolvedConfig
191
198
  extends TimestreamWriteClientResolvedConfigType {}
192
199
  export declare class TimestreamWriteClient extends __Client<
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class CreateDatabaseCommand extends $Command<
24
25
  TimestreamWriteClientResolvedConfig
25
26
  > {
26
27
  readonly input: CreateDatabaseCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: CreateDatabaseCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class CreateTableCommand extends $Command<
21
22
  TimestreamWriteClientResolvedConfig
22
23
  > {
23
24
  readonly input: CreateTableCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: CreateTableCommandInput);
25
27
  resolveMiddleware(
26
28
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -19,6 +20,7 @@ export declare class DeleteDatabaseCommand extends $Command<
19
20
  TimestreamWriteClientResolvedConfig
20
21
  > {
21
22
  readonly input: DeleteDatabaseCommandInput;
23
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
22
24
  constructor(input: DeleteDatabaseCommandInput);
23
25
  resolveMiddleware(
24
26
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -19,6 +20,7 @@ export declare class DeleteTableCommand extends $Command<
19
20
  TimestreamWriteClientResolvedConfig
20
21
  > {
21
22
  readonly input: DeleteTableCommandInput;
23
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
22
24
  constructor(input: DeleteTableCommandInput);
23
25
  resolveMiddleware(
24
26
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class DescribeDatabaseCommand extends $Command<
24
25
  TimestreamWriteClientResolvedConfig
25
26
  > {
26
27
  readonly input: DescribeDatabaseCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: DescribeDatabaseCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class DescribeEndpointsCommand extends $Command<
25
26
  TimestreamWriteClientResolvedConfig
26
27
  > {
27
28
  readonly input: DescribeEndpointsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: DescribeEndpointsCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class DescribeTableCommand extends $Command<
24
25
  TimestreamWriteClientResolvedConfig
25
26
  > {
26
27
  readonly input: DescribeTableCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: DescribeTableCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class ListDatabasesCommand extends $Command<
24
25
  TimestreamWriteClientResolvedConfig
25
26
  > {
26
27
  readonly input: ListDatabasesCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: ListDatabasesCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class ListTablesCommand extends $Command<
21
22
  TimestreamWriteClientResolvedConfig
22
23
  > {
23
24
  readonly input: ListTablesCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: ListTablesCommandInput);
25
27
  resolveMiddleware(
26
28
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class ListTagsForResourceCommand extends $Command<
25
26
  TimestreamWriteClientResolvedConfig
26
27
  > {
27
28
  readonly input: ListTagsForResourceCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: ListTagsForResourceCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class TagResourceCommand extends $Command<
21
22
  TimestreamWriteClientResolvedConfig
22
23
  > {
23
24
  readonly input: TagResourceCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: TagResourceCommandInput);
25
27
  resolveMiddleware(
26
28
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class UntagResourceCommand extends $Command<
24
25
  TimestreamWriteClientResolvedConfig
25
26
  > {
26
27
  readonly input: UntagResourceCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: UntagResourceCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class UpdateDatabaseCommand extends $Command<
24
25
  TimestreamWriteClientResolvedConfig
25
26
  > {
26
27
  readonly input: UpdateDatabaseCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: UpdateDatabaseCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class UpdateTableCommand extends $Command<
21
22
  TimestreamWriteClientResolvedConfig
22
23
  > {
23
24
  readonly input: UpdateTableCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: UpdateTableCommandInput);
25
27
  resolveMiddleware(
26
28
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class WriteRecordsCommand extends $Command<
21
22
  TimestreamWriteClientResolvedConfig
22
23
  > {
23
24
  readonly input: WriteRecordsCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: WriteRecordsCommandInput);
25
27
  resolveMiddleware(
26
28
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -0,0 +1,26 @@
1
+ import {
2
+ EndpointParameters as __EndpointParameters,
3
+ Provider,
4
+ } from "@aws-sdk/types";
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | Provider<string>;
7
+ useDualstackEndpoint?: boolean | Provider<boolean>;
8
+ useFipsEndpoint?: boolean | Provider<boolean>;
9
+ endpoint?: string | Provider<string>;
10
+ }
11
+ export declare type ClientResolvedEndpointParameters =
12
+ ClientInputEndpointParameters & {
13
+ defaultSigningName: string;
14
+ };
15
+ export declare const resolveClientEndpointParameters: <T>(
16
+ options: T & ClientInputEndpointParameters
17
+ ) => T &
18
+ ClientInputEndpointParameters & {
19
+ defaultSigningName: string;
20
+ };
21
+ export interface EndpointParameters extends __EndpointParameters {
22
+ Region?: string;
23
+ UseDualStack?: boolean;
24
+ UseFIPS?: boolean;
25
+ Endpoint?: string;
26
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -41,12 +41,22 @@ export declare const getRuntimeConfig: (
41
41
  disableHostPrefix: boolean;
42
42
  logger: import("@aws-sdk/types").Logger;
43
43
  serviceId: string;
44
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
45
44
  endpoint?:
46
- | string
47
- | import("@aws-sdk/types").Endpoint
48
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
45
+ | ((
46
+ | string
47
+ | import("@aws-sdk/types").Endpoint
48
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
49
+ | import("@aws-sdk/types").EndpointV2
50
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
51
+ ) &
52
+ (string | import("@aws-sdk/types").Provider<string>))
49
53
  | undefined;
54
+ endpointProvider: (
55
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
56
+ context?: {
57
+ logger?: import("@aws-sdk/types").Logger | undefined;
58
+ }
59
+ ) => import("@aws-sdk/types").EndpointV2;
50
60
  tls?: boolean | undefined;
51
61
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
52
62
  credentials?:
@@ -41,12 +41,22 @@ export declare const getRuntimeConfig: (
41
41
  disableHostPrefix: boolean;
42
42
  logger: import("@aws-sdk/types").Logger;
43
43
  serviceId: string;
44
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
45
44
  endpoint?:
46
- | string
47
- | import("@aws-sdk/types").Endpoint
48
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
45
+ | ((
46
+ | string
47
+ | import("@aws-sdk/types").Endpoint
48
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
49
+ | import("@aws-sdk/types").EndpointV2
50
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
51
+ ) &
52
+ (string | import("@aws-sdk/types").Provider<string>))
49
53
  | undefined;
54
+ endpointProvider: (
55
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
56
+ context?: {
57
+ logger?: import("@aws-sdk/types").Logger | undefined;
58
+ }
59
+ ) => import("@aws-sdk/types").EndpointV2;
50
60
  tls?: boolean | undefined;
51
61
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
52
62
  credentials?:
@@ -31,7 +31,6 @@ export declare const getRuntimeConfig: (
31
31
  credentialDefaultProvider: (
32
32
  input: any
33
33
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
34
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
35
34
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
36
35
  import("@aws-sdk/types").UserAgent
37
36
  >;
@@ -45,9 +44,21 @@ export declare const getRuntimeConfig: (
45
44
  >;
46
45
  endpoint?:
47
46
  | string
48
- | import("@aws-sdk/types").Endpoint
49
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
47
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
48
+ import("@aws-sdk/types").Provider<string>)
49
+ | (import("@aws-sdk/types").Endpoint &
50
+ import("@aws-sdk/types").Provider<string>)
51
+ | (import("@aws-sdk/types").EndpointV2 &
52
+ import("@aws-sdk/types").Provider<string>)
53
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
54
+ import("@aws-sdk/types").Provider<string>)
50
55
  | undefined;
56
+ endpointProvider: (
57
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
58
+ context?: {
59
+ logger?: import("@aws-sdk/types").Logger | undefined;
60
+ }
61
+ ) => import("@aws-sdk/types").EndpointV2;
51
62
  tls?: boolean | undefined;
52
63
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
53
64
  credentials?:
@@ -5,8 +5,13 @@ export declare const getRuntimeConfig: (
5
5
  ) => {
6
6
  apiVersion: string;
7
7
  disableHostPrefix: boolean;
8
+ endpointProvider: (
9
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
10
+ context?: {
11
+ logger?: __Logger | undefined;
12
+ }
13
+ ) => import("@aws-sdk/types").EndpointV2;
8
14
  logger: __Logger;
9
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
10
15
  serviceId: string;
11
16
  urlParser: import("@aws-sdk/types").UrlParser;
12
17
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-timestream-write",
3
3
  "description": "AWS SDK for JavaScript Timestream Write Client for Node.js, Browser and React Native",
4
- "version": "3.194.0",
4
+ "version": "3.196.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,13 +19,14 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.194.0",
22
+ "@aws-sdk/client-sts": "3.196.0",
23
23
  "@aws-sdk/config-resolver": "3.193.0",
24
- "@aws-sdk/credential-provider-node": "3.193.0",
24
+ "@aws-sdk/credential-provider-node": "3.196.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.193.0",
26
26
  "@aws-sdk/hash-node": "3.193.0",
27
27
  "@aws-sdk/invalid-dependency": "3.193.0",
28
28
  "@aws-sdk/middleware-content-length": "3.193.0",
29
+ "@aws-sdk/middleware-endpoint": "3.193.0",
29
30
  "@aws-sdk/middleware-endpoint-discovery": "3.193.0",
30
31
  "@aws-sdk/middleware-host-header": "3.193.0",
31
32
  "@aws-sdk/middleware-logger": "3.193.0",
@@ -47,6 +48,7 @@
47
48
  "@aws-sdk/util-body-length-node": "3.188.0",
48
49
  "@aws-sdk/util-defaults-mode-browser": "3.193.0",
49
50
  "@aws-sdk/util-defaults-mode-node": "3.193.0",
51
+ "@aws-sdk/util-endpoints": "3.196.0",
50
52
  "@aws-sdk/util-user-agent-browser": "3.193.0",
51
53
  "@aws-sdk/util-user-agent-node": "3.193.0",
52
54
  "@aws-sdk/util-utf8-browser": "3.188.0",