@aws-sdk/client-iot 3.44.0 → 3.45.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
7
18
 
8
19
 
@@ -99,6 +99,7 @@ const partitionHash = {
99
99
  "ap-south-1",
100
100
  "ap-southeast-1",
101
101
  "ap-southeast-2",
102
+ "ap-southeast-3",
102
103
  "ca-central-1",
103
104
  "eu-central-1",
104
105
  "eu-north-1",
@@ -546,6 +546,8 @@ const serializeAws_restJson1CreateAuthorizerCommand = async (input, context) =>
546
546
  body = JSON.stringify({
547
547
  ...(input.authorizerFunctionArn !== undefined &&
548
548
  input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn }),
549
+ ...(input.enableCachingForHttp !== undefined &&
550
+ input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp }),
549
551
  ...(input.signingDisabled !== undefined &&
550
552
  input.signingDisabled !== null && { signingDisabled: input.signingDisabled }),
551
553
  ...(input.status !== undefined && input.status !== null && { status: input.status }),
@@ -6106,6 +6108,8 @@ const serializeAws_restJson1UpdateAuthorizerCommand = async (input, context) =>
6106
6108
  body = JSON.stringify({
6107
6109
  ...(input.authorizerFunctionArn !== undefined &&
6108
6110
  input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn }),
6111
+ ...(input.enableCachingForHttp !== undefined &&
6112
+ input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp }),
6109
6113
  ...(input.status !== undefined && input.status !== null && { status: input.status }),
6110
6114
  ...(input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName }),
6111
6115
  ...(input.tokenSigningPublicKeys !== undefined &&
@@ -29476,6 +29480,7 @@ const deserializeAws_restJson1AuthorizerDescription = (output, context) => {
29476
29480
  creationDate: output.creationDate !== undefined && output.creationDate !== null
29477
29481
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
29478
29482
  : undefined,
29483
+ enableCachingForHttp: smithy_client_1.expectBoolean(output.enableCachingForHttp),
29479
29484
  lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
29480
29485
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastModifiedDate)))
29481
29486
  : undefined,
@@ -97,6 +97,7 @@ var partitionHash = {
97
97
  "ap-south-1",
98
98
  "ap-southeast-1",
99
99
  "ap-southeast-2",
100
+ "ap-southeast-3",
100
101
  "ca-central-1",
101
102
  "eu-central-1",
102
103
  "eu-north-1",
@@ -578,8 +578,9 @@ export var serializeAws_restJson1CreateAuthorizerCommand = function (input, cont
578
578
  else {
579
579
  throw new Error("No value provided for input HTTP label: authorizerName.");
580
580
  }
581
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn !== undefined &&
582
- input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.signingDisabled !== undefined &&
581
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn !== undefined &&
582
+ input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp !== undefined &&
583
+ input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp })), (input.signingDisabled !== undefined &&
583
584
  input.signingDisabled !== null && { signingDisabled: input.signingDisabled })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tags !== undefined &&
584
585
  input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys !== undefined &&
585
586
  input.tokenSigningPublicKeys !== null && {
@@ -6537,8 +6538,9 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
6537
6538
  else {
6538
6539
  throw new Error("No value provided for input HTTP label: authorizerName.");
6539
6540
  }
6540
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn !== undefined &&
6541
- input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys !== undefined &&
6541
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn !== undefined &&
6542
+ input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp !== undefined &&
6543
+ input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys !== undefined &&
6542
6544
  input.tokenSigningPublicKeys !== null && {
6543
6545
  tokenSigningPublicKeys: serializeAws_restJson1PublicKeyMap(input.tokenSigningPublicKeys, context),
6544
6546
  })));
@@ -32719,6 +32721,7 @@ var deserializeAws_restJson1AuthorizerDescription = function (output, context) {
32719
32721
  creationDate: output.creationDate !== undefined && output.creationDate !== null
32720
32722
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
32721
32723
  : undefined,
32724
+ enableCachingForHttp: __expectBoolean(output.enableCachingForHttp),
32722
32725
  lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
32723
32726
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
32724
32727
  : undefined,
@@ -2586,6 +2586,12 @@ export interface AuthorizerDescription {
2586
2586
  * <p>Specifies whether IoT validates the token signature in an authorization request.</p>
2587
2587
  */
2588
2588
  signingDisabled?: boolean;
2589
+ /**
2590
+ * <p>When <code>true</code>, the result from the authorizer’s Lambda function is
2591
+ * cached for the time specified in <code>refreshAfterInSeconds</code>. The cached
2592
+ * result is used while the device reuses the same HTTP connection.</p>
2593
+ */
2594
+ enableCachingForHttp?: boolean;
2589
2595
  }
2590
2596
  export declare namespace AuthorizerDescription {
2591
2597
  /**
@@ -3098,6 +3104,14 @@ export interface CreateAuthorizerRequest {
3098
3104
  * <p>Specifies whether IoT validates the token signature in an authorization request.</p>
3099
3105
  */
3100
3106
  signingDisabled?: boolean;
3107
+ /**
3108
+ * <p>When <code>true</code>, the result from the authorizer’s Lambda function is
3109
+ * cached for clients that use persistent HTTP connections. The results are cached for the time
3110
+ * specified by the Lambda function in <code>refreshAfterInSeconds</code>. This value
3111
+ * does not affect authorization of clients that use MQTT connections.</p>
3112
+ * <p>The default value is <code>false</code>.</p>
3113
+ */
3114
+ enableCachingForHttp?: boolean;
3101
3115
  }
3102
3116
  export declare namespace CreateAuthorizerRequest {
3103
3117
  /**
@@ -1942,6 +1942,12 @@ export interface UpdateAuthorizerRequest {
1942
1942
  * <p>The status of the update authorizer request.</p>
1943
1943
  */
1944
1944
  status?: AuthorizerStatus | string;
1945
+ /**
1946
+ * <p>When <code>true</code>, the result from the authorizer’s Lambda function is
1947
+ * cached for the time specified in <code>refreshAfterInSeconds</code>. The cached
1948
+ * result is used while the device reuses the same HTTP connection.</p>
1949
+ */
1950
+ enableCachingForHttp?: boolean;
1945
1951
  }
1946
1952
  export declare namespace UpdateAuthorizerRequest {
1947
1953
  /**
@@ -1405,6 +1405,8 @@ export interface AuthorizerDescription {
1405
1405
  lastModifiedDate?: Date;
1406
1406
 
1407
1407
  signingDisabled?: boolean;
1408
+
1409
+ enableCachingForHttp?: boolean;
1408
1410
  }
1409
1411
  export declare namespace AuthorizerDescription {
1410
1412
 
@@ -1692,6 +1694,8 @@ export interface CreateAuthorizerRequest {
1692
1694
  tags?: Tag[];
1693
1695
 
1694
1696
  signingDisabled?: boolean;
1697
+
1698
+ enableCachingForHttp?: boolean;
1695
1699
  }
1696
1700
  export declare namespace CreateAuthorizerRequest {
1697
1701
 
@@ -1074,6 +1074,8 @@ export interface UpdateAuthorizerRequest {
1074
1074
  };
1075
1075
 
1076
1076
  status?: AuthorizerStatus | string;
1077
+
1078
+ enableCachingForHttp?: boolean;
1077
1079
  }
1078
1080
  export declare namespace UpdateAuthorizerRequest {
1079
1081
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot",
3
3
  "description": "AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native",
4
- "version": "3.44.0",
4
+ "version": "3.45.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.43.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
24
+ "@aws-sdk/client-sts": "3.45.0",
25
+ "@aws-sdk/config-resolver": "3.45.0",
26
+ "@aws-sdk/credential-provider-node": "3.45.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.40.0",
28
28
  "@aws-sdk/hash-node": "3.40.0",
29
29
  "@aws-sdk/invalid-dependency": "3.40.0",
@@ -32,7 +32,7 @@
32
32
  "@aws-sdk/middleware-logger": "3.40.0",
33
33
  "@aws-sdk/middleware-retry": "3.40.0",
34
34
  "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
35
+ "@aws-sdk/middleware-signing": "3.45.0",
36
36
  "@aws-sdk/middleware-stack": "3.40.0",
37
37
  "@aws-sdk/middleware-user-agent": "3.40.0",
38
38
  "@aws-sdk/node-config-provider": "3.40.0",