Skip to content

Commit 534d72f

Browse files
This release adds the option to update the strategy of state templates already associated to a vehicle, without the need to remove and re-add them.
1 parent 88f9043 commit 534d72f

File tree

15 files changed

+187
-11
lines changed

15 files changed

+187
-11
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3584,7 +3584,8 @@
35843584
"attributes":{"shape":"attributesMap"},
35853585
"attributeUpdateMode":{"shape":"UpdateMode"},
35863586
"stateTemplatesToAdd":{"shape":"StateTemplateAssociations"},
3587-
"stateTemplatesToRemove":{"shape":"StateTemplateAssociationIdentifiers"}
3587+
"stateTemplatesToRemove":{"shape":"StateTemplateAssociationIdentifiers"},
3588+
"stateTemplatesToUpdate":{"shape":"StateTemplateAssociations"}
35883589
}
35893590
},
35903591
"UpdateVehicleRequestItem":{
@@ -3597,7 +3598,8 @@
35973598
"attributes":{"shape":"attributesMap"},
35983599
"attributeUpdateMode":{"shape":"UpdateMode"},
35993600
"stateTemplatesToAdd":{"shape":"StateTemplateAssociations"},
3600-
"stateTemplatesToRemove":{"shape":"StateTemplateAssociationIdentifiers"}
3601+
"stateTemplatesToRemove":{"shape":"StateTemplateAssociationIdentifiers"},
3602+
"stateTemplatesToUpdate":{"shape":"StateTemplateAssociations"}
36013603
}
36023604
},
36033605
"UpdateVehicleResponse":{
@@ -3900,7 +3902,7 @@
39003902
"statusStr":{
39013903
"type":"string",
39023904
"max":20,
3903-
"min":7,
3905+
"min":1,
39043906
"pattern":"[A-Z_]*"
39053907
},
39063908
"string":{"type":"string"},

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"UpdateModelManifest": "<p> Updates a vehicle model (model manifest). If created vehicles are associated with a vehicle model, it can't be updated.</p>",
5959
"UpdateSignalCatalog": "<p> Updates a signal catalog. </p>",
6060
"UpdateStateTemplate": "<p>Updates a state template.</p> <important> <p>Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see <a href=\"https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html\">Amazon Web Services Region and feature availability</a> in the <i>Amazon Web Services IoT FleetWise Developer Guide</i>.</p> </important>",
61-
"UpdateVehicle": "<p> Updates a vehicle. </p>"
61+
"UpdateVehicle": "<p> Updates a vehicle.</p> <important> <p>Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see <a href=\"https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html\">Amazon Web Services Region and feature availability</a> in the <i>Amazon Web Services IoT FleetWise Developer Guide</i>.</p> </important>"
6262
},
6363
"shapes": {
6464
"AccessDeniedException": {
@@ -1378,7 +1378,9 @@
13781378
"CreateVehicleRequestItem$stateTemplates": "<p>Associate state templates to track the state of the vehicle. State templates determine which signal updates the vehicle sends to the cloud.</p>",
13791379
"GetVehicleResponse$stateTemplates": "<p>State templates associated with the vehicle.</p>",
13801380
"UpdateVehicleRequest$stateTemplatesToAdd": "<p>Associate state templates with the vehicle.</p>",
1381-
"UpdateVehicleRequestItem$stateTemplatesToAdd": "<p>Associate additional state templates to track the state of the vehicle. State templates determine which signal updates the vehicle sends to the cloud.</p>"
1381+
"UpdateVehicleRequest$stateTemplatesToUpdate": "<p>Change the <code>stateTemplateUpdateStrategy</code> of state templates already associated with the vehicle.</p>",
1382+
"UpdateVehicleRequestItem$stateTemplatesToAdd": "<p>Associate additional state templates to track the state of the vehicle. State templates determine which signal updates the vehicle sends to the cloud.</p>",
1383+
"UpdateVehicleRequestItem$stateTemplatesToUpdate": "<p>Change the <code>stateTemplateUpdateStrategy</code> of state templates already associated with the vehicle.</p>"
13821384
}
13831385
},
13841386
"StateTemplateDataExtraDimensionNodePathList": {
@@ -1748,7 +1750,7 @@
17481750
}
17491751
},
17501752
"UpdateVehicleRequestItem": {
1751-
"base": "<p>Information about the vehicle to update.</p>",
1753+
"base": "<p>Information about the vehicle to update.</p> <important> <p>Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see <a href=\"https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html\">Amazon Web Services Region and feature availability</a> in the <i>Amazon Web Services IoT FleetWise Developer Guide</i>.</p> </important>",
17521754
"refs": {
17531755
"updateVehicleRequestItems$member": null
17541756
}

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@
10381038
{"shape":"ValidationException"},
10391039
{"shape":"AccessDeniedException"}
10401040
],
1041-
"documentation":"<p> Updates a vehicle. </p>"
1041+
"documentation":"<p> Updates a vehicle.</p> <important> <p>Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see <a href=\"https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html\">Amazon Web Services Region and feature availability</a> in the <i>Amazon Web Services IoT FleetWise Developer Guide</i>.</p> </important>"
10421042
}
10431043
},
10441044
"shapes":{
@@ -5527,6 +5527,10 @@
55275527
"stateTemplatesToRemove":{
55285528
"shape":"StateTemplateAssociationIdentifiers",
55295529
"documentation":"<p>Remove state templates from the vehicle.</p>"
5530+
},
5531+
"stateTemplatesToUpdate":{
5532+
"shape":"StateTemplateAssociations",
5533+
"documentation":"<p>Change the <code>stateTemplateUpdateStrategy</code> of state templates already associated with the vehicle.</p>"
55305534
}
55315535
}
55325536
},
@@ -5561,9 +5565,13 @@
55615565
"stateTemplatesToRemove":{
55625566
"shape":"StateTemplateAssociationIdentifiers",
55635567
"documentation":"<p>Remove existing state template associations from the vehicle.</p>"
5568+
},
5569+
"stateTemplatesToUpdate":{
5570+
"shape":"StateTemplateAssociations",
5571+
"documentation":"<p>Change the <code>stateTemplateUpdateStrategy</code> of state templates already associated with the vehicle.</p>"
55645572
}
55655573
},
5566-
"documentation":"<p>Information about the vehicle to update.</p>"
5574+
"documentation":"<p>Information about the vehicle to update.</p> <important> <p>Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see <a href=\"https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html\">Amazon Web Services Region and feature availability</a> in the <i>Amazon Web Services IoT FleetWise Developer Guide</i>.</p> </important>"
55675575
},
55685576
"UpdateVehicleResponse":{
55695577
"type":"structure",
@@ -5931,7 +5939,7 @@
59315939
"statusStr":{
59325940
"type":"string",
59335941
"max":20,
5934-
"min":7,
5942+
"min":1,
59355943
"pattern":"[A-Z_]*"
59365944
},
59375945
"string":{"type":"string"},

sdk/code-analysis/ServiceAnalysis/IoTFleetWise/Generated/PropertyValueRules.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@
459459
</property-value-rule>
460460
<property-value-rule>
461461
<property>Amazon.IoTFleetWise.Model.ListCampaignsRequest.Status</property>
462-
<min>7</min>
462+
<min>1</min>
463463
<max>20</max>
464464
<pattern>[A-Z_]*</pattern>
465465
</property-value-rule>

sdk/src/Services/IoTFleetWise/Generated/Model/Internal/MarshallTransformations/UpdateVehicleRequestItemMarshaller.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,22 @@ public void Marshall(UpdateVehicleRequestItem requestObject, JsonMarshallerConte
107107
context.Writer.WriteArrayEnd();
108108
}
109109

110+
if(requestObject.IsSetStateTemplatesToUpdate())
111+
{
112+
context.Writer.WritePropertyName("stateTemplatesToUpdate");
113+
context.Writer.WriteArrayStart();
114+
foreach(var requestObjectStateTemplatesToUpdateListValue in requestObject.StateTemplatesToUpdate)
115+
{
116+
context.Writer.WriteObjectStart();
117+
118+
var marshaller = StateTemplateAssociationMarshaller.Instance;
119+
marshaller.Marshall(requestObjectStateTemplatesToUpdateListValue, context);
120+
121+
context.Writer.WriteObjectEnd();
122+
}
123+
context.Writer.WriteArrayEnd();
124+
}
125+
110126
if(requestObject.IsSetVehicleName())
111127
{
112128
context.Writer.WritePropertyName("vehicleName");

sdk/src/Services/IoTFleetWise/Generated/Model/Internal/MarshallTransformations/UpdateVehicleRequestMarshaller.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,22 @@ public IRequest Marshall(UpdateVehicleRequest publicRequest)
128128
context.Writer.WriteArrayEnd();
129129
}
130130

131+
if(publicRequest.IsSetStateTemplatesToUpdate())
132+
{
133+
context.Writer.WritePropertyName("stateTemplatesToUpdate");
134+
context.Writer.WriteArrayStart();
135+
foreach(var publicRequestStateTemplatesToUpdateListValue in publicRequest.StateTemplatesToUpdate)
136+
{
137+
context.Writer.WriteObjectStart();
138+
139+
var marshaller = StateTemplateAssociationMarshaller.Instance;
140+
marshaller.Marshall(publicRequestStateTemplatesToUpdateListValue, context);
141+
142+
context.Writer.WriteObjectEnd();
143+
}
144+
context.Writer.WriteArrayEnd();
145+
}
146+
131147
if(publicRequest.IsSetVehicleName())
132148
{
133149
context.Writer.WritePropertyName("vehicleName");

sdk/src/Services/IoTFleetWise/Generated/Model/ListCampaignsRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ internal bool IsSetNextToken()
121121
/// <c>RUNNING</c>, or <c>SUSPENDED</c>.
122122
/// </para>
123123
/// </summary>
124-
[AWSProperty(Min=7, Max=20)]
124+
[AWSProperty(Min=1, Max=20)]
125125
public string Status
126126
{
127127
get { return this._status; }

sdk/src/Services/IoTFleetWise/Generated/Model/UpdateVehicleRequest.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ namespace Amazon.IoTFleetWise.Model
3232
/// <summary>
3333
/// Container for the parameters to the UpdateVehicle operation.
3434
/// Updates a vehicle.
35+
///
36+
/// <important>
37+
/// <para>
38+
/// Access to certain Amazon Web Services IoT FleetWise features is currently gated. For
39+
/// more information, see <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html">Amazon
40+
/// Web Services Region and feature availability</a> in the <i>Amazon Web Services IoT
41+
/// FleetWise Developer Guide</i>.
42+
/// </para>
43+
/// </important>
3544
/// </summary>
3645
public partial class UpdateVehicleRequest : AmazonIoTFleetWiseRequest
3746
{
@@ -41,6 +50,7 @@ public partial class UpdateVehicleRequest : AmazonIoTFleetWiseRequest
4150
private string _modelManifestArn;
4251
private List<StateTemplateAssociation> _stateTemplatesToAdd = AWSConfigs.InitializeCollections ? new List<StateTemplateAssociation>() : null;
4352
private List<string> _stateTemplatesToRemove = AWSConfigs.InitializeCollections ? new List<string>() : null;
53+
private List<StateTemplateAssociation> _stateTemplatesToUpdate = AWSConfigs.InitializeCollections ? new List<StateTemplateAssociation>() : null;
4454
private string _vehicleName;
4555

4656
/// <summary>
@@ -163,6 +173,26 @@ internal bool IsSetStateTemplatesToRemove()
163173
return this._stateTemplatesToRemove != null && (this._stateTemplatesToRemove.Count > 0 || !AWSConfigs.InitializeCollections);
164174
}
165175

176+
/// <summary>
177+
/// Gets and sets the property StateTemplatesToUpdate.
178+
/// <para>
179+
/// Change the <c>stateTemplateUpdateStrategy</c> of state templates already associated
180+
/// with the vehicle.
181+
/// </para>
182+
/// </summary>
183+
[AWSProperty(Min=1, Max=20)]
184+
public List<StateTemplateAssociation> StateTemplatesToUpdate
185+
{
186+
get { return this._stateTemplatesToUpdate; }
187+
set { this._stateTemplatesToUpdate = value; }
188+
}
189+
190+
// Check to see if StateTemplatesToUpdate property is set
191+
internal bool IsSetStateTemplatesToUpdate()
192+
{
193+
return this._stateTemplatesToUpdate != null && (this._stateTemplatesToUpdate.Count > 0 || !AWSConfigs.InitializeCollections);
194+
}
195+
166196
/// <summary>
167197
/// Gets and sets the property VehicleName.
168198
/// <para>

sdk/src/Services/IoTFleetWise/Generated/Model/UpdateVehicleRequestItem.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ namespace Amazon.IoTFleetWise.Model
3131
{
3232
/// <summary>
3333
/// Information about the vehicle to update.
34+
///
35+
/// <important>
36+
/// <para>
37+
/// Access to certain Amazon Web Services IoT FleetWise features is currently gated. For
38+
/// more information, see <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html">Amazon
39+
/// Web Services Region and feature availability</a> in the <i>Amazon Web Services IoT
40+
/// FleetWise Developer Guide</i>.
41+
/// </para>
42+
/// </important>
3443
/// </summary>
3544
public partial class UpdateVehicleRequestItem
3645
{
@@ -40,6 +49,7 @@ public partial class UpdateVehicleRequestItem
4049
private string _modelManifestArn;
4150
private List<StateTemplateAssociation> _stateTemplatesToAdd = AWSConfigs.InitializeCollections ? new List<StateTemplateAssociation>() : null;
4251
private List<string> _stateTemplatesToRemove = AWSConfigs.InitializeCollections ? new List<string>() : null;
52+
private List<StateTemplateAssociation> _stateTemplatesToUpdate = AWSConfigs.InitializeCollections ? new List<StateTemplateAssociation>() : null;
4353
private string _vehicleName;
4454

4555
/// <summary>
@@ -163,6 +173,26 @@ internal bool IsSetStateTemplatesToRemove()
163173
return this._stateTemplatesToRemove != null && (this._stateTemplatesToRemove.Count > 0 || !AWSConfigs.InitializeCollections);
164174
}
165175

176+
/// <summary>
177+
/// Gets and sets the property StateTemplatesToUpdate.
178+
/// <para>
179+
/// Change the <c>stateTemplateUpdateStrategy</c> of state templates already associated
180+
/// with the vehicle.
181+
/// </para>
182+
/// </summary>
183+
[AWSProperty(Min=1, Max=20)]
184+
public List<StateTemplateAssociation> StateTemplatesToUpdate
185+
{
186+
get { return this._stateTemplatesToUpdate; }
187+
set { this._stateTemplatesToUpdate = value; }
188+
}
189+
190+
// Check to see if StateTemplatesToUpdate property is set
191+
internal bool IsSetStateTemplatesToUpdate()
192+
{
193+
return this._stateTemplatesToUpdate != null && (this._stateTemplatesToUpdate.Count > 0 || !AWSConfigs.InitializeCollections);
194+
}
195+
166196
/// <summary>
167197
/// Gets and sets the property VehicleName.
168198
/// <para>

sdk/src/Services/IoTFleetWise/Generated/_bcl35/AmazonIoTFleetWiseClient.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4578,6 +4578,15 @@ public virtual UpdateStateTemplateResponse EndUpdateStateTemplate(IAsyncResult a
45784578

45794579
/// <summary>
45804580
/// Updates a vehicle.
4581+
///
4582+
/// <important>
4583+
/// <para>
4584+
/// Access to certain Amazon Web Services IoT FleetWise features is currently gated. For
4585+
/// more information, see <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html">Amazon
4586+
/// Web Services Region and feature availability</a> in the <i>Amazon Web Services IoT
4587+
/// FleetWise Developer Guide</i>.
4588+
/// </para>
4589+
/// </important>
45814590
/// </summary>
45824591
/// <param name="request">Container for the necessary parameters to execute the UpdateVehicle service method.</param>
45834592
///

0 commit comments

Comments
 (0)