@aws-sdk/client-waf 3.774.0 → 3.777.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/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/WAFClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/CreateByteMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/CreateGeoMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/CreateIPSetCommand.d.ts +12 -12
- package/dist-types/commands/CreateRateBasedRuleCommand.d.ts +1 -0
- package/dist-types/commands/CreateRegexMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +1 -0
- package/dist-types/commands/CreateRuleCommand.d.ts +15 -15
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +1 -0
- package/dist-types/commands/CreateSizeConstraintSetCommand.d.ts +15 -15
- package/dist-types/commands/CreateSqlInjectionMatchSetCommand.d.ts +13 -13
- package/dist-types/commands/CreateWebACLCommand.d.ts +20 -20
- package/dist-types/commands/CreateWebACLMigrationStackCommand.d.ts +1 -0
- package/dist-types/commands/CreateXssMatchSetCommand.d.ts +13 -13
- package/dist-types/commands/DeleteByteMatchSetCommand.d.ts +6 -6
- package/dist-types/commands/DeleteGeoMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/DeleteIPSetCommand.d.ts +6 -6
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteRateBasedRuleCommand.d.ts +1 -0
- package/dist-types/commands/DeleteRegexMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +1 -0
- package/dist-types/commands/DeleteRuleCommand.d.ts +6 -6
- package/dist-types/commands/DeleteRuleGroupCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSizeConstraintSetCommand.d.ts +6 -6
- package/dist-types/commands/DeleteSqlInjectionMatchSetCommand.d.ts +6 -6
- package/dist-types/commands/DeleteWebACLCommand.d.ts +6 -6
- package/dist-types/commands/DeleteXssMatchSetCommand.d.ts +6 -6
- package/dist-types/commands/GetByteMatchSetCommand.d.ts +14 -14
- package/dist-types/commands/GetChangeTokenCommand.d.ts +5 -5
- package/dist-types/commands/GetChangeTokenStatusCommand.d.ts +5 -5
- package/dist-types/commands/GetGeoMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/GetIPSetCommand.d.ts +10 -10
- package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetPermissionPolicyCommand.d.ts +1 -0
- package/dist-types/commands/GetRateBasedRuleCommand.d.ts +1 -0
- package/dist-types/commands/GetRateBasedRuleManagedKeysCommand.d.ts +1 -0
- package/dist-types/commands/GetRegexMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/GetRegexPatternSetCommand.d.ts +1 -0
- package/dist-types/commands/GetRuleCommand.d.ts +12 -12
- package/dist-types/commands/GetRuleGroupCommand.d.ts +1 -0
- package/dist-types/commands/GetSampledRequestsCommand.d.ts +1 -45
- package/dist-types/commands/GetSizeConstraintSetCommand.d.ts +13 -13
- package/dist-types/commands/GetSqlInjectionMatchSetCommand.d.ts +11 -11
- package/dist-types/commands/GetWebACLCommand.d.ts +15 -15
- package/dist-types/commands/GetXssMatchSetCommand.d.ts +11 -11
- package/dist-types/commands/ListActivatedRulesInRuleGroupCommand.d.ts +1 -0
- package/dist-types/commands/ListByteMatchSetsCommand.d.ts +1 -0
- package/dist-types/commands/ListGeoMatchSetsCommand.d.ts +1 -0
- package/dist-types/commands/ListIPSetsCommand.d.ts +7 -7
- package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListRateBasedRulesCommand.d.ts +1 -0
- package/dist-types/commands/ListRegexMatchSetsCommand.d.ts +1 -0
- package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +1 -0
- package/dist-types/commands/ListRuleGroupsCommand.d.ts +1 -0
- package/dist-types/commands/ListRulesCommand.d.ts +7 -7
- package/dist-types/commands/ListSizeConstraintSetsCommand.d.ts +7 -7
- package/dist-types/commands/ListSqlInjectionMatchSetsCommand.d.ts +7 -7
- package/dist-types/commands/ListSubscribedRuleGroupsCommand.d.ts +1 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/commands/ListWebACLsCommand.d.ts +7 -7
- package/dist-types/commands/ListXssMatchSetsCommand.d.ts +7 -7
- package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutPermissionPolicyCommand.d.ts +1 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UpdateByteMatchSetCommand.d.ts +15 -15
- package/dist-types/commands/UpdateGeoMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/UpdateIPSetCommand.d.ts +11 -11
- package/dist-types/commands/UpdateRateBasedRuleCommand.d.ts +1 -0
- package/dist-types/commands/UpdateRegexMatchSetCommand.d.ts +1 -0
- package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +1 -0
- package/dist-types/commands/UpdateRuleCommand.d.ts +12 -12
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSizeConstraintSetCommand.d.ts +14 -14
- package/dist-types/commands/UpdateSqlInjectionMatchSetCommand.d.ts +12 -12
- package/dist-types/commands/UpdateWebACLCommand.d.ts +15 -15
- package/dist-types/commands/UpdateXssMatchSetCommand.d.ts +12 -12
- package/package.json +33 -33
|
@@ -40,8 +40,6 @@ const defaultWAFHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultWAFHttpAuthSchemeProvider = defaultWAFHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -156,12 +156,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
156
156
|
|
|
157
157
|
// src/endpoint/EndpointParameters.ts
|
|
158
158
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
159
|
-
return {
|
|
160
|
-
...options,
|
|
159
|
+
return Object.assign(options, {
|
|
161
160
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
162
161
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
163
162
|
defaultSigningName: "waf"
|
|
164
|
-
};
|
|
163
|
+
});
|
|
165
164
|
}, "resolveClientEndpointParameters");
|
|
166
165
|
var commonParams = {
|
|
167
166
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -218,22 +217,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
218
217
|
}, "resolveHttpAuthRuntimeConfig");
|
|
219
218
|
|
|
220
219
|
// src/runtimeExtensions.ts
|
|
221
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
222
220
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
223
|
-
const extensionConfiguration =
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
221
|
+
const extensionConfiguration = Object.assign(
|
|
222
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
223
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
224
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
225
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
226
|
+
);
|
|
229
227
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
230
|
-
return
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
228
|
+
return Object.assign(
|
|
229
|
+
runtimeConfig,
|
|
230
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
231
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
232
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
233
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
234
|
+
);
|
|
237
235
|
}, "resolveRuntimeExtensions");
|
|
238
236
|
|
|
239
237
|
// src/WAFClient.ts
|
|
@@ -247,6 +245,8 @@ var WAFClient = class extends import_smithy_client.Client {
|
|
|
247
245
|
config;
|
|
248
246
|
constructor(...[configuration]) {
|
|
249
247
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
248
|
+
super(_config_0);
|
|
249
|
+
this.initConfig = _config_0;
|
|
250
250
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
251
251
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
252
252
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -255,7 +255,6 @@ var WAFClient = class extends import_smithy_client.Client {
|
|
|
255
255
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
256
256
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
257
257
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
258
|
-
super(_config_8);
|
|
259
258
|
this.config = _config_8;
|
|
260
259
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
261
260
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
package/dist-es/WAFClient.js
CHANGED
|
@@ -17,6 +17,8 @@ export class WAFClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class WAFClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultWAFHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "waf",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -158,6 +158,7 @@ declare const CreateByteMatchSetCommand_base: {
|
|
|
158
158
|
* @throws {@link WAFServiceException}
|
|
159
159
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
160
160
|
*
|
|
161
|
+
*
|
|
161
162
|
* @public
|
|
162
163
|
*/
|
|
163
164
|
export declare class CreateByteMatchSetCommand extends CreateByteMatchSetCommand_base {
|
|
@@ -150,6 +150,7 @@ declare const CreateGeoMatchSetCommand_base: {
|
|
|
150
150
|
* @throws {@link WAFServiceException}
|
|
151
151
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
152
152
|
*
|
|
153
|
+
*
|
|
153
154
|
* @public
|
|
154
155
|
*/
|
|
155
156
|
export declare class CreateGeoMatchSetCommand extends CreateGeoMatchSetCommand_base {
|
|
@@ -155,34 +155,34 @@ declare const CreateIPSetCommand_base: {
|
|
|
155
155
|
* @throws {@link WAFServiceException}
|
|
156
156
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
157
157
|
*
|
|
158
|
-
*
|
|
158
|
+
*
|
|
159
159
|
* @example To create an IP set
|
|
160
160
|
* ```javascript
|
|
161
161
|
* // The following example creates an IP match set named MyIPSetFriendlyName.
|
|
162
162
|
* const input = {
|
|
163
|
-
*
|
|
164
|
-
*
|
|
163
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
164
|
+
* Name: "MyIPSetFriendlyName"
|
|
165
165
|
* };
|
|
166
166
|
* const command = new CreateIPSetCommand(input);
|
|
167
167
|
* const response = await client.send(command);
|
|
168
|
-
* /* response
|
|
168
|
+
* /* response is
|
|
169
169
|
* {
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
170
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
171
|
+
* IPSet: {
|
|
172
|
+
* IPSetDescriptors: [
|
|
173
173
|
* {
|
|
174
|
-
*
|
|
175
|
-
*
|
|
174
|
+
* Type: "IPV4",
|
|
175
|
+
* Value: "192.0.2.44/32"
|
|
176
176
|
* }
|
|
177
177
|
* ],
|
|
178
|
-
*
|
|
179
|
-
*
|
|
178
|
+
* IPSetId: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
|
179
|
+
* Name: "MyIPSetFriendlyName"
|
|
180
180
|
* }
|
|
181
181
|
* }
|
|
182
182
|
* *\/
|
|
183
|
-
* // example id: createipset-1472501003122
|
|
184
183
|
* ```
|
|
185
184
|
*
|
|
185
|
+
* @public
|
|
186
186
|
*/
|
|
187
187
|
export declare class CreateIPSetCommand extends CreateIPSetCommand_base {
|
|
188
188
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -234,6 +234,7 @@ declare const CreateRateBasedRuleCommand_base: {
|
|
|
234
234
|
* @throws {@link WAFServiceException}
|
|
235
235
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
236
236
|
*
|
|
237
|
+
*
|
|
237
238
|
* @public
|
|
238
239
|
*/
|
|
239
240
|
export declare class CreateRateBasedRuleCommand extends CreateRateBasedRuleCommand_base {
|
|
@@ -114,6 +114,7 @@ declare const CreateRegexMatchSetCommand_base: {
|
|
|
114
114
|
* @throws {@link WAFServiceException}
|
|
115
115
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
116
116
|
*
|
|
117
|
+
*
|
|
117
118
|
* @public
|
|
118
119
|
*/
|
|
119
120
|
export declare class CreateRegexMatchSetCommand extends CreateRegexMatchSetCommand_base {
|
|
@@ -103,6 +103,7 @@ declare const CreateRegexPatternSetCommand_base: {
|
|
|
103
103
|
* @throws {@link WAFServiceException}
|
|
104
104
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
105
105
|
*
|
|
106
|
+
*
|
|
106
107
|
* @public
|
|
107
108
|
*/
|
|
108
109
|
export declare class CreateRegexPatternSetCommand extends CreateRegexPatternSetCommand_base {
|
|
@@ -188,37 +188,37 @@ declare const CreateRuleCommand_base: {
|
|
|
188
188
|
* @throws {@link WAFServiceException}
|
|
189
189
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
190
190
|
*
|
|
191
|
-
*
|
|
191
|
+
*
|
|
192
192
|
* @example To create a rule
|
|
193
193
|
* ```javascript
|
|
194
194
|
* // The following example creates a rule named WAFByteHeaderRule.
|
|
195
195
|
* const input = {
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
196
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
197
|
+
* MetricName: "WAFByteHeaderRule",
|
|
198
|
+
* Name: "WAFByteHeaderRule"
|
|
199
199
|
* };
|
|
200
200
|
* const command = new CreateRuleCommand(input);
|
|
201
201
|
* const response = await client.send(command);
|
|
202
|
-
* /* response
|
|
202
|
+
* /* response is
|
|
203
203
|
* {
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
204
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
205
|
+
* Rule: {
|
|
206
|
+
* MetricName: "WAFByteHeaderRule",
|
|
207
|
+
* Name: "WAFByteHeaderRule",
|
|
208
|
+
* Predicates: [
|
|
209
209
|
* {
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
210
|
+
* DataId: "MyByteMatchSetID",
|
|
211
|
+
* Negated: false,
|
|
212
|
+
* Type: "ByteMatch"
|
|
213
213
|
* }
|
|
214
214
|
* ],
|
|
215
|
-
*
|
|
215
|
+
* RuleId: "WAFRule-1-Example"
|
|
216
216
|
* }
|
|
217
217
|
* }
|
|
218
218
|
* *\/
|
|
219
|
-
* // example id: createrule-1474072675555
|
|
220
219
|
* ```
|
|
221
220
|
*
|
|
221
|
+
* @public
|
|
222
222
|
*/
|
|
223
223
|
export declare class CreateRuleCommand extends CreateRuleCommand_base {
|
|
224
224
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -112,6 +112,7 @@ declare const CreateRuleGroupCommand_base: {
|
|
|
112
112
|
* @throws {@link WAFServiceException}
|
|
113
113
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
114
114
|
*
|
|
115
|
+
*
|
|
115
116
|
* @public
|
|
116
117
|
*/
|
|
117
118
|
export declare class CreateRuleGroupCommand extends CreateRuleGroupCommand_base {
|
|
@@ -158,38 +158,38 @@ declare const CreateSizeConstraintSetCommand_base: {
|
|
|
158
158
|
* @throws {@link WAFServiceException}
|
|
159
159
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
160
160
|
*
|
|
161
|
-
*
|
|
161
|
+
*
|
|
162
162
|
* @example To create a size constraint
|
|
163
163
|
* ```javascript
|
|
164
164
|
* // The following example creates size constraint set named MySampleSizeConstraintSet.
|
|
165
165
|
* const input = {
|
|
166
|
-
*
|
|
167
|
-
*
|
|
166
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
167
|
+
* Name: "MySampleSizeConstraintSet"
|
|
168
168
|
* };
|
|
169
169
|
* const command = new CreateSizeConstraintSetCommand(input);
|
|
170
170
|
* const response = await client.send(command);
|
|
171
|
-
* /* response
|
|
171
|
+
* /* response is
|
|
172
172
|
* {
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
173
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
174
|
+
* SizeConstraintSet: {
|
|
175
|
+
* Name: "MySampleSizeConstraintSet",
|
|
176
|
+
* SizeConstraintSetId: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
|
177
|
+
* SizeConstraints: [
|
|
178
178
|
* {
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
179
|
+
* ComparisonOperator: "GT",
|
|
180
|
+
* FieldToMatch: {
|
|
181
|
+
* Type: "QUERY_STRING"
|
|
182
182
|
* },
|
|
183
|
-
*
|
|
184
|
-
*
|
|
183
|
+
* Size: 0,
|
|
184
|
+
* TextTransformation: "NONE"
|
|
185
185
|
* }
|
|
186
186
|
* ]
|
|
187
187
|
* }
|
|
188
188
|
* }
|
|
189
189
|
* *\/
|
|
190
|
-
* // example id: createsizeconstraint-1474299140754
|
|
191
190
|
* ```
|
|
192
191
|
*
|
|
192
|
+
* @public
|
|
193
193
|
*/
|
|
194
194
|
export declare class CreateSizeConstraintSetCommand extends CreateSizeConstraintSetCommand_base {
|
|
195
195
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -154,36 +154,36 @@ declare const CreateSqlInjectionMatchSetCommand_base: {
|
|
|
154
154
|
* @throws {@link WAFServiceException}
|
|
155
155
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
156
156
|
*
|
|
157
|
-
*
|
|
157
|
+
*
|
|
158
158
|
* @example To create a SQL injection match set
|
|
159
159
|
* ```javascript
|
|
160
160
|
* // The following example creates a SQL injection match set named MySQLInjectionMatchSet.
|
|
161
161
|
* const input = {
|
|
162
|
-
*
|
|
163
|
-
*
|
|
162
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
163
|
+
* Name: "MySQLInjectionMatchSet"
|
|
164
164
|
* };
|
|
165
165
|
* const command = new CreateSqlInjectionMatchSetCommand(input);
|
|
166
166
|
* const response = await client.send(command);
|
|
167
|
-
* /* response
|
|
167
|
+
* /* response is
|
|
168
168
|
* {
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
169
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
170
|
+
* SqlInjectionMatchSet: {
|
|
171
|
+
* Name: "MySQLInjectionMatchSet",
|
|
172
|
+
* SqlInjectionMatchSetId: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
|
173
|
+
* SqlInjectionMatchTuples: [
|
|
174
174
|
* {
|
|
175
|
-
*
|
|
176
|
-
*
|
|
175
|
+
* FieldToMatch: {
|
|
176
|
+
* Type: "QUERY_STRING"
|
|
177
177
|
* },
|
|
178
|
-
*
|
|
178
|
+
* TextTransformation: "URL_DECODE"
|
|
179
179
|
* }
|
|
180
180
|
* ]
|
|
181
181
|
* }
|
|
182
182
|
* }
|
|
183
183
|
* *\/
|
|
184
|
-
* // example id: createsqlinjectionmatchset-1474492796105
|
|
185
184
|
* ```
|
|
186
185
|
*
|
|
186
|
+
* @public
|
|
187
187
|
*/
|
|
188
188
|
export declare class CreateSqlInjectionMatchSetCommand extends CreateSqlInjectionMatchSetCommand_base {
|
|
189
189
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -197,45 +197,45 @@ declare const CreateWebACLCommand_base: {
|
|
|
197
197
|
* @throws {@link WAFServiceException}
|
|
198
198
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
199
199
|
*
|
|
200
|
-
*
|
|
200
|
+
*
|
|
201
201
|
* @example To create a web ACL
|
|
202
202
|
* ```javascript
|
|
203
203
|
* // The following example creates a web ACL named CreateExample.
|
|
204
204
|
* const input = {
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
205
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
206
|
+
* DefaultAction: {
|
|
207
|
+
* Type: "ALLOW"
|
|
208
208
|
* },
|
|
209
|
-
*
|
|
210
|
-
*
|
|
209
|
+
* MetricName: "CreateExample",
|
|
210
|
+
* Name: "CreateExample"
|
|
211
211
|
* };
|
|
212
212
|
* const command = new CreateWebACLCommand(input);
|
|
213
213
|
* const response = await client.send(command);
|
|
214
|
-
* /* response
|
|
214
|
+
* /* response is
|
|
215
215
|
* {
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
216
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
217
|
+
* WebACL: {
|
|
218
|
+
* DefaultAction: {
|
|
219
|
+
* Type: "ALLOW"
|
|
220
220
|
* },
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
221
|
+
* MetricName: "CreateExample",
|
|
222
|
+
* Name: "CreateExample",
|
|
223
|
+
* Rules: [
|
|
224
224
|
* {
|
|
225
|
-
*
|
|
226
|
-
*
|
|
225
|
+
* Action: {
|
|
226
|
+
* Type: "ALLOW"
|
|
227
227
|
* },
|
|
228
|
-
*
|
|
229
|
-
*
|
|
228
|
+
* Priority: 1,
|
|
229
|
+
* RuleId: "WAFRule-1-Example"
|
|
230
230
|
* }
|
|
231
231
|
* ],
|
|
232
|
-
*
|
|
232
|
+
* WebACLId: "example-46da-4444-5555-example"
|
|
233
233
|
* }
|
|
234
234
|
* }
|
|
235
235
|
* *\/
|
|
236
|
-
* // example id: createwebacl-1472061481310
|
|
237
236
|
* ```
|
|
238
237
|
*
|
|
238
|
+
* @public
|
|
239
239
|
*/
|
|
240
240
|
export declare class CreateWebACLCommand extends CreateWebACLCommand_base {
|
|
241
241
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -165,6 +165,7 @@ declare const CreateWebACLMigrationStackCommand_base: {
|
|
|
165
165
|
* @throws {@link WAFServiceException}
|
|
166
166
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
167
167
|
*
|
|
168
|
+
*
|
|
168
169
|
* @public
|
|
169
170
|
*/
|
|
170
171
|
export declare class CreateWebACLMigrationStackCommand extends CreateWebACLMigrationStackCommand_base {
|
|
@@ -154,36 +154,36 @@ declare const CreateXssMatchSetCommand_base: {
|
|
|
154
154
|
* @throws {@link WAFServiceException}
|
|
155
155
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
156
156
|
*
|
|
157
|
-
*
|
|
157
|
+
*
|
|
158
158
|
* @example To create an XSS match set
|
|
159
159
|
* ```javascript
|
|
160
160
|
* // The following example creates an XSS match set named MySampleXssMatchSet.
|
|
161
161
|
* const input = {
|
|
162
|
-
*
|
|
163
|
-
*
|
|
162
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
163
|
+
* Name: "MySampleXssMatchSet"
|
|
164
164
|
* };
|
|
165
165
|
* const command = new CreateXssMatchSetCommand(input);
|
|
166
166
|
* const response = await client.send(command);
|
|
167
|
-
* /* response
|
|
167
|
+
* /* response is
|
|
168
168
|
* {
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
169
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
170
|
+
* XssMatchSet: {
|
|
171
|
+
* Name: "MySampleXssMatchSet",
|
|
172
|
+
* XssMatchSetId: "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
|
|
173
|
+
* XssMatchTuples: [
|
|
174
174
|
* {
|
|
175
|
-
*
|
|
176
|
-
*
|
|
175
|
+
* FieldToMatch: {
|
|
176
|
+
* Type: "QUERY_STRING"
|
|
177
177
|
* },
|
|
178
|
-
*
|
|
178
|
+
* TextTransformation: "URL_DECODE"
|
|
179
179
|
* }
|
|
180
180
|
* ]
|
|
181
181
|
* }
|
|
182
182
|
* }
|
|
183
183
|
* *\/
|
|
184
|
-
* // example id: createxssmatchset-1474560868500
|
|
185
184
|
* ```
|
|
186
185
|
*
|
|
186
|
+
* @public
|
|
187
187
|
*/
|
|
188
188
|
export declare class CreateXssMatchSetCommand extends CreateXssMatchSetCommand_base {
|
|
189
189
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -119,24 +119,24 @@ declare const DeleteByteMatchSetCommand_base: {
|
|
|
119
119
|
* @throws {@link WAFServiceException}
|
|
120
120
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
121
121
|
*
|
|
122
|
-
*
|
|
122
|
+
*
|
|
123
123
|
* @example To delete a byte match set
|
|
124
124
|
* ```javascript
|
|
125
125
|
* // The following example deletes a byte match set with the ID exampleIDs3t-46da-4fdb-b8d5-abc321j569j5.
|
|
126
126
|
* const input = {
|
|
127
|
-
*
|
|
128
|
-
*
|
|
127
|
+
* ByteMatchSetId: "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
|
|
128
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
|
|
129
129
|
* };
|
|
130
130
|
* const command = new DeleteByteMatchSetCommand(input);
|
|
131
131
|
* const response = await client.send(command);
|
|
132
|
-
* /* response
|
|
132
|
+
* /* response is
|
|
133
133
|
* {
|
|
134
|
-
*
|
|
134
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
|
|
135
135
|
* }
|
|
136
136
|
* *\/
|
|
137
|
-
* // example id: deletebytematchset-1473367566229
|
|
138
137
|
* ```
|
|
139
138
|
*
|
|
139
|
+
* @public
|
|
140
140
|
*/
|
|
141
141
|
export declare class DeleteByteMatchSetCommand extends DeleteByteMatchSetCommand_base {
|
|
142
142
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -119,6 +119,7 @@ declare const DeleteGeoMatchSetCommand_base: {
|
|
|
119
119
|
* @throws {@link WAFServiceException}
|
|
120
120
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
121
121
|
*
|
|
122
|
+
*
|
|
122
123
|
* @public
|
|
123
124
|
*/
|
|
124
125
|
export declare class DeleteGeoMatchSetCommand extends DeleteGeoMatchSetCommand_base {
|
|
@@ -119,24 +119,24 @@ declare const DeleteIPSetCommand_base: {
|
|
|
119
119
|
* @throws {@link WAFServiceException}
|
|
120
120
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
121
121
|
*
|
|
122
|
-
*
|
|
122
|
+
*
|
|
123
123
|
* @example To delete an IP set
|
|
124
124
|
* ```javascript
|
|
125
125
|
* // The following example deletes an IP match set with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5.
|
|
126
126
|
* const input = {
|
|
127
|
-
*
|
|
128
|
-
*
|
|
127
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
|
|
128
|
+
* IPSetId: "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
|
|
129
129
|
* };
|
|
130
130
|
* const command = new DeleteIPSetCommand(input);
|
|
131
131
|
* const response = await client.send(command);
|
|
132
|
-
* /* response
|
|
132
|
+
* /* response is
|
|
133
133
|
* {
|
|
134
|
-
*
|
|
134
|
+
* ChangeToken: "abcd12f2-46da-4fdb-b8d5-fbd4c466928f"
|
|
135
135
|
* }
|
|
136
136
|
* *\/
|
|
137
|
-
* // example id: deleteipset-1472767434306
|
|
138
137
|
* ```
|
|
139
138
|
*
|
|
139
|
+
* @public
|
|
140
140
|
*/
|
|
141
141
|
export declare class DeleteIPSetCommand extends DeleteIPSetCommand_base {
|
|
142
142
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -70,6 +70,7 @@ declare const DeleteLoggingConfigurationCommand_base: {
|
|
|
70
70
|
* @throws {@link WAFServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
72
72
|
*
|
|
73
|
+
*
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class DeleteLoggingConfigurationCommand extends DeleteLoggingConfigurationCommand_base {
|
|
@@ -70,6 +70,7 @@ declare const DeletePermissionPolicyCommand_base: {
|
|
|
70
70
|
* @throws {@link WAFServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
72
72
|
*
|
|
73
|
+
*
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
75
76
|
export declare class DeletePermissionPolicyCommand extends DeletePermissionPolicyCommand_base {
|
|
@@ -129,6 +129,7 @@ declare const DeleteRateBasedRuleCommand_base: {
|
|
|
129
129
|
* @throws {@link WAFServiceException}
|
|
130
130
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
131
131
|
*
|
|
132
|
+
*
|
|
132
133
|
* @public
|
|
133
134
|
*/
|
|
134
135
|
export declare class DeleteRateBasedRuleCommand extends DeleteRateBasedRuleCommand_base {
|
|
@@ -119,6 +119,7 @@ declare const DeleteRegexMatchSetCommand_base: {
|
|
|
119
119
|
* @throws {@link WAFServiceException}
|
|
120
120
|
* <p>Base exception class for all service exceptions from WAF service.</p>
|
|
121
121
|
*
|
|
122
|
+
*
|
|
122
123
|
* @public
|
|
123
124
|
*/
|
|
124
125
|
export declare class DeleteRegexMatchSetCommand extends DeleteRegexMatchSetCommand_base {
|