@aws-sdk/client-wafv2 3.253.0 → 3.256.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.
@@ -3928,8 +3928,8 @@ const serializeAws_json1_1TextTransformations = (input, context) => {
3928
3928
  };
3929
3929
  const serializeAws_json1_1TimeWindow = (input, context) => {
3930
3930
  return {
3931
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3932
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3931
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3932
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3933
3933
  };
3934
3934
  };
3935
3935
  const serializeAws_json1_1TokenDomains = (input, context) => {
@@ -3957,9 +3957,7 @@ const serializeAws_json1_1UpdateIPSetRequest = (input, context) => {
3957
3957
  };
3958
3958
  const serializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateRequest = (input, context) => {
3959
3959
  return {
3960
- ...(input.ExpiryTimestamp != null && {
3961
- ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000).toString(),
3962
- }),
3960
+ ...(input.ExpiryTimestamp != null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) }),
3963
3961
  ...(input.Id != null && { Id: input.Id }),
3964
3962
  ...(input.LockToken != null && { LockToken: input.LockToken }),
3965
3963
  ...(input.Name != null && { Name: input.Name }),
@@ -3828,8 +3828,8 @@ const serializeAws_json1_1TextTransformations = (input, context) => {
3828
3828
  };
3829
3829
  const serializeAws_json1_1TimeWindow = (input, context) => {
3830
3830
  return {
3831
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3832
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3831
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3832
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3833
3833
  };
3834
3834
  };
3835
3835
  const serializeAws_json1_1TokenDomains = (input, context) => {
@@ -3857,9 +3857,7 @@ const serializeAws_json1_1UpdateIPSetRequest = (input, context) => {
3857
3857
  };
3858
3858
  const serializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateRequest = (input, context) => {
3859
3859
  return {
3860
- ...(input.ExpiryTimestamp != null && {
3861
- ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000).toString(),
3862
- }),
3860
+ ...(input.ExpiryTimestamp != null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) }),
3863
3861
  ...(input.Id != null && { Id: input.Id }),
3864
3862
  ...(input.LockToken != null && { LockToken: input.LockToken }),
3865
3863
  ...(input.Name != null && { Name: input.Name }),
@@ -5,8 +5,8 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
5
5
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
- import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
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";
8
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, 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";
10
10
  import { AssociateWebACLCommandInput, AssociateWebACLCommandOutput } from "./commands/AssociateWebACLCommand";
11
11
  import { CheckCapacityCommandInput, CheckCapacityCommandOutput } from "./commands/CheckCapacityCommand";
12
12
  import { CreateIPSetCommandInput, CreateIPSetCommandOutput } from "./commands/CreateIPSetCommand";
@@ -64,11 +64,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
64
64
  */
65
65
  requestHandler?: __HttpHandler;
66
66
  /**
67
- * A constructor for a class implementing the {@link __Hash} interface
67
+ * A constructor for a class implementing the {@link __Checksum} interface
68
68
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
69
69
  * @internal
70
70
  */
71
- sha256?: __HashConstructor;
71
+ sha256?: __ChecksumConstructor | __HashConstructor;
72
72
  /**
73
73
  * The function that will be used to convert strings into HTTP endpoints.
74
74
  * @internal
@@ -154,9 +154,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
154
154
  */
155
155
  defaultUserAgentProvider?: Provider<__UserAgent>;
156
156
  /**
157
- * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
157
+ * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
158
158
  */
159
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
159
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
160
160
  }
161
161
  declare type WAFV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
162
162
  /**
@@ -25,12 +25,13 @@ import {
25
25
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
26
26
  import {
27
27
  Client as __Client,
28
- DefaultsMode,
28
+ DefaultsMode as __DefaultsMode,
29
29
  SmithyConfiguration as __SmithyConfiguration,
30
30
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -341,7 +342,7 @@ export declare type ServiceOutputTypes =
341
342
  export interface ClientDefaults
342
343
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
343
344
  requestHandler?: __HttpHandler;
344
- sha256?: __HashConstructor;
345
+ sha256?: __ChecksumConstructor | __HashConstructor;
345
346
  urlParser?: __UrlParser;
346
347
  bodyLengthChecker?: __BodyLengthCalculator;
347
348
  streamCollector?: __StreamCollector;
@@ -360,7 +361,7 @@ export interface ClientDefaults
360
361
  region?: string | __Provider<string>;
361
362
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
362
363
  defaultUserAgentProvider?: Provider<__UserAgent>;
363
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
364
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
364
365
  }
365
366
  declare type WAFV2ClientConfigType = Partial<
366
367
  __SmithyConfiguration<__HttpHandlerOptions>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wafv2",
3
3
  "description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native",
4
- "version": "3.253.0",
4
+ "version": "3.256.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,39 +18,39 @@
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.256.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.256.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-user-agent-browser": "3.226.0",
53
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
53
+ "@aws-sdk/util-user-agent-node": "3.254.0",
54
54
  "@aws-sdk/util-utf8-browser": "3.188.0",
55
55
  "@aws-sdk/util-utf8-node": "3.208.0",
56
56
  "tslib": "^2.3.1"