@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.
- package/LICENSE +201 -0
- package/README.md +581 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +2674 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +36 -0
- package/dist-es/Route53GlobalResolver.js +101 -0
- package/dist-es/Route53GlobalResolverClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssociateHostedZoneCommand.js +16 -0
- package/dist-es/commands/BatchCreateFirewallRuleCommand.js +16 -0
- package/dist-es/commands/BatchDeleteFirewallRuleCommand.js +16 -0
- package/dist-es/commands/BatchUpdateFirewallRuleCommand.js +16 -0
- package/dist-es/commands/CreateAccessSourceCommand.js +16 -0
- package/dist-es/commands/CreateAccessTokenCommand.js +16 -0
- package/dist-es/commands/CreateDNSViewCommand.js +16 -0
- package/dist-es/commands/CreateFirewallDomainListCommand.js +16 -0
- package/dist-es/commands/CreateFirewallRuleCommand.js +16 -0
- package/dist-es/commands/CreateGlobalResolverCommand.js +16 -0
- package/dist-es/commands/DeleteAccessSourceCommand.js +16 -0
- package/dist-es/commands/DeleteAccessTokenCommand.js +16 -0
- package/dist-es/commands/DeleteDNSViewCommand.js +16 -0
- package/dist-es/commands/DeleteFirewallDomainListCommand.js +16 -0
- package/dist-es/commands/DeleteFirewallRuleCommand.js +16 -0
- package/dist-es/commands/DeleteGlobalResolverCommand.js +16 -0
- package/dist-es/commands/DisableDNSViewCommand.js +16 -0
- package/dist-es/commands/DisassociateHostedZoneCommand.js +16 -0
- package/dist-es/commands/EnableDNSViewCommand.js +16 -0
- package/dist-es/commands/GetAccessSourceCommand.js +16 -0
- package/dist-es/commands/GetAccessTokenCommand.js +16 -0
- package/dist-es/commands/GetDNSViewCommand.js +16 -0
- package/dist-es/commands/GetFirewallDomainListCommand.js +16 -0
- package/dist-es/commands/GetFirewallRuleCommand.js +16 -0
- package/dist-es/commands/GetGlobalResolverCommand.js +16 -0
- package/dist-es/commands/GetHostedZoneAssociationCommand.js +16 -0
- package/dist-es/commands/GetManagedFirewallDomainListCommand.js +16 -0
- package/dist-es/commands/ImportFirewallDomainsCommand.js +16 -0
- package/dist-es/commands/ListAccessSourcesCommand.js +16 -0
- package/dist-es/commands/ListAccessTokensCommand.js +16 -0
- package/dist-es/commands/ListDNSViewsCommand.js +16 -0
- package/dist-es/commands/ListFirewallDomainListsCommand.js +16 -0
- package/dist-es/commands/ListFirewallDomainsCommand.js +16 -0
- package/dist-es/commands/ListFirewallRulesCommand.js +16 -0
- package/dist-es/commands/ListGlobalResolversCommand.js +16 -0
- package/dist-es/commands/ListHostedZoneAssociationsCommand.js +16 -0
- package/dist-es/commands/ListManagedFirewallDomainListsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateAccessSourceCommand.js +16 -0
- package/dist-es/commands/UpdateAccessTokenCommand.js +16 -0
- package/dist-es/commands/UpdateDNSViewCommand.js +16 -0
- package/dist-es/commands/UpdateFirewallDomainsCommand.js +16 -0
- package/dist-es/commands/UpdateFirewallRuleCommand.js +16 -0
- package/dist-es/commands/UpdateGlobalResolverCommand.js +16 -0
- package/dist-es/commands/UpdateHostedZoneAssociationCommand.js +16 -0
- package/dist-es/commands/index.js +47 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/Route53GlobalResolverServiceException.js +8 -0
- package/dist-es/models/enums.js +74 -0
- package/dist-es/models/errors.js +117 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccessSourcesPaginator.js +4 -0
- package/dist-es/pagination/ListAccessTokensPaginator.js +4 -0
- package/dist-es/pagination/ListDNSViewsPaginator.js +4 -0
- package/dist-es/pagination/ListFirewallDomainListsPaginator.js +4 -0
- package/dist-es/pagination/ListFirewallDomainsPaginator.js +4 -0
- package/dist-es/pagination/ListFirewallRulesPaginator.js +4 -0
- package/dist-es/pagination/ListGlobalResolversPaginator.js +4 -0
- package/dist-es/pagination/ListHostedZoneAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListManagedFirewallDomainListsPaginator.js +4 -0
- package/dist-es/pagination/index.js +10 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +32 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +1651 -0
- package/dist-types/Route53GlobalResolver.d.ts +342 -0
- package/dist-types/Route53GlobalResolverClient.d.ts +243 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AssociateHostedZoneCommand.d.ts +104 -0
- package/dist-types/commands/BatchCreateFirewallRuleCommand.d.ts +156 -0
- package/dist-types/commands/BatchDeleteFirewallRuleCommand.d.ts +113 -0
- package/dist-types/commands/BatchUpdateFirewallRuleCommand.d.ts +151 -0
- package/dist-types/commands/CreateAccessSourceCommand.d.ts +144 -0
- package/dist-types/commands/CreateAccessTokenCommand.d.ts +109 -0
- package/dist-types/commands/CreateDNSViewCommand.d.ts +115 -0
- package/dist-types/commands/CreateFirewallDomainListCommand.d.ts +109 -0
- package/dist-types/commands/CreateFirewallRuleCommand.d.ts +124 -0
- package/dist-types/commands/CreateGlobalResolverCommand.d.ts +116 -0
- package/dist-types/commands/DeleteAccessSourceCommand.d.ts +101 -0
- package/dist-types/commands/DeleteAccessTokenCommand.d.ts +91 -0
- package/dist-types/commands/DeleteDNSViewCommand.d.ts +103 -0
- package/dist-types/commands/DeleteFirewallDomainListCommand.d.ts +95 -0
- package/dist-types/commands/DeleteFirewallRuleCommand.d.ts +108 -0
- package/dist-types/commands/DeleteGlobalResolverCommand.d.ts +107 -0
- package/dist-types/commands/DisableDNSViewCommand.d.ts +103 -0
- package/dist-types/commands/DisassociateHostedZoneCommand.d.ts +100 -0
- package/dist-types/commands/EnableDNSViewCommand.d.ts +103 -0
- package/dist-types/commands/GetAccessSourceCommand.d.ts +98 -0
- package/dist-types/commands/GetAccessTokenCommand.d.ts +99 -0
- package/dist-types/commands/GetDNSViewCommand.d.ts +100 -0
- package/dist-types/commands/GetFirewallDomainListCommand.d.ts +99 -0
- package/dist-types/commands/GetFirewallRuleCommand.d.ts +105 -0
- package/dist-types/commands/GetGlobalResolverCommand.d.ts +104 -0
- package/dist-types/commands/GetHostedZoneAssociationCommand.d.ts +96 -0
- package/dist-types/commands/GetManagedFirewallDomainListCommand.d.ts +92 -0
- package/dist-types/commands/ImportFirewallDomainsCommand.d.ts +96 -0
- package/dist-types/commands/ListAccessSourcesCommand.d.ts +106 -0
- package/dist-types/commands/ListAccessTokensCommand.d.ts +109 -0
- package/dist-types/commands/ListDNSViewsCommand.d.ts +107 -0
- package/dist-types/commands/ListFirewallDomainListsCommand.d.ts +103 -0
- package/dist-types/commands/ListFirewallDomainsCommand.d.ts +94 -0
- package/dist-types/commands/ListFirewallRulesCommand.d.ts +117 -0
- package/dist-types/commands/ListGlobalResolversCommand.d.ts +107 -0
- package/dist-types/commands/ListHostedZoneAssociationsCommand.d.ts +103 -0
- package/dist-types/commands/ListManagedFirewallDomainListsCommand.d.ts +96 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +79 -0
- package/dist-types/commands/TagResourceCommand.d.ts +84 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +81 -0
- package/dist-types/commands/UpdateAccessSourceCommand.d.ts +108 -0
- package/dist-types/commands/UpdateAccessTokenCommand.d.ts +94 -0
- package/dist-types/commands/UpdateDNSViewCommand.d.ts +108 -0
- package/dist-types/commands/UpdateFirewallDomainsCommand.d.ts +98 -0
- package/dist-types/commands/UpdateFirewallRuleCommand.d.ts +119 -0
- package/dist-types/commands/UpdateGlobalResolverCommand.d.ts +110 -0
- package/dist-types/commands/UpdateHostedZoneAssociationCommand.d.ts +100 -0
- package/dist-types/commands/index.d.ts +47 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/Route53GlobalResolverServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +194 -0
- package/dist-types/models/errors.d.ts +162 -0
- package/dist-types/models/models_0.d.ts +3784 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAccessSourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAccessTokensPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDNSViewsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFirewallDomainListsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFirewallDomainsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFirewallRulesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGlobalResolversPaginator.d.ts +7 -0
- package/dist-types/pagination/ListHostedZoneAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListManagedFirewallDomainListsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/runtimeConfig.browser.d.ts +51 -0
- package/dist-types/runtimeConfig.d.ts +51 -0
- package/dist-types/runtimeConfig.native.d.ts +50 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +192 -0
- package/dist-types/ts3.4/Route53GlobalResolver.d.ts +809 -0
- package/dist-types/ts3.4/Route53GlobalResolverClient.d.ts +408 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AssociateHostedZoneCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchCreateFirewallRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchDeleteFirewallRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchUpdateFirewallRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAccessSourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAccessTokenCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateDNSViewCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateFirewallDomainListCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateFirewallRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateGlobalResolverCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAccessSourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAccessTokenCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteDNSViewCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteFirewallDomainListCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteFirewallRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteGlobalResolverCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisableDNSViewCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DisassociateHostedZoneCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/EnableDNSViewCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetAccessSourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetAccessTokenCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetDNSViewCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetFirewallDomainListCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetFirewallRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetGlobalResolverCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetHostedZoneAssociationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetManagedFirewallDomainListCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ImportFirewallDomainsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAccessSourcesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAccessTokensCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListDNSViewsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListFirewallDomainListsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListFirewallDomainsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListFirewallRulesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListGlobalResolversCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListHostedZoneAssociationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListManagedFirewallDomainListsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateAccessSourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateAccessTokenCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateDNSViewCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateFirewallDomainsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateFirewallRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateGlobalResolverCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateHostedZoneAssociationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +47 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/Route53GlobalResolverServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +101 -0
- package/dist-types/ts3.4/models/errors.d.ts +69 -0
- package/dist-types/ts3.4/models/models_0.d.ts +879 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAccessSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDNSViewsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFirewallDomainListsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFirewallDomainsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFirewallRulesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGlobalResolversPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListHostedZoneAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListManagedFirewallDomainListsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +101 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +199 -0
- package/package.json +99 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
3
|
+
import { ruleSet } from "./ruleset";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const l = "ref";
|
|
2
|
+
const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "string" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://route53globalresolver-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://route53globalresolver.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./Route53GlobalResolverClient";
|
|
2
|
+
export * from "./Route53GlobalResolver";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
7
|
+
export { Route53GlobalResolverServiceException } from "./models/Route53GlobalResolverServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class Route53GlobalResolverServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, Route53GlobalResolverServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export const IpAddressType = {
|
|
2
|
+
IPV4: "IPV4",
|
|
3
|
+
IPV6: "IPV6",
|
|
4
|
+
};
|
|
5
|
+
export const DnsProtocol = {
|
|
6
|
+
DO53: "DO53",
|
|
7
|
+
DOH: "DOH",
|
|
8
|
+
DOT: "DOT",
|
|
9
|
+
};
|
|
10
|
+
export const CRResourceStatus = {
|
|
11
|
+
CREATING: "CREATING",
|
|
12
|
+
DELETING: "DELETING",
|
|
13
|
+
OPERATIONAL: "OPERATIONAL",
|
|
14
|
+
UPDATING: "UPDATING",
|
|
15
|
+
};
|
|
16
|
+
export const ValidationExceptionReason = {
|
|
17
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
18
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
19
|
+
OTHER: "OTHER",
|
|
20
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
21
|
+
};
|
|
22
|
+
export const TokenStatus = {
|
|
23
|
+
CREATING: "CREATING",
|
|
24
|
+
DELETING: "DELETING",
|
|
25
|
+
OPERATIONAL: "OPERATIONAL",
|
|
26
|
+
};
|
|
27
|
+
export const HostedZoneAssociationStatus = {
|
|
28
|
+
CREATING: "CREATING",
|
|
29
|
+
DELETING: "DELETING",
|
|
30
|
+
OPERATIONAL: "OPERATIONAL",
|
|
31
|
+
};
|
|
32
|
+
export const FirewallRuleAction = {
|
|
33
|
+
ALERT: "ALERT",
|
|
34
|
+
ALLOW: "ALLOW",
|
|
35
|
+
BLOCK: "BLOCK",
|
|
36
|
+
};
|
|
37
|
+
export const BlockOverrideDnsQueryType = {
|
|
38
|
+
CNAME: "CNAME",
|
|
39
|
+
};
|
|
40
|
+
export const FirewallBlockResponse = {
|
|
41
|
+
NODATA: "NODATA",
|
|
42
|
+
NXDOMAIN: "NXDOMAIN",
|
|
43
|
+
OVERRIDE: "OVERRIDE",
|
|
44
|
+
};
|
|
45
|
+
export const ConfidenceThreshold = {
|
|
46
|
+
HIGH: "HIGH",
|
|
47
|
+
LOW: "LOW",
|
|
48
|
+
MEDIUM: "MEDIUM",
|
|
49
|
+
};
|
|
50
|
+
export const DnsAdvancedProtection = {
|
|
51
|
+
DGA: "DGA",
|
|
52
|
+
DNS_TUNNELING: "DNS_TUNNELING",
|
|
53
|
+
};
|
|
54
|
+
export const DnsSecValidationType = {
|
|
55
|
+
DISABLED: "DISABLED",
|
|
56
|
+
ENABLED: "ENABLED",
|
|
57
|
+
};
|
|
58
|
+
export const EdnsClientSubnetType = {
|
|
59
|
+
DISABLED: "DISABLED",
|
|
60
|
+
ENABLED: "ENABLED",
|
|
61
|
+
};
|
|
62
|
+
export const FirewallRulesFailOpenType = {
|
|
63
|
+
DISABLED: "DISABLED",
|
|
64
|
+
ENABLED: "ENABLED",
|
|
65
|
+
};
|
|
66
|
+
export const ProfileResourceStatus = {
|
|
67
|
+
CREATING: "CREATING",
|
|
68
|
+
DELETING: "DELETING",
|
|
69
|
+
DISABLED: "DISABLED",
|
|
70
|
+
DISABLING: "DISABLING",
|
|
71
|
+
ENABLING: "ENABLING",
|
|
72
|
+
OPERATIONAL: "OPERATIONAL",
|
|
73
|
+
UPDATING: "UPDATING",
|
|
74
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Route53GlobalResolverServiceException as __BaseException } from "./Route53GlobalResolverServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "AccessDeniedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ConflictException extends __BaseException {
|
|
15
|
+
name = "ConflictException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
resourceId;
|
|
18
|
+
resourceType;
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ConflictException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
26
|
+
this.resourceId = opts.resourceId;
|
|
27
|
+
this.resourceType = opts.resourceType;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class InternalServerException extends __BaseException {
|
|
31
|
+
name = "InternalServerException";
|
|
32
|
+
$fault = "server";
|
|
33
|
+
$retryable = {};
|
|
34
|
+
retryAfterSeconds;
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "InternalServerException",
|
|
38
|
+
$fault: "server",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
42
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
46
|
+
name = "ResourceNotFoundException";
|
|
47
|
+
$fault = "client";
|
|
48
|
+
resourceId;
|
|
49
|
+
resourceType;
|
|
50
|
+
constructor(opts) {
|
|
51
|
+
super({
|
|
52
|
+
name: "ResourceNotFoundException",
|
|
53
|
+
$fault: "client",
|
|
54
|
+
...opts,
|
|
55
|
+
});
|
|
56
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
57
|
+
this.resourceId = opts.resourceId;
|
|
58
|
+
this.resourceType = opts.resourceType;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
62
|
+
name = "ServiceQuotaExceededException";
|
|
63
|
+
$fault = "client";
|
|
64
|
+
resourceId;
|
|
65
|
+
resourceType;
|
|
66
|
+
serviceCode;
|
|
67
|
+
quotaCode;
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "ServiceQuotaExceededException",
|
|
71
|
+
$fault: "client",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
75
|
+
this.resourceId = opts.resourceId;
|
|
76
|
+
this.resourceType = opts.resourceType;
|
|
77
|
+
this.serviceCode = opts.serviceCode;
|
|
78
|
+
this.quotaCode = opts.quotaCode;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export class ThrottlingException extends __BaseException {
|
|
82
|
+
name = "ThrottlingException";
|
|
83
|
+
$fault = "client";
|
|
84
|
+
$retryable = {
|
|
85
|
+
throttling: true,
|
|
86
|
+
};
|
|
87
|
+
serviceCode;
|
|
88
|
+
quotaCode;
|
|
89
|
+
retryAfterSeconds;
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super({
|
|
92
|
+
name: "ThrottlingException",
|
|
93
|
+
$fault: "client",
|
|
94
|
+
...opts,
|
|
95
|
+
});
|
|
96
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
97
|
+
this.serviceCode = opts.serviceCode;
|
|
98
|
+
this.quotaCode = opts.quotaCode;
|
|
99
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export class ValidationException extends __BaseException {
|
|
103
|
+
name = "ValidationException";
|
|
104
|
+
$fault = "client";
|
|
105
|
+
reason;
|
|
106
|
+
fieldList;
|
|
107
|
+
constructor(opts) {
|
|
108
|
+
super({
|
|
109
|
+
name: "ValidationException",
|
|
110
|
+
$fault: "client",
|
|
111
|
+
...opts,
|
|
112
|
+
});
|
|
113
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
114
|
+
this.reason = opts.reason;
|
|
115
|
+
this.fieldList = opts.fieldList;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListAccessSourcesCommand, } from "../commands/ListAccessSourcesCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListAccessSources = createPaginator(Route53GlobalResolverClient, ListAccessSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListAccessTokensCommand, } from "../commands/ListAccessTokensCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListAccessTokens = createPaginator(Route53GlobalResolverClient, ListAccessTokensCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListDNSViewsCommand, } from "../commands/ListDNSViewsCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListDNSViews = createPaginator(Route53GlobalResolverClient, ListDNSViewsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListFirewallDomainListsCommand, } from "../commands/ListFirewallDomainListsCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListFirewallDomainLists = createPaginator(Route53GlobalResolverClient, ListFirewallDomainListsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListFirewallDomainsCommand, } from "../commands/ListFirewallDomainsCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListFirewallDomains = createPaginator(Route53GlobalResolverClient, ListFirewallDomainsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListFirewallRulesCommand, } from "../commands/ListFirewallRulesCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListFirewallRules = createPaginator(Route53GlobalResolverClient, ListFirewallRulesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListGlobalResolversCommand, } from "../commands/ListGlobalResolversCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListGlobalResolvers = createPaginator(Route53GlobalResolverClient, ListGlobalResolversCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListHostedZoneAssociationsCommand, } from "../commands/ListHostedZoneAssociationsCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListHostedZoneAssociations = createPaginator(Route53GlobalResolverClient, ListHostedZoneAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListManagedFirewallDomainListsCommand, } from "../commands/ListManagedFirewallDomainListsCommand";
|
|
3
|
+
import { Route53GlobalResolverClient } from "../Route53GlobalResolverClient";
|
|
4
|
+
export const paginateListManagedFirewallDomainLists = createPaginator(Route53GlobalResolverClient, ListManagedFirewallDomainListsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListAccessSourcesPaginator";
|
|
3
|
+
export * from "./ListAccessTokensPaginator";
|
|
4
|
+
export * from "./ListDNSViewsPaginator";
|
|
5
|
+
export * from "./ListFirewallDomainListsPaginator";
|
|
6
|
+
export * from "./ListFirewallDomainsPaginator";
|
|
7
|
+
export * from "./ListFirewallRulesPaginator";
|
|
8
|
+
export * from "./ListGlobalResolversPaginator";
|
|
9
|
+
export * from "./ListHostedZoneAssociationsPaginator";
|
|
10
|
+
export * from "./ListManagedFirewallDomainListsPaginator";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
awsCheckVersion(process.version);
|
|
22
|
+
const loaderConfig = {
|
|
23
|
+
profile: config?.profile,
|
|
24
|
+
logger: clientSharedValues.logger,
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
32
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
33
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
34
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
35
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
37
|
+
region: config?.region ??
|
|
38
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
loadNodeConfig({
|
|
42
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
44
|
+
}, config),
|
|
45
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
49
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
5
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
6
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
|
+
import { defaultRoute53GlobalResolverHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
export const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2022-09-27",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRoute53GlobalResolverHttpAuthSchemeProvider,
|
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
+
{
|
|
20
|
+
schemeId: "aws.auth#sigv4",
|
|
21
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.route53globalresolver" }),
|
|
27
|
+
serviceId: config?.serviceId ?? "Route53GlobalResolver",
|
|
28
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
29
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
30
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|