Skip to content

Commit f0a5384

Browse files
author
awstools
committed
feat(client-iotfleetwise): 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 458278b commit f0a5384

File tree

4 files changed

+62
-4
lines changed

4 files changed

+62
-4
lines changed

clients/client-iotfleetwise/src/commands/BatchUpdateVehicleCommand.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@ export interface BatchUpdateVehicleCommandOutput extends BatchUpdateVehicleRespo
6868
* stateTemplatesToRemove: [ // StateTemplateAssociationIdentifiers
6969
* "STRING_VALUE",
7070
* ],
71+
* stateTemplatesToUpdate: [
72+
* {
73+
* identifier: "STRING_VALUE", // required
74+
* stateTemplateUpdateStrategy: {// Union: only one key present
75+
* periodic: {
76+
* stateTemplateUpdateRate: {
77+
* unit: "MILLISECOND" || "SECOND" || "MINUTE" || "HOUR", // required
78+
* value: Number("int"), // required
79+
* },
80+
* },
81+
* onChange: {},
82+
* },
83+
* },
84+
* ],
7185
* },
7286
* ],
7387
* };

clients/client-iotfleetwise/src/commands/UpdateVehicleCommand.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export interface UpdateVehicleCommandInput extends UpdateVehicleRequest {}
2828
export interface UpdateVehicleCommandOutput extends UpdateVehicleResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p> Updates a vehicle. </p>
31+
* <p> Updates a vehicle.</p>
32+
* <important>
33+
* <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>
34+
* </important>
3235
* @example
3336
* Use a bare-bones client and the command you need to make an API call.
3437
* ```javascript
@@ -60,6 +63,20 @@ export interface UpdateVehicleCommandOutput extends UpdateVehicleResponse, __Met
6063
* stateTemplatesToRemove: [ // StateTemplateAssociationIdentifiers
6164
* "STRING_VALUE",
6265
* ],
66+
* stateTemplatesToUpdate: [
67+
* {
68+
* identifier: "STRING_VALUE", // required
69+
* stateTemplateUpdateStrategy: {// Union: only one key present
70+
* periodic: {
71+
* stateTemplateUpdateRate: {
72+
* unit: "MILLISECOND" || "SECOND" || "MINUTE" || "HOUR", // required
73+
* value: Number("int"), // required
74+
* },
75+
* },
76+
* onChange: {},
77+
* },
78+
* },
79+
* ],
6380
* };
6481
* const command = new UpdateVehicleCommand(input);
6582
* const response = await client.send(command);

clients/client-iotfleetwise/src/models/models_0.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,9 @@ export type UpdateMode = (typeof UpdateMode)[keyof typeof UpdateMode];
765765

766766
/**
767767
* <p>Information about the vehicle to update.</p>
768+
* <important>
769+
* <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>
770+
* </important>
768771
* @public
769772
*/
770773
export interface UpdateVehicleRequestItem {
@@ -816,6 +819,12 @@ export interface UpdateVehicleRequestItem {
816819
* @public
817820
*/
818821
stateTemplatesToRemove?: string[] | undefined;
822+
823+
/**
824+
* <p>Change the <code>stateTemplateUpdateStrategy</code> of state templates already associated with the vehicle.</p>
825+
* @public
826+
*/
827+
stateTemplatesToUpdate?: StateTemplateAssociation[] | undefined;
819828
}
820829

821830
/**
@@ -6229,6 +6238,12 @@ export interface UpdateVehicleRequest {
62296238
* @public
62306239
*/
62316240
stateTemplatesToRemove?: string[] | undefined;
6241+
6242+
/**
6243+
* <p>Change the <code>stateTemplateUpdateStrategy</code> of state templates already associated with the vehicle.</p>
6244+
* @public
6245+
*/
6246+
stateTemplatesToUpdate?: StateTemplateAssociation[] | undefined;
62326247
}
62336248

62346249
/**

codegen/sdk-codegen/aws-models/iotfleetwise.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9861,7 +9861,7 @@
98619861
}
98629862
],
98639863
"traits": {
9864-
"smithy.api#documentation": "<p> Updates a vehicle. </p>",
9864+
"smithy.api#documentation": "<p> Updates a vehicle.</p>\n <important>\n <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>\n </important>",
98659865
"smithy.api#http": {
98669866
"method": "PATCH",
98679867
"uri": "/vehicles/{vehicleName}",
@@ -9942,6 +9942,12 @@
99429942
"traits": {
99439943
"smithy.api#documentation": "<p>Remove state templates from the vehicle.</p>"
99449944
}
9945+
},
9946+
"stateTemplatesToUpdate": {
9947+
"target": "com.amazonaws.iotfleetwise#StateTemplateAssociations",
9948+
"traits": {
9949+
"smithy.api#documentation": "<p>Change the <code>stateTemplateUpdateStrategy</code> of state templates already associated with the vehicle.</p>"
9950+
}
99459951
}
99469952
}
99479953
},
@@ -9990,10 +9996,16 @@
99909996
"traits": {
99919997
"smithy.api#documentation": "<p>Remove existing state template associations from the vehicle.</p>"
99929998
}
9999+
},
10000+
"stateTemplatesToUpdate": {
10001+
"target": "com.amazonaws.iotfleetwise#StateTemplateAssociations",
10002+
"traits": {
10003+
"smithy.api#documentation": "<p>Change the <code>stateTemplateUpdateStrategy</code> of state templates already associated with the vehicle.</p>"
10004+
}
999310005
}
999410006
},
999510007
"traits": {
9996-
"smithy.api#documentation": "<p>Information about the vehicle to update.</p>"
10008+
"smithy.api#documentation": "<p>Information about the vehicle to update.</p>\n <important>\n <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>\n </important>"
999710009
}
999810010
},
999910011
"com.amazonaws.iotfleetwise#UpdateVehicleResponse": {
@@ -10675,7 +10687,7 @@
1067510687
"type": "string",
1067610688
"traits": {
1067710689
"smithy.api#length": {
10678-
"min": 7,
10690+
"min": 1,
1067910691
"max": 20
1068010692
},
1068110693
"smithy.api#pattern": "^[A-Z_]*$"

0 commit comments

Comments
 (0)