Skip to content

Commit ada7f52

Browse files
We've added stricter parameter validations to AWS IoT FleetWise signal catalog, model manifest, and decoder manifest APIs.
1 parent d2d2a23 commit ada7f52

17 files changed

+278
-59
lines changed

generator/ServiceModels/iotfleetwise/iotfleetwise-2021-06-17.api.json

Lines changed: 71 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@
10001000
"dataType"
10011001
],
10021002
"members":{
1003-
"fullyQualifiedName":{"shape":"string"},
1003+
"fullyQualifiedName":{"shape":"ActuatorFullyQualifiedNameString"},
10041004
"dataType":{"shape":"NodeDataType"},
10051005
"description":{"shape":"description"},
10061006
"unit":{"shape":"string"},
@@ -1017,6 +1017,12 @@
10171017
"structFullyQualifiedName":{"shape":"NodePath"}
10181018
}
10191019
},
1020+
"ActuatorFullyQualifiedNameString":{
1021+
"type":"string",
1022+
"max":150,
1023+
"min":1,
1024+
"pattern":"[a-zA-Z0-9_.]+"
1025+
},
10201026
"AmazonResourceName":{
10211027
"type":"string",
10221028
"max":1011,
@@ -1046,7 +1052,7 @@
10461052
"dataType"
10471053
],
10481054
"members":{
1049-
"fullyQualifiedName":{"shape":"string"},
1055+
"fullyQualifiedName":{"shape":"AttributeFullyQualifiedNameString"},
10501056
"dataType":{"shape":"NodeDataType"},
10511057
"description":{"shape":"description"},
10521058
"unit":{"shape":"string"},
@@ -1063,6 +1069,12 @@
10631069
"comment":{"shape":"message"}
10641070
}
10651071
},
1072+
"AttributeFullyQualifiedNameString":{
1073+
"type":"string",
1074+
"max":150,
1075+
"min":1,
1076+
"pattern":"[a-zA-Z0-9_.]+"
1077+
},
10661078
"BatchCreateVehicleRequest":{
10671079
"type":"structure",
10681080
"required":["vehicles"],
@@ -1095,12 +1107,18 @@
10951107
"type":"structure",
10961108
"required":["fullyQualifiedName"],
10971109
"members":{
1098-
"fullyQualifiedName":{"shape":"string"},
1110+
"fullyQualifiedName":{"shape":"BranchFullyQualifiedNameString"},
10991111
"description":{"shape":"description"},
11001112
"deprecationMessage":{"shape":"message"},
11011113
"comment":{"shape":"message"}
11021114
}
11031115
},
1116+
"BranchFullyQualifiedNameString":{
1117+
"type":"string",
1118+
"max":150,
1119+
"min":1,
1120+
"pattern":"[a-zA-Z0-9_.]+"
1121+
},
11041122
"CampaignStatus":{
11051123
"type":"string",
11061124
"enum":[
@@ -1151,7 +1169,8 @@
11511169
"CanInterfaceName":{
11521170
"type":"string",
11531171
"max":100,
1154-
"min":1
1172+
"min":1,
1173+
"pattern":"[a-zA-Z0-9_.]+"
11551174
},
11561175
"CanSignal":{
11571176
"type":"structure",
@@ -1179,7 +1198,8 @@
11791198
"CanSignalName":{
11801199
"type":"string",
11811200
"max":100,
1182-
"min":1
1201+
"min":1,
1202+
"pattern":"[a-zA-Z0-9_.]+"
11831203
},
11841204
"CloudWatchLogDeliveryOptions":{
11851205
"type":"structure",
@@ -1294,13 +1314,17 @@
12941314
"members":{
12951315
"name":{"shape":"resourceName"},
12961316
"description":{"shape":"description"},
1297-
"modelManifestArn":{"shape":"arn"},
1317+
"modelManifestArn":{"shape":"CreateDecoderManifestRequestModelManifestArnString"},
12981318
"signalDecoders":{"shape":"SignalDecoders"},
12991319
"networkInterfaces":{"shape":"NetworkInterfaces"},
13001320
"defaultForUnmappedSignals":{"shape":"DefaultForUnmappedSignalsType"},
13011321
"tags":{"shape":"TagList"}
13021322
}
13031323
},
1324+
"CreateDecoderManifestRequestModelManifestArnString":{
1325+
"type":"string",
1326+
"pattern":"arn:aws:iotfleetwise:[a-z0-9-]+:[0-9]{12}:model-manifest/[a-zA-Z\\d\\-_:]{1,100}"
1327+
},
13041328
"CreateDecoderManifestResponse":{
13051329
"type":"structure",
13061330
"required":[
@@ -1346,11 +1370,17 @@
13461370
"members":{
13471371
"name":{"shape":"resourceName"},
13481372
"description":{"shape":"description"},
1349-
"nodes":{"shape":"listOfStrings"},
1373+
"nodes":{"shape":"CreateModelManifestRequestNodesList"},
13501374
"signalCatalogArn":{"shape":"arn"},
13511375
"tags":{"shape":"TagList"}
13521376
}
13531377
},
1378+
"CreateModelManifestRequestNodesList":{
1379+
"type":"list",
1380+
"member":{"shape":"string"},
1381+
"max":500,
1382+
"min":0
1383+
},
13541384
"CreateModelManifestResponse":{
13551385
"type":"structure",
13561386
"required":[
@@ -1499,7 +1529,7 @@
14991529
"dataType"
15001530
],
15011531
"members":{
1502-
"fullyQualifiedName":{"shape":"string"},
1532+
"fullyQualifiedName":{"shape":"CustomPropertyFullyQualifiedNameString"},
15031533
"dataType":{"shape":"NodeDataType"},
15041534
"dataEncoding":{"shape":"NodeDataEncoding"},
15051535
"description":{"shape":"description"},
@@ -1508,16 +1538,28 @@
15081538
"structFullyQualifiedName":{"shape":"NodePath"}
15091539
}
15101540
},
1541+
"CustomPropertyFullyQualifiedNameString":{
1542+
"type":"string",
1543+
"max":150,
1544+
"min":1,
1545+
"pattern":"[a-zA-Z0-9_.]+"
1546+
},
15111547
"CustomStruct":{
15121548
"type":"structure",
15131549
"required":["fullyQualifiedName"],
15141550
"members":{
1515-
"fullyQualifiedName":{"shape":"string"},
1551+
"fullyQualifiedName":{"shape":"CustomStructFullyQualifiedNameString"},
15161552
"description":{"shape":"description"},
15171553
"deprecationMessage":{"shape":"message"},
15181554
"comment":{"shape":"message"}
15191555
}
15201556
},
1557+
"CustomStructFullyQualifiedNameString":{
1558+
"type":"string",
1559+
"max":150,
1560+
"min":1,
1561+
"pattern":"[a-zA-Z0-9_.]+"
1562+
},
15211563
"DataDestinationConfig":{
15221564
"type":"structure",
15231565
"members":{
@@ -1814,7 +1856,8 @@
18141856
"FullyQualifiedName":{
18151857
"type":"string",
18161858
"max":150,
1817-
"min":1
1859+
"min":1,
1860+
"pattern":"[a-zA-Z0-9_.]+"
18181861
},
18191862
"GetCampaignRequest":{
18201863
"type":"structure",
@@ -2133,7 +2176,8 @@
21332176
"InterfaceId":{
21342177
"type":"string",
21352178
"max":50,
2136-
"min":1
2179+
"min":1,
2180+
"pattern":"[-a-zA-Z0-9_.]+"
21372181
},
21382182
"InterfaceIds":{
21392183
"type":"list",
@@ -2684,7 +2728,8 @@
26842728
"ObdInterfaceName":{
26852729
"type":"string",
26862730
"max":100,
2687-
"min":1
2731+
"min":1,
2732+
"pattern":"[a-zA-Z0-9_.]+"
26882733
},
26892734
"ObdSignal":{
26902735
"type":"structure",
@@ -2748,12 +2793,14 @@
27482793
"ProtocolName":{
27492794
"type":"string",
27502795
"max":50,
2751-
"min":1
2796+
"min":1,
2797+
"pattern":"[a-zA-Z0-9_.]+"
27522798
},
27532799
"ProtocolVersion":{
27542800
"type":"string",
27552801
"max":50,
2756-
"min":1
2802+
"min":1,
2803+
"pattern":"[a-zA-Z0-9_.]+"
27572804
},
27582805
"PutEncryptionConfigurationRequest":{
27592806
"type":"structure",
@@ -2917,7 +2964,7 @@
29172964
"dataType"
29182965
],
29192966
"members":{
2920-
"fullyQualifiedName":{"shape":"string"},
2967+
"fullyQualifiedName":{"shape":"SensorFullyQualifiedNameString"},
29212968
"dataType":{"shape":"NodeDataType"},
29222969
"description":{"shape":"description"},
29232970
"unit":{"shape":"string"},
@@ -2929,6 +2976,12 @@
29292976
"structFullyQualifiedName":{"shape":"NodePath"}
29302977
}
29312978
},
2979+
"SensorFullyQualifiedNameString":{
2980+
"type":"string",
2981+
"max":150,
2982+
"min":1,
2983+
"pattern":"[a-zA-Z0-9_.]+"
2984+
},
29322985
"SignalCatalogSummary":{
29332986
"type":"structure",
29342987
"members":{
@@ -3871,17 +3924,20 @@
38713924
},
38723925
"nonNegativeInteger":{
38733926
"type":"integer",
3927+
"max":2147483647,
38743928
"min":0
38753929
},
38763930
"number":{"type":"integer"},
38773931
"positiveInteger":{
38783932
"type":"integer",
38793933
"box":true,
3934+
"max":2147483647,
38803935
"min":1
38813936
},
38823937
"positiveLong":{
38833938
"type":"long",
38843939
"box":true,
3940+
"max":9223372036854775807,
38853941
"min":1
38863942
},
38873943
"priority":{

0 commit comments

Comments
 (0)