@aws-sdk/client-fms 3.252.0 → 3.254.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.
@@ -2037,10 +2037,8 @@ const serializeAws_json1_1AppsList = (input, context) => {
2037
2037
  const serializeAws_json1_1AppsListData = (input, context) => {
2038
2038
  return {
2039
2039
  ...(input.AppsList != null && { AppsList: serializeAws_json1_1AppsList(input.AppsList, context) }),
2040
- ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000).toString() }),
2041
- ...(input.LastUpdateTime != null && {
2042
- LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000).toString(),
2043
- }),
2040
+ ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000) }),
2041
+ ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2044
2042
  ...(input.ListId != null && { ListId: input.ListId }),
2045
2043
  ...(input.ListName != null && { ListName: input.ListName }),
2046
2044
  ...(input.ListUpdateToken != null && { ListUpdateToken: input.ListUpdateToken }),
@@ -2151,12 +2149,12 @@ const serializeAws_json1_1GetPolicyRequest = (input, context) => {
2151
2149
  };
2152
2150
  const serializeAws_json1_1GetProtectionStatusRequest = (input, context) => {
2153
2151
  return {
2154
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
2152
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2155
2153
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2156
2154
  ...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
2157
2155
  ...(input.NextToken != null && { NextToken: input.NextToken }),
2158
2156
  ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2159
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
2157
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2160
2158
  };
2161
2159
  };
2162
2160
  const serializeAws_json1_1GetProtocolsListRequest = (input, context) => {
@@ -2330,10 +2328,8 @@ const serializeAws_json1_1ProtocolsList = (input, context) => {
2330
2328
  };
2331
2329
  const serializeAws_json1_1ProtocolsListData = (input, context) => {
2332
2330
  return {
2333
- ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000).toString() }),
2334
- ...(input.LastUpdateTime != null && {
2335
- LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000).toString(),
2336
- }),
2331
+ ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000) }),
2332
+ ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2337
2333
  ...(input.ListId != null && { ListId: input.ListId }),
2338
2334
  ...(input.ListName != null && { ListName: input.ListName }),
2339
2335
  ...(input.ListUpdateToken != null && { ListUpdateToken: input.ListUpdateToken }),
@@ -2381,9 +2377,7 @@ const serializeAws_json1_1ResourceSet = (input, context) => {
2381
2377
  return {
2382
2378
  ...(input.Description != null && { Description: input.Description }),
2383
2379
  ...(input.Id != null && { Id: input.Id }),
2384
- ...(input.LastUpdateTime != null && {
2385
- LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000).toString(),
2386
- }),
2380
+ ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2387
2381
  ...(input.Name != null && { Name: input.Name }),
2388
2382
  ...(input.ResourceTypeList != null && {
2389
2383
  ResourceTypeList: serializeAws_json1_1ResourceTypeList(input.ResourceTypeList, context),
@@ -1957,10 +1957,8 @@ const serializeAws_json1_1AppsList = (input, context) => {
1957
1957
  const serializeAws_json1_1AppsListData = (input, context) => {
1958
1958
  return {
1959
1959
  ...(input.AppsList != null && { AppsList: serializeAws_json1_1AppsList(input.AppsList, context) }),
1960
- ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000).toString() }),
1961
- ...(input.LastUpdateTime != null && {
1962
- LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000).toString(),
1963
- }),
1960
+ ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000) }),
1961
+ ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
1964
1962
  ...(input.ListId != null && { ListId: input.ListId }),
1965
1963
  ...(input.ListName != null && { ListName: input.ListName }),
1966
1964
  ...(input.ListUpdateToken != null && { ListUpdateToken: input.ListUpdateToken }),
@@ -2071,12 +2069,12 @@ const serializeAws_json1_1GetPolicyRequest = (input, context) => {
2071
2069
  };
2072
2070
  const serializeAws_json1_1GetProtectionStatusRequest = (input, context) => {
2073
2071
  return {
2074
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
2072
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2075
2073
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2076
2074
  ...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
2077
2075
  ...(input.NextToken != null && { NextToken: input.NextToken }),
2078
2076
  ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2079
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
2077
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2080
2078
  };
2081
2079
  };
2082
2080
  const serializeAws_json1_1GetProtocolsListRequest = (input, context) => {
@@ -2250,10 +2248,8 @@ const serializeAws_json1_1ProtocolsList = (input, context) => {
2250
2248
  };
2251
2249
  const serializeAws_json1_1ProtocolsListData = (input, context) => {
2252
2250
  return {
2253
- ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000).toString() }),
2254
- ...(input.LastUpdateTime != null && {
2255
- LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000).toString(),
2256
- }),
2251
+ ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000) }),
2252
+ ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2257
2253
  ...(input.ListId != null && { ListId: input.ListId }),
2258
2254
  ...(input.ListName != null && { ListName: input.ListName }),
2259
2255
  ...(input.ListUpdateToken != null && { ListUpdateToken: input.ListUpdateToken }),
@@ -2301,9 +2297,7 @@ const serializeAws_json1_1ResourceSet = (input, context) => {
2301
2297
  return {
2302
2298
  ...(input.Description != null && { Description: input.Description }),
2303
2299
  ...(input.Id != null && { Id: input.Id }),
2304
- ...(input.LastUpdateTime != null && {
2305
- LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000).toString(),
2306
- }),
2300
+ ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2307
2301
  ...(input.Name != null && { Name: input.Name }),
2308
2302
  ...(input.ResourceTypeList != null && {
2309
2303
  ResourceTypeList: serializeAws_json1_1ResourceTypeList(input.ResourceTypeList, context),
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
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";
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 { AssociateAdminAccountCommandInput, AssociateAdminAccountCommandOutput } from "./commands/AssociateAdminAccountCommand";
11
11
  import { AssociateThirdPartyFirewallCommandInput, AssociateThirdPartyFirewallCommandOutput } from "./commands/AssociateThirdPartyFirewallCommand";
12
12
  import { BatchAssociateResourceCommandInput, BatchAssociateResourceCommandOutput } from "./commands/BatchAssociateResourceCommand";
@@ -54,11 +54,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
54
54
  */
55
55
  requestHandler?: __HttpHandler;
56
56
  /**
57
- * A constructor for a class implementing the {@link __Hash} interface
57
+ * A constructor for a class implementing the {@link __Checksum} interface
58
58
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
59
59
  * @internal
60
60
  */
61
- sha256?: __HashConstructor;
61
+ sha256?: __ChecksumConstructor | __HashConstructor;
62
62
  /**
63
63
  * The function that will be used to convert strings into HTTP endpoints.
64
64
  * @internal
@@ -31,6 +31,7 @@ import {
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,
@@ -281,7 +282,7 @@ export declare type ServiceOutputTypes =
281
282
  export interface ClientDefaults
282
283
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
283
284
  requestHandler?: __HttpHandler;
284
- sha256?: __HashConstructor;
285
+ sha256?: __ChecksumConstructor | __HashConstructor;
285
286
  urlParser?: __UrlParser;
286
287
  bodyLengthChecker?: __BodyLengthCalculator;
287
288
  streamCollector?: __StreamCollector;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-fms",
3
3
  "description": "AWS SDK for JavaScript Fms Client for Node.js, Browser and React Native",
4
- "version": "3.252.0",
4
+ "version": "3.254.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.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.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"