@aws-sdk/client-wafv2 3.48.0 → 3.52.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 +35 -0
- package/dist-cjs/WAFV2.js +45 -0
- package/dist-cjs/commands/GenerateMobileSdkReleaseUrlCommand.js +36 -0
- package/dist-cjs/commands/GetMobileSdkReleaseCommand.js +36 -0
- package/dist-cjs/commands/ListMobileSdkReleasesCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +83 -4
- package/dist-cjs/protocols/Aws_json1_1.js +382 -2
- package/dist-es/WAFV2.js +45 -0
- package/dist-es/commands/GenerateMobileSdkReleaseUrlCommand.js +39 -0
- package/dist-es/commands/GetMobileSdkReleaseCommand.js +39 -0
- package/dist-es/commands/ListMobileSdkReleasesCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +56 -0
- package/dist-es/protocols/Aws_json1_1.js +391 -1
- package/dist-types/WAFV2.d.ts +24 -0
- package/dist-types/WAFV2Client.d.ts +5 -2
- package/dist-types/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +36 -0
- package/dist-types/commands/GetMobileSdkReleaseCommand.d.ts +36 -0
- package/dist-types/commands/ListMobileSdkReleasesCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +224 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/WAFV2.d.ts +15 -0
- package/dist-types/ts3.4/WAFV2Client.d.ts +5 -2
- package/dist-types/ts3.4/commands/GenerateMobileSdkReleaseUrlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMobileSdkReleaseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMobileSdkReleasesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
- package/package.json +40 -34
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateWebACLCommand = exports.deserializeAws_json1_1UpdateRuleGroupCommand = exports.deserializeAws_json1_1UpdateRegexPatternSetCommand = exports.deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand = exports.deserializeAws_json1_1UpdateIPSetCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1PutPermissionPolicyCommand = exports.deserializeAws_json1_1PutManagedRuleSetVersionsCommand = exports.deserializeAws_json1_1PutLoggingConfigurationCommand = exports.deserializeAws_json1_1ListWebACLsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListRuleGroupsCommand = exports.deserializeAws_json1_1ListResourcesForWebACLCommand = exports.deserializeAws_json1_1ListRegexPatternSetsCommand = exports.deserializeAws_json1_1ListManagedRuleSetsCommand = exports.deserializeAws_json1_1ListLoggingConfigurationsCommand = exports.deserializeAws_json1_1ListIPSetsCommand = exports.deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand = exports.deserializeAws_json1_1ListAvailableManagedRuleGroupsCommand = exports.deserializeAws_json1_1GetWebACLForResourceCommand = exports.deserializeAws_json1_1GetWebACLCommand = exports.deserializeAws_json1_1GetSampledRequestsCommand = exports.deserializeAws_json1_1GetRuleGroupCommand = exports.deserializeAws_json1_1GetRegexPatternSetCommand = exports.deserializeAws_json1_1GetRateBasedStatementManagedKeysCommand = exports.deserializeAws_json1_1GetPermissionPolicyCommand = exports.deserializeAws_json1_1GetManagedRuleSetCommand = exports.deserializeAws_json1_1GetLoggingConfigurationCommand = exports.deserializeAws_json1_1GetIPSetCommand = exports.deserializeAws_json1_1DisassociateWebACLCommand = exports.deserializeAws_json1_1DescribeManagedRuleGroupCommand = exports.deserializeAws_json1_1DeleteWebACLCommand = exports.deserializeAws_json1_1DeleteRuleGroupCommand = exports.deserializeAws_json1_1DeleteRegexPatternSetCommand = exports.deserializeAws_json1_1DeletePermissionPolicyCommand = exports.deserializeAws_json1_1DeleteLoggingConfigurationCommand = exports.deserializeAws_json1_1DeleteIPSetCommand = exports.deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommand = exports.deserializeAws_json1_1CreateWebACLCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1CheckCapacityCommand = exports.deserializeAws_json1_1AssociateWebACLCommand = exports.serializeAws_json1_1UpdateWebACLCommand = exports.serializeAws_json1_1UpdateRuleGroupCommand = exports.serializeAws_json1_1UpdateRegexPatternSetCommand = exports.serializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand = exports.serializeAws_json1_1UpdateIPSetCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1PutPermissionPolicyCommand = exports.serializeAws_json1_1PutManagedRuleSetVersionsCommand = exports.serializeAws_json1_1PutLoggingConfigurationCommand = exports.serializeAws_json1_1ListWebACLsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListRuleGroupsCommand = exports.serializeAws_json1_1ListResourcesForWebACLCommand = exports.serializeAws_json1_1ListRegexPatternSetsCommand = exports.serializeAws_json1_1ListMobileSdkReleasesCommand = exports.serializeAws_json1_1ListManagedRuleSetsCommand = exports.serializeAws_json1_1ListLoggingConfigurationsCommand = exports.serializeAws_json1_1ListIPSetsCommand = exports.serializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand = exports.serializeAws_json1_1ListAvailableManagedRuleGroupsCommand = exports.serializeAws_json1_1GetWebACLForResourceCommand = exports.serializeAws_json1_1GetWebACLCommand = exports.serializeAws_json1_1GetSampledRequestsCommand = exports.serializeAws_json1_1GetRuleGroupCommand = exports.serializeAws_json1_1GetRegexPatternSetCommand = exports.serializeAws_json1_1GetRateBasedStatementManagedKeysCommand = exports.serializeAws_json1_1GetPermissionPolicyCommand = exports.serializeAws_json1_1GetMobileSdkReleaseCommand = exports.serializeAws_json1_1GetManagedRuleSetCommand = exports.serializeAws_json1_1GetLoggingConfigurationCommand = exports.serializeAws_json1_1GetIPSetCommand = exports.serializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = exports.serializeAws_json1_1DisassociateWebACLCommand = exports.serializeAws_json1_1DescribeManagedRuleGroupCommand = exports.serializeAws_json1_1DeleteWebACLCommand = exports.serializeAws_json1_1DeleteRuleGroupCommand = exports.serializeAws_json1_1DeleteRegexPatternSetCommand = exports.serializeAws_json1_1DeletePermissionPolicyCommand = exports.serializeAws_json1_1DeleteLoggingConfigurationCommand = exports.serializeAws_json1_1DeleteIPSetCommand = exports.serializeAws_json1_1DeleteFirewallManagerRuleGroupsCommand = exports.serializeAws_json1_1CreateWebACLCommand = exports.serializeAws_json1_1CreateRuleGroupCommand = exports.serializeAws_json1_1CreateRegexPatternSetCommand = exports.serializeAws_json1_1CreateIPSetCommand = exports.serializeAws_json1_1CheckCapacityCommand = exports.serializeAws_json1_1AssociateWebACLCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateWebACLCommand = exports.deserializeAws_json1_1UpdateRuleGroupCommand = exports.deserializeAws_json1_1UpdateRegexPatternSetCommand = exports.deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand = exports.deserializeAws_json1_1UpdateIPSetCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1PutPermissionPolicyCommand = exports.deserializeAws_json1_1PutManagedRuleSetVersionsCommand = exports.deserializeAws_json1_1PutLoggingConfigurationCommand = exports.deserializeAws_json1_1ListWebACLsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListRuleGroupsCommand = exports.deserializeAws_json1_1ListResourcesForWebACLCommand = exports.deserializeAws_json1_1ListRegexPatternSetsCommand = exports.deserializeAws_json1_1ListMobileSdkReleasesCommand = exports.deserializeAws_json1_1ListManagedRuleSetsCommand = exports.deserializeAws_json1_1ListLoggingConfigurationsCommand = exports.deserializeAws_json1_1ListIPSetsCommand = exports.deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand = exports.deserializeAws_json1_1ListAvailableManagedRuleGroupsCommand = exports.deserializeAws_json1_1GetWebACLForResourceCommand = exports.deserializeAws_json1_1GetWebACLCommand = exports.deserializeAws_json1_1GetSampledRequestsCommand = exports.deserializeAws_json1_1GetRuleGroupCommand = exports.deserializeAws_json1_1GetRegexPatternSetCommand = exports.deserializeAws_json1_1GetRateBasedStatementManagedKeysCommand = exports.deserializeAws_json1_1GetPermissionPolicyCommand = exports.deserializeAws_json1_1GetMobileSdkReleaseCommand = exports.deserializeAws_json1_1GetManagedRuleSetCommand = exports.deserializeAws_json1_1GetLoggingConfigurationCommand = exports.deserializeAws_json1_1GetIPSetCommand = exports.deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = exports.deserializeAws_json1_1DisassociateWebACLCommand = exports.deserializeAws_json1_1DescribeManagedRuleGroupCommand = exports.deserializeAws_json1_1DeleteWebACLCommand = exports.deserializeAws_json1_1DeleteRuleGroupCommand = exports.deserializeAws_json1_1DeleteRegexPatternSetCommand = exports.deserializeAws_json1_1DeletePermissionPolicyCommand = exports.deserializeAws_json1_1DeleteLoggingConfigurationCommand = exports.deserializeAws_json1_1DeleteIPSetCommand = exports.deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommand = exports.deserializeAws_json1_1CreateWebACLCommand = exports.deserializeAws_json1_1CreateRuleGroupCommand = exports.deserializeAws_json1_1CreateRegexPatternSetCommand = exports.deserializeAws_json1_1CreateIPSetCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const serializeAws_json1_1AssociateWebACLCommand = async (input, context) => {
|
|
@@ -154,6 +154,16 @@ const serializeAws_json1_1DisassociateWebACLCommand = async (input, context) =>
|
|
|
154
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
155
|
};
|
|
156
156
|
exports.serializeAws_json1_1DisassociateWebACLCommand = serializeAws_json1_1DisassociateWebACLCommand;
|
|
157
|
+
const serializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = async (input, context) => {
|
|
158
|
+
const headers = {
|
|
159
|
+
"content-type": "application/x-amz-json-1.1",
|
|
160
|
+
"x-amz-target": "AWSWAF_20190729.GenerateMobileSdkReleaseUrl",
|
|
161
|
+
};
|
|
162
|
+
let body;
|
|
163
|
+
body = JSON.stringify(serializeAws_json1_1GenerateMobileSdkReleaseUrlRequest(input, context));
|
|
164
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
165
|
+
};
|
|
166
|
+
exports.serializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = serializeAws_json1_1GenerateMobileSdkReleaseUrlCommand;
|
|
157
167
|
const serializeAws_json1_1GetIPSetCommand = async (input, context) => {
|
|
158
168
|
const headers = {
|
|
159
169
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -184,6 +194,16 @@ const serializeAws_json1_1GetManagedRuleSetCommand = async (input, context) => {
|
|
|
184
194
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
195
|
};
|
|
186
196
|
exports.serializeAws_json1_1GetManagedRuleSetCommand = serializeAws_json1_1GetManagedRuleSetCommand;
|
|
197
|
+
const serializeAws_json1_1GetMobileSdkReleaseCommand = async (input, context) => {
|
|
198
|
+
const headers = {
|
|
199
|
+
"content-type": "application/x-amz-json-1.1",
|
|
200
|
+
"x-amz-target": "AWSWAF_20190729.GetMobileSdkRelease",
|
|
201
|
+
};
|
|
202
|
+
let body;
|
|
203
|
+
body = JSON.stringify(serializeAws_json1_1GetMobileSdkReleaseRequest(input, context));
|
|
204
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
+
};
|
|
206
|
+
exports.serializeAws_json1_1GetMobileSdkReleaseCommand = serializeAws_json1_1GetMobileSdkReleaseCommand;
|
|
187
207
|
const serializeAws_json1_1GetPermissionPolicyCommand = async (input, context) => {
|
|
188
208
|
const headers = {
|
|
189
209
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -304,6 +324,16 @@ const serializeAws_json1_1ListManagedRuleSetsCommand = async (input, context) =>
|
|
|
304
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
325
|
};
|
|
306
326
|
exports.serializeAws_json1_1ListManagedRuleSetsCommand = serializeAws_json1_1ListManagedRuleSetsCommand;
|
|
327
|
+
const serializeAws_json1_1ListMobileSdkReleasesCommand = async (input, context) => {
|
|
328
|
+
const headers = {
|
|
329
|
+
"content-type": "application/x-amz-json-1.1",
|
|
330
|
+
"x-amz-target": "AWSWAF_20190729.ListMobileSdkReleases",
|
|
331
|
+
};
|
|
332
|
+
let body;
|
|
333
|
+
body = JSON.stringify(serializeAws_json1_1ListMobileSdkReleasesRequest(input, context));
|
|
334
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
335
|
+
};
|
|
336
|
+
exports.serializeAws_json1_1ListMobileSdkReleasesCommand = serializeAws_json1_1ListMobileSdkReleasesCommand;
|
|
307
337
|
const serializeAws_json1_1ListRegexPatternSetsCommand = async (input, context) => {
|
|
308
338
|
const headers = {
|
|
309
339
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1895,6 +1925,77 @@ const deserializeAws_json1_1DisassociateWebACLCommandError = async (output, cont
|
|
|
1895
1925
|
delete response.Message;
|
|
1896
1926
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1897
1927
|
};
|
|
1928
|
+
const deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = async (output, context) => {
|
|
1929
|
+
if (output.statusCode >= 300) {
|
|
1930
|
+
return deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError(output, context);
|
|
1931
|
+
}
|
|
1932
|
+
const data = await parseBody(output.body, context);
|
|
1933
|
+
let contents = {};
|
|
1934
|
+
contents = deserializeAws_json1_1GenerateMobileSdkReleaseUrlResponse(data, context);
|
|
1935
|
+
const response = {
|
|
1936
|
+
$metadata: deserializeMetadata(output),
|
|
1937
|
+
...contents,
|
|
1938
|
+
};
|
|
1939
|
+
return Promise.resolve(response);
|
|
1940
|
+
};
|
|
1941
|
+
exports.deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommand;
|
|
1942
|
+
const deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = async (output, context) => {
|
|
1943
|
+
const parsedOutput = {
|
|
1944
|
+
...output,
|
|
1945
|
+
body: await parseBody(output.body, context),
|
|
1946
|
+
};
|
|
1947
|
+
let response;
|
|
1948
|
+
let errorCode = "UnknownError";
|
|
1949
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
+
switch (errorCode) {
|
|
1951
|
+
case "WAFInternalErrorException":
|
|
1952
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1953
|
+
response = {
|
|
1954
|
+
...(await deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context)),
|
|
1955
|
+
name: errorCode,
|
|
1956
|
+
$metadata: deserializeMetadata(output),
|
|
1957
|
+
};
|
|
1958
|
+
break;
|
|
1959
|
+
case "WAFInvalidOperationException":
|
|
1960
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1961
|
+
response = {
|
|
1962
|
+
...(await deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
1963
|
+
name: errorCode,
|
|
1964
|
+
$metadata: deserializeMetadata(output),
|
|
1965
|
+
};
|
|
1966
|
+
break;
|
|
1967
|
+
case "WAFInvalidParameterException":
|
|
1968
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1969
|
+
response = {
|
|
1970
|
+
...(await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1971
|
+
name: errorCode,
|
|
1972
|
+
$metadata: deserializeMetadata(output),
|
|
1973
|
+
};
|
|
1974
|
+
break;
|
|
1975
|
+
case "WAFNonexistentItemException":
|
|
1976
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1977
|
+
response = {
|
|
1978
|
+
...(await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context)),
|
|
1979
|
+
name: errorCode,
|
|
1980
|
+
$metadata: deserializeMetadata(output),
|
|
1981
|
+
};
|
|
1982
|
+
break;
|
|
1983
|
+
default:
|
|
1984
|
+
const parsedBody = parsedOutput.body;
|
|
1985
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1986
|
+
response = {
|
|
1987
|
+
...parsedBody,
|
|
1988
|
+
name: `${errorCode}`,
|
|
1989
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1990
|
+
$fault: "client",
|
|
1991
|
+
$metadata: deserializeMetadata(output),
|
|
1992
|
+
};
|
|
1993
|
+
}
|
|
1994
|
+
const message = response.message || response.Message || errorCode;
|
|
1995
|
+
response.message = message;
|
|
1996
|
+
delete response.Message;
|
|
1997
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1998
|
+
};
|
|
1898
1999
|
const deserializeAws_json1_1GetIPSetCommand = async (output, context) => {
|
|
1899
2000
|
if (output.statusCode >= 300) {
|
|
1900
2001
|
return deserializeAws_json1_1GetIPSetCommandError(output, context);
|
|
@@ -2108,6 +2209,77 @@ const deserializeAws_json1_1GetManagedRuleSetCommandError = async (output, conte
|
|
|
2108
2209
|
delete response.Message;
|
|
2109
2210
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2110
2211
|
};
|
|
2212
|
+
const deserializeAws_json1_1GetMobileSdkReleaseCommand = async (output, context) => {
|
|
2213
|
+
if (output.statusCode >= 300) {
|
|
2214
|
+
return deserializeAws_json1_1GetMobileSdkReleaseCommandError(output, context);
|
|
2215
|
+
}
|
|
2216
|
+
const data = await parseBody(output.body, context);
|
|
2217
|
+
let contents = {};
|
|
2218
|
+
contents = deserializeAws_json1_1GetMobileSdkReleaseResponse(data, context);
|
|
2219
|
+
const response = {
|
|
2220
|
+
$metadata: deserializeMetadata(output),
|
|
2221
|
+
...contents,
|
|
2222
|
+
};
|
|
2223
|
+
return Promise.resolve(response);
|
|
2224
|
+
};
|
|
2225
|
+
exports.deserializeAws_json1_1GetMobileSdkReleaseCommand = deserializeAws_json1_1GetMobileSdkReleaseCommand;
|
|
2226
|
+
const deserializeAws_json1_1GetMobileSdkReleaseCommandError = async (output, context) => {
|
|
2227
|
+
const parsedOutput = {
|
|
2228
|
+
...output,
|
|
2229
|
+
body: await parseBody(output.body, context),
|
|
2230
|
+
};
|
|
2231
|
+
let response;
|
|
2232
|
+
let errorCode = "UnknownError";
|
|
2233
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
|
+
switch (errorCode) {
|
|
2235
|
+
case "WAFInternalErrorException":
|
|
2236
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2237
|
+
response = {
|
|
2238
|
+
...(await deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context)),
|
|
2239
|
+
name: errorCode,
|
|
2240
|
+
$metadata: deserializeMetadata(output),
|
|
2241
|
+
};
|
|
2242
|
+
break;
|
|
2243
|
+
case "WAFInvalidOperationException":
|
|
2244
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2245
|
+
response = {
|
|
2246
|
+
...(await deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
2247
|
+
name: errorCode,
|
|
2248
|
+
$metadata: deserializeMetadata(output),
|
|
2249
|
+
};
|
|
2250
|
+
break;
|
|
2251
|
+
case "WAFInvalidParameterException":
|
|
2252
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2253
|
+
response = {
|
|
2254
|
+
...(await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2255
|
+
name: errorCode,
|
|
2256
|
+
$metadata: deserializeMetadata(output),
|
|
2257
|
+
};
|
|
2258
|
+
break;
|
|
2259
|
+
case "WAFNonexistentItemException":
|
|
2260
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2261
|
+
response = {
|
|
2262
|
+
...(await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context)),
|
|
2263
|
+
name: errorCode,
|
|
2264
|
+
$metadata: deserializeMetadata(output),
|
|
2265
|
+
};
|
|
2266
|
+
break;
|
|
2267
|
+
default:
|
|
2268
|
+
const parsedBody = parsedOutput.body;
|
|
2269
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2270
|
+
response = {
|
|
2271
|
+
...parsedBody,
|
|
2272
|
+
name: `${errorCode}`,
|
|
2273
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2274
|
+
$fault: "client",
|
|
2275
|
+
$metadata: deserializeMetadata(output),
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
const message = response.message || response.Message || errorCode;
|
|
2279
|
+
response.message = message;
|
|
2280
|
+
delete response.Message;
|
|
2281
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2282
|
+
};
|
|
2111
2283
|
const deserializeAws_json1_1GetPermissionPolicyCommand = async (output, context) => {
|
|
2112
2284
|
if (output.statusCode >= 300) {
|
|
2113
2285
|
return deserializeAws_json1_1GetPermissionPolicyCommandError(output, context);
|
|
@@ -2912,6 +3084,69 @@ const deserializeAws_json1_1ListManagedRuleSetsCommandError = async (output, con
|
|
|
2912
3084
|
delete response.Message;
|
|
2913
3085
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2914
3086
|
};
|
|
3087
|
+
const deserializeAws_json1_1ListMobileSdkReleasesCommand = async (output, context) => {
|
|
3088
|
+
if (output.statusCode >= 300) {
|
|
3089
|
+
return deserializeAws_json1_1ListMobileSdkReleasesCommandError(output, context);
|
|
3090
|
+
}
|
|
3091
|
+
const data = await parseBody(output.body, context);
|
|
3092
|
+
let contents = {};
|
|
3093
|
+
contents = deserializeAws_json1_1ListMobileSdkReleasesResponse(data, context);
|
|
3094
|
+
const response = {
|
|
3095
|
+
$metadata: deserializeMetadata(output),
|
|
3096
|
+
...contents,
|
|
3097
|
+
};
|
|
3098
|
+
return Promise.resolve(response);
|
|
3099
|
+
};
|
|
3100
|
+
exports.deserializeAws_json1_1ListMobileSdkReleasesCommand = deserializeAws_json1_1ListMobileSdkReleasesCommand;
|
|
3101
|
+
const deserializeAws_json1_1ListMobileSdkReleasesCommandError = async (output, context) => {
|
|
3102
|
+
const parsedOutput = {
|
|
3103
|
+
...output,
|
|
3104
|
+
body: await parseBody(output.body, context),
|
|
3105
|
+
};
|
|
3106
|
+
let response;
|
|
3107
|
+
let errorCode = "UnknownError";
|
|
3108
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3109
|
+
switch (errorCode) {
|
|
3110
|
+
case "WAFInternalErrorException":
|
|
3111
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3112
|
+
response = {
|
|
3113
|
+
...(await deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context)),
|
|
3114
|
+
name: errorCode,
|
|
3115
|
+
$metadata: deserializeMetadata(output),
|
|
3116
|
+
};
|
|
3117
|
+
break;
|
|
3118
|
+
case "WAFInvalidOperationException":
|
|
3119
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3120
|
+
response = {
|
|
3121
|
+
...(await deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
3122
|
+
name: errorCode,
|
|
3123
|
+
$metadata: deserializeMetadata(output),
|
|
3124
|
+
};
|
|
3125
|
+
break;
|
|
3126
|
+
case "WAFInvalidParameterException":
|
|
3127
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3128
|
+
response = {
|
|
3129
|
+
...(await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3130
|
+
name: errorCode,
|
|
3131
|
+
$metadata: deserializeMetadata(output),
|
|
3132
|
+
};
|
|
3133
|
+
break;
|
|
3134
|
+
default:
|
|
3135
|
+
const parsedBody = parsedOutput.body;
|
|
3136
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3137
|
+
response = {
|
|
3138
|
+
...parsedBody,
|
|
3139
|
+
name: `${errorCode}`,
|
|
3140
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3141
|
+
$fault: "client",
|
|
3142
|
+
$metadata: deserializeMetadata(output),
|
|
3143
|
+
};
|
|
3144
|
+
}
|
|
3145
|
+
const message = response.message || response.Message || errorCode;
|
|
3146
|
+
response.message = message;
|
|
3147
|
+
delete response.Message;
|
|
3148
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3149
|
+
};
|
|
2915
3150
|
const deserializeAws_json1_1ListRegexPatternSetsCommand = async (output, context) => {
|
|
2916
3151
|
if (output.statusCode >= 300) {
|
|
2917
3152
|
return deserializeAws_json1_1ListRegexPatternSetsCommandError(output, context);
|
|
@@ -4761,6 +4996,13 @@ const serializeAws_json1_1ForwardedIPConfig = (input, context) => {
|
|
|
4761
4996
|
...(input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName }),
|
|
4762
4997
|
};
|
|
4763
4998
|
};
|
|
4999
|
+
const serializeAws_json1_1GenerateMobileSdkReleaseUrlRequest = (input, context) => {
|
|
5000
|
+
return {
|
|
5001
|
+
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
5002
|
+
...(input.ReleaseVersion !== undefined &&
|
|
5003
|
+
input.ReleaseVersion !== null && { ReleaseVersion: input.ReleaseVersion }),
|
|
5004
|
+
};
|
|
5005
|
+
};
|
|
4764
5006
|
const serializeAws_json1_1GeoMatchStatement = (input, context) => {
|
|
4765
5007
|
return {
|
|
4766
5008
|
...(input.CountryCodes !== undefined &&
|
|
@@ -4790,6 +5032,13 @@ const serializeAws_json1_1GetManagedRuleSetRequest = (input, context) => {
|
|
|
4790
5032
|
...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
|
|
4791
5033
|
};
|
|
4792
5034
|
};
|
|
5035
|
+
const serializeAws_json1_1GetMobileSdkReleaseRequest = (input, context) => {
|
|
5036
|
+
return {
|
|
5037
|
+
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
5038
|
+
...(input.ReleaseVersion !== undefined &&
|
|
5039
|
+
input.ReleaseVersion !== null && { ReleaseVersion: input.ReleaseVersion }),
|
|
5040
|
+
};
|
|
5041
|
+
};
|
|
4793
5042
|
const serializeAws_json1_1GetPermissionPolicyRequest = (input, context) => {
|
|
4794
5043
|
return {
|
|
4795
5044
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
@@ -4968,6 +5217,13 @@ const serializeAws_json1_1ListManagedRuleSetsRequest = (input, context) => {
|
|
|
4968
5217
|
...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
|
|
4969
5218
|
};
|
|
4970
5219
|
};
|
|
5220
|
+
const serializeAws_json1_1ListMobileSdkReleasesRequest = (input, context) => {
|
|
5221
|
+
return {
|
|
5222
|
+
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
5223
|
+
...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
|
|
5224
|
+
...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
|
|
5225
|
+
};
|
|
5226
|
+
};
|
|
4971
5227
|
const serializeAws_json1_1ListRegexPatternSetsRequest = (input, context) => {
|
|
4972
5228
|
return {
|
|
4973
5229
|
...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
|
|
@@ -5039,12 +5295,40 @@ const serializeAws_json1_1LoggingFilter = (input, context) => {
|
|
|
5039
5295
|
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
5040
5296
|
};
|
|
5041
5297
|
};
|
|
5298
|
+
const serializeAws_json1_1ManagedRuleGroupConfig = (input, context) => {
|
|
5299
|
+
return {
|
|
5300
|
+
...(input.LoginPath !== undefined && input.LoginPath !== null && { LoginPath: input.LoginPath }),
|
|
5301
|
+
...(input.PasswordField !== undefined &&
|
|
5302
|
+
input.PasswordField !== null && {
|
|
5303
|
+
PasswordField: serializeAws_json1_1PasswordField(input.PasswordField, context),
|
|
5304
|
+
}),
|
|
5305
|
+
...(input.PayloadType !== undefined && input.PayloadType !== null && { PayloadType: input.PayloadType }),
|
|
5306
|
+
...(input.UsernameField !== undefined &&
|
|
5307
|
+
input.UsernameField !== null && {
|
|
5308
|
+
UsernameField: serializeAws_json1_1UsernameField(input.UsernameField, context),
|
|
5309
|
+
}),
|
|
5310
|
+
};
|
|
5311
|
+
};
|
|
5312
|
+
const serializeAws_json1_1ManagedRuleGroupConfigs = (input, context) => {
|
|
5313
|
+
return input
|
|
5314
|
+
.filter((e) => e != null)
|
|
5315
|
+
.map((entry) => {
|
|
5316
|
+
if (entry === null) {
|
|
5317
|
+
return null;
|
|
5318
|
+
}
|
|
5319
|
+
return serializeAws_json1_1ManagedRuleGroupConfig(entry, context);
|
|
5320
|
+
});
|
|
5321
|
+
};
|
|
5042
5322
|
const serializeAws_json1_1ManagedRuleGroupStatement = (input, context) => {
|
|
5043
5323
|
return {
|
|
5044
5324
|
...(input.ExcludedRules !== undefined &&
|
|
5045
5325
|
input.ExcludedRules !== null && {
|
|
5046
5326
|
ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
|
|
5047
5327
|
}),
|
|
5328
|
+
...(input.ManagedRuleGroupConfigs !== undefined &&
|
|
5329
|
+
input.ManagedRuleGroupConfigs !== null && {
|
|
5330
|
+
ManagedRuleGroupConfigs: serializeAws_json1_1ManagedRuleGroupConfigs(input.ManagedRuleGroupConfigs, context),
|
|
5331
|
+
}),
|
|
5048
5332
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5049
5333
|
...(input.ScopeDownStatement !== undefined &&
|
|
5050
5334
|
input.ScopeDownStatement !== null && {
|
|
@@ -5080,6 +5364,11 @@ const serializeAws_json1_1OverrideAction = (input, context) => {
|
|
|
5080
5364
|
input.None !== null && { None: serializeAws_json1_1NoneAction(input.None, context) }),
|
|
5081
5365
|
};
|
|
5082
5366
|
};
|
|
5367
|
+
const serializeAws_json1_1PasswordField = (input, context) => {
|
|
5368
|
+
return {
|
|
5369
|
+
...(input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }),
|
|
5370
|
+
};
|
|
5371
|
+
};
|
|
5083
5372
|
const serializeAws_json1_1PutLoggingConfigurationRequest = (input, context) => {
|
|
5084
5373
|
return {
|
|
5085
5374
|
...(input.LoggingConfiguration !== undefined &&
|
|
@@ -5477,6 +5766,11 @@ const serializeAws_json1_1UpdateWebACLRequest = (input, context) => {
|
|
|
5477
5766
|
const serializeAws_json1_1UriPath = (input, context) => {
|
|
5478
5767
|
return {};
|
|
5479
5768
|
};
|
|
5769
|
+
const serializeAws_json1_1UsernameField = (input, context) => {
|
|
5770
|
+
return {
|
|
5771
|
+
...(input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }),
|
|
5772
|
+
};
|
|
5773
|
+
};
|
|
5480
5774
|
const serializeAws_json1_1VersionsToPublish = (input, context) => {
|
|
5481
5775
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5482
5776
|
if (value === null) {
|
|
@@ -5861,6 +6155,11 @@ const deserializeAws_json1_1ForwardedIPConfig = (output, context) => {
|
|
|
5861
6155
|
HeaderName: smithy_client_1.expectString(output.HeaderName),
|
|
5862
6156
|
};
|
|
5863
6157
|
};
|
|
6158
|
+
const deserializeAws_json1_1GenerateMobileSdkReleaseUrlResponse = (output, context) => {
|
|
6159
|
+
return {
|
|
6160
|
+
Url: smithy_client_1.expectString(output.Url),
|
|
6161
|
+
};
|
|
6162
|
+
};
|
|
5864
6163
|
const deserializeAws_json1_1GeoMatchStatement = (output, context) => {
|
|
5865
6164
|
return {
|
|
5866
6165
|
CountryCodes: output.CountryCodes !== undefined && output.CountryCodes !== null
|
|
@@ -5894,6 +6193,13 @@ const deserializeAws_json1_1GetManagedRuleSetResponse = (output, context) => {
|
|
|
5894
6193
|
: undefined,
|
|
5895
6194
|
};
|
|
5896
6195
|
};
|
|
6196
|
+
const deserializeAws_json1_1GetMobileSdkReleaseResponse = (output, context) => {
|
|
6197
|
+
return {
|
|
6198
|
+
MobileSdkRelease: output.MobileSdkRelease !== undefined && output.MobileSdkRelease !== null
|
|
6199
|
+
? deserializeAws_json1_1MobileSdkRelease(output.MobileSdkRelease, context)
|
|
6200
|
+
: undefined,
|
|
6201
|
+
};
|
|
6202
|
+
};
|
|
5897
6203
|
const deserializeAws_json1_1GetPermissionPolicyResponse = (output, context) => {
|
|
5898
6204
|
return {
|
|
5899
6205
|
Policy: smithy_client_1.expectString(output.Policy),
|
|
@@ -5945,6 +6251,7 @@ const deserializeAws_json1_1GetWebACLForResourceResponse = (output, context) =>
|
|
|
5945
6251
|
};
|
|
5946
6252
|
const deserializeAws_json1_1GetWebACLResponse = (output, context) => {
|
|
5947
6253
|
return {
|
|
6254
|
+
ApplicationIntegrationURL: smithy_client_1.expectString(output.ApplicationIntegrationURL),
|
|
5948
6255
|
LockToken: smithy_client_1.expectString(output.LockToken),
|
|
5949
6256
|
WebACL: output.WebACL !== undefined && output.WebACL !== null
|
|
5950
6257
|
? deserializeAws_json1_1WebACL(output.WebACL, context)
|
|
@@ -6148,6 +6455,14 @@ const deserializeAws_json1_1ListManagedRuleSetsResponse = (output, context) => {
|
|
|
6148
6455
|
NextMarker: smithy_client_1.expectString(output.NextMarker),
|
|
6149
6456
|
};
|
|
6150
6457
|
};
|
|
6458
|
+
const deserializeAws_json1_1ListMobileSdkReleasesResponse = (output, context) => {
|
|
6459
|
+
return {
|
|
6460
|
+
NextMarker: smithy_client_1.expectString(output.NextMarker),
|
|
6461
|
+
ReleaseSummaries: output.ReleaseSummaries !== undefined && output.ReleaseSummaries !== null
|
|
6462
|
+
? deserializeAws_json1_1ReleaseSummaries(output.ReleaseSummaries, context)
|
|
6463
|
+
: undefined,
|
|
6464
|
+
};
|
|
6465
|
+
};
|
|
6151
6466
|
const deserializeAws_json1_1ListRegexPatternSetsResponse = (output, context) => {
|
|
6152
6467
|
return {
|
|
6153
6468
|
NextMarker: smithy_client_1.expectString(output.NextMarker),
|
|
@@ -6230,11 +6545,36 @@ const deserializeAws_json1_1LoggingFilter = (output, context) => {
|
|
|
6230
6545
|
: undefined,
|
|
6231
6546
|
};
|
|
6232
6547
|
};
|
|
6548
|
+
const deserializeAws_json1_1ManagedRuleGroupConfig = (output, context) => {
|
|
6549
|
+
return {
|
|
6550
|
+
LoginPath: smithy_client_1.expectString(output.LoginPath),
|
|
6551
|
+
PasswordField: output.PasswordField !== undefined && output.PasswordField !== null
|
|
6552
|
+
? deserializeAws_json1_1PasswordField(output.PasswordField, context)
|
|
6553
|
+
: undefined,
|
|
6554
|
+
PayloadType: smithy_client_1.expectString(output.PayloadType),
|
|
6555
|
+
UsernameField: output.UsernameField !== undefined && output.UsernameField !== null
|
|
6556
|
+
? deserializeAws_json1_1UsernameField(output.UsernameField, context)
|
|
6557
|
+
: undefined,
|
|
6558
|
+
};
|
|
6559
|
+
};
|
|
6560
|
+
const deserializeAws_json1_1ManagedRuleGroupConfigs = (output, context) => {
|
|
6561
|
+
return (output || [])
|
|
6562
|
+
.filter((e) => e != null)
|
|
6563
|
+
.map((entry) => {
|
|
6564
|
+
if (entry === null) {
|
|
6565
|
+
return null;
|
|
6566
|
+
}
|
|
6567
|
+
return deserializeAws_json1_1ManagedRuleGroupConfig(entry, context);
|
|
6568
|
+
});
|
|
6569
|
+
};
|
|
6233
6570
|
const deserializeAws_json1_1ManagedRuleGroupStatement = (output, context) => {
|
|
6234
6571
|
return {
|
|
6235
6572
|
ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
|
|
6236
6573
|
? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
|
|
6237
6574
|
: undefined,
|
|
6575
|
+
ManagedRuleGroupConfigs: output.ManagedRuleGroupConfigs !== undefined && output.ManagedRuleGroupConfigs !== null
|
|
6576
|
+
? deserializeAws_json1_1ManagedRuleGroupConfigs(output.ManagedRuleGroupConfigs, context)
|
|
6577
|
+
: undefined,
|
|
6238
6578
|
Name: smithy_client_1.expectString(output.Name),
|
|
6239
6579
|
ScopeDownStatement: output.ScopeDownStatement !== undefined && output.ScopeDownStatement !== null
|
|
6240
6580
|
? deserializeAws_json1_1Statement(output.ScopeDownStatement, context)
|
|
@@ -6330,6 +6670,18 @@ const deserializeAws_json1_1ManagedRuleSetVersion = (output, context) => {
|
|
|
6330
6670
|
const deserializeAws_json1_1Method = (output, context) => {
|
|
6331
6671
|
return {};
|
|
6332
6672
|
};
|
|
6673
|
+
const deserializeAws_json1_1MobileSdkRelease = (output, context) => {
|
|
6674
|
+
return {
|
|
6675
|
+
ReleaseNotes: smithy_client_1.expectString(output.ReleaseNotes),
|
|
6676
|
+
ReleaseVersion: smithy_client_1.expectString(output.ReleaseVersion),
|
|
6677
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
6678
|
+
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
6679
|
+
: undefined,
|
|
6680
|
+
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
6681
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Timestamp)))
|
|
6682
|
+
: undefined,
|
|
6683
|
+
};
|
|
6684
|
+
};
|
|
6333
6685
|
const deserializeAws_json1_1NoneAction = (output, context) => {
|
|
6334
6686
|
return {};
|
|
6335
6687
|
};
|
|
@@ -6357,6 +6709,11 @@ const deserializeAws_json1_1OverrideAction = (output, context) => {
|
|
|
6357
6709
|
: undefined,
|
|
6358
6710
|
};
|
|
6359
6711
|
};
|
|
6712
|
+
const deserializeAws_json1_1PasswordField = (output, context) => {
|
|
6713
|
+
return {
|
|
6714
|
+
Identifier: smithy_client_1.expectString(output.Identifier),
|
|
6715
|
+
};
|
|
6716
|
+
};
|
|
6360
6717
|
const deserializeAws_json1_1PublishedVersions = (output, context) => {
|
|
6361
6718
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6362
6719
|
if (value === null) {
|
|
@@ -6483,6 +6840,24 @@ const deserializeAws_json1_1RegularExpressionList = (output, context) => {
|
|
|
6483
6840
|
return deserializeAws_json1_1Regex(entry, context);
|
|
6484
6841
|
});
|
|
6485
6842
|
};
|
|
6843
|
+
const deserializeAws_json1_1ReleaseSummaries = (output, context) => {
|
|
6844
|
+
return (output || [])
|
|
6845
|
+
.filter((e) => e != null)
|
|
6846
|
+
.map((entry) => {
|
|
6847
|
+
if (entry === null) {
|
|
6848
|
+
return null;
|
|
6849
|
+
}
|
|
6850
|
+
return deserializeAws_json1_1ReleaseSummary(entry, context);
|
|
6851
|
+
});
|
|
6852
|
+
};
|
|
6853
|
+
const deserializeAws_json1_1ReleaseSummary = (output, context) => {
|
|
6854
|
+
return {
|
|
6855
|
+
ReleaseVersion: smithy_client_1.expectString(output.ReleaseVersion),
|
|
6856
|
+
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
6857
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Timestamp)))
|
|
6858
|
+
: undefined,
|
|
6859
|
+
};
|
|
6860
|
+
};
|
|
6486
6861
|
const deserializeAws_json1_1ResourceArns = (output, context) => {
|
|
6487
6862
|
return (output || [])
|
|
6488
6863
|
.filter((e) => e != null)
|
|
@@ -6825,6 +7200,11 @@ const deserializeAws_json1_1UpdateWebACLResponse = (output, context) => {
|
|
|
6825
7200
|
const deserializeAws_json1_1UriPath = (output, context) => {
|
|
6826
7201
|
return {};
|
|
6827
7202
|
};
|
|
7203
|
+
const deserializeAws_json1_1UsernameField = (output, context) => {
|
|
7204
|
+
return {
|
|
7205
|
+
Identifier: smithy_client_1.expectString(output.Identifier),
|
|
7206
|
+
};
|
|
7207
|
+
};
|
|
6828
7208
|
const deserializeAws_json1_1VisibilityConfig = (output, context) => {
|
|
6829
7209
|
return {
|
|
6830
7210
|
CloudWatchMetricsEnabled: smithy_client_1.expectBoolean(output.CloudWatchMetricsEnabled),
|
package/dist-es/WAFV2.js
CHANGED
|
@@ -14,9 +14,11 @@ import { DeleteRuleGroupCommand, } from "./commands/DeleteRuleGroupCommand";
|
|
|
14
14
|
import { DeleteWebACLCommand, } from "./commands/DeleteWebACLCommand";
|
|
15
15
|
import { DescribeManagedRuleGroupCommand, } from "./commands/DescribeManagedRuleGroupCommand";
|
|
16
16
|
import { DisassociateWebACLCommand, } from "./commands/DisassociateWebACLCommand";
|
|
17
|
+
import { GenerateMobileSdkReleaseUrlCommand, } from "./commands/GenerateMobileSdkReleaseUrlCommand";
|
|
17
18
|
import { GetIPSetCommand } from "./commands/GetIPSetCommand";
|
|
18
19
|
import { GetLoggingConfigurationCommand, } from "./commands/GetLoggingConfigurationCommand";
|
|
19
20
|
import { GetManagedRuleSetCommand, } from "./commands/GetManagedRuleSetCommand";
|
|
21
|
+
import { GetMobileSdkReleaseCommand, } from "./commands/GetMobileSdkReleaseCommand";
|
|
20
22
|
import { GetPermissionPolicyCommand, } from "./commands/GetPermissionPolicyCommand";
|
|
21
23
|
import { GetRateBasedStatementManagedKeysCommand, } from "./commands/GetRateBasedStatementManagedKeysCommand";
|
|
22
24
|
import { GetRegexPatternSetCommand, } from "./commands/GetRegexPatternSetCommand";
|
|
@@ -29,6 +31,7 @@ import { ListAvailableManagedRuleGroupVersionsCommand, } from "./commands/ListAv
|
|
|
29
31
|
import { ListIPSetsCommand } from "./commands/ListIPSetsCommand";
|
|
30
32
|
import { ListLoggingConfigurationsCommand, } from "./commands/ListLoggingConfigurationsCommand";
|
|
31
33
|
import { ListManagedRuleSetsCommand, } from "./commands/ListManagedRuleSetsCommand";
|
|
34
|
+
import { ListMobileSdkReleasesCommand, } from "./commands/ListMobileSdkReleasesCommand";
|
|
32
35
|
import { ListRegexPatternSetsCommand, } from "./commands/ListRegexPatternSetsCommand";
|
|
33
36
|
import { ListResourcesForWebACLCommand, } from "./commands/ListResourcesForWebACLCommand";
|
|
34
37
|
import { ListRuleGroupsCommand, } from "./commands/ListRuleGroupsCommand";
|
|
@@ -260,6 +263,20 @@ var WAFV2 = (function (_super) {
|
|
|
260
263
|
return this.send(command, optionsOrCb);
|
|
261
264
|
}
|
|
262
265
|
};
|
|
266
|
+
WAFV2.prototype.generateMobileSdkReleaseUrl = function (args, optionsOrCb, cb) {
|
|
267
|
+
var command = new GenerateMobileSdkReleaseUrlCommand(args);
|
|
268
|
+
if (typeof optionsOrCb === "function") {
|
|
269
|
+
this.send(command, optionsOrCb);
|
|
270
|
+
}
|
|
271
|
+
else if (typeof cb === "function") {
|
|
272
|
+
if (typeof optionsOrCb !== "object")
|
|
273
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
274
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
return this.send(command, optionsOrCb);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
263
280
|
WAFV2.prototype.getIPSet = function (args, optionsOrCb, cb) {
|
|
264
281
|
var command = new GetIPSetCommand(args);
|
|
265
282
|
if (typeof optionsOrCb === "function") {
|
|
@@ -302,6 +319,20 @@ var WAFV2 = (function (_super) {
|
|
|
302
319
|
return this.send(command, optionsOrCb);
|
|
303
320
|
}
|
|
304
321
|
};
|
|
322
|
+
WAFV2.prototype.getMobileSdkRelease = function (args, optionsOrCb, cb) {
|
|
323
|
+
var command = new GetMobileSdkReleaseCommand(args);
|
|
324
|
+
if (typeof optionsOrCb === "function") {
|
|
325
|
+
this.send(command, optionsOrCb);
|
|
326
|
+
}
|
|
327
|
+
else if (typeof cb === "function") {
|
|
328
|
+
if (typeof optionsOrCb !== "object")
|
|
329
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
330
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
return this.send(command, optionsOrCb);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
305
336
|
WAFV2.prototype.getPermissionPolicy = function (args, optionsOrCb, cb) {
|
|
306
337
|
var command = new GetPermissionPolicyCommand(args);
|
|
307
338
|
if (typeof optionsOrCb === "function") {
|
|
@@ -470,6 +501,20 @@ var WAFV2 = (function (_super) {
|
|
|
470
501
|
return this.send(command, optionsOrCb);
|
|
471
502
|
}
|
|
472
503
|
};
|
|
504
|
+
WAFV2.prototype.listMobileSdkReleases = function (args, optionsOrCb, cb) {
|
|
505
|
+
var command = new ListMobileSdkReleasesCommand(args);
|
|
506
|
+
if (typeof optionsOrCb === "function") {
|
|
507
|
+
this.send(command, optionsOrCb);
|
|
508
|
+
}
|
|
509
|
+
else if (typeof cb === "function") {
|
|
510
|
+
if (typeof optionsOrCb !== "object")
|
|
511
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
512
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
513
|
+
}
|
|
514
|
+
else {
|
|
515
|
+
return this.send(command, optionsOrCb);
|
|
516
|
+
}
|
|
517
|
+
};
|
|
473
518
|
WAFV2.prototype.listRegexPatternSets = function (args, optionsOrCb, cb) {
|
|
474
519
|
var command = new ListRegexPatternSetsCommand(args);
|
|
475
520
|
if (typeof optionsOrCb === "function") {
|