Skip to content

Commit 2429292

Browse files
author
AWS
committed
AWS IoT FleetWise Update: Refine campaign related API validations
1 parent 0fa11d2 commit 2429292

File tree

2 files changed

+36
-14
lines changed

2 files changed

+36
-14
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": "Refine campaign related API validations"
6+
}

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

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,8 @@
10151015
"AmazonResourceName":{
10161016
"type":"string",
10171017
"max":1011,
1018-
"min":1
1018+
"min":1,
1019+
"pattern":"arn:.*"
10191020
},
10201021
"AssociateVehicleFleetRequest":{
10211022
"type":"structure",
@@ -1181,7 +1182,7 @@
11811182
],
11821183
"members":{
11831184
"arn":{
1184-
"shape":"arn",
1185+
"shape":"campaignArn",
11851186
"documentation":"<p>The Amazon Resource Name (ARN) of a campaign.</p>"
11861187
},
11871188
"name":{
@@ -1451,7 +1452,9 @@
14511452
},
14521453
"priority":{
14531454
"shape":"priority",
1454-
"documentation":"<p>(Optional) A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet. A campaign with the lowest value is deployed to vehicles before any other campaigns. If it's not specified, <code>0</code> is used. </p> <p>Default: <code>0</code> </p>"
1455+
"documentation":"<p>(Optional) A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet. A campaign with the lowest value is deployed to vehicles before any other campaigns. If it's not specified, <code>0</code> is used. </p> <p>Default: <code>0</code> </p>",
1456+
"deprecated":true,
1457+
"deprecatedMessage":"priority is no longer used or needed as input"
14551458
},
14561459
"signalsToCollect":{
14571460
"shape":"SignalInformationList",
@@ -1483,7 +1486,7 @@
14831486
"documentation":"<p>The name of the created campaign.</p>"
14841487
},
14851488
"arn":{
1486-
"shape":"arn",
1489+
"shape":"campaignArn",
14871490
"documentation":"<p> The ARN of the created campaign. </p>"
14881491
}
14891492
}
@@ -1874,7 +1877,8 @@
18741877
"type":"list",
18751878
"member":{"shape":"NodePath"},
18761879
"max":5,
1877-
"min":0
1880+
"min":0,
1881+
"sensitive":true
18781882
},
18791883
"DataFormat":{
18801884
"type":"string",
@@ -1959,7 +1963,7 @@
19591963
"documentation":"<p>The name of the deleted campaign.</p>"
19601964
},
19611965
"arn":{
1962-
"shape":"arn",
1966+
"shape":"campaignArn",
19631967
"documentation":"<p> The Amazon Resource Name (ARN) of the deleted campaign.</p> <note> <p>The ARN isn’t returned if a campaign doesn’t exist.</p> </note>"
19641968
}
19651969
}
@@ -2215,7 +2219,7 @@
22152219
"documentation":"<p>The name of the campaign.</p>"
22162220
},
22172221
"arn":{
2218-
"shape":"arn",
2222+
"shape":"campaignArn",
22192223
"documentation":"<p> The Amazon Resource Name (ARN) of the campaign. </p>"
22202224
},
22212225
"description":{
@@ -2905,7 +2909,7 @@
29052909
"documentation":"<p> The maximum number of items to return, between 1 and 100, inclusive. </p>"
29062910
},
29072911
"status":{
2908-
"shape":"status",
2912+
"shape":"statusStr",
29092913
"documentation":"<p>Optional parameter to filter the results by the status of each created campaign in your account. The status can be one of: <code>CREATING</code>, <code>WAITING_FOR_APPROVAL</code>, <code>RUNNING</code>, or <code>SUSPENDED</code>.</p>"
29102914
}
29112915
}
@@ -4072,7 +4076,8 @@
40724076
"type":"list",
40734077
"member":{"shape":"SignalInformation"},
40744078
"max":1000,
4075-
"min":0
4079+
"min":0,
4080+
"sensitive":true
40764081
},
40774082
"SignalNodeType":{
40784083
"type":"string",
@@ -4439,7 +4444,7 @@
44394444
"type":"structure",
44404445
"members":{
44414446
"arn":{
4442-
"shape":"arn",
4447+
"shape":"campaignArn",
44434448
"documentation":"<p> The Amazon Resource Name (ARN) of the campaign. </p>"
44444449
},
44454450
"name":{
@@ -4825,7 +4830,7 @@
48254830
"type":"structure",
48264831
"members":{
48274832
"campaignName":{
4828-
"shape":"string",
4833+
"shape":"campaignName",
48294834
"documentation":"<p>The name of a campaign.</p>"
48304835
},
48314836
"vehicleName":{
@@ -4910,6 +4915,10 @@
49104915
"key":{"shape":"attributeName"},
49114916
"value":{"shape":"attributeValue"}
49124917
},
4918+
"campaignArn":{
4919+
"type":"string",
4920+
"pattern":"arn:aws:iotfleetwise:[a-z0-9-]+:[0-9]{12}:campaign/[a-zA-Z\\d\\-_:]{1,100}"
4921+
},
49134922
"campaignName":{
49144923
"type":"string",
49154924
"max":100,
@@ -4923,7 +4932,7 @@
49234932
"collectionPeriodMs":{
49244933
"type":"long",
49254934
"box":true,
4926-
"max":60000,
4935+
"max":86400000,
49274936
"min":10000
49284937
},
49294938
"createVehicleErrors":{
@@ -4958,7 +4967,8 @@
49584967
"eventExpression":{
49594968
"type":"string",
49604969
"max":2048,
4961-
"min":1
4970+
"min":1,
4971+
"sensitive":true
49624972
},
49634973
"fleetId":{
49644974
"type":"string",
@@ -4977,6 +4987,7 @@
49774987
"languageVersion":{
49784988
"type":"integer",
49794989
"box":true,
4990+
"max":1,
49804991
"min":1
49814992
},
49824993
"listOfStrings":{
@@ -5041,7 +5052,12 @@
50415052
"type":"list",
50425053
"member":{"shape":"SignalCatalogSummary"}
50435054
},
5044-
"status":{"type":"string"},
5055+
"statusStr":{
5056+
"type":"string",
5057+
"max":20,
5058+
"min":7,
5059+
"pattern":"[A-Z_]*"
5060+
},
50455061
"string":{"type":"string"},
50465062
"timestamp":{"type":"timestamp"},
50475063
"uint32":{

0 commit comments

Comments
 (0)