@aws-sdk/client-shield 3.194.0 → 3.195.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/ShieldClient.js +11 -8
  3. package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +10 -0
  4. package/dist-cjs/commands/AssociateDRTRoleCommand.js +10 -0
  5. package/dist-cjs/commands/AssociateHealthCheckCommand.js +10 -0
  6. package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +10 -0
  7. package/dist-cjs/commands/CreateProtectionCommand.js +10 -0
  8. package/dist-cjs/commands/CreateProtectionGroupCommand.js +10 -0
  9. package/dist-cjs/commands/CreateSubscriptionCommand.js +10 -0
  10. package/dist-cjs/commands/DeleteProtectionCommand.js +10 -0
  11. package/dist-cjs/commands/DeleteProtectionGroupCommand.js +10 -0
  12. package/dist-cjs/commands/DeleteSubscriptionCommand.js +10 -0
  13. package/dist-cjs/commands/DescribeAttackCommand.js +10 -0
  14. package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +10 -0
  15. package/dist-cjs/commands/DescribeDRTAccessCommand.js +10 -0
  16. package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +10 -0
  17. package/dist-cjs/commands/DescribeProtectionCommand.js +10 -0
  18. package/dist-cjs/commands/DescribeProtectionGroupCommand.js +10 -0
  19. package/dist-cjs/commands/DescribeSubscriptionCommand.js +10 -0
  20. package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +10 -0
  21. package/dist-cjs/commands/DisableProactiveEngagementCommand.js +10 -0
  22. package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +10 -0
  23. package/dist-cjs/commands/DisassociateDRTRoleCommand.js +10 -0
  24. package/dist-cjs/commands/DisassociateHealthCheckCommand.js +10 -0
  25. package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +10 -0
  26. package/dist-cjs/commands/EnableProactiveEngagementCommand.js +10 -0
  27. package/dist-cjs/commands/GetSubscriptionStateCommand.js +10 -0
  28. package/dist-cjs/commands/ListAttacksCommand.js +10 -0
  29. package/dist-cjs/commands/ListProtectionGroupsCommand.js +10 -0
  30. package/dist-cjs/commands/ListProtectionsCommand.js +10 -0
  31. package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +10 -0
  32. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  33. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  34. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  35. package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +10 -0
  36. package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +10 -0
  37. package/dist-cjs/commands/UpdateProtectionGroupCommand.js +10 -0
  38. package/dist-cjs/commands/UpdateSubscriptionCommand.js +10 -0
  39. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  40. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  41. package/dist-cjs/endpoint/ruleset.js +613 -0
  42. package/dist-cjs/runtimeConfig.shared.js +3 -3
  43. package/dist-es/ShieldClient.js +12 -9
  44. package/dist-es/commands/AssociateDRTLogBucketCommand.js +10 -0
  45. package/dist-es/commands/AssociateDRTRoleCommand.js +10 -0
  46. package/dist-es/commands/AssociateHealthCheckCommand.js +10 -0
  47. package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +10 -0
  48. package/dist-es/commands/CreateProtectionCommand.js +10 -0
  49. package/dist-es/commands/CreateProtectionGroupCommand.js +10 -0
  50. package/dist-es/commands/CreateSubscriptionCommand.js +10 -0
  51. package/dist-es/commands/DeleteProtectionCommand.js +10 -0
  52. package/dist-es/commands/DeleteProtectionGroupCommand.js +10 -0
  53. package/dist-es/commands/DeleteSubscriptionCommand.js +10 -0
  54. package/dist-es/commands/DescribeAttackCommand.js +10 -0
  55. package/dist-es/commands/DescribeAttackStatisticsCommand.js +10 -0
  56. package/dist-es/commands/DescribeDRTAccessCommand.js +10 -0
  57. package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +10 -0
  58. package/dist-es/commands/DescribeProtectionCommand.js +10 -0
  59. package/dist-es/commands/DescribeProtectionGroupCommand.js +10 -0
  60. package/dist-es/commands/DescribeSubscriptionCommand.js +10 -0
  61. package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +10 -0
  62. package/dist-es/commands/DisableProactiveEngagementCommand.js +10 -0
  63. package/dist-es/commands/DisassociateDRTLogBucketCommand.js +10 -0
  64. package/dist-es/commands/DisassociateDRTRoleCommand.js +10 -0
  65. package/dist-es/commands/DisassociateHealthCheckCommand.js +10 -0
  66. package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +10 -0
  67. package/dist-es/commands/EnableProactiveEngagementCommand.js +10 -0
  68. package/dist-es/commands/GetSubscriptionStateCommand.js +10 -0
  69. package/dist-es/commands/ListAttacksCommand.js +10 -0
  70. package/dist-es/commands/ListProtectionGroupsCommand.js +10 -0
  71. package/dist-es/commands/ListProtectionsCommand.js +10 -0
  72. package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +10 -0
  73. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  74. package/dist-es/commands/TagResourceCommand.js +10 -0
  75. package/dist-es/commands/UntagResourceCommand.js +10 -0
  76. package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +10 -0
  77. package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +10 -0
  78. package/dist-es/commands/UpdateProtectionGroupCommand.js +10 -0
  79. package/dist-es/commands/UpdateSubscriptionCommand.js +10 -0
  80. package/dist-es/endpoint/EndpointParameters.js +8 -0
  81. package/dist-es/endpoint/endpointResolver.js +8 -0
  82. package/dist-es/endpoint/ruleset.js +610 -0
  83. package/dist-es/runtimeConfig.shared.js +2 -2
  84. package/dist-types/ShieldClient.d.ts +6 -9
  85. package/dist-types/commands/AssociateDRTLogBucketCommand.d.ts +2 -0
  86. package/dist-types/commands/AssociateDRTRoleCommand.d.ts +2 -0
  87. package/dist-types/commands/AssociateHealthCheckCommand.d.ts +2 -0
  88. package/dist-types/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -0
  89. package/dist-types/commands/CreateProtectionCommand.d.ts +2 -0
  90. package/dist-types/commands/CreateProtectionGroupCommand.d.ts +2 -0
  91. package/dist-types/commands/CreateSubscriptionCommand.d.ts +2 -0
  92. package/dist-types/commands/DeleteProtectionCommand.d.ts +2 -0
  93. package/dist-types/commands/DeleteProtectionGroupCommand.d.ts +2 -0
  94. package/dist-types/commands/DeleteSubscriptionCommand.d.ts +2 -0
  95. package/dist-types/commands/DescribeAttackCommand.d.ts +2 -0
  96. package/dist-types/commands/DescribeAttackStatisticsCommand.d.ts +2 -0
  97. package/dist-types/commands/DescribeDRTAccessCommand.d.ts +2 -0
  98. package/dist-types/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -0
  99. package/dist-types/commands/DescribeProtectionCommand.d.ts +2 -0
  100. package/dist-types/commands/DescribeProtectionGroupCommand.d.ts +2 -0
  101. package/dist-types/commands/DescribeSubscriptionCommand.d.ts +2 -0
  102. package/dist-types/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  103. package/dist-types/commands/DisableProactiveEngagementCommand.d.ts +2 -0
  104. package/dist-types/commands/DisassociateDRTLogBucketCommand.d.ts +2 -0
  105. package/dist-types/commands/DisassociateDRTRoleCommand.d.ts +2 -0
  106. package/dist-types/commands/DisassociateHealthCheckCommand.d.ts +2 -0
  107. package/dist-types/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  108. package/dist-types/commands/EnableProactiveEngagementCommand.d.ts +2 -0
  109. package/dist-types/commands/GetSubscriptionStateCommand.d.ts +2 -0
  110. package/dist-types/commands/ListAttacksCommand.d.ts +2 -0
  111. package/dist-types/commands/ListProtectionGroupsCommand.d.ts +2 -0
  112. package/dist-types/commands/ListProtectionsCommand.d.ts +2 -0
  113. package/dist-types/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -0
  114. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  115. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  116. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  117. package/dist-types/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  118. package/dist-types/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -0
  119. package/dist-types/commands/UpdateProtectionGroupCommand.d.ts +2 -0
  120. package/dist-types/commands/UpdateSubscriptionCommand.d.ts +2 -0
  121. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  122. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  123. package/dist-types/endpoint/ruleset.d.ts +2 -0
  124. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  125. package/dist-types/runtimeConfig.d.ts +4 -2
  126. package/dist-types/runtimeConfig.native.d.ts +4 -2
  127. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  128. package/dist-types/ts3.4/ShieldClient.d.ts +15 -8
  129. package/dist-types/ts3.4/commands/AssociateDRTLogBucketCommand.d.ts +2 -0
  130. package/dist-types/ts3.4/commands/AssociateDRTRoleCommand.d.ts +2 -0
  131. package/dist-types/ts3.4/commands/AssociateHealthCheckCommand.d.ts +2 -0
  132. package/dist-types/ts3.4/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -0
  133. package/dist-types/ts3.4/commands/CreateProtectionCommand.d.ts +2 -0
  134. package/dist-types/ts3.4/commands/CreateProtectionGroupCommand.d.ts +2 -0
  135. package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +2 -0
  136. package/dist-types/ts3.4/commands/DeleteProtectionCommand.d.ts +2 -0
  137. package/dist-types/ts3.4/commands/DeleteProtectionGroupCommand.d.ts +2 -0
  138. package/dist-types/ts3.4/commands/DeleteSubscriptionCommand.d.ts +2 -0
  139. package/dist-types/ts3.4/commands/DescribeAttackCommand.d.ts +2 -0
  140. package/dist-types/ts3.4/commands/DescribeAttackStatisticsCommand.d.ts +2 -0
  141. package/dist-types/ts3.4/commands/DescribeDRTAccessCommand.d.ts +2 -0
  142. package/dist-types/ts3.4/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -0
  143. package/dist-types/ts3.4/commands/DescribeProtectionCommand.d.ts +2 -0
  144. package/dist-types/ts3.4/commands/DescribeProtectionGroupCommand.d.ts +2 -0
  145. package/dist-types/ts3.4/commands/DescribeSubscriptionCommand.d.ts +2 -0
  146. package/dist-types/ts3.4/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  147. package/dist-types/ts3.4/commands/DisableProactiveEngagementCommand.d.ts +2 -0
  148. package/dist-types/ts3.4/commands/DisassociateDRTLogBucketCommand.d.ts +2 -0
  149. package/dist-types/ts3.4/commands/DisassociateDRTRoleCommand.d.ts +2 -0
  150. package/dist-types/ts3.4/commands/DisassociateHealthCheckCommand.d.ts +2 -0
  151. package/dist-types/ts3.4/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  152. package/dist-types/ts3.4/commands/EnableProactiveEngagementCommand.d.ts +2 -0
  153. package/dist-types/ts3.4/commands/GetSubscriptionStateCommand.d.ts +2 -0
  154. package/dist-types/ts3.4/commands/ListAttacksCommand.d.ts +2 -0
  155. package/dist-types/ts3.4/commands/ListProtectionGroupsCommand.d.ts +2 -0
  156. package/dist-types/ts3.4/commands/ListProtectionsCommand.d.ts +2 -0
  157. package/dist-types/ts3.4/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -0
  158. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  159. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  160. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  161. package/dist-types/ts3.4/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +2 -0
  162. package/dist-types/ts3.4/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -0
  163. package/dist-types/ts3.4/commands/UpdateProtectionGroupCommand.d.ts +2 -0
  164. package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +2 -0
  165. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  166. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  167. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  168. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  169. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  170. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  171. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  172. package/package.json +3 -1
  173. package/dist-cjs/endpoints.js +0 -149
  174. package/dist-es/endpoints.js +0 -145
  175. package/dist-types/endpoints.d.ts +0 -2
  176. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: ShieldClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: ShieldClientConfig) => {
29
29
  credentialDefaultProvider: (
30
30
  input: any
31
31
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
32
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
33
32
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
34
33
  import("@aws-sdk/types").UserAgent
35
34
  >;
@@ -40,9 +39,21 @@ export declare const getRuntimeConfig: (config: ShieldClientConfig) => {
40
39
  >;
41
40
  endpoint?:
42
41
  | string
43
- | import("@aws-sdk/types").Endpoint
44
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
42
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
43
+ import("@aws-sdk/types").Provider<string>)
44
+ | (import("@aws-sdk/types").Endpoint &
45
+ import("@aws-sdk/types").Provider<string>)
46
+ | (import("@aws-sdk/types").EndpointV2 &
47
+ import("@aws-sdk/types").Provider<string>)
48
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
49
+ import("@aws-sdk/types").Provider<string>)
45
50
  | undefined;
51
+ endpointProvider: (
52
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
53
+ context?: {
54
+ logger?: import("@aws-sdk/types").Logger | undefined;
55
+ }
56
+ ) => import("@aws-sdk/types").EndpointV2;
46
57
  tls?: boolean | undefined;
47
58
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
59
  credentials?:
@@ -3,8 +3,13 @@ import { ShieldClientConfig } from "./ShieldClient";
3
3
  export declare const getRuntimeConfig: (config: ShieldClientConfig) => {
4
4
  apiVersion: string;
5
5
  disableHostPrefix: boolean;
6
+ endpointProvider: (
7
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
8
+ context?: {
9
+ logger?: __Logger | undefined;
10
+ }
11
+ ) => import("@aws-sdk/types").EndpointV2;
6
12
  logger: __Logger;
7
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
8
13
  serviceId: string;
9
14
  urlParser: import("@aws-sdk/types").UrlParser;
10
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-shield",
3
3
  "description": "AWS SDK for JavaScript Shield Client for Node.js, Browser and React Native",
4
- "version": "3.194.0",
4
+ "version": "3.195.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -26,6 +26,7 @@
26
26
  "@aws-sdk/hash-node": "3.193.0",
27
27
  "@aws-sdk/invalid-dependency": "3.193.0",
28
28
  "@aws-sdk/middleware-content-length": "3.193.0",
29
+ "@aws-sdk/middleware-endpoint": "3.193.0",
29
30
  "@aws-sdk/middleware-host-header": "3.193.0",
30
31
  "@aws-sdk/middleware-logger": "3.193.0",
31
32
  "@aws-sdk/middleware-recursion-detection": "3.193.0",
@@ -46,6 +47,7 @@
46
47
  "@aws-sdk/util-body-length-node": "3.188.0",
47
48
  "@aws-sdk/util-defaults-mode-browser": "3.193.0",
48
49
  "@aws-sdk/util-defaults-mode-node": "3.193.0",
50
+ "@aws-sdk/util-endpoints": "3.194.0",
49
51
  "@aws-sdk/util-user-agent-browser": "3.193.0",
50
52
  "@aws-sdk/util-user-agent-node": "3.193.0",
51
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
@@ -1,149 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultRegionInfoProvider = void 0;
4
- const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {
6
- "aws-global": {
7
- variants: [
8
- {
9
- hostname: "shield.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
- {
13
- hostname: "shield-fips.us-east-1.amazonaws.com",
14
- tags: ["fips"],
15
- },
16
- ],
17
- signingRegion: "us-east-1",
18
- },
19
- };
20
- const partitionHash = {
21
- aws: {
22
- regions: [
23
- "af-south-1",
24
- "ap-east-1",
25
- "ap-northeast-1",
26
- "ap-northeast-2",
27
- "ap-northeast-3",
28
- "ap-south-1",
29
- "ap-southeast-1",
30
- "ap-southeast-2",
31
- "ap-southeast-3",
32
- "aws-global",
33
- "ca-central-1",
34
- "eu-central-1",
35
- "eu-north-1",
36
- "eu-south-1",
37
- "eu-west-1",
38
- "eu-west-2",
39
- "eu-west-3",
40
- "fips-aws-global",
41
- "me-central-1",
42
- "me-south-1",
43
- "sa-east-1",
44
- "us-east-1",
45
- "us-east-2",
46
- "us-west-1",
47
- "us-west-2",
48
- ],
49
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
50
- variants: [
51
- {
52
- hostname: "shield.{region}.amazonaws.com",
53
- tags: [],
54
- },
55
- {
56
- hostname: "shield-fips.{region}.amazonaws.com",
57
- tags: ["fips"],
58
- },
59
- {
60
- hostname: "shield-fips.{region}.api.aws",
61
- tags: ["dualstack", "fips"],
62
- },
63
- {
64
- hostname: "shield.{region}.api.aws",
65
- tags: ["dualstack"],
66
- },
67
- ],
68
- endpoint: "aws-global",
69
- },
70
- "aws-cn": {
71
- regions: ["cn-north-1", "cn-northwest-1"],
72
- regionRegex: "^cn\\-\\w+\\-\\d+$",
73
- variants: [
74
- {
75
- hostname: "shield.{region}.amazonaws.com.cn",
76
- tags: [],
77
- },
78
- {
79
- hostname: "shield-fips.{region}.amazonaws.com.cn",
80
- tags: ["fips"],
81
- },
82
- {
83
- hostname: "shield-fips.{region}.api.amazonwebservices.com.cn",
84
- tags: ["dualstack", "fips"],
85
- },
86
- {
87
- hostname: "shield.{region}.api.amazonwebservices.com.cn",
88
- tags: ["dualstack"],
89
- },
90
- ],
91
- },
92
- "aws-iso": {
93
- regions: ["us-iso-east-1", "us-iso-west-1"],
94
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
95
- variants: [
96
- {
97
- hostname: "shield.{region}.c2s.ic.gov",
98
- tags: [],
99
- },
100
- {
101
- hostname: "shield-fips.{region}.c2s.ic.gov",
102
- tags: ["fips"],
103
- },
104
- ],
105
- },
106
- "aws-iso-b": {
107
- regions: ["us-isob-east-1"],
108
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
109
- variants: [
110
- {
111
- hostname: "shield.{region}.sc2s.sgov.gov",
112
- tags: [],
113
- },
114
- {
115
- hostname: "shield-fips.{region}.sc2s.sgov.gov",
116
- tags: ["fips"],
117
- },
118
- ],
119
- },
120
- "aws-us-gov": {
121
- regions: ["us-gov-east-1", "us-gov-west-1"],
122
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
123
- variants: [
124
- {
125
- hostname: "shield.{region}.amazonaws.com",
126
- tags: [],
127
- },
128
- {
129
- hostname: "shield-fips.{region}.amazonaws.com",
130
- tags: ["fips"],
131
- },
132
- {
133
- hostname: "shield-fips.{region}.api.aws",
134
- tags: ["dualstack", "fips"],
135
- },
136
- {
137
- hostname: "shield.{region}.api.aws",
138
- tags: ["dualstack"],
139
- },
140
- ],
141
- },
142
- };
143
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
144
- ...options,
145
- signingService: "shield",
146
- regionHash,
147
- partitionHash,
148
- });
149
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
@@ -1,145 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
- "aws-global": {
4
- variants: [
5
- {
6
- hostname: "shield.us-east-1.amazonaws.com",
7
- tags: [],
8
- },
9
- {
10
- hostname: "shield-fips.us-east-1.amazonaws.com",
11
- tags: ["fips"],
12
- },
13
- ],
14
- signingRegion: "us-east-1",
15
- },
16
- };
17
- const partitionHash = {
18
- aws: {
19
- regions: [
20
- "af-south-1",
21
- "ap-east-1",
22
- "ap-northeast-1",
23
- "ap-northeast-2",
24
- "ap-northeast-3",
25
- "ap-south-1",
26
- "ap-southeast-1",
27
- "ap-southeast-2",
28
- "ap-southeast-3",
29
- "aws-global",
30
- "ca-central-1",
31
- "eu-central-1",
32
- "eu-north-1",
33
- "eu-south-1",
34
- "eu-west-1",
35
- "eu-west-2",
36
- "eu-west-3",
37
- "fips-aws-global",
38
- "me-central-1",
39
- "me-south-1",
40
- "sa-east-1",
41
- "us-east-1",
42
- "us-east-2",
43
- "us-west-1",
44
- "us-west-2",
45
- ],
46
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
47
- variants: [
48
- {
49
- hostname: "shield.{region}.amazonaws.com",
50
- tags: [],
51
- },
52
- {
53
- hostname: "shield-fips.{region}.amazonaws.com",
54
- tags: ["fips"],
55
- },
56
- {
57
- hostname: "shield-fips.{region}.api.aws",
58
- tags: ["dualstack", "fips"],
59
- },
60
- {
61
- hostname: "shield.{region}.api.aws",
62
- tags: ["dualstack"],
63
- },
64
- ],
65
- endpoint: "aws-global",
66
- },
67
- "aws-cn": {
68
- regions: ["cn-north-1", "cn-northwest-1"],
69
- regionRegex: "^cn\\-\\w+\\-\\d+$",
70
- variants: [
71
- {
72
- hostname: "shield.{region}.amazonaws.com.cn",
73
- tags: [],
74
- },
75
- {
76
- hostname: "shield-fips.{region}.amazonaws.com.cn",
77
- tags: ["fips"],
78
- },
79
- {
80
- hostname: "shield-fips.{region}.api.amazonwebservices.com.cn",
81
- tags: ["dualstack", "fips"],
82
- },
83
- {
84
- hostname: "shield.{region}.api.amazonwebservices.com.cn",
85
- tags: ["dualstack"],
86
- },
87
- ],
88
- },
89
- "aws-iso": {
90
- regions: ["us-iso-east-1", "us-iso-west-1"],
91
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
92
- variants: [
93
- {
94
- hostname: "shield.{region}.c2s.ic.gov",
95
- tags: [],
96
- },
97
- {
98
- hostname: "shield-fips.{region}.c2s.ic.gov",
99
- tags: ["fips"],
100
- },
101
- ],
102
- },
103
- "aws-iso-b": {
104
- regions: ["us-isob-east-1"],
105
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
106
- variants: [
107
- {
108
- hostname: "shield.{region}.sc2s.sgov.gov",
109
- tags: [],
110
- },
111
- {
112
- hostname: "shield-fips.{region}.sc2s.sgov.gov",
113
- tags: ["fips"],
114
- },
115
- ],
116
- },
117
- "aws-us-gov": {
118
- regions: ["us-gov-east-1", "us-gov-west-1"],
119
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
120
- variants: [
121
- {
122
- hostname: "shield.{region}.amazonaws.com",
123
- tags: [],
124
- },
125
- {
126
- hostname: "shield-fips.{region}.amazonaws.com",
127
- tags: ["fips"],
128
- },
129
- {
130
- hostname: "shield-fips.{region}.api.aws",
131
- tags: ["dualstack", "fips"],
132
- },
133
- {
134
- hostname: "shield.{region}.api.aws",
135
- tags: ["dualstack"],
136
- },
137
- ],
138
- },
139
- };
140
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
141
- ...options,
142
- signingService: "shield",
143
- regionHash,
144
- partitionHash,
145
- });
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;