Skip to content

Commit 8c5af16

Browse files
author
AWS
committed
AWS IoT Update: This release allows customer to enable caching of custom authorizer on HTTP protocol for clients that use persistent or Keep-Alive connection in order to reduce the number of Lambda invocations.
1 parent 941d66f commit 8c5af16

File tree

2 files changed

+74
-19
lines changed

2 files changed

+74
-19
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS IoT",
4+
"contributor": "",
5+
"description": "This release allows customer to enable caching of custom authorizer on HTTP protocol for clients that use persistent or Keep-Alive connection in order to reduce the number of Lambda invocations."
6+
}

services/iot/src/main/resources/codegen-resources/service-2.json

Lines changed: 68 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5178,13 +5178,18 @@
51785178
"signingDisabled":{
51795179
"shape":"BooleanKey",
51805180
"documentation":"<p>Specifies whether IoT validates the token signature in an authorization request.</p>"
5181+
},
5182+
"enableCachingForHttp":{
5183+
"shape":"EnableCachingForHttp",
5184+
"documentation":"<p>When <code>true</code>, the result from the authorizer’s Lambda function is cached for the time specified in <code>refreshAfterInSeconds</code>. The cached result is used while the device reuses the same HTTP connection.</p>"
51815185
}
51825186
},
51835187
"documentation":"<p>The authorizer description.</p>"
51845188
},
51855189
"AuthorizerFunctionArn":{
51865190
"type":"string",
5187-
"max":2048
5191+
"max":2048,
5192+
"pattern":"[\\s\\S]*"
51885193
},
51895194
"AuthorizerName":{
51905195
"type":"string",
@@ -5937,11 +5942,14 @@
59375942
"type":"string",
59385943
"documentation":"<p>The PEM of a certificate.</p>",
59395944
"max":65536,
5940-
"min":1
5945+
"min":1,
5946+
"pattern":"[\\s\\S]*"
59415947
},
59425948
"CertificateSigningRequest":{
59435949
"type":"string",
5944-
"min":1
5950+
"max":4096,
5951+
"min":1,
5952+
"pattern":"[\\s\\S]*"
59455953
},
59465954
"CertificateStateException":{
59475955
"type":"structure",
@@ -6321,6 +6329,10 @@
63216329
"signingDisabled":{
63226330
"shape":"BooleanKey",
63236331
"documentation":"<p>Specifies whether IoT validates the token signature in an authorization request.</p>"
6332+
},
6333+
"enableCachingForHttp":{
6334+
"shape":"EnableCachingForHttp",
6335+
"documentation":"<p>When <code>true</code>, the result from the authorizer’s Lambda function is cached for clients that use persistent HTTP connections. The results are cached for the time specified by the Lambda function in <code>refreshAfterInSeconds</code>. This value does not affect authorization of clients that use MQTT connections.</p> <p>The default value is <code>false</code>.</p>"
63246336
}
63256337
}
63266338
},
@@ -9952,7 +9964,8 @@
99529964
"DomainName":{
99539965
"type":"string",
99549966
"max":253,
9955-
"min":1
9967+
"min":1,
9968+
"pattern":"[\\s\\S]*"
99569969
},
99579970
"DomainType":{
99589971
"type":"string",
@@ -10111,6 +10124,7 @@
1011110124
"ElasticsearchId":{"type":"string"},
1011210125
"ElasticsearchIndex":{"type":"string"},
1011310126
"ElasticsearchType":{"type":"string"},
10127+
"EnableCachingForHttp":{"type":"boolean"},
1011410128
"EnableIoTLoggingParams":{
1011510129
"type":"structure",
1011610130
"required":[
@@ -10146,7 +10160,8 @@
1014610160
"EndpointAddress":{"type":"string"},
1014710161
"EndpointType":{
1014810162
"type":"string",
10149-
"max":128
10163+
"max":128,
10164+
"pattern":"[\\s\\S]*"
1015010165
},
1015110166
"Environment":{
1015210167
"type":"string",
@@ -10992,12 +11007,14 @@
1099211007
"HttpHeaderName":{
1099311008
"type":"string",
1099411009
"max":8192,
10995-
"min":1
11010+
"min":1,
11011+
"pattern":"[\\s\\S]*"
1099611012
},
1099711013
"HttpHeaderValue":{
1099811014
"type":"string",
1099911015
"max":8192,
11000-
"min":1
11016+
"min":1,
11017+
"pattern":"[\\s\\S]*"
1100111018
},
1100211019
"HttpHeaders":{
1100311020
"type":"map",
@@ -11007,7 +11024,8 @@
1100711024
"HttpQueryString":{
1100811025
"type":"string",
1100911026
"max":4096,
11010-
"min":1
11027+
"min":1,
11028+
"pattern":"[\\s\\S]*"
1101111029
},
1101211030
"HttpUrlDestinationConfiguration":{
1101311031
"type":"structure",
@@ -11714,7 +11732,8 @@
1171411732
},
1171511733
"KeyValue":{
1171611734
"type":"string",
11717-
"max":5120
11735+
"max":5120,
11736+
"pattern":"[\\s\\S]*"
1171811737
},
1171911738
"KinesisAction":{
1172011739
"type":"structure",
@@ -14193,7 +14212,8 @@
1419314212
},
1419414213
"Message":{
1419514214
"type":"string",
14196-
"max":128
14215+
"max":128,
14216+
"pattern":"[\\s\\S]*"
1419714217
},
1419814218
"MessageFormat":{
1419914219
"type":"string",
@@ -14405,7 +14425,8 @@
1440514425
"MqttClientId":{
1440614426
"type":"string",
1440714427
"max":65535,
14408-
"min":1
14428+
"min":1,
14429+
"pattern":"[\\s\\S]*"
1440914430
},
1441014431
"MqttContext":{
1441114432
"type":"structure",
@@ -14433,7 +14454,8 @@
1443314454
"MqttUsername":{
1443414455
"type":"string",
1443514456
"max":65535,
14436-
"min":1
14457+
"min":1,
14458+
"pattern":"[\\s\\S]*"
1443714459
},
1443814460
"NamedShadowIndexingMode":{
1443914461
"type":"string",
@@ -14717,7 +14739,12 @@
1471714739
"max":250,
1471814740
"min":1
1471914741
},
14720-
"Parameter":{"type":"string"},
14742+
"Parameter":{
14743+
"type":"string",
14744+
"max":2048,
14745+
"min":0,
14746+
"pattern":"[\\s\\S]*"
14747+
},
1472114748
"ParameterKey":{
1472214749
"type":"string",
1472314750
"max":128,
@@ -14801,7 +14828,12 @@
1480114828
"documentation":"<p>Describes an IoT policy.</p>"
1480214829
},
1480314830
"PolicyArn":{"type":"string"},
14804-
"PolicyDocument":{"type":"string"},
14831+
"PolicyDocument":{
14832+
"type":"string",
14833+
"max":404600,
14834+
"min":0,
14835+
"pattern":"[\\s\\S]*"
14836+
},
1480514837
"PolicyDocuments":{
1480614838
"type":"list",
1480714839
"member":{"shape":"PolicyDocument"}
@@ -15497,7 +15529,8 @@
1549715529
},
1549815530
"Resource":{
1549915531
"type":"string",
15500-
"max":2048
15532+
"max":2048,
15533+
"pattern":"[\\s\\S]*"
1550115534
},
1550215535
"ResourceAlreadyExistsException":{
1550315536
"type":"structure",
@@ -15972,7 +16005,8 @@
1597216005
"ServerName":{
1597316006
"type":"string",
1597416007
"max":253,
15975-
"min":1
16008+
"min":1,
16009+
"pattern":"[\\s\\S]*"
1597616010
},
1597716011
"ServiceName":{"type":"string"},
1597816012
"ServiceType":{
@@ -16773,7 +16807,12 @@
1677316807
"documentation":"<p>Provides summary counts of how many tasks for findings are in a particular state. This information is included in the response from DescribeAuditMitigationActionsTask.</p>"
1677416808
},
1677516809
"TemplateArn":{"type":"string"},
16776-
"TemplateBody":{"type":"string"},
16810+
"TemplateBody":{
16811+
"type":"string",
16812+
"max":10240,
16813+
"min":0,
16814+
"pattern":"[\\s\\S]*"
16815+
},
1677716816
"TemplateDescription":{
1677816817
"type":"string",
1677916818
"max":500,
@@ -17360,7 +17399,8 @@
1736017399
"Token":{
1736117400
"type":"string",
1736217401
"max":6144,
17363-
"min":1
17402+
"min":1,
17403+
"pattern":"[\\s\\S]*"
1736417404
},
1736517405
"TokenKeyName":{
1736617406
"type":"string",
@@ -17787,6 +17827,10 @@
1778717827
"status":{
1778817828
"shape":"AuthorizerStatus",
1778917829
"documentation":"<p>The status of the update authorizer request.</p>"
17830+
},
17831+
"enableCachingForHttp":{
17832+
"shape":"EnableCachingForHttp",
17833+
"documentation":"<p>When <code>true</code>, the result from the authorizer’s Lambda function is cached for the time specified in <code>refreshAfterInSeconds</code>. The cached result is used while the device reuses the same HTTP connection.</p>"
1779017834
}
1779117835
}
1779217836
},
@@ -18656,7 +18700,12 @@
1865618700
"type":"list",
1865718701
"member":{"shape":"ValidationError"}
1865818702
},
18659-
"Value":{"type":"string"},
18703+
"Value":{
18704+
"type":"string",
18705+
"max":4096,
18706+
"min":0,
18707+
"pattern":"[\\s\\S]*"
18708+
},
1866018709
"Variance":{"type":"double"},
1866118710
"VerificationState":{
1866218711
"type":"string",

0 commit comments

Comments
 (0)