@aws-sdk/client-rds-data 3.194.0 → 3.197.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 (56) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/RDSDataClient.js +11 -8
  3. package/dist-cjs/commands/BatchExecuteStatementCommand.js +10 -0
  4. package/dist-cjs/commands/BeginTransactionCommand.js +10 -0
  5. package/dist-cjs/commands/CommitTransactionCommand.js +10 -0
  6. package/dist-cjs/commands/ExecuteSqlCommand.js +10 -0
  7. package/dist-cjs/commands/ExecuteStatementCommand.js +10 -0
  8. package/dist-cjs/commands/RollbackTransactionCommand.js +10 -0
  9. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  10. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  11. package/dist-cjs/endpoint/ruleset.js +312 -0
  12. package/dist-cjs/runtimeConfig.shared.js +3 -3
  13. package/dist-es/RDSDataClient.js +12 -9
  14. package/dist-es/commands/BatchExecuteStatementCommand.js +10 -0
  15. package/dist-es/commands/BeginTransactionCommand.js +10 -0
  16. package/dist-es/commands/CommitTransactionCommand.js +10 -0
  17. package/dist-es/commands/ExecuteSqlCommand.js +10 -0
  18. package/dist-es/commands/ExecuteStatementCommand.js +10 -0
  19. package/dist-es/commands/RollbackTransactionCommand.js +10 -0
  20. package/dist-es/endpoint/EndpointParameters.js +8 -0
  21. package/dist-es/endpoint/endpointResolver.js +8 -0
  22. package/dist-es/endpoint/ruleset.js +309 -0
  23. package/dist-es/runtimeConfig.shared.js +2 -2
  24. package/dist-types/RDSDataClient.d.ts +6 -9
  25. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +2 -0
  26. package/dist-types/commands/BeginTransactionCommand.d.ts +2 -0
  27. package/dist-types/commands/CommitTransactionCommand.d.ts +2 -0
  28. package/dist-types/commands/ExecuteSqlCommand.d.ts +2 -0
  29. package/dist-types/commands/ExecuteStatementCommand.d.ts +2 -0
  30. package/dist-types/commands/RollbackTransactionCommand.d.ts +2 -0
  31. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  32. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  33. package/dist-types/endpoint/ruleset.d.ts +2 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  35. package/dist-types/runtimeConfig.d.ts +4 -2
  36. package/dist-types/runtimeConfig.native.d.ts +4 -2
  37. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  38. package/dist-types/ts3.4/RDSDataClient.d.ts +15 -8
  39. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +2 -0
  40. package/dist-types/ts3.4/commands/BeginTransactionCommand.d.ts +2 -0
  41. package/dist-types/ts3.4/commands/CommitTransactionCommand.d.ts +2 -0
  42. package/dist-types/ts3.4/commands/ExecuteSqlCommand.d.ts +2 -0
  43. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +2 -0
  44. package/dist-types/ts3.4/commands/RollbackTransactionCommand.d.ts +2 -0
  45. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  46. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  47. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  48. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +23 -4
  49. package/dist-types/ts3.4/runtimeConfig.d.ts +23 -4
  50. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -1
  51. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  52. package/package.json +28 -26
  53. package/dist-cjs/endpoints.js +0 -169
  54. package/dist-es/endpoints.js +0 -165
  55. package/dist-types/endpoints.d.ts +0 -2
  56. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,165 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
- "us-east-1": {
4
- variants: [
5
- {
6
- hostname: "rds-data-fips.us-east-1.amazonaws.com",
7
- tags: ["fips"],
8
- },
9
- ],
10
- },
11
- "us-east-2": {
12
- variants: [
13
- {
14
- hostname: "rds-data-fips.us-east-2.amazonaws.com",
15
- tags: ["fips"],
16
- },
17
- ],
18
- },
19
- "us-west-1": {
20
- variants: [
21
- {
22
- hostname: "rds-data-fips.us-west-1.amazonaws.com",
23
- tags: ["fips"],
24
- },
25
- ],
26
- },
27
- "us-west-2": {
28
- variants: [
29
- {
30
- hostname: "rds-data-fips.us-west-2.amazonaws.com",
31
- tags: ["fips"],
32
- },
33
- ],
34
- },
35
- };
36
- const partitionHash = {
37
- aws: {
38
- regions: [
39
- "af-south-1",
40
- "ap-east-1",
41
- "ap-northeast-1",
42
- "ap-northeast-2",
43
- "ap-northeast-3",
44
- "ap-south-1",
45
- "ap-southeast-1",
46
- "ap-southeast-2",
47
- "ap-southeast-3",
48
- "ca-central-1",
49
- "eu-central-1",
50
- "eu-north-1",
51
- "eu-south-1",
52
- "eu-west-1",
53
- "eu-west-2",
54
- "eu-west-3",
55
- "fips-us-east-1",
56
- "fips-us-east-2",
57
- "fips-us-west-1",
58
- "fips-us-west-2",
59
- "me-central-1",
60
- "me-south-1",
61
- "sa-east-1",
62
- "us-east-1",
63
- "us-east-2",
64
- "us-west-1",
65
- "us-west-2",
66
- ],
67
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
68
- variants: [
69
- {
70
- hostname: "rds-data.{region}.amazonaws.com",
71
- tags: [],
72
- },
73
- {
74
- hostname: "rds-data-fips.{region}.amazonaws.com",
75
- tags: ["fips"],
76
- },
77
- {
78
- hostname: "rds-data-fips.{region}.api.aws",
79
- tags: ["dualstack", "fips"],
80
- },
81
- {
82
- hostname: "rds-data.{region}.api.aws",
83
- tags: ["dualstack"],
84
- },
85
- ],
86
- },
87
- "aws-cn": {
88
- regions: ["cn-north-1", "cn-northwest-1"],
89
- regionRegex: "^cn\\-\\w+\\-\\d+$",
90
- variants: [
91
- {
92
- hostname: "rds-data.{region}.amazonaws.com.cn",
93
- tags: [],
94
- },
95
- {
96
- hostname: "rds-data-fips.{region}.amazonaws.com.cn",
97
- tags: ["fips"],
98
- },
99
- {
100
- hostname: "rds-data-fips.{region}.api.amazonwebservices.com.cn",
101
- tags: ["dualstack", "fips"],
102
- },
103
- {
104
- hostname: "rds-data.{region}.api.amazonwebservices.com.cn",
105
- tags: ["dualstack"],
106
- },
107
- ],
108
- },
109
- "aws-iso": {
110
- regions: ["us-iso-east-1", "us-iso-west-1"],
111
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
112
- variants: [
113
- {
114
- hostname: "rds-data.{region}.c2s.ic.gov",
115
- tags: [],
116
- },
117
- {
118
- hostname: "rds-data-fips.{region}.c2s.ic.gov",
119
- tags: ["fips"],
120
- },
121
- ],
122
- },
123
- "aws-iso-b": {
124
- regions: ["us-isob-east-1"],
125
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
126
- variants: [
127
- {
128
- hostname: "rds-data.{region}.sc2s.sgov.gov",
129
- tags: [],
130
- },
131
- {
132
- hostname: "rds-data-fips.{region}.sc2s.sgov.gov",
133
- tags: ["fips"],
134
- },
135
- ],
136
- },
137
- "aws-us-gov": {
138
- regions: ["us-gov-east-1", "us-gov-west-1"],
139
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
140
- variants: [
141
- {
142
- hostname: "rds-data.{region}.amazonaws.com",
143
- tags: [],
144
- },
145
- {
146
- hostname: "rds-data-fips.{region}.amazonaws.com",
147
- tags: ["fips"],
148
- },
149
- {
150
- hostname: "rds-data-fips.{region}.api.aws",
151
- tags: ["dualstack", "fips"],
152
- },
153
- {
154
- hostname: "rds-data.{region}.api.aws",
155
- tags: ["dualstack"],
156
- },
157
- ],
158
- },
159
- };
160
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
161
- ...options,
162
- signingService: "rds-data",
163
- regionHash,
164
- partitionHash,
165
- });
@@ -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;