@aws-sdk/client-route53globalresolver 3.942.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 (245) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +581 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +2674 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +56 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +36 -0
  11. package/dist-es/Route53GlobalResolver.js +101 -0
  12. package/dist-es/Route53GlobalResolverClient.js +50 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/AssociateHostedZoneCommand.js +16 -0
  16. package/dist-es/commands/BatchCreateFirewallRuleCommand.js +16 -0
  17. package/dist-es/commands/BatchDeleteFirewallRuleCommand.js +16 -0
  18. package/dist-es/commands/BatchUpdateFirewallRuleCommand.js +16 -0
  19. package/dist-es/commands/CreateAccessSourceCommand.js +16 -0
  20. package/dist-es/commands/CreateAccessTokenCommand.js +16 -0
  21. package/dist-es/commands/CreateDNSViewCommand.js +16 -0
  22. package/dist-es/commands/CreateFirewallDomainListCommand.js +16 -0
  23. package/dist-es/commands/CreateFirewallRuleCommand.js +16 -0
  24. package/dist-es/commands/CreateGlobalResolverCommand.js +16 -0
  25. package/dist-es/commands/DeleteAccessSourceCommand.js +16 -0
  26. package/dist-es/commands/DeleteAccessTokenCommand.js +16 -0
  27. package/dist-es/commands/DeleteDNSViewCommand.js +16 -0
  28. package/dist-es/commands/DeleteFirewallDomainListCommand.js +16 -0
  29. package/dist-es/commands/DeleteFirewallRuleCommand.js +16 -0
  30. package/dist-es/commands/DeleteGlobalResolverCommand.js +16 -0
  31. package/dist-es/commands/DisableDNSViewCommand.js +16 -0
  32. package/dist-es/commands/DisassociateHostedZoneCommand.js +16 -0
  33. package/dist-es/commands/EnableDNSViewCommand.js +16 -0
  34. package/dist-es/commands/GetAccessSourceCommand.js +16 -0
  35. package/dist-es/commands/GetAccessTokenCommand.js +16 -0
  36. package/dist-es/commands/GetDNSViewCommand.js +16 -0
  37. package/dist-es/commands/GetFirewallDomainListCommand.js +16 -0
  38. package/dist-es/commands/GetFirewallRuleCommand.js +16 -0
  39. package/dist-es/commands/GetGlobalResolverCommand.js +16 -0
  40. package/dist-es/commands/GetHostedZoneAssociationCommand.js +16 -0
  41. package/dist-es/commands/GetManagedFirewallDomainListCommand.js +16 -0
  42. package/dist-es/commands/ImportFirewallDomainsCommand.js +16 -0
  43. package/dist-es/commands/ListAccessSourcesCommand.js +16 -0
  44. package/dist-es/commands/ListAccessTokensCommand.js +16 -0
  45. package/dist-es/commands/ListDNSViewsCommand.js +16 -0
  46. package/dist-es/commands/ListFirewallDomainListsCommand.js +16 -0
  47. package/dist-es/commands/ListFirewallDomainsCommand.js +16 -0
  48. package/dist-es/commands/ListFirewallRulesCommand.js +16 -0
  49. package/dist-es/commands/ListGlobalResolversCommand.js +16 -0
  50. package/dist-es/commands/ListHostedZoneAssociationsCommand.js +16 -0
  51. package/dist-es/commands/ListManagedFirewallDomainListsCommand.js +16 -0
  52. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  53. package/dist-es/commands/TagResourceCommand.js +16 -0
  54. package/dist-es/commands/UntagResourceCommand.js +16 -0
  55. package/dist-es/commands/UpdateAccessSourceCommand.js +16 -0
  56. package/dist-es/commands/UpdateAccessTokenCommand.js +16 -0
  57. package/dist-es/commands/UpdateDNSViewCommand.js +16 -0
  58. package/dist-es/commands/UpdateFirewallDomainsCommand.js +16 -0
  59. package/dist-es/commands/UpdateFirewallRuleCommand.js +16 -0
  60. package/dist-es/commands/UpdateGlobalResolverCommand.js +16 -0
  61. package/dist-es/commands/UpdateHostedZoneAssociationCommand.js +16 -0
  62. package/dist-es/commands/index.js +47 -0
  63. package/dist-es/endpoint/EndpointParameters.js +11 -0
  64. package/dist-es/endpoint/endpointResolver.js +14 -0
  65. package/dist-es/endpoint/ruleset.js +4 -0
  66. package/dist-es/extensionConfiguration.js +1 -0
  67. package/dist-es/index.js +7 -0
  68. package/dist-es/models/Route53GlobalResolverServiceException.js +8 -0
  69. package/dist-es/models/enums.js +74 -0
  70. package/dist-es/models/errors.js +117 -0
  71. package/dist-es/models/models_0.js +1 -0
  72. package/dist-es/pagination/Interfaces.js +1 -0
  73. package/dist-es/pagination/ListAccessSourcesPaginator.js +4 -0
  74. package/dist-es/pagination/ListAccessTokensPaginator.js +4 -0
  75. package/dist-es/pagination/ListDNSViewsPaginator.js +4 -0
  76. package/dist-es/pagination/ListFirewallDomainListsPaginator.js +4 -0
  77. package/dist-es/pagination/ListFirewallDomainsPaginator.js +4 -0
  78. package/dist-es/pagination/ListFirewallRulesPaginator.js +4 -0
  79. package/dist-es/pagination/ListGlobalResolversPaginator.js +4 -0
  80. package/dist-es/pagination/ListHostedZoneAssociationsPaginator.js +4 -0
  81. package/dist-es/pagination/ListManagedFirewallDomainListsPaginator.js +4 -0
  82. package/dist-es/pagination/index.js +10 -0
  83. package/dist-es/runtimeConfig.browser.js +34 -0
  84. package/dist-es/runtimeConfig.js +51 -0
  85. package/dist-es/runtimeConfig.native.js +11 -0
  86. package/dist-es/runtimeConfig.shared.js +32 -0
  87. package/dist-es/runtimeExtensions.js +9 -0
  88. package/dist-es/schemas/schemas_0.js +1651 -0
  89. package/dist-types/Route53GlobalResolver.d.ts +342 -0
  90. package/dist-types/Route53GlobalResolverClient.d.ts +243 -0
  91. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  92. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  93. package/dist-types/commands/AssociateHostedZoneCommand.d.ts +104 -0
  94. package/dist-types/commands/BatchCreateFirewallRuleCommand.d.ts +156 -0
  95. package/dist-types/commands/BatchDeleteFirewallRuleCommand.d.ts +113 -0
  96. package/dist-types/commands/BatchUpdateFirewallRuleCommand.d.ts +151 -0
  97. package/dist-types/commands/CreateAccessSourceCommand.d.ts +144 -0
  98. package/dist-types/commands/CreateAccessTokenCommand.d.ts +109 -0
  99. package/dist-types/commands/CreateDNSViewCommand.d.ts +115 -0
  100. package/dist-types/commands/CreateFirewallDomainListCommand.d.ts +109 -0
  101. package/dist-types/commands/CreateFirewallRuleCommand.d.ts +124 -0
  102. package/dist-types/commands/CreateGlobalResolverCommand.d.ts +116 -0
  103. package/dist-types/commands/DeleteAccessSourceCommand.d.ts +101 -0
  104. package/dist-types/commands/DeleteAccessTokenCommand.d.ts +91 -0
  105. package/dist-types/commands/DeleteDNSViewCommand.d.ts +103 -0
  106. package/dist-types/commands/DeleteFirewallDomainListCommand.d.ts +95 -0
  107. package/dist-types/commands/DeleteFirewallRuleCommand.d.ts +108 -0
  108. package/dist-types/commands/DeleteGlobalResolverCommand.d.ts +107 -0
  109. package/dist-types/commands/DisableDNSViewCommand.d.ts +103 -0
  110. package/dist-types/commands/DisassociateHostedZoneCommand.d.ts +100 -0
  111. package/dist-types/commands/EnableDNSViewCommand.d.ts +103 -0
  112. package/dist-types/commands/GetAccessSourceCommand.d.ts +98 -0
  113. package/dist-types/commands/GetAccessTokenCommand.d.ts +99 -0
  114. package/dist-types/commands/GetDNSViewCommand.d.ts +100 -0
  115. package/dist-types/commands/GetFirewallDomainListCommand.d.ts +99 -0
  116. package/dist-types/commands/GetFirewallRuleCommand.d.ts +105 -0
  117. package/dist-types/commands/GetGlobalResolverCommand.d.ts +104 -0
  118. package/dist-types/commands/GetHostedZoneAssociationCommand.d.ts +96 -0
  119. package/dist-types/commands/GetManagedFirewallDomainListCommand.d.ts +92 -0
  120. package/dist-types/commands/ImportFirewallDomainsCommand.d.ts +96 -0
  121. package/dist-types/commands/ListAccessSourcesCommand.d.ts +106 -0
  122. package/dist-types/commands/ListAccessTokensCommand.d.ts +109 -0
  123. package/dist-types/commands/ListDNSViewsCommand.d.ts +107 -0
  124. package/dist-types/commands/ListFirewallDomainListsCommand.d.ts +103 -0
  125. package/dist-types/commands/ListFirewallDomainsCommand.d.ts +94 -0
  126. package/dist-types/commands/ListFirewallRulesCommand.d.ts +117 -0
  127. package/dist-types/commands/ListGlobalResolversCommand.d.ts +107 -0
  128. package/dist-types/commands/ListHostedZoneAssociationsCommand.d.ts +103 -0
  129. package/dist-types/commands/ListManagedFirewallDomainListsCommand.d.ts +96 -0
  130. package/dist-types/commands/ListTagsForResourceCommand.d.ts +79 -0
  131. package/dist-types/commands/TagResourceCommand.d.ts +84 -0
  132. package/dist-types/commands/UntagResourceCommand.d.ts +81 -0
  133. package/dist-types/commands/UpdateAccessSourceCommand.d.ts +108 -0
  134. package/dist-types/commands/UpdateAccessTokenCommand.d.ts +94 -0
  135. package/dist-types/commands/UpdateDNSViewCommand.d.ts +108 -0
  136. package/dist-types/commands/UpdateFirewallDomainsCommand.d.ts +98 -0
  137. package/dist-types/commands/UpdateFirewallRuleCommand.d.ts +119 -0
  138. package/dist-types/commands/UpdateGlobalResolverCommand.d.ts +110 -0
  139. package/dist-types/commands/UpdateHostedZoneAssociationCommand.d.ts +100 -0
  140. package/dist-types/commands/index.d.ts +47 -0
  141. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  142. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  143. package/dist-types/endpoint/ruleset.d.ts +2 -0
  144. package/dist-types/extensionConfiguration.d.ts +9 -0
  145. package/dist-types/index.d.ts +16 -0
  146. package/dist-types/models/Route53GlobalResolverServiceException.d.ts +14 -0
  147. package/dist-types/models/enums.d.ts +194 -0
  148. package/dist-types/models/errors.d.ts +162 -0
  149. package/dist-types/models/models_0.d.ts +3784 -0
  150. package/dist-types/pagination/Interfaces.d.ts +8 -0
  151. package/dist-types/pagination/ListAccessSourcesPaginator.d.ts +7 -0
  152. package/dist-types/pagination/ListAccessTokensPaginator.d.ts +7 -0
  153. package/dist-types/pagination/ListDNSViewsPaginator.d.ts +7 -0
  154. package/dist-types/pagination/ListFirewallDomainListsPaginator.d.ts +7 -0
  155. package/dist-types/pagination/ListFirewallDomainsPaginator.d.ts +7 -0
  156. package/dist-types/pagination/ListFirewallRulesPaginator.d.ts +7 -0
  157. package/dist-types/pagination/ListGlobalResolversPaginator.d.ts +7 -0
  158. package/dist-types/pagination/ListHostedZoneAssociationsPaginator.d.ts +7 -0
  159. package/dist-types/pagination/ListManagedFirewallDomainListsPaginator.d.ts +7 -0
  160. package/dist-types/pagination/index.d.ts +10 -0
  161. package/dist-types/runtimeConfig.browser.d.ts +51 -0
  162. package/dist-types/runtimeConfig.d.ts +51 -0
  163. package/dist-types/runtimeConfig.native.d.ts +50 -0
  164. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  165. package/dist-types/runtimeExtensions.d.ts +17 -0
  166. package/dist-types/schemas/schemas_0.d.ts +192 -0
  167. package/dist-types/ts3.4/Route53GlobalResolver.d.ts +809 -0
  168. package/dist-types/ts3.4/Route53GlobalResolverClient.d.ts +408 -0
  169. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  170. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  171. package/dist-types/ts3.4/commands/AssociateHostedZoneCommand.d.ts +51 -0
  172. package/dist-types/ts3.4/commands/BatchCreateFirewallRuleCommand.d.ts +51 -0
  173. package/dist-types/ts3.4/commands/BatchDeleteFirewallRuleCommand.d.ts +51 -0
  174. package/dist-types/ts3.4/commands/BatchUpdateFirewallRuleCommand.d.ts +51 -0
  175. package/dist-types/ts3.4/commands/CreateAccessSourceCommand.d.ts +51 -0
  176. package/dist-types/ts3.4/commands/CreateAccessTokenCommand.d.ts +50 -0
  177. package/dist-types/ts3.4/commands/CreateDNSViewCommand.d.ts +47 -0
  178. package/dist-types/ts3.4/commands/CreateFirewallDomainListCommand.d.ts +51 -0
  179. package/dist-types/ts3.4/commands/CreateFirewallRuleCommand.d.ts +51 -0
  180. package/dist-types/ts3.4/commands/CreateGlobalResolverCommand.d.ts +51 -0
  181. package/dist-types/ts3.4/commands/DeleteAccessSourceCommand.d.ts +51 -0
  182. package/dist-types/ts3.4/commands/DeleteAccessTokenCommand.d.ts +50 -0
  183. package/dist-types/ts3.4/commands/DeleteDNSViewCommand.d.ts +47 -0
  184. package/dist-types/ts3.4/commands/DeleteFirewallDomainListCommand.d.ts +51 -0
  185. package/dist-types/ts3.4/commands/DeleteFirewallRuleCommand.d.ts +51 -0
  186. package/dist-types/ts3.4/commands/DeleteGlobalResolverCommand.d.ts +51 -0
  187. package/dist-types/ts3.4/commands/DisableDNSViewCommand.d.ts +47 -0
  188. package/dist-types/ts3.4/commands/DisassociateHostedZoneCommand.d.ts +51 -0
  189. package/dist-types/ts3.4/commands/EnableDNSViewCommand.d.ts +47 -0
  190. package/dist-types/ts3.4/commands/GetAccessSourceCommand.d.ts +50 -0
  191. package/dist-types/ts3.4/commands/GetAccessTokenCommand.d.ts +47 -0
  192. package/dist-types/ts3.4/commands/GetDNSViewCommand.d.ts +47 -0
  193. package/dist-types/ts3.4/commands/GetFirewallDomainListCommand.d.ts +51 -0
  194. package/dist-types/ts3.4/commands/GetFirewallRuleCommand.d.ts +50 -0
  195. package/dist-types/ts3.4/commands/GetGlobalResolverCommand.d.ts +50 -0
  196. package/dist-types/ts3.4/commands/GetHostedZoneAssociationCommand.d.ts +51 -0
  197. package/dist-types/ts3.4/commands/GetManagedFirewallDomainListCommand.d.ts +51 -0
  198. package/dist-types/ts3.4/commands/ImportFirewallDomainsCommand.d.ts +51 -0
  199. package/dist-types/ts3.4/commands/ListAccessSourcesCommand.d.ts +50 -0
  200. package/dist-types/ts3.4/commands/ListAccessTokensCommand.d.ts +50 -0
  201. package/dist-types/ts3.4/commands/ListDNSViewsCommand.d.ts +47 -0
  202. package/dist-types/ts3.4/commands/ListFirewallDomainListsCommand.d.ts +51 -0
  203. package/dist-types/ts3.4/commands/ListFirewallDomainsCommand.d.ts +51 -0
  204. package/dist-types/ts3.4/commands/ListFirewallRulesCommand.d.ts +50 -0
  205. package/dist-types/ts3.4/commands/ListGlobalResolversCommand.d.ts +51 -0
  206. package/dist-types/ts3.4/commands/ListHostedZoneAssociationsCommand.d.ts +51 -0
  207. package/dist-types/ts3.4/commands/ListManagedFirewallDomainListsCommand.d.ts +51 -0
  208. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  209. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  210. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  211. package/dist-types/ts3.4/commands/UpdateAccessSourceCommand.d.ts +51 -0
  212. package/dist-types/ts3.4/commands/UpdateAccessTokenCommand.d.ts +50 -0
  213. package/dist-types/ts3.4/commands/UpdateDNSViewCommand.d.ts +47 -0
  214. package/dist-types/ts3.4/commands/UpdateFirewallDomainsCommand.d.ts +51 -0
  215. package/dist-types/ts3.4/commands/UpdateFirewallRuleCommand.d.ts +51 -0
  216. package/dist-types/ts3.4/commands/UpdateGlobalResolverCommand.d.ts +51 -0
  217. package/dist-types/ts3.4/commands/UpdateHostedZoneAssociationCommand.d.ts +51 -0
  218. package/dist-types/ts3.4/commands/index.d.ts +47 -0
  219. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  220. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  221. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  222. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  223. package/dist-types/ts3.4/index.d.ts +11 -0
  224. package/dist-types/ts3.4/models/Route53GlobalResolverServiceException.d.ts +9 -0
  225. package/dist-types/ts3.4/models/enums.d.ts +101 -0
  226. package/dist-types/ts3.4/models/errors.d.ts +69 -0
  227. package/dist-types/ts3.4/models/models_0.d.ts +879 -0
  228. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  229. package/dist-types/ts3.4/pagination/ListAccessSourcesPaginator.d.ts +11 -0
  230. package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +11 -0
  231. package/dist-types/ts3.4/pagination/ListDNSViewsPaginator.d.ts +11 -0
  232. package/dist-types/ts3.4/pagination/ListFirewallDomainListsPaginator.d.ts +11 -0
  233. package/dist-types/ts3.4/pagination/ListFirewallDomainsPaginator.d.ts +11 -0
  234. package/dist-types/ts3.4/pagination/ListFirewallRulesPaginator.d.ts +11 -0
  235. package/dist-types/ts3.4/pagination/ListGlobalResolversPaginator.d.ts +11 -0
  236. package/dist-types/ts3.4/pagination/ListHostedZoneAssociationsPaginator.d.ts +11 -0
  237. package/dist-types/ts3.4/pagination/ListManagedFirewallDomainListsPaginator.d.ts +11 -0
  238. package/dist-types/ts3.4/pagination/index.d.ts +10 -0
  239. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  240. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  241. package/dist-types/ts3.4/runtimeConfig.native.d.ts +101 -0
  242. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
  243. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  244. package/dist-types/ts3.4/schemas/schemas_0.d.ts +199 -0
  245. package/package.json +99 -0
package/README.md ADDED
@@ -0,0 +1,581 @@
1
+ <!-- generated file, do not edit directly -->
2
+
3
+ # @aws-sdk/client-route53globalresolver
4
+
5
+ ## Description
6
+
7
+ AWS SDK for JavaScript Route53GlobalResolver Client for Node.js, Browser and React Native.
8
+
9
+ <p> Amazon Route 53 Global Resolver is a global, internet-accessible DNS resolver that enables customers to resolve and forward traffic for both public and private domains while ensuring security and authenticity of queries over the internet. Route 53 Global Resolver supports DNS-over-port 53 (Do53), DNS-over-TLS (DoT), and DNS-over-HTTPS (DoH) protocols through global anycast IP addresses. </p>
10
+
11
+ ## Installing
12
+
13
+ To install this package, simply type add or install @aws-sdk/client-route53globalresolver
14
+ using your favorite package manager:
15
+
16
+ - `npm install @aws-sdk/client-route53globalresolver`
17
+ - `yarn add @aws-sdk/client-route53globalresolver`
18
+ - `pnpm add @aws-sdk/client-route53globalresolver`
19
+
20
+ ## Getting Started
21
+
22
+ ### Import
23
+
24
+ The AWS SDK is modulized by clients and commands.
25
+ To send a request, you only need to import the `Route53GlobalResolverClient` and
26
+ the commands you need, for example `ListAccessSourcesCommand`:
27
+
28
+ ```js
29
+ // ES5 example
30
+ const { Route53GlobalResolverClient, ListAccessSourcesCommand } = require("@aws-sdk/client-route53globalresolver");
31
+ ```
32
+
33
+ ```ts
34
+ // ES6+ example
35
+ import { Route53GlobalResolverClient, ListAccessSourcesCommand } from "@aws-sdk/client-route53globalresolver";
36
+ ```
37
+
38
+ ### Usage
39
+
40
+ To send a request, you:
41
+
42
+ - Initiate client with configuration (e.g. credentials, region).
43
+ - Initiate command with input parameters.
44
+ - Call `send` operation on client with command object as input.
45
+ - If you are using a custom http handler, you may call `destroy()` to close open connections.
46
+
47
+ ```js
48
+ // a client can be shared by different commands.
49
+ const client = new Route53GlobalResolverClient({ region: "REGION" });
50
+
51
+ const params = {
52
+ /** input parameters */
53
+ };
54
+ const command = new ListAccessSourcesCommand(params);
55
+ ```
56
+
57
+ #### Async/await
58
+
59
+ We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
60
+ operator to wait for the promise returned by send operation as follows:
61
+
62
+ ```js
63
+ // async/await.
64
+ try {
65
+ const data = await client.send(command);
66
+ // process data.
67
+ } catch (error) {
68
+ // error handling.
69
+ } finally {
70
+ // finally.
71
+ }
72
+ ```
73
+
74
+ Async-await is clean, concise, intuitive, easy to debug and has better error handling
75
+ as compared to using Promise chains or callbacks.
76
+
77
+ #### Promises
78
+
79
+ You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
80
+ to execute send operation.
81
+
82
+ ```js
83
+ client.send(command).then(
84
+ (data) => {
85
+ // process data.
86
+ },
87
+ (error) => {
88
+ // error handling.
89
+ }
90
+ );
91
+ ```
92
+
93
+ Promises can also be called using `.catch()` and `.finally()` as follows:
94
+
95
+ ```js
96
+ client
97
+ .send(command)
98
+ .then((data) => {
99
+ // process data.
100
+ })
101
+ .catch((error) => {
102
+ // error handling.
103
+ })
104
+ .finally(() => {
105
+ // finally.
106
+ });
107
+ ```
108
+
109
+ #### Callbacks
110
+
111
+ We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
112
+ but they are supported by the send operation.
113
+
114
+ ```js
115
+ // callbacks.
116
+ client.send(command, (err, data) => {
117
+ // process err and data.
118
+ });
119
+ ```
120
+
121
+ #### v2 compatible style
122
+
123
+ The client can also send requests using v2 compatible style.
124
+ However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
125
+ on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)
126
+
127
+ ```ts
128
+ import * as AWS from "@aws-sdk/client-route53globalresolver";
129
+ const client = new AWS.Route53GlobalResolver({ region: "REGION" });
130
+
131
+ // async/await.
132
+ try {
133
+ const data = await client.listAccessSources(params);
134
+ // process data.
135
+ } catch (error) {
136
+ // error handling.
137
+ }
138
+
139
+ // Promises.
140
+ client
141
+ .listAccessSources(params)
142
+ .then((data) => {
143
+ // process data.
144
+ })
145
+ .catch((error) => {
146
+ // error handling.
147
+ });
148
+
149
+ // callbacks.
150
+ client.listAccessSources(params, (err, data) => {
151
+ // process err and data.
152
+ });
153
+ ```
154
+
155
+ ### Troubleshooting
156
+
157
+ When the service returns an exception, the error will include the exception information,
158
+ as well as response metadata (e.g. request id).
159
+
160
+ ```js
161
+ try {
162
+ const data = await client.send(command);
163
+ // process data.
164
+ } catch (error) {
165
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
166
+ console.log({ requestId, cfId, extendedRequestId });
167
+ /**
168
+ * The keys within exceptions are also parsed.
169
+ * You can access them by specifying exception names:
170
+ * if (error.name === 'SomeServiceException') {
171
+ * const value = error.specialKeyInException;
172
+ * }
173
+ */
174
+ }
175
+ ```
176
+
177
+ ## Getting Help
178
+
179
+ Please use these community resources for getting help.
180
+ We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
181
+
182
+ - Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
183
+ or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
184
+ - Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
185
+ on AWS Developer Blog.
186
+ - Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
187
+ - Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
188
+ - If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
189
+
190
+ To test your universal JavaScript code in Node.js, browser and react-native environments,
191
+ visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
192
+
193
+ ## Contributing
194
+
195
+ This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-route53globalresolver` package is updated.
196
+ To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).
197
+
198
+ ## License
199
+
200
+ This SDK is distributed under the
201
+ [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
202
+ see LICENSE for more information.
203
+
204
+ ## Client Commands (Operations List)
205
+
206
+ <details>
207
+ <summary>
208
+ AssociateHostedZone
209
+ </summary>
210
+
211
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/AssociateHostedZoneCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/AssociateHostedZoneCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/AssociateHostedZoneCommandOutput/)
212
+
213
+ </details>
214
+ <details>
215
+ <summary>
216
+ BatchCreateFirewallRule
217
+ </summary>
218
+
219
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/BatchCreateFirewallRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/BatchCreateFirewallRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/BatchCreateFirewallRuleCommandOutput/)
220
+
221
+ </details>
222
+ <details>
223
+ <summary>
224
+ BatchDeleteFirewallRule
225
+ </summary>
226
+
227
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/BatchDeleteFirewallRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/BatchDeleteFirewallRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/BatchDeleteFirewallRuleCommandOutput/)
228
+
229
+ </details>
230
+ <details>
231
+ <summary>
232
+ BatchUpdateFirewallRule
233
+ </summary>
234
+
235
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/BatchUpdateFirewallRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/BatchUpdateFirewallRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/BatchUpdateFirewallRuleCommandOutput/)
236
+
237
+ </details>
238
+ <details>
239
+ <summary>
240
+ CreateAccessSource
241
+ </summary>
242
+
243
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/CreateAccessSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateAccessSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateAccessSourceCommandOutput/)
244
+
245
+ </details>
246
+ <details>
247
+ <summary>
248
+ CreateAccessToken
249
+ </summary>
250
+
251
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/CreateAccessTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateAccessTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateAccessTokenCommandOutput/)
252
+
253
+ </details>
254
+ <details>
255
+ <summary>
256
+ CreateDNSView
257
+ </summary>
258
+
259
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/CreateDNSViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateDNSViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateDNSViewCommandOutput/)
260
+
261
+ </details>
262
+ <details>
263
+ <summary>
264
+ CreateFirewallDomainList
265
+ </summary>
266
+
267
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/CreateFirewallDomainListCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateFirewallDomainListCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateFirewallDomainListCommandOutput/)
268
+
269
+ </details>
270
+ <details>
271
+ <summary>
272
+ CreateFirewallRule
273
+ </summary>
274
+
275
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/CreateFirewallRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateFirewallRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateFirewallRuleCommandOutput/)
276
+
277
+ </details>
278
+ <details>
279
+ <summary>
280
+ CreateGlobalResolver
281
+ </summary>
282
+
283
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/CreateGlobalResolverCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateGlobalResolverCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/CreateGlobalResolverCommandOutput/)
284
+
285
+ </details>
286
+ <details>
287
+ <summary>
288
+ DeleteAccessSource
289
+ </summary>
290
+
291
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/DeleteAccessSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteAccessSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteAccessSourceCommandOutput/)
292
+
293
+ </details>
294
+ <details>
295
+ <summary>
296
+ DeleteAccessToken
297
+ </summary>
298
+
299
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/DeleteAccessTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteAccessTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteAccessTokenCommandOutput/)
300
+
301
+ </details>
302
+ <details>
303
+ <summary>
304
+ DeleteDNSView
305
+ </summary>
306
+
307
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/DeleteDNSViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteDNSViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteDNSViewCommandOutput/)
308
+
309
+ </details>
310
+ <details>
311
+ <summary>
312
+ DeleteFirewallDomainList
313
+ </summary>
314
+
315
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/DeleteFirewallDomainListCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteFirewallDomainListCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteFirewallDomainListCommandOutput/)
316
+
317
+ </details>
318
+ <details>
319
+ <summary>
320
+ DeleteFirewallRule
321
+ </summary>
322
+
323
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/DeleteFirewallRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteFirewallRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteFirewallRuleCommandOutput/)
324
+
325
+ </details>
326
+ <details>
327
+ <summary>
328
+ DeleteGlobalResolver
329
+ </summary>
330
+
331
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/DeleteGlobalResolverCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteGlobalResolverCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DeleteGlobalResolverCommandOutput/)
332
+
333
+ </details>
334
+ <details>
335
+ <summary>
336
+ DisableDNSView
337
+ </summary>
338
+
339
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/DisableDNSViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DisableDNSViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DisableDNSViewCommandOutput/)
340
+
341
+ </details>
342
+ <details>
343
+ <summary>
344
+ DisassociateHostedZone
345
+ </summary>
346
+
347
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/DisassociateHostedZoneCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DisassociateHostedZoneCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/DisassociateHostedZoneCommandOutput/)
348
+
349
+ </details>
350
+ <details>
351
+ <summary>
352
+ EnableDNSView
353
+ </summary>
354
+
355
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/EnableDNSViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/EnableDNSViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/EnableDNSViewCommandOutput/)
356
+
357
+ </details>
358
+ <details>
359
+ <summary>
360
+ GetAccessSource
361
+ </summary>
362
+
363
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/GetAccessSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetAccessSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetAccessSourceCommandOutput/)
364
+
365
+ </details>
366
+ <details>
367
+ <summary>
368
+ GetAccessToken
369
+ </summary>
370
+
371
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/GetAccessTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetAccessTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetAccessTokenCommandOutput/)
372
+
373
+ </details>
374
+ <details>
375
+ <summary>
376
+ GetDNSView
377
+ </summary>
378
+
379
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/GetDNSViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetDNSViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetDNSViewCommandOutput/)
380
+
381
+ </details>
382
+ <details>
383
+ <summary>
384
+ GetFirewallDomainList
385
+ </summary>
386
+
387
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/GetFirewallDomainListCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetFirewallDomainListCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetFirewallDomainListCommandOutput/)
388
+
389
+ </details>
390
+ <details>
391
+ <summary>
392
+ GetFirewallRule
393
+ </summary>
394
+
395
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/GetFirewallRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetFirewallRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetFirewallRuleCommandOutput/)
396
+
397
+ </details>
398
+ <details>
399
+ <summary>
400
+ GetGlobalResolver
401
+ </summary>
402
+
403
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/GetGlobalResolverCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetGlobalResolverCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetGlobalResolverCommandOutput/)
404
+
405
+ </details>
406
+ <details>
407
+ <summary>
408
+ GetHostedZoneAssociation
409
+ </summary>
410
+
411
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/GetHostedZoneAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetHostedZoneAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetHostedZoneAssociationCommandOutput/)
412
+
413
+ </details>
414
+ <details>
415
+ <summary>
416
+ GetManagedFirewallDomainList
417
+ </summary>
418
+
419
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/GetManagedFirewallDomainListCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetManagedFirewallDomainListCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/GetManagedFirewallDomainListCommandOutput/)
420
+
421
+ </details>
422
+ <details>
423
+ <summary>
424
+ ImportFirewallDomains
425
+ </summary>
426
+
427
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ImportFirewallDomainsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ImportFirewallDomainsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ImportFirewallDomainsCommandOutput/)
428
+
429
+ </details>
430
+ <details>
431
+ <summary>
432
+ ListAccessSources
433
+ </summary>
434
+
435
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListAccessSourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListAccessSourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListAccessSourcesCommandOutput/)
436
+
437
+ </details>
438
+ <details>
439
+ <summary>
440
+ ListAccessTokens
441
+ </summary>
442
+
443
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListAccessTokensCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListAccessTokensCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListAccessTokensCommandOutput/)
444
+
445
+ </details>
446
+ <details>
447
+ <summary>
448
+ ListDNSViews
449
+ </summary>
450
+
451
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListDNSViewsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListDNSViewsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListDNSViewsCommandOutput/)
452
+
453
+ </details>
454
+ <details>
455
+ <summary>
456
+ ListFirewallDomainLists
457
+ </summary>
458
+
459
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListFirewallDomainListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListFirewallDomainListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListFirewallDomainListsCommandOutput/)
460
+
461
+ </details>
462
+ <details>
463
+ <summary>
464
+ ListFirewallDomains
465
+ </summary>
466
+
467
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListFirewallDomainsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListFirewallDomainsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListFirewallDomainsCommandOutput/)
468
+
469
+ </details>
470
+ <details>
471
+ <summary>
472
+ ListFirewallRules
473
+ </summary>
474
+
475
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListFirewallRulesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListFirewallRulesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListFirewallRulesCommandOutput/)
476
+
477
+ </details>
478
+ <details>
479
+ <summary>
480
+ ListGlobalResolvers
481
+ </summary>
482
+
483
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListGlobalResolversCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListGlobalResolversCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListGlobalResolversCommandOutput/)
484
+
485
+ </details>
486
+ <details>
487
+ <summary>
488
+ ListHostedZoneAssociations
489
+ </summary>
490
+
491
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListHostedZoneAssociationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListHostedZoneAssociationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListHostedZoneAssociationsCommandOutput/)
492
+
493
+ </details>
494
+ <details>
495
+ <summary>
496
+ ListManagedFirewallDomainLists
497
+ </summary>
498
+
499
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListManagedFirewallDomainListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListManagedFirewallDomainListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListManagedFirewallDomainListsCommandOutput/)
500
+
501
+ </details>
502
+ <details>
503
+ <summary>
504
+ ListTagsForResource
505
+ </summary>
506
+
507
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/ListTagsForResourceCommandOutput/)
508
+
509
+ </details>
510
+ <details>
511
+ <summary>
512
+ TagResource
513
+ </summary>
514
+
515
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/TagResourceCommandOutput/)
516
+
517
+ </details>
518
+ <details>
519
+ <summary>
520
+ UntagResource
521
+ </summary>
522
+
523
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UntagResourceCommandOutput/)
524
+
525
+ </details>
526
+ <details>
527
+ <summary>
528
+ UpdateAccessSource
529
+ </summary>
530
+
531
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/UpdateAccessSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateAccessSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateAccessSourceCommandOutput/)
532
+
533
+ </details>
534
+ <details>
535
+ <summary>
536
+ UpdateAccessToken
537
+ </summary>
538
+
539
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/UpdateAccessTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateAccessTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateAccessTokenCommandOutput/)
540
+
541
+ </details>
542
+ <details>
543
+ <summary>
544
+ UpdateDNSView
545
+ </summary>
546
+
547
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/UpdateDNSViewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateDNSViewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateDNSViewCommandOutput/)
548
+
549
+ </details>
550
+ <details>
551
+ <summary>
552
+ UpdateFirewallDomains
553
+ </summary>
554
+
555
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/UpdateFirewallDomainsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateFirewallDomainsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateFirewallDomainsCommandOutput/)
556
+
557
+ </details>
558
+ <details>
559
+ <summary>
560
+ UpdateFirewallRule
561
+ </summary>
562
+
563
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/UpdateFirewallRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateFirewallRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateFirewallRuleCommandOutput/)
564
+
565
+ </details>
566
+ <details>
567
+ <summary>
568
+ UpdateGlobalResolver
569
+ </summary>
570
+
571
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/UpdateGlobalResolverCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateGlobalResolverCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateGlobalResolverCommandOutput/)
572
+
573
+ </details>
574
+ <details>
575
+ <summary>
576
+ UpdateHostedZoneAssociation
577
+ </summary>
578
+
579
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/route53globalresolver/command/UpdateHostedZoneAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateHostedZoneAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-route53globalresolver/Interface/UpdateHostedZoneAssociationCommandOutput/)
580
+
581
+ </details>
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveHttpAuthSchemeConfig = exports.defaultRoute53GlobalResolverHttpAuthSchemeProvider = exports.defaultRoute53GlobalResolverHttpAuthSchemeParametersProvider = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const util_middleware_1 = require("@smithy/util-middleware");
6
+ const defaultRoute53GlobalResolverHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
+ return {
8
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
+ region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
+ (() => {
11
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
+ })(),
13
+ };
14
+ };
15
+ exports.defaultRoute53GlobalResolverHttpAuthSchemeParametersProvider = defaultRoute53GlobalResolverHttpAuthSchemeParametersProvider;
16
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
17
+ return {
18
+ schemeId: "aws.auth#sigv4",
19
+ signingProperties: {
20
+ name: "route53globalresolver",
21
+ region: authParameters.region,
22
+ },
23
+ propertiesExtractor: (config, context) => ({
24
+ signingProperties: {
25
+ config,
26
+ context,
27
+ },
28
+ }),
29
+ };
30
+ }
31
+ const defaultRoute53GlobalResolverHttpAuthSchemeProvider = (authParameters) => {
32
+ const options = [];
33
+ switch (authParameters.operation) {
34
+ default: {
35
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
36
+ }
37
+ }
38
+ return options;
39
+ };
40
+ exports.defaultRoute53GlobalResolverHttpAuthSchemeProvider = defaultRoute53GlobalResolverHttpAuthSchemeProvider;
41
+ const resolveHttpAuthSchemeConfig = (config) => {
42
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
43
+ return Object.assign(config_0, {
44
+ authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
45
+ });
46
+ };
47
+ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
6
+ const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseFIPS"],
10
+ });
11
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
13
+ endpointParams: endpointParams,
14
+ logger: context.logger,
15
+ }));
16
+ };
17
+ exports.defaultEndpointResolver = defaultEndpointResolver;
18
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;