Skip to content

Commit 308c83c

Browse files
author
AWS
committed
AWS IoT FleetWise Update: We've added stricter parameter validations to AWS IoT FleetWise signal catalog, model manifest, and decoder manifest APIs.
1 parent 3ec9f08 commit 308c83c

File tree

2 files changed

+77
-15
lines changed

2 files changed

+77
-15
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 FleetWise",
4+
"contributor": "",
5+
"description": "We've added stricter parameter validations to AWS IoT FleetWise signal catalog, model manifest, and decoder manifest APIs."
6+
}

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

Lines changed: 71 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@
10591059
],
10601060
"members":{
10611061
"fullyQualifiedName":{
1062-
"shape":"string",
1062+
"shape":"ActuatorFullyQualifiedNameString",
10631063
"documentation":"<p>The fully qualified name of the actuator. For example, the fully qualified name of an actuator might be <code>Vehicle.Front.Left.Door.Lock</code>.</p>"
10641064
},
10651065
"dataType":{
@@ -1107,6 +1107,12 @@
11071107
},
11081108
"documentation":"<p>A signal that represents a vehicle device such as the engine, heater, and door locks. Data from an actuator reports the state of a certain vehicle device.</p> <note> <p> Updating actuator data can change the state of a device. For example, you can turn on or off the heater by updating its actuator data.</p> </note>"
11091109
},
1110+
"ActuatorFullyQualifiedNameString":{
1111+
"type":"string",
1112+
"max":150,
1113+
"min":1,
1114+
"pattern":"[a-zA-Z0-9_.]+"
1115+
},
11101116
"AmazonResourceName":{
11111117
"type":"string",
11121118
"max":1011,
@@ -1143,7 +1149,7 @@
11431149
],
11441150
"members":{
11451151
"fullyQualifiedName":{
1146-
"shape":"string",
1152+
"shape":"AttributeFullyQualifiedNameString",
11471153
"documentation":"<p>The fully qualified name of the attribute. For example, the fully qualified name of an attribute might be <code>Vehicle.Body.Engine.Type</code>.</p>"
11481154
},
11491155
"dataType":{
@@ -1191,6 +1197,12 @@
11911197
},
11921198
"documentation":"<p>A signal that represents static information about the vehicle, such as engine type or manufacturing date.</p>"
11931199
},
1200+
"AttributeFullyQualifiedNameString":{
1201+
"type":"string",
1202+
"max":150,
1203+
"min":1,
1204+
"pattern":"[a-zA-Z0-9_.]+"
1205+
},
11941206
"BatchCreateVehicleRequest":{
11951207
"type":"structure",
11961208
"required":["vehicles"],
@@ -1242,7 +1254,7 @@
12421254
"required":["fullyQualifiedName"],
12431255
"members":{
12441256
"fullyQualifiedName":{
1245-
"shape":"string",
1257+
"shape":"BranchFullyQualifiedNameString",
12461258
"documentation":"<p>The fully qualified name of the branch. For example, the fully qualified name of a branch might be <code>Vehicle.Body.Engine</code>.</p>"
12471259
},
12481260
"description":{
@@ -1260,6 +1272,12 @@
12601272
},
12611273
"documentation":"<p>A group of signals that are defined in a hierarchical structure.</p>"
12621274
},
1275+
"BranchFullyQualifiedNameString":{
1276+
"type":"string",
1277+
"max":150,
1278+
"min":1,
1279+
"pattern":"[a-zA-Z0-9_.]+"
1280+
},
12631281
"CampaignStatus":{
12641282
"type":"string",
12651283
"enum":[
@@ -1355,7 +1373,8 @@
13551373
"CanInterfaceName":{
13561374
"type":"string",
13571375
"max":100,
1358-
"min":1
1376+
"min":1,
1377+
"pattern":"[a-zA-Z0-9_.]+"
13591378
},
13601379
"CanSignal":{
13611380
"type":"structure",
@@ -1411,7 +1430,8 @@
14111430
"CanSignalName":{
14121431
"type":"string",
14131432
"max":100,
1414-
"min":1
1433+
"min":1,
1434+
"pattern":"[a-zA-Z0-9_.]+"
14151435
},
14161436
"CloudWatchLogDeliveryOptions":{
14171437
"type":"structure",
@@ -1632,7 +1652,7 @@
16321652
"documentation":"<p>A brief description of the decoder manifest. </p>"
16331653
},
16341654
"modelManifestArn":{
1635-
"shape":"arn",
1655+
"shape":"CreateDecoderManifestRequestModelManifestArnString",
16361656
"documentation":"<p> The Amazon Resource Name (ARN) of the vehicle model (model manifest). </p>"
16371657
},
16381658
"signalDecoders":{
@@ -1653,6 +1673,10 @@
16531673
}
16541674
}
16551675
},
1676+
"CreateDecoderManifestRequestModelManifestArnString":{
1677+
"type":"string",
1678+
"pattern":"arn:aws:iotfleetwise:[a-z0-9-]+:[0-9]{12}:model-manifest/[a-zA-Z\\d\\-_:]{1,100}"
1679+
},
16561680
"CreateDecoderManifestResponse":{
16571681
"type":"structure",
16581682
"required":[
@@ -1729,7 +1753,7 @@
17291753
"documentation":"<p> A brief description of the vehicle model. </p>"
17301754
},
17311755
"nodes":{
1732-
"shape":"listOfStrings",
1756+
"shape":"CreateModelManifestRequestNodesList",
17331757
"documentation":"<p> A list of nodes, which are a general abstraction of signals. </p>"
17341758
},
17351759
"signalCatalogArn":{
@@ -1742,6 +1766,12 @@
17421766
}
17431767
}
17441768
},
1769+
"CreateModelManifestRequestNodesList":{
1770+
"type":"list",
1771+
"member":{"shape":"string"},
1772+
"max":500,
1773+
"min":0
1774+
},
17451775
"CreateModelManifestResponse":{
17461776
"type":"structure",
17471777
"required":[
@@ -2025,7 +2055,7 @@
20252055
],
20262056
"members":{
20272057
"fullyQualifiedName":{
2028-
"shape":"string",
2058+
"shape":"CustomPropertyFullyQualifiedNameString",
20292059
"documentation":"<p>The fully qualified name of the custom property. For example, the fully qualified name of a custom property might be <code>ComplexDataTypes.VehicleDataTypes.SVMCamera.FPS</code>.</p>"
20302060
},
20312061
"dataType":{
@@ -2055,12 +2085,18 @@
20552085
},
20562086
"documentation":"<p>Represents a member of the complex data structure. The data type of the property can be either primitive or another <code>struct</code>.</p>"
20572087
},
2088+
"CustomPropertyFullyQualifiedNameString":{
2089+
"type":"string",
2090+
"max":150,
2091+
"min":1,
2092+
"pattern":"[a-zA-Z0-9_.]+"
2093+
},
20582094
"CustomStruct":{
20592095
"type":"structure",
20602096
"required":["fullyQualifiedName"],
20612097
"members":{
20622098
"fullyQualifiedName":{
2063-
"shape":"string",
2099+
"shape":"CustomStructFullyQualifiedNameString",
20642100
"documentation":"<p>The fully qualified name of the custom structure. For example, the fully qualified name of a custom structure might be <code>ComplexDataTypes.VehicleDataTypes.SVMCamera</code>.</p>"
20652101
},
20662102
"description":{
@@ -2078,6 +2114,12 @@
20782114
},
20792115
"documentation":"<p>The custom structure represents a complex or higher-order data structure.</p>"
20802116
},
2117+
"CustomStructFullyQualifiedNameString":{
2118+
"type":"string",
2119+
"max":150,
2120+
"min":1,
2121+
"pattern":"[a-zA-Z0-9_.]+"
2122+
},
20812123
"DataDestinationConfig":{
20822124
"type":"structure",
20832125
"members":{
@@ -2538,7 +2580,8 @@
25382580
"FullyQualifiedName":{
25392581
"type":"string",
25402582
"max":150,
2541-
"min":1
2583+
"min":1,
2584+
"pattern":"[a-zA-Z0-9_.]+"
25422585
},
25432586
"GetCampaignRequest":{
25442587
"type":"structure",
@@ -3174,7 +3217,8 @@
31743217
"InterfaceId":{
31753218
"type":"string",
31763219
"max":50,
3177-
"min":1
3220+
"min":1,
3221+
"pattern":"[-a-zA-Z0-9_.]+"
31783222
},
31793223
"InterfaceIds":{
31803224
"type":"list",
@@ -4109,7 +4153,8 @@
41094153
"ObdInterfaceName":{
41104154
"type":"string",
41114155
"max":100,
4112-
"min":1
4156+
"min":1,
4157+
"pattern":"[a-zA-Z0-9_.]+"
41134158
},
41144159
"ObdSignal":{
41154160
"type":"structure",
@@ -4211,12 +4256,14 @@
42114256
"ProtocolName":{
42124257
"type":"string",
42134258
"max":50,
4214-
"min":1
4259+
"min":1,
4260+
"pattern":"[a-zA-Z0-9_.]+"
42154261
},
42164262
"ProtocolVersion":{
42174263
"type":"string",
42184264
"max":50,
4219-
"min":1
4265+
"min":1,
4266+
"pattern":"[a-zA-Z0-9_.]+"
42204267
},
42214268
"PutEncryptionConfigurationRequest":{
42224269
"type":"structure",
@@ -4445,7 +4492,7 @@
44454492
],
44464493
"members":{
44474494
"fullyQualifiedName":{
4448-
"shape":"string",
4495+
"shape":"SensorFullyQualifiedNameString",
44494496
"documentation":"<p>The fully qualified name of the sensor. For example, the fully qualified name of a sensor might be <code>Vehicle.Body.Engine.Battery</code>.</p>"
44504497
},
44514498
"dataType":{
@@ -4487,6 +4534,12 @@
44874534
},
44884535
"documentation":"<p>An input component that reports the environmental condition of a vehicle.</p> <note> <p>You can collect data about fluid levels, temperatures, vibrations, or battery voltage from sensors.</p> </note>"
44894536
},
4537+
"SensorFullyQualifiedNameString":{
4538+
"type":"string",
4539+
"max":150,
4540+
"min":1,
4541+
"pattern":"[a-zA-Z0-9_.]+"
4542+
},
44904543
"SignalCatalogSummary":{
44914544
"type":"structure",
44924545
"members":{
@@ -5908,17 +5961,20 @@
59085961
},
59095962
"nonNegativeInteger":{
59105963
"type":"integer",
5964+
"max":2147483647,
59115965
"min":0
59125966
},
59135967
"number":{"type":"integer"},
59145968
"positiveInteger":{
59155969
"type":"integer",
59165970
"box":true,
5971+
"max":2147483647,
59175972
"min":1
59185973
},
59195974
"positiveLong":{
59205975
"type":"long",
59215976
"box":true,
5977+
"max":9223372036854775807,
59225978
"min":1
59235979
},
59245980
"priority":{

0 commit comments

Comments
 (0)