@aws-sdk/client-shield 3.194.0 → 3.196.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/CHANGELOG.md +19 -0
- package/dist-cjs/ShieldClient.js +11 -8
- package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +10 -0
- package/dist-cjs/commands/AssociateDRTRoleCommand.js +10 -0
- package/dist-cjs/commands/AssociateHealthCheckCommand.js +10 -0
- package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +10 -0
- package/dist-cjs/commands/CreateProtectionCommand.js +10 -0
- package/dist-cjs/commands/CreateProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/CreateSubscriptionCommand.js +10 -0
- package/dist-cjs/commands/DeleteProtectionCommand.js +10 -0
- package/dist-cjs/commands/DeleteProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/DeleteSubscriptionCommand.js +10 -0
- package/dist-cjs/commands/DescribeAttackCommand.js +10 -0
- package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +10 -0
- package/dist-cjs/commands/DescribeDRTAccessCommand.js +10 -0
- package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +10 -0
- package/dist-cjs/commands/DescribeProtectionCommand.js +10 -0
- package/dist-cjs/commands/DescribeProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/DescribeSubscriptionCommand.js +10 -0
- package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-cjs/commands/DisableProactiveEngagementCommand.js +10 -0
- package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +10 -0
- package/dist-cjs/commands/DisassociateDRTRoleCommand.js +10 -0
- package/dist-cjs/commands/DisassociateHealthCheckCommand.js +10 -0
- package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-cjs/commands/EnableProactiveEngagementCommand.js +10 -0
- package/dist-cjs/commands/GetSubscriptionStateCommand.js +10 -0
- package/dist-cjs/commands/ListAttacksCommand.js +10 -0
- package/dist-cjs/commands/ListProtectionGroupsCommand.js +10 -0
- package/dist-cjs/commands/ListProtectionsCommand.js +10 -0
- package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-cjs/commands/TagResourceCommand.js +10 -0
- package/dist-cjs/commands/UntagResourceCommand.js +10 -0
- package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +10 -0
- package/dist-cjs/commands/UpdateProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/UpdateSubscriptionCommand.js +10 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +613 -0
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/ShieldClient.js +12 -9
- package/dist-es/commands/AssociateDRTLogBucketCommand.js +10 -0
- package/dist-es/commands/AssociateDRTRoleCommand.js +10 -0
- package/dist-es/commands/AssociateHealthCheckCommand.js +10 -0
- package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +10 -0
- package/dist-es/commands/CreateProtectionCommand.js +10 -0
- package/dist-es/commands/CreateProtectionGroupCommand.js +10 -0
- package/dist-es/commands/CreateSubscriptionCommand.js +10 -0
- package/dist-es/commands/DeleteProtectionCommand.js +10 -0
- package/dist-es/commands/DeleteProtectionGroupCommand.js +10 -0
- package/dist-es/commands/DeleteSubscriptionCommand.js +10 -0
- package/dist-es/commands/DescribeAttackCommand.js +10 -0
- package/dist-es/commands/DescribeAttackStatisticsCommand.js +10 -0
- package/dist-es/commands/DescribeDRTAccessCommand.js +10 -0
- package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +10 -0
- package/dist-es/commands/DescribeProtectionCommand.js +10 -0
- package/dist-es/commands/DescribeProtectionGroupCommand.js +10 -0
- package/dist-es/commands/DescribeSubscriptionCommand.js +10 -0
- package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-es/commands/DisableProactiveEngagementCommand.js +10 -0
- package/dist-es/commands/DisassociateDRTLogBucketCommand.js +10 -0
- package/dist-es/commands/DisassociateDRTRoleCommand.js +10 -0
- package/dist-es/commands/DisassociateHealthCheckCommand.js +10 -0
- package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-es/commands/EnableProactiveEngagementCommand.js +10 -0
- package/dist-es/commands/GetSubscriptionStateCommand.js +10 -0
- package/dist-es/commands/ListAttacksCommand.js +10 -0
- package/dist-es/commands/ListProtectionGroupsCommand.js +10 -0
- package/dist-es/commands/ListProtectionsCommand.js +10 -0
- package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +10 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-es/commands/TagResourceCommand.js +10 -0
- package/dist-es/commands/UntagResourceCommand.js +10 -0
- package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +10 -0
- package/dist-es/commands/UpdateProtectionGroupCommand.js +10 -0
- package/dist-es/commands/UpdateSubscriptionCommand.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +610 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/ShieldClient.d.ts +6 -9
- package/dist-types/commands/AssociateDRTLogBucketCommand.d.ts +2 -0
- package/dist-types/commands/AssociateDRTRoleCommand.d.ts +2 -0
- package/dist-types/commands/AssociateHealthCheckCommand.d.ts +2 -0
- package/dist-types/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -0
- package/dist-types/commands/CreateProtectionCommand.d.ts +2 -0
- package/dist-types/commands/CreateProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/CreateSubscriptionCommand.d.ts +2 -0
- package/dist-types/commands/DeleteProtectionCommand.d.ts +2 -0
- package/dist-types/commands/DeleteProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/DeleteSubscriptionCommand.d.ts +2 -0
- package/dist-types/commands/DescribeAttackCommand.d.ts +2 -0
- package/dist-types/commands/DescribeAttackStatisticsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeDRTAccessCommand.d.ts +2 -0
- package/dist-types/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeProtectionCommand.d.ts +2 -0
- package/dist-types/commands/DescribeProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/DescribeSubscriptionCommand.d.ts +2 -0
- package/dist-types/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/commands/DisableProactiveEngagementCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateDRTLogBucketCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateDRTRoleCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateHealthCheckCommand.d.ts +2 -0
- package/dist-types/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/commands/EnableProactiveEngagementCommand.d.ts +2 -0
- package/dist-types/commands/GetSubscriptionStateCommand.d.ts +2 -0
- package/dist-types/commands/ListAttacksCommand.d.ts +2 -0
- package/dist-types/commands/ListProtectionGroupsCommand.d.ts +2 -0
- package/dist-types/commands/ListProtectionsCommand.d.ts +2 -0
- package/dist-types/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/UpdateSubscriptionCommand.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/ShieldClient.d.ts +15 -8
- package/dist-types/ts3.4/commands/AssociateDRTLogBucketCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateDRTRoleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateHealthCheckCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateProtectionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteProtectionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteSubscriptionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeAttackCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeAttackStatisticsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeDRTAccessCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeProtectionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeSubscriptionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisableProactiveEngagementCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateDRTLogBucketCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateDRTRoleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateHealthCheckCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/EnableProactiveEngagementCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetSubscriptionStateCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListAttacksCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListProtectionGroupsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListProtectionsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -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/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +5 -3
- package/dist-cjs/endpoints.js +0 -149
- package/dist-es/endpoints.js +0 -145
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
export const ruleSet = {
|
|
2
|
+
version: "1.0",
|
|
3
|
+
parameters: {
|
|
4
|
+
Region: {
|
|
5
|
+
builtIn: "AWS::Region",
|
|
6
|
+
required: false,
|
|
7
|
+
documentation: "The AWS region used to dispatch the request.",
|
|
8
|
+
type: "String",
|
|
9
|
+
},
|
|
10
|
+
UseDualStack: {
|
|
11
|
+
builtIn: "AWS::UseDualStack",
|
|
12
|
+
required: true,
|
|
13
|
+
default: false,
|
|
14
|
+
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
15
|
+
type: "Boolean",
|
|
16
|
+
},
|
|
17
|
+
UseFIPS: {
|
|
18
|
+
builtIn: "AWS::UseFIPS",
|
|
19
|
+
required: true,
|
|
20
|
+
default: false,
|
|
21
|
+
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
22
|
+
type: "Boolean",
|
|
23
|
+
},
|
|
24
|
+
Endpoint: {
|
|
25
|
+
builtIn: "SDK::Endpoint",
|
|
26
|
+
required: false,
|
|
27
|
+
documentation: "Override the endpoint used to send this request",
|
|
28
|
+
type: "String",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
rules: [
|
|
32
|
+
{
|
|
33
|
+
conditions: [
|
|
34
|
+
{
|
|
35
|
+
fn: "aws.partition",
|
|
36
|
+
argv: [
|
|
37
|
+
{
|
|
38
|
+
ref: "Region",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
assign: "PartitionResult",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
type: "tree",
|
|
45
|
+
rules: [
|
|
46
|
+
{
|
|
47
|
+
conditions: [
|
|
48
|
+
{
|
|
49
|
+
fn: "isSet",
|
|
50
|
+
argv: [
|
|
51
|
+
{
|
|
52
|
+
ref: "Endpoint",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
fn: "parseURL",
|
|
58
|
+
argv: [
|
|
59
|
+
{
|
|
60
|
+
ref: "Endpoint",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
assign: "url",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
type: "tree",
|
|
67
|
+
rules: [
|
|
68
|
+
{
|
|
69
|
+
conditions: [
|
|
70
|
+
{
|
|
71
|
+
fn: "booleanEquals",
|
|
72
|
+
argv: [
|
|
73
|
+
{
|
|
74
|
+
ref: "UseFIPS",
|
|
75
|
+
},
|
|
76
|
+
true,
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
81
|
+
type: "error",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
conditions: [],
|
|
85
|
+
type: "tree",
|
|
86
|
+
rules: [
|
|
87
|
+
{
|
|
88
|
+
conditions: [
|
|
89
|
+
{
|
|
90
|
+
fn: "booleanEquals",
|
|
91
|
+
argv: [
|
|
92
|
+
{
|
|
93
|
+
ref: "UseDualStack",
|
|
94
|
+
},
|
|
95
|
+
true,
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
100
|
+
type: "error",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
conditions: [],
|
|
104
|
+
endpoint: {
|
|
105
|
+
url: {
|
|
106
|
+
ref: "Endpoint",
|
|
107
|
+
},
|
|
108
|
+
properties: {},
|
|
109
|
+
headers: {},
|
|
110
|
+
},
|
|
111
|
+
type: "endpoint",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
conditions: [
|
|
119
|
+
{
|
|
120
|
+
fn: "stringEquals",
|
|
121
|
+
argv: [
|
|
122
|
+
{
|
|
123
|
+
fn: "getAttr",
|
|
124
|
+
argv: [
|
|
125
|
+
{
|
|
126
|
+
ref: "PartitionResult",
|
|
127
|
+
},
|
|
128
|
+
"name",
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
"aws",
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
type: "tree",
|
|
136
|
+
rules: [
|
|
137
|
+
{
|
|
138
|
+
conditions: [
|
|
139
|
+
{
|
|
140
|
+
fn: "booleanEquals",
|
|
141
|
+
argv: [
|
|
142
|
+
{
|
|
143
|
+
ref: "UseFIPS",
|
|
144
|
+
},
|
|
145
|
+
true,
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
fn: "booleanEquals",
|
|
150
|
+
argv: [
|
|
151
|
+
{
|
|
152
|
+
ref: "UseDualStack",
|
|
153
|
+
},
|
|
154
|
+
true,
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
type: "tree",
|
|
159
|
+
rules: [
|
|
160
|
+
{
|
|
161
|
+
conditions: [
|
|
162
|
+
{
|
|
163
|
+
fn: "booleanEquals",
|
|
164
|
+
argv: [
|
|
165
|
+
true,
|
|
166
|
+
{
|
|
167
|
+
fn: "getAttr",
|
|
168
|
+
argv: [
|
|
169
|
+
{
|
|
170
|
+
ref: "PartitionResult",
|
|
171
|
+
},
|
|
172
|
+
"supportsFIPS",
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
fn: "booleanEquals",
|
|
179
|
+
argv: [
|
|
180
|
+
true,
|
|
181
|
+
{
|
|
182
|
+
fn: "getAttr",
|
|
183
|
+
argv: [
|
|
184
|
+
{
|
|
185
|
+
ref: "PartitionResult",
|
|
186
|
+
},
|
|
187
|
+
"supportsDualStack",
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
type: "tree",
|
|
194
|
+
rules: [
|
|
195
|
+
{
|
|
196
|
+
conditions: [],
|
|
197
|
+
endpoint: {
|
|
198
|
+
url: "https://shield-fips.{Region}.api.aws",
|
|
199
|
+
properties: {
|
|
200
|
+
authSchemes: [
|
|
201
|
+
{
|
|
202
|
+
name: "sigv4",
|
|
203
|
+
signingName: "shield",
|
|
204
|
+
signingRegion: "us-east-1",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
headers: {},
|
|
209
|
+
},
|
|
210
|
+
type: "endpoint",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
conditions: [],
|
|
216
|
+
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
217
|
+
type: "error",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
conditions: [
|
|
223
|
+
{
|
|
224
|
+
fn: "booleanEquals",
|
|
225
|
+
argv: [
|
|
226
|
+
{
|
|
227
|
+
ref: "UseFIPS",
|
|
228
|
+
},
|
|
229
|
+
true,
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
type: "tree",
|
|
234
|
+
rules: [
|
|
235
|
+
{
|
|
236
|
+
conditions: [
|
|
237
|
+
{
|
|
238
|
+
fn: "booleanEquals",
|
|
239
|
+
argv: [
|
|
240
|
+
true,
|
|
241
|
+
{
|
|
242
|
+
fn: "getAttr",
|
|
243
|
+
argv: [
|
|
244
|
+
{
|
|
245
|
+
ref: "PartitionResult",
|
|
246
|
+
},
|
|
247
|
+
"supportsFIPS",
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
type: "tree",
|
|
254
|
+
rules: [
|
|
255
|
+
{
|
|
256
|
+
conditions: [],
|
|
257
|
+
endpoint: {
|
|
258
|
+
url: "https://shield-fips.us-east-1.amazonaws.com",
|
|
259
|
+
properties: {
|
|
260
|
+
authSchemes: [
|
|
261
|
+
{
|
|
262
|
+
name: "sigv4",
|
|
263
|
+
signingName: "shield",
|
|
264
|
+
signingRegion: "us-east-1",
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
headers: {},
|
|
269
|
+
},
|
|
270
|
+
type: "endpoint",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
conditions: [],
|
|
276
|
+
error: "FIPS is enabled but this partition does not support FIPS",
|
|
277
|
+
type: "error",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
conditions: [
|
|
283
|
+
{
|
|
284
|
+
fn: "booleanEquals",
|
|
285
|
+
argv: [
|
|
286
|
+
{
|
|
287
|
+
ref: "UseDualStack",
|
|
288
|
+
},
|
|
289
|
+
true,
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
type: "tree",
|
|
294
|
+
rules: [
|
|
295
|
+
{
|
|
296
|
+
conditions: [
|
|
297
|
+
{
|
|
298
|
+
fn: "booleanEquals",
|
|
299
|
+
argv: [
|
|
300
|
+
true,
|
|
301
|
+
{
|
|
302
|
+
fn: "getAttr",
|
|
303
|
+
argv: [
|
|
304
|
+
{
|
|
305
|
+
ref: "PartitionResult",
|
|
306
|
+
},
|
|
307
|
+
"supportsDualStack",
|
|
308
|
+
],
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
type: "tree",
|
|
314
|
+
rules: [
|
|
315
|
+
{
|
|
316
|
+
conditions: [],
|
|
317
|
+
endpoint: {
|
|
318
|
+
url: "https://shield.{Region}.api.aws",
|
|
319
|
+
properties: {
|
|
320
|
+
authSchemes: [
|
|
321
|
+
{
|
|
322
|
+
name: "sigv4",
|
|
323
|
+
signingName: "shield",
|
|
324
|
+
signingRegion: "us-east-1",
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
},
|
|
328
|
+
headers: {},
|
|
329
|
+
},
|
|
330
|
+
type: "endpoint",
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
conditions: [],
|
|
336
|
+
error: "DualStack is enabled but this partition does not support DualStack",
|
|
337
|
+
type: "error",
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
conditions: [],
|
|
343
|
+
endpoint: {
|
|
344
|
+
url: "https://shield.us-east-1.amazonaws.com",
|
|
345
|
+
properties: {
|
|
346
|
+
authSchemes: [
|
|
347
|
+
{
|
|
348
|
+
name: "sigv4",
|
|
349
|
+
signingName: "shield",
|
|
350
|
+
signingRegion: "us-east-1",
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
},
|
|
354
|
+
headers: {},
|
|
355
|
+
},
|
|
356
|
+
type: "endpoint",
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
conditions: [
|
|
362
|
+
{
|
|
363
|
+
fn: "booleanEquals",
|
|
364
|
+
argv: [
|
|
365
|
+
{
|
|
366
|
+
ref: "UseFIPS",
|
|
367
|
+
},
|
|
368
|
+
true,
|
|
369
|
+
],
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
fn: "booleanEquals",
|
|
373
|
+
argv: [
|
|
374
|
+
{
|
|
375
|
+
ref: "UseDualStack",
|
|
376
|
+
},
|
|
377
|
+
true,
|
|
378
|
+
],
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
type: "tree",
|
|
382
|
+
rules: [
|
|
383
|
+
{
|
|
384
|
+
conditions: [
|
|
385
|
+
{
|
|
386
|
+
fn: "booleanEquals",
|
|
387
|
+
argv: [
|
|
388
|
+
true,
|
|
389
|
+
{
|
|
390
|
+
fn: "getAttr",
|
|
391
|
+
argv: [
|
|
392
|
+
{
|
|
393
|
+
ref: "PartitionResult",
|
|
394
|
+
},
|
|
395
|
+
"supportsFIPS",
|
|
396
|
+
],
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
fn: "booleanEquals",
|
|
402
|
+
argv: [
|
|
403
|
+
true,
|
|
404
|
+
{
|
|
405
|
+
fn: "getAttr",
|
|
406
|
+
argv: [
|
|
407
|
+
{
|
|
408
|
+
ref: "PartitionResult",
|
|
409
|
+
},
|
|
410
|
+
"supportsDualStack",
|
|
411
|
+
],
|
|
412
|
+
},
|
|
413
|
+
],
|
|
414
|
+
},
|
|
415
|
+
],
|
|
416
|
+
type: "tree",
|
|
417
|
+
rules: [
|
|
418
|
+
{
|
|
419
|
+
conditions: [],
|
|
420
|
+
endpoint: {
|
|
421
|
+
url: "https://shield-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
422
|
+
properties: {},
|
|
423
|
+
headers: {},
|
|
424
|
+
},
|
|
425
|
+
type: "endpoint",
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
conditions: [],
|
|
431
|
+
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
432
|
+
type: "error",
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
conditions: [
|
|
438
|
+
{
|
|
439
|
+
fn: "booleanEquals",
|
|
440
|
+
argv: [
|
|
441
|
+
{
|
|
442
|
+
ref: "UseFIPS",
|
|
443
|
+
},
|
|
444
|
+
true,
|
|
445
|
+
],
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
type: "tree",
|
|
449
|
+
rules: [
|
|
450
|
+
{
|
|
451
|
+
conditions: [
|
|
452
|
+
{
|
|
453
|
+
fn: "booleanEquals",
|
|
454
|
+
argv: [
|
|
455
|
+
true,
|
|
456
|
+
{
|
|
457
|
+
fn: "getAttr",
|
|
458
|
+
argv: [
|
|
459
|
+
{
|
|
460
|
+
ref: "PartitionResult",
|
|
461
|
+
},
|
|
462
|
+
"supportsFIPS",
|
|
463
|
+
],
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
},
|
|
467
|
+
],
|
|
468
|
+
type: "tree",
|
|
469
|
+
rules: [
|
|
470
|
+
{
|
|
471
|
+
conditions: [],
|
|
472
|
+
type: "tree",
|
|
473
|
+
rules: [
|
|
474
|
+
{
|
|
475
|
+
conditions: [
|
|
476
|
+
{
|
|
477
|
+
fn: "stringEquals",
|
|
478
|
+
argv: [
|
|
479
|
+
{
|
|
480
|
+
ref: "Region",
|
|
481
|
+
},
|
|
482
|
+
"aws-global",
|
|
483
|
+
],
|
|
484
|
+
},
|
|
485
|
+
],
|
|
486
|
+
endpoint: {
|
|
487
|
+
url: "https://shield-fips.us-east-1.amazonaws.com",
|
|
488
|
+
properties: {},
|
|
489
|
+
headers: {},
|
|
490
|
+
},
|
|
491
|
+
type: "endpoint",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
conditions: [],
|
|
495
|
+
endpoint: {
|
|
496
|
+
url: "https://shield-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
497
|
+
properties: {},
|
|
498
|
+
headers: {},
|
|
499
|
+
},
|
|
500
|
+
type: "endpoint",
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
},
|
|
504
|
+
],
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
conditions: [],
|
|
508
|
+
error: "FIPS is enabled but this partition does not support FIPS",
|
|
509
|
+
type: "error",
|
|
510
|
+
},
|
|
511
|
+
],
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
conditions: [
|
|
515
|
+
{
|
|
516
|
+
fn: "booleanEquals",
|
|
517
|
+
argv: [
|
|
518
|
+
{
|
|
519
|
+
ref: "UseDualStack",
|
|
520
|
+
},
|
|
521
|
+
true,
|
|
522
|
+
],
|
|
523
|
+
},
|
|
524
|
+
],
|
|
525
|
+
type: "tree",
|
|
526
|
+
rules: [
|
|
527
|
+
{
|
|
528
|
+
conditions: [
|
|
529
|
+
{
|
|
530
|
+
fn: "booleanEquals",
|
|
531
|
+
argv: [
|
|
532
|
+
true,
|
|
533
|
+
{
|
|
534
|
+
fn: "getAttr",
|
|
535
|
+
argv: [
|
|
536
|
+
{
|
|
537
|
+
ref: "PartitionResult",
|
|
538
|
+
},
|
|
539
|
+
"supportsDualStack",
|
|
540
|
+
],
|
|
541
|
+
},
|
|
542
|
+
],
|
|
543
|
+
},
|
|
544
|
+
],
|
|
545
|
+
type: "tree",
|
|
546
|
+
rules: [
|
|
547
|
+
{
|
|
548
|
+
conditions: [],
|
|
549
|
+
endpoint: {
|
|
550
|
+
url: "https://shield.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
551
|
+
properties: {},
|
|
552
|
+
headers: {},
|
|
553
|
+
},
|
|
554
|
+
type: "endpoint",
|
|
555
|
+
},
|
|
556
|
+
],
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
conditions: [],
|
|
560
|
+
error: "DualStack is enabled but this partition does not support DualStack",
|
|
561
|
+
type: "error",
|
|
562
|
+
},
|
|
563
|
+
],
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
conditions: [],
|
|
567
|
+
type: "tree",
|
|
568
|
+
rules: [
|
|
569
|
+
{
|
|
570
|
+
conditions: [
|
|
571
|
+
{
|
|
572
|
+
fn: "stringEquals",
|
|
573
|
+
argv: [
|
|
574
|
+
{
|
|
575
|
+
ref: "Region",
|
|
576
|
+
},
|
|
577
|
+
"aws-global",
|
|
578
|
+
],
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
endpoint: {
|
|
582
|
+
url: "https://shield.us-east-1.amazonaws.com",
|
|
583
|
+
properties: {
|
|
584
|
+
authSchemes: [
|
|
585
|
+
{
|
|
586
|
+
name: "sigv4",
|
|
587
|
+
signingName: "shield",
|
|
588
|
+
signingRegion: "us-east-1",
|
|
589
|
+
},
|
|
590
|
+
],
|
|
591
|
+
},
|
|
592
|
+
headers: {},
|
|
593
|
+
},
|
|
594
|
+
type: "endpoint",
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
conditions: [],
|
|
598
|
+
endpoint: {
|
|
599
|
+
url: "https://shield.{Region}.{PartitionResult#dnsSuffix}",
|
|
600
|
+
properties: {},
|
|
601
|
+
headers: {},
|
|
602
|
+
},
|
|
603
|
+
type: "endpoint",
|
|
604
|
+
},
|
|
605
|
+
],
|
|
606
|
+
},
|
|
607
|
+
],
|
|
608
|
+
},
|
|
609
|
+
],
|
|
610
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
-
import {
|
|
2
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
3
3
|
export const getRuntimeConfig = (config) => ({
|
|
4
4
|
apiVersion: "2016-06-02",
|
|
5
5
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
6
7
|
logger: config?.logger ?? {},
|
|
7
|
-
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
8
8
|
serviceId: config?.serviceId ?? "Shield",
|
|
9
9
|
urlParser: config?.urlParser ?? parseUrl,
|
|
10
10
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
|
|
2
3
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
4
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
5
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
6
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
7
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
8
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider,
|
|
9
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
10
|
import { AssociateDRTLogBucketCommandInput, AssociateDRTLogBucketCommandOutput } from "./commands/AssociateDRTLogBucketCommand";
|
|
10
11
|
import { AssociateDRTRoleCommandInput, AssociateDRTRoleCommandOutput } from "./commands/AssociateDRTRoleCommand";
|
|
11
12
|
import { AssociateHealthCheckCommandInput, AssociateHealthCheckCommandOutput } from "./commands/AssociateHealthCheckCommand";
|
|
@@ -42,6 +43,7 @@ import { UpdateApplicationLayerAutomaticResponseCommandInput, UpdateApplicationL
|
|
|
42
43
|
import { UpdateEmergencyContactSettingsCommandInput, UpdateEmergencyContactSettingsCommandOutput } from "./commands/UpdateEmergencyContactSettingsCommand";
|
|
43
44
|
import { UpdateProtectionGroupCommandInput, UpdateProtectionGroupCommandOutput } from "./commands/UpdateProtectionGroupCommand";
|
|
44
45
|
import { UpdateSubscriptionCommandInput, UpdateSubscriptionCommandOutput } from "./commands/UpdateSubscriptionCommand";
|
|
46
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
45
47
|
export declare type ServiceInputTypes = AssociateDRTLogBucketCommandInput | AssociateDRTRoleCommandInput | AssociateHealthCheckCommandInput | AssociateProactiveEngagementDetailsCommandInput | CreateProtectionCommandInput | CreateProtectionGroupCommandInput | CreateSubscriptionCommandInput | DeleteProtectionCommandInput | DeleteProtectionGroupCommandInput | DeleteSubscriptionCommandInput | DescribeAttackCommandInput | DescribeAttackStatisticsCommandInput | DescribeDRTAccessCommandInput | DescribeEmergencyContactSettingsCommandInput | DescribeProtectionCommandInput | DescribeProtectionGroupCommandInput | DescribeSubscriptionCommandInput | DisableApplicationLayerAutomaticResponseCommandInput | DisableProactiveEngagementCommandInput | DisassociateDRTLogBucketCommandInput | DisassociateDRTRoleCommandInput | DisassociateHealthCheckCommandInput | EnableApplicationLayerAutomaticResponseCommandInput | EnableProactiveEngagementCommandInput | GetSubscriptionStateCommandInput | ListAttacksCommandInput | ListProtectionGroupsCommandInput | ListProtectionsCommandInput | ListResourcesInProtectionGroupCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationLayerAutomaticResponseCommandInput | UpdateEmergencyContactSettingsCommandInput | UpdateProtectionGroupCommandInput | UpdateSubscriptionCommandInput;
|
|
46
48
|
export declare type ServiceOutputTypes = AssociateDRTLogBucketCommandOutput | AssociateDRTRoleCommandOutput | AssociateHealthCheckCommandOutput | AssociateProactiveEngagementDetailsCommandOutput | CreateProtectionCommandOutput | CreateProtectionGroupCommandOutput | CreateSubscriptionCommandOutput | DeleteProtectionCommandOutput | DeleteProtectionGroupCommandOutput | DeleteSubscriptionCommandOutput | DescribeAttackCommandOutput | DescribeAttackStatisticsCommandOutput | DescribeDRTAccessCommandOutput | DescribeEmergencyContactSettingsCommandOutput | DescribeProtectionCommandOutput | DescribeProtectionGroupCommandOutput | DescribeSubscriptionCommandOutput | DisableApplicationLayerAutomaticResponseCommandOutput | DisableProactiveEngagementCommandOutput | DisassociateDRTLogBucketCommandOutput | DisassociateDRTRoleCommandOutput | DisassociateHealthCheckCommandOutput | EnableApplicationLayerAutomaticResponseCommandOutput | EnableProactiveEngagementCommandOutput | GetSubscriptionStateCommandOutput | ListAttacksCommandOutput | ListProtectionGroupsCommandOutput | ListProtectionsCommandOutput | ListResourcesInProtectionGroupCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationLayerAutomaticResponseCommandOutput | UpdateEmergencyContactSettingsCommandOutput | UpdateProtectionGroupCommandOutput | UpdateSubscriptionCommandOutput;
|
|
47
49
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
@@ -134,11 +136,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
134
136
|
* @internal
|
|
135
137
|
*/
|
|
136
138
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
137
|
-
/**
|
|
138
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
141
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
142
139
|
/**
|
|
143
140
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
144
141
|
* @internal
|
|
@@ -149,13 +146,13 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
149
146
|
*/
|
|
150
147
|
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
151
148
|
}
|
|
152
|
-
declare type ShieldClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig &
|
|
149
|
+
declare type ShieldClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
153
150
|
/**
|
|
154
151
|
* The configuration interface of ShieldClient class constructor that set the region, credentials and other options.
|
|
155
152
|
*/
|
|
156
153
|
export interface ShieldClientConfig extends ShieldClientConfigType {
|
|
157
154
|
}
|
|
158
|
-
declare type ShieldClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig &
|
|
155
|
+
declare type ShieldClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
159
156
|
/**
|
|
160
157
|
* The resolved configuration interface of ShieldClient class. This is resolved and normalized from the {@link ShieldClientConfig | constructor configuration interface}.
|
|
161
158
|
*/
|