Skip to content

Commit

Permalink
feat(client-iotfleetwise): Updated APIs: SignalNodeType query paramet…
Browse files Browse the repository at this point in the history
…er has been added to ListSignalCatalogNodesRequest and ListVehiclesResponse has been extended with attributes field.
  • Loading branch information
awstools committed Jan 16, 2024
1 parent daf640b commit 7877ded
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface ListSignalCatalogNodesCommandOutput extends ListSignalCatalogNo
* name: "STRING_VALUE", // required
* nextToken: "STRING_VALUE",
* maxResults: Number("int"),
* signalNodeType: "SENSOR" || "ACTUATOR" || "ATTRIBUTE" || "BRANCH" || "CUSTOM_STRUCT" || "CUSTOM_PROPERTY",
* };
* const command = new ListSignalCatalogNodesCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export interface ListVehiclesCommandOutput extends ListVehiclesResponse, __Metad
* // decoderManifestArn: "STRING_VALUE", // required
* // creationTime: new Date("TIMESTAMP"), // required
* // lastModificationTime: new Date("TIMESTAMP"), // required
* // attributes: { // attributesMap
* // "<keys>": "STRING_VALUE",
* // },
* // },
* // ],
* // nextToken: "STRING_VALUE",
Expand Down
35 changes: 34 additions & 1 deletion clients/client-iotfleetwise/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ export interface ConditionBasedCollectionScheme {
/**
* @public
* <p>The logical expression used to recognize what data to collect. For example,
* <code>$variable.Vehicle.OutsideAirTemperature &gt;= 105.0</code>.</p>
* <code>$variable.`Vehicle.OutsideAirTemperature` &gt;= 105.0</code>.</p>
*/
expression: string | undefined;

Expand Down Expand Up @@ -4717,6 +4717,24 @@ export interface RegisterAccountResponse {
lastModificationTime: Date | undefined;
}

/**
* @public
* @enum
*/
export const SignalNodeType = {
ACTUATOR: "ACTUATOR",
ATTRIBUTE: "ATTRIBUTE",
BRANCH: "BRANCH",
CUSTOM_PROPERTY: "CUSTOM_PROPERTY",
CUSTOM_STRUCT: "CUSTOM_STRUCT",
SENSOR: "SENSOR",
} as const;

/**
* @public
*/
export type SignalNodeType = (typeof SignalNodeType)[keyof typeof SignalNodeType];

/**
* @public
*/
Expand All @@ -4739,6 +4757,12 @@ export interface ListSignalCatalogNodesRequest {
* <p> The maximum number of items to return, between 1 and 100, inclusive. </p>
*/
maxResults?: number;

/**
* @public
* <p>The type of node in the signal catalog.</p>
*/
signalNodeType?: SignalNodeType;
}

/**
Expand Down Expand Up @@ -4987,6 +5011,15 @@ export interface VehicleSummary {
* <p>The time the vehicle was last updated in seconds since epoch (January 1, 1970 at midnight UTC time). </p>
*/
lastModificationTime: Date | undefined;

/**
* @public
* <p>Static information about a vehicle in a key-value pair. For example:</p>
* <p>
* <code>"engineType"</code> : <code>"1.3 L R2"</code>
* </p>
*/
attributes?: Record<string, string>;
}

/**
Expand Down
1 change: 1 addition & 0 deletions clients/client-iotfleetwise/src/protocols/Aws_json1_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5581,6 +5581,7 @@ const de_vehicleSummaries = (output: any, context: __SerdeContext): VehicleSumma
const de_VehicleSummary = (output: any, context: __SerdeContext): VehicleSummary => {
return take(output, {
arn: __expectString,
attributes: _json,
creationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
decoderManifestArn: __expectString,
lastModificationTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
Expand Down
56 changes: 55 additions & 1 deletion codegen/sdk-codegen/aws-models/iotfleetwise.json
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@
"expression": {
"target": "com.amazonaws.iotfleetwise#eventExpression",
"traits": {
"smithy.api#documentation": "<p>The logical expression used to recognize what data to collect. For example,\n <code>$variable.Vehicle.OutsideAirTemperature &gt;= 105.0</code>.</p>",
"smithy.api#documentation": "<p>The logical expression used to recognize what data to collect. For example,\n <code>$variable.`Vehicle.OutsideAirTemperature` &gt;= 105.0</code>.</p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -5267,6 +5267,13 @@
"smithy.api#documentation": "<p> The maximum number of items to return, between 1 and 100, inclusive. </p>",
"smithy.api#httpQuery": "maxResults"
}
},
"signalNodeType": {
"target": "com.amazonaws.iotfleetwise#SignalNodeType",
"traits": {
"smithy.api#documentation": "<p>The type of node in the signal catalog.</p>",
"smithy.api#httpQuery": "signalNodeType"
}
}
}
},
Expand Down Expand Up @@ -7275,6 +7282,47 @@
}
}
},
"com.amazonaws.iotfleetwise#SignalNodeType": {
"type": "enum",
"members": {
"SENSOR": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "SENSOR"
}
},
"ACTUATOR": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ACTUATOR"
}
},
"ATTRIBUTE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ATTRIBUTE"
}
},
"BRANCH": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "BRANCH"
}
},
"CUSTOM_STRUCT": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "CUSTOM_STRUCT"
}
},
"CUSTOM_PROPERTY": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "CUSTOM_PROPERTY"
}
}
}
},
"com.amazonaws.iotfleetwise#SpoolingMode": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -8839,6 +8887,12 @@
"smithy.api#documentation": "<p>The time the vehicle was last updated in seconds since epoch (January 1, 1970 at midnight UTC time). </p>",
"smithy.api#required": {}
}
},
"attributes": {
"target": "com.amazonaws.iotfleetwise#attributesMap",
"traits": {
"smithy.api#documentation": "<p>Static information about a vehicle in a key-value pair. For example:</p>\n <p>\n <code>\"engineType\"</code> : <code>\"1.3 L R2\"</code>\n </p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 7877ded

Please sign in to comment.