@aws-sdk/client-datasync 3.194.0 → 3.195.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 (214) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +7 -5
  3. package/dist-cjs/DataSyncClient.js +11 -8
  4. package/dist-cjs/commands/CancelTaskExecutionCommand.js +10 -0
  5. package/dist-cjs/commands/CreateAgentCommand.js +10 -0
  6. package/dist-cjs/commands/CreateLocationEfsCommand.js +10 -0
  7. package/dist-cjs/commands/CreateLocationFsxLustreCommand.js +10 -0
  8. package/dist-cjs/commands/CreateLocationFsxOntapCommand.js +10 -0
  9. package/dist-cjs/commands/CreateLocationFsxOpenZfsCommand.js +10 -0
  10. package/dist-cjs/commands/CreateLocationFsxWindowsCommand.js +10 -0
  11. package/dist-cjs/commands/CreateLocationHdfsCommand.js +10 -0
  12. package/dist-cjs/commands/CreateLocationNfsCommand.js +10 -0
  13. package/dist-cjs/commands/CreateLocationObjectStorageCommand.js +10 -0
  14. package/dist-cjs/commands/CreateLocationS3Command.js +10 -0
  15. package/dist-cjs/commands/CreateLocationSmbCommand.js +10 -0
  16. package/dist-cjs/commands/CreateTaskCommand.js +10 -0
  17. package/dist-cjs/commands/DeleteAgentCommand.js +10 -0
  18. package/dist-cjs/commands/DeleteLocationCommand.js +10 -0
  19. package/dist-cjs/commands/DeleteTaskCommand.js +10 -0
  20. package/dist-cjs/commands/DescribeAgentCommand.js +10 -0
  21. package/dist-cjs/commands/DescribeLocationEfsCommand.js +10 -0
  22. package/dist-cjs/commands/DescribeLocationFsxLustreCommand.js +10 -0
  23. package/dist-cjs/commands/DescribeLocationFsxOntapCommand.js +10 -0
  24. package/dist-cjs/commands/DescribeLocationFsxOpenZfsCommand.js +10 -0
  25. package/dist-cjs/commands/DescribeLocationFsxWindowsCommand.js +10 -0
  26. package/dist-cjs/commands/DescribeLocationHdfsCommand.js +10 -0
  27. package/dist-cjs/commands/DescribeLocationNfsCommand.js +10 -0
  28. package/dist-cjs/commands/DescribeLocationObjectStorageCommand.js +10 -0
  29. package/dist-cjs/commands/DescribeLocationS3Command.js +10 -0
  30. package/dist-cjs/commands/DescribeLocationSmbCommand.js +10 -0
  31. package/dist-cjs/commands/DescribeTaskCommand.js +10 -0
  32. package/dist-cjs/commands/DescribeTaskExecutionCommand.js +10 -0
  33. package/dist-cjs/commands/ListAgentsCommand.js +10 -0
  34. package/dist-cjs/commands/ListLocationsCommand.js +10 -0
  35. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  36. package/dist-cjs/commands/ListTaskExecutionsCommand.js +10 -0
  37. package/dist-cjs/commands/ListTasksCommand.js +10 -0
  38. package/dist-cjs/commands/StartTaskExecutionCommand.js +10 -0
  39. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  40. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  41. package/dist-cjs/commands/UpdateAgentCommand.js +10 -0
  42. package/dist-cjs/commands/UpdateLocationHdfsCommand.js +10 -0
  43. package/dist-cjs/commands/UpdateLocationNfsCommand.js +10 -0
  44. package/dist-cjs/commands/UpdateLocationObjectStorageCommand.js +10 -0
  45. package/dist-cjs/commands/UpdateLocationSmbCommand.js +10 -0
  46. package/dist-cjs/commands/UpdateTaskCommand.js +10 -0
  47. package/dist-cjs/commands/UpdateTaskExecutionCommand.js +10 -0
  48. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  49. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  50. package/dist-cjs/endpoint/ruleset.js +318 -0
  51. package/dist-cjs/protocols/Aws_json1_1.js +4 -0
  52. package/dist-cjs/runtimeConfig.shared.js +3 -3
  53. package/dist-es/DataSyncClient.js +12 -9
  54. package/dist-es/commands/CancelTaskExecutionCommand.js +10 -0
  55. package/dist-es/commands/CreateAgentCommand.js +10 -0
  56. package/dist-es/commands/CreateLocationEfsCommand.js +10 -0
  57. package/dist-es/commands/CreateLocationFsxLustreCommand.js +10 -0
  58. package/dist-es/commands/CreateLocationFsxOntapCommand.js +10 -0
  59. package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +10 -0
  60. package/dist-es/commands/CreateLocationFsxWindowsCommand.js +10 -0
  61. package/dist-es/commands/CreateLocationHdfsCommand.js +10 -0
  62. package/dist-es/commands/CreateLocationNfsCommand.js +10 -0
  63. package/dist-es/commands/CreateLocationObjectStorageCommand.js +10 -0
  64. package/dist-es/commands/CreateLocationS3Command.js +10 -0
  65. package/dist-es/commands/CreateLocationSmbCommand.js +10 -0
  66. package/dist-es/commands/CreateTaskCommand.js +10 -0
  67. package/dist-es/commands/DeleteAgentCommand.js +10 -0
  68. package/dist-es/commands/DeleteLocationCommand.js +10 -0
  69. package/dist-es/commands/DeleteTaskCommand.js +10 -0
  70. package/dist-es/commands/DescribeAgentCommand.js +10 -0
  71. package/dist-es/commands/DescribeLocationEfsCommand.js +10 -0
  72. package/dist-es/commands/DescribeLocationFsxLustreCommand.js +10 -0
  73. package/dist-es/commands/DescribeLocationFsxOntapCommand.js +10 -0
  74. package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +10 -0
  75. package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +10 -0
  76. package/dist-es/commands/DescribeLocationHdfsCommand.js +10 -0
  77. package/dist-es/commands/DescribeLocationNfsCommand.js +10 -0
  78. package/dist-es/commands/DescribeLocationObjectStorageCommand.js +10 -0
  79. package/dist-es/commands/DescribeLocationS3Command.js +10 -0
  80. package/dist-es/commands/DescribeLocationSmbCommand.js +10 -0
  81. package/dist-es/commands/DescribeTaskCommand.js +10 -0
  82. package/dist-es/commands/DescribeTaskExecutionCommand.js +10 -0
  83. package/dist-es/commands/ListAgentsCommand.js +10 -0
  84. package/dist-es/commands/ListLocationsCommand.js +10 -0
  85. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  86. package/dist-es/commands/ListTaskExecutionsCommand.js +10 -0
  87. package/dist-es/commands/ListTasksCommand.js +10 -0
  88. package/dist-es/commands/StartTaskExecutionCommand.js +10 -0
  89. package/dist-es/commands/TagResourceCommand.js +10 -0
  90. package/dist-es/commands/UntagResourceCommand.js +10 -0
  91. package/dist-es/commands/UpdateAgentCommand.js +10 -0
  92. package/dist-es/commands/UpdateLocationHdfsCommand.js +10 -0
  93. package/dist-es/commands/UpdateLocationNfsCommand.js +10 -0
  94. package/dist-es/commands/UpdateLocationObjectStorageCommand.js +10 -0
  95. package/dist-es/commands/UpdateLocationSmbCommand.js +10 -0
  96. package/dist-es/commands/UpdateTaskCommand.js +10 -0
  97. package/dist-es/commands/UpdateTaskExecutionCommand.js +10 -0
  98. package/dist-es/endpoint/EndpointParameters.js +8 -0
  99. package/dist-es/endpoint/endpointResolver.js +8 -0
  100. package/dist-es/endpoint/ruleset.js +315 -0
  101. package/dist-es/protocols/Aws_json1_1.js +4 -0
  102. package/dist-es/runtimeConfig.shared.js +2 -2
  103. package/dist-types/DataSync.d.ts +40 -28
  104. package/dist-types/DataSyncClient.d.ts +13 -14
  105. package/dist-types/commands/CancelTaskExecutionCommand.d.ts +9 -8
  106. package/dist-types/commands/CreateAgentCommand.d.ts +7 -6
  107. package/dist-types/commands/CreateLocationEfsCommand.d.ts +2 -0
  108. package/dist-types/commands/CreateLocationFsxLustreCommand.d.ts +2 -0
  109. package/dist-types/commands/CreateLocationFsxOntapCommand.d.ts +2 -0
  110. package/dist-types/commands/CreateLocationFsxOpenZfsCommand.d.ts +8 -1
  111. package/dist-types/commands/CreateLocationFsxWindowsCommand.d.ts +2 -0
  112. package/dist-types/commands/CreateLocationHdfsCommand.d.ts +2 -0
  113. package/dist-types/commands/CreateLocationNfsCommand.d.ts +2 -0
  114. package/dist-types/commands/CreateLocationObjectStorageCommand.d.ts +2 -0
  115. package/dist-types/commands/CreateLocationS3Command.d.ts +3 -1
  116. package/dist-types/commands/CreateLocationSmbCommand.d.ts +2 -0
  117. package/dist-types/commands/CreateTaskCommand.d.ts +2 -0
  118. package/dist-types/commands/DeleteAgentCommand.d.ts +2 -0
  119. package/dist-types/commands/DeleteLocationCommand.d.ts +2 -0
  120. package/dist-types/commands/DeleteTaskCommand.d.ts +2 -0
  121. package/dist-types/commands/DescribeAgentCommand.d.ts +2 -0
  122. package/dist-types/commands/DescribeLocationEfsCommand.d.ts +2 -0
  123. package/dist-types/commands/DescribeLocationFsxLustreCommand.d.ts +3 -2
  124. package/dist-types/commands/DescribeLocationFsxOntapCommand.d.ts +6 -0
  125. package/dist-types/commands/DescribeLocationFsxOpenZfsCommand.d.ts +7 -2
  126. package/dist-types/commands/DescribeLocationFsxWindowsCommand.d.ts +2 -0
  127. package/dist-types/commands/DescribeLocationHdfsCommand.d.ts +2 -0
  128. package/dist-types/commands/DescribeLocationNfsCommand.d.ts +2 -0
  129. package/dist-types/commands/DescribeLocationObjectStorageCommand.d.ts +2 -0
  130. package/dist-types/commands/DescribeLocationS3Command.d.ts +2 -0
  131. package/dist-types/commands/DescribeLocationSmbCommand.d.ts +2 -0
  132. package/dist-types/commands/DescribeTaskCommand.d.ts +2 -0
  133. package/dist-types/commands/DescribeTaskExecutionCommand.d.ts +2 -0
  134. package/dist-types/commands/ListAgentsCommand.d.ts +2 -0
  135. package/dist-types/commands/ListLocationsCommand.d.ts +2 -0
  136. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  137. package/dist-types/commands/ListTaskExecutionsCommand.d.ts +2 -0
  138. package/dist-types/commands/ListTasksCommand.d.ts +2 -0
  139. package/dist-types/commands/StartTaskExecutionCommand.d.ts +2 -0
  140. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  141. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  142. package/dist-types/commands/UpdateAgentCommand.d.ts +2 -0
  143. package/dist-types/commands/UpdateLocationHdfsCommand.d.ts +2 -0
  144. package/dist-types/commands/UpdateLocationNfsCommand.d.ts +2 -0
  145. package/dist-types/commands/UpdateLocationObjectStorageCommand.d.ts +6 -3
  146. package/dist-types/commands/UpdateLocationSmbCommand.d.ts +2 -0
  147. package/dist-types/commands/UpdateTaskCommand.d.ts +2 -0
  148. package/dist-types/commands/UpdateTaskExecutionCommand.d.ts +2 -0
  149. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  150. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  151. package/dist-types/endpoint/ruleset.d.ts +2 -0
  152. package/dist-types/models/models_0.d.ts +42 -25
  153. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  154. package/dist-types/runtimeConfig.d.ts +4 -2
  155. package/dist-types/runtimeConfig.native.d.ts +4 -2
  156. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  157. package/dist-types/ts3.4/DataSyncClient.d.ts +15 -8
  158. package/dist-types/ts3.4/commands/CancelTaskExecutionCommand.d.ts +2 -0
  159. package/dist-types/ts3.4/commands/CreateAgentCommand.d.ts +2 -0
  160. package/dist-types/ts3.4/commands/CreateLocationEfsCommand.d.ts +2 -0
  161. package/dist-types/ts3.4/commands/CreateLocationFsxLustreCommand.d.ts +2 -0
  162. package/dist-types/ts3.4/commands/CreateLocationFsxOntapCommand.d.ts +2 -0
  163. package/dist-types/ts3.4/commands/CreateLocationFsxOpenZfsCommand.d.ts +2 -0
  164. package/dist-types/ts3.4/commands/CreateLocationFsxWindowsCommand.d.ts +2 -0
  165. package/dist-types/ts3.4/commands/CreateLocationHdfsCommand.d.ts +2 -0
  166. package/dist-types/ts3.4/commands/CreateLocationNfsCommand.d.ts +2 -0
  167. package/dist-types/ts3.4/commands/CreateLocationObjectStorageCommand.d.ts +2 -0
  168. package/dist-types/ts3.4/commands/CreateLocationS3Command.d.ts +2 -0
  169. package/dist-types/ts3.4/commands/CreateLocationSmbCommand.d.ts +2 -0
  170. package/dist-types/ts3.4/commands/CreateTaskCommand.d.ts +2 -0
  171. package/dist-types/ts3.4/commands/DeleteAgentCommand.d.ts +2 -0
  172. package/dist-types/ts3.4/commands/DeleteLocationCommand.d.ts +2 -0
  173. package/dist-types/ts3.4/commands/DeleteTaskCommand.d.ts +2 -0
  174. package/dist-types/ts3.4/commands/DescribeAgentCommand.d.ts +2 -0
  175. package/dist-types/ts3.4/commands/DescribeLocationEfsCommand.d.ts +2 -0
  176. package/dist-types/ts3.4/commands/DescribeLocationFsxLustreCommand.d.ts +2 -0
  177. package/dist-types/ts3.4/commands/DescribeLocationFsxOntapCommand.d.ts +2 -0
  178. package/dist-types/ts3.4/commands/DescribeLocationFsxOpenZfsCommand.d.ts +2 -0
  179. package/dist-types/ts3.4/commands/DescribeLocationFsxWindowsCommand.d.ts +2 -0
  180. package/dist-types/ts3.4/commands/DescribeLocationHdfsCommand.d.ts +2 -0
  181. package/dist-types/ts3.4/commands/DescribeLocationNfsCommand.d.ts +2 -0
  182. package/dist-types/ts3.4/commands/DescribeLocationObjectStorageCommand.d.ts +2 -0
  183. package/dist-types/ts3.4/commands/DescribeLocationS3Command.d.ts +2 -0
  184. package/dist-types/ts3.4/commands/DescribeLocationSmbCommand.d.ts +2 -0
  185. package/dist-types/ts3.4/commands/DescribeTaskCommand.d.ts +2 -0
  186. package/dist-types/ts3.4/commands/DescribeTaskExecutionCommand.d.ts +2 -0
  187. package/dist-types/ts3.4/commands/ListAgentsCommand.d.ts +2 -0
  188. package/dist-types/ts3.4/commands/ListLocationsCommand.d.ts +2 -0
  189. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  190. package/dist-types/ts3.4/commands/ListTaskExecutionsCommand.d.ts +2 -0
  191. package/dist-types/ts3.4/commands/ListTasksCommand.d.ts +2 -0
  192. package/dist-types/ts3.4/commands/StartTaskExecutionCommand.d.ts +2 -0
  193. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  194. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  195. package/dist-types/ts3.4/commands/UpdateAgentCommand.d.ts +2 -0
  196. package/dist-types/ts3.4/commands/UpdateLocationHdfsCommand.d.ts +2 -0
  197. package/dist-types/ts3.4/commands/UpdateLocationNfsCommand.d.ts +2 -0
  198. package/dist-types/ts3.4/commands/UpdateLocationObjectStorageCommand.d.ts +2 -0
  199. package/dist-types/ts3.4/commands/UpdateLocationSmbCommand.d.ts +2 -0
  200. package/dist-types/ts3.4/commands/UpdateTaskCommand.d.ts +2 -0
  201. package/dist-types/ts3.4/commands/UpdateTaskExecutionCommand.d.ts +2 -0
  202. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  203. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  204. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  205. package/dist-types/ts3.4/models/models_0.d.ts +4 -0
  206. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  207. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  208. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  209. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  210. package/package.json +3 -1
  211. package/dist-cjs/endpoints.js +0 -194
  212. package/dist-es/endpoints.js +0 -190
  213. package/dist-types/endpoints.d.ts +0 -2
  214. 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 {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class UpdateTaskCommand extends $Command<
21
22
  DataSyncClientResolvedConfig
22
23
  > {
23
24
  readonly input: UpdateTaskCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: UpdateTaskCommandInput);
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 UpdateTaskExecutionCommand extends $Command<
25
26
  DataSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: UpdateTaskExecutionCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: UpdateTaskExecutionCommandInput);
29
31
  resolveMiddleware(
30
32
  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;
@@ -207,6 +207,7 @@ export interface CreateLocationObjectStorageRequest {
207
207
  SecretKey?: string;
208
208
  AgentArns: string[] | undefined;
209
209
  Tags?: TagListEntry[];
210
+ ServerCertificate?: Uint8Array;
210
211
  }
211
212
  export interface CreateLocationObjectStorageResponse {
212
213
  LocationArn?: string;
@@ -474,6 +475,7 @@ export interface DescribeLocationObjectStorageResponse {
474
475
  ServerProtocol?: ObjectStorageServerProtocol | string;
475
476
  AgentArns?: string[];
476
477
  CreationTime?: Date;
478
+ ServerCertificate?: Uint8Array;
477
479
  }
478
480
  export interface DescribeLocationS3Request {
479
481
  LocationArn: string | undefined;
@@ -567,6 +569,7 @@ export interface DescribeTaskExecutionResponse {
567
569
  BytesWritten?: number;
568
570
  BytesTransferred?: number;
569
571
  Result?: TaskExecutionResultDetail;
572
+ BytesCompressed?: number;
570
573
  }
571
574
  export interface ListAgentsRequest {
572
575
  MaxResults?: number;
@@ -711,6 +714,7 @@ export interface UpdateLocationObjectStorageRequest {
711
714
  AccessKey?: string;
712
715
  SecretKey?: string;
713
716
  AgentArns?: string[];
717
+ ServerCertificate?: Uint8Array;
714
718
  }
715
719
  export interface UpdateLocationObjectStorageResponse {}
716
720
  export interface UpdateLocationSmbRequest {
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: DataSyncClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: DataSyncClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: DataSyncClientConfig) => {
29
29
  credentialDefaultProvider: (
30
30
  input: any
31
31
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
32
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
33
32
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
34
33
  import("@aws-sdk/types").UserAgent
35
34
  >;
@@ -40,9 +39,21 @@ export declare const getRuntimeConfig: (config: DataSyncClientConfig) => {
40
39
  >;
41
40
  endpoint?:
42
41
  | string
43
- | import("@aws-sdk/types").Endpoint
44
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
42
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
43
+ import("@aws-sdk/types").Provider<string>)
44
+ | (import("@aws-sdk/types").Endpoint &
45
+ import("@aws-sdk/types").Provider<string>)
46
+ | (import("@aws-sdk/types").EndpointV2 &
47
+ import("@aws-sdk/types").Provider<string>)
48
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
49
+ import("@aws-sdk/types").Provider<string>)
45
50
  | undefined;
51
+ endpointProvider: (
52
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
53
+ context?: {
54
+ logger?: import("@aws-sdk/types").Logger | undefined;
55
+ }
56
+ ) => import("@aws-sdk/types").EndpointV2;
46
57
  tls?: boolean | undefined;
47
58
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
59
  credentials?:
@@ -3,8 +3,13 @@ import { DataSyncClientConfig } from "./DataSyncClient";
3
3
  export declare const getRuntimeConfig: (config: DataSyncClientConfig) => {
4
4
  apiVersion: string;
5
5
  disableHostPrefix: boolean;
6
+ endpointProvider: (
7
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
8
+ context?: {
9
+ logger?: __Logger | undefined;
10
+ }
11
+ ) => import("@aws-sdk/types").EndpointV2;
6
12
  logger: __Logger;
7
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
8
13
  serviceId: string;
9
14
  urlParser: import("@aws-sdk/types").UrlParser;
10
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-datasync",
3
3
  "description": "AWS SDK for JavaScript Datasync Client for Node.js, Browser and React Native",
4
- "version": "3.194.0",
4
+ "version": "3.195.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",
@@ -26,6 +26,7 @@
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-host-header": "3.193.0",
30
31
  "@aws-sdk/middleware-logger": "3.193.0",
31
32
  "@aws-sdk/middleware-recursion-detection": "3.193.0",
@@ -46,6 +47,7 @@
46
47
  "@aws-sdk/util-body-length-node": "3.188.0",
47
48
  "@aws-sdk/util-defaults-mode-browser": "3.193.0",
48
49
  "@aws-sdk/util-defaults-mode-node": "3.193.0",
50
+ "@aws-sdk/util-endpoints": "3.194.0",
49
51
  "@aws-sdk/util-user-agent-browser": "3.193.0",
50
52
  "@aws-sdk/util-user-agent-node": "3.193.0",
51
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
@@ -1,194 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultRegionInfoProvider = void 0;
4
- const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {
6
- "ca-central-1": {
7
- variants: [
8
- {
9
- hostname: "datasync-fips.ca-central-1.amazonaws.com",
10
- tags: ["fips"],
11
- },
12
- ],
13
- },
14
- "us-east-1": {
15
- variants: [
16
- {
17
- hostname: "datasync-fips.us-east-1.amazonaws.com",
18
- tags: ["fips"],
19
- },
20
- ],
21
- },
22
- "us-east-2": {
23
- variants: [
24
- {
25
- hostname: "datasync-fips.us-east-2.amazonaws.com",
26
- tags: ["fips"],
27
- },
28
- ],
29
- },
30
- "us-gov-east-1": {
31
- variants: [
32
- {
33
- hostname: "datasync-fips.us-gov-east-1.amazonaws.com",
34
- tags: ["fips"],
35
- },
36
- ],
37
- },
38
- "us-gov-west-1": {
39
- variants: [
40
- {
41
- hostname: "datasync-fips.us-gov-west-1.amazonaws.com",
42
- tags: ["fips"],
43
- },
44
- ],
45
- },
46
- "us-west-1": {
47
- variants: [
48
- {
49
- hostname: "datasync-fips.us-west-1.amazonaws.com",
50
- tags: ["fips"],
51
- },
52
- ],
53
- },
54
- "us-west-2": {
55
- variants: [
56
- {
57
- hostname: "datasync-fips.us-west-2.amazonaws.com",
58
- tags: ["fips"],
59
- },
60
- ],
61
- },
62
- };
63
- const partitionHash = {
64
- aws: {
65
- regions: [
66
- "af-south-1",
67
- "ap-east-1",
68
- "ap-northeast-1",
69
- "ap-northeast-2",
70
- "ap-northeast-3",
71
- "ap-south-1",
72
- "ap-southeast-1",
73
- "ap-southeast-2",
74
- "ap-southeast-3",
75
- "ca-central-1",
76
- "eu-central-1",
77
- "eu-north-1",
78
- "eu-south-1",
79
- "eu-west-1",
80
- "eu-west-2",
81
- "eu-west-3",
82
- "fips-ca-central-1",
83
- "fips-us-east-1",
84
- "fips-us-east-2",
85
- "fips-us-west-1",
86
- "fips-us-west-2",
87
- "me-central-1",
88
- "me-south-1",
89
- "sa-east-1",
90
- "us-east-1",
91
- "us-east-2",
92
- "us-west-1",
93
- "us-west-2",
94
- ],
95
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
96
- variants: [
97
- {
98
- hostname: "datasync.{region}.amazonaws.com",
99
- tags: [],
100
- },
101
- {
102
- hostname: "datasync-fips.{region}.amazonaws.com",
103
- tags: ["fips"],
104
- },
105
- {
106
- hostname: "datasync-fips.{region}.api.aws",
107
- tags: ["dualstack", "fips"],
108
- },
109
- {
110
- hostname: "datasync.{region}.api.aws",
111
- tags: ["dualstack"],
112
- },
113
- ],
114
- },
115
- "aws-cn": {
116
- regions: ["cn-north-1", "cn-northwest-1"],
117
- regionRegex: "^cn\\-\\w+\\-\\d+$",
118
- variants: [
119
- {
120
- hostname: "datasync.{region}.amazonaws.com.cn",
121
- tags: [],
122
- },
123
- {
124
- hostname: "datasync-fips.{region}.amazonaws.com.cn",
125
- tags: ["fips"],
126
- },
127
- {
128
- hostname: "datasync-fips.{region}.api.amazonwebservices.com.cn",
129
- tags: ["dualstack", "fips"],
130
- },
131
- {
132
- hostname: "datasync.{region}.api.amazonwebservices.com.cn",
133
- tags: ["dualstack"],
134
- },
135
- ],
136
- },
137
- "aws-iso": {
138
- regions: ["us-iso-east-1", "us-iso-west-1"],
139
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
140
- variants: [
141
- {
142
- hostname: "datasync.{region}.c2s.ic.gov",
143
- tags: [],
144
- },
145
- {
146
- hostname: "datasync-fips.{region}.c2s.ic.gov",
147
- tags: ["fips"],
148
- },
149
- ],
150
- },
151
- "aws-iso-b": {
152
- regions: ["us-isob-east-1"],
153
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
154
- variants: [
155
- {
156
- hostname: "datasync.{region}.sc2s.sgov.gov",
157
- tags: [],
158
- },
159
- {
160
- hostname: "datasync-fips.{region}.sc2s.sgov.gov",
161
- tags: ["fips"],
162
- },
163
- ],
164
- },
165
- "aws-us-gov": {
166
- regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
167
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
168
- variants: [
169
- {
170
- hostname: "datasync.{region}.amazonaws.com",
171
- tags: [],
172
- },
173
- {
174
- hostname: "datasync-fips.{region}.amazonaws.com",
175
- tags: ["fips"],
176
- },
177
- {
178
- hostname: "datasync-fips.{region}.api.aws",
179
- tags: ["dualstack", "fips"],
180
- },
181
- {
182
- hostname: "datasync.{region}.api.aws",
183
- tags: ["dualstack"],
184
- },
185
- ],
186
- },
187
- };
188
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
189
- ...options,
190
- signingService: "datasync",
191
- regionHash,
192
- partitionHash,
193
- });
194
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
@@ -1,190 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
- "ca-central-1": {
4
- variants: [
5
- {
6
- hostname: "datasync-fips.ca-central-1.amazonaws.com",
7
- tags: ["fips"],
8
- },
9
- ],
10
- },
11
- "us-east-1": {
12
- variants: [
13
- {
14
- hostname: "datasync-fips.us-east-1.amazonaws.com",
15
- tags: ["fips"],
16
- },
17
- ],
18
- },
19
- "us-east-2": {
20
- variants: [
21
- {
22
- hostname: "datasync-fips.us-east-2.amazonaws.com",
23
- tags: ["fips"],
24
- },
25
- ],
26
- },
27
- "us-gov-east-1": {
28
- variants: [
29
- {
30
- hostname: "datasync-fips.us-gov-east-1.amazonaws.com",
31
- tags: ["fips"],
32
- },
33
- ],
34
- },
35
- "us-gov-west-1": {
36
- variants: [
37
- {
38
- hostname: "datasync-fips.us-gov-west-1.amazonaws.com",
39
- tags: ["fips"],
40
- },
41
- ],
42
- },
43
- "us-west-1": {
44
- variants: [
45
- {
46
- hostname: "datasync-fips.us-west-1.amazonaws.com",
47
- tags: ["fips"],
48
- },
49
- ],
50
- },
51
- "us-west-2": {
52
- variants: [
53
- {
54
- hostname: "datasync-fips.us-west-2.amazonaws.com",
55
- tags: ["fips"],
56
- },
57
- ],
58
- },
59
- };
60
- const partitionHash = {
61
- aws: {
62
- regions: [
63
- "af-south-1",
64
- "ap-east-1",
65
- "ap-northeast-1",
66
- "ap-northeast-2",
67
- "ap-northeast-3",
68
- "ap-south-1",
69
- "ap-southeast-1",
70
- "ap-southeast-2",
71
- "ap-southeast-3",
72
- "ca-central-1",
73
- "eu-central-1",
74
- "eu-north-1",
75
- "eu-south-1",
76
- "eu-west-1",
77
- "eu-west-2",
78
- "eu-west-3",
79
- "fips-ca-central-1",
80
- "fips-us-east-1",
81
- "fips-us-east-2",
82
- "fips-us-west-1",
83
- "fips-us-west-2",
84
- "me-central-1",
85
- "me-south-1",
86
- "sa-east-1",
87
- "us-east-1",
88
- "us-east-2",
89
- "us-west-1",
90
- "us-west-2",
91
- ],
92
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
93
- variants: [
94
- {
95
- hostname: "datasync.{region}.amazonaws.com",
96
- tags: [],
97
- },
98
- {
99
- hostname: "datasync-fips.{region}.amazonaws.com",
100
- tags: ["fips"],
101
- },
102
- {
103
- hostname: "datasync-fips.{region}.api.aws",
104
- tags: ["dualstack", "fips"],
105
- },
106
- {
107
- hostname: "datasync.{region}.api.aws",
108
- tags: ["dualstack"],
109
- },
110
- ],
111
- },
112
- "aws-cn": {
113
- regions: ["cn-north-1", "cn-northwest-1"],
114
- regionRegex: "^cn\\-\\w+\\-\\d+$",
115
- variants: [
116
- {
117
- hostname: "datasync.{region}.amazonaws.com.cn",
118
- tags: [],
119
- },
120
- {
121
- hostname: "datasync-fips.{region}.amazonaws.com.cn",
122
- tags: ["fips"],
123
- },
124
- {
125
- hostname: "datasync-fips.{region}.api.amazonwebservices.com.cn",
126
- tags: ["dualstack", "fips"],
127
- },
128
- {
129
- hostname: "datasync.{region}.api.amazonwebservices.com.cn",
130
- tags: ["dualstack"],
131
- },
132
- ],
133
- },
134
- "aws-iso": {
135
- regions: ["us-iso-east-1", "us-iso-west-1"],
136
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
137
- variants: [
138
- {
139
- hostname: "datasync.{region}.c2s.ic.gov",
140
- tags: [],
141
- },
142
- {
143
- hostname: "datasync-fips.{region}.c2s.ic.gov",
144
- tags: ["fips"],
145
- },
146
- ],
147
- },
148
- "aws-iso-b": {
149
- regions: ["us-isob-east-1"],
150
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
151
- variants: [
152
- {
153
- hostname: "datasync.{region}.sc2s.sgov.gov",
154
- tags: [],
155
- },
156
- {
157
- hostname: "datasync-fips.{region}.sc2s.sgov.gov",
158
- tags: ["fips"],
159
- },
160
- ],
161
- },
162
- "aws-us-gov": {
163
- regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
164
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
165
- variants: [
166
- {
167
- hostname: "datasync.{region}.amazonaws.com",
168
- tags: [],
169
- },
170
- {
171
- hostname: "datasync-fips.{region}.amazonaws.com",
172
- tags: ["fips"],
173
- },
174
- {
175
- hostname: "datasync-fips.{region}.api.aws",
176
- tags: ["dualstack", "fips"],
177
- },
178
- {
179
- hostname: "datasync.{region}.api.aws",
180
- tags: ["dualstack"],
181
- },
182
- ],
183
- },
184
- };
185
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
186
- ...options,
187
- signingService: "datasync",
188
- regionHash,
189
- partitionHash,
190
- });
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;