Skip to content

Commit

Permalink
feat(client-iotfleetwise): AWS IoT FleetWise now supports listing veh…
Browse files Browse the repository at this point in the history
…icles with attributes filter, ListVehicles API is updated to support additional attributes filter.
  • Loading branch information
awstools committed May 24, 2024
1 parent e087be2 commit 526c06c
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export interface ListVehiclesCommandOutput extends ListVehiclesResponse, __Metad
* const client = new IoTFleetWiseClient(config);
* const input = { // ListVehiclesRequest
* modelManifestArn: "STRING_VALUE",
* attributeNames: [ // attributeNamesList
* "STRING_VALUE",
* ],
* attributeValues: [ // attributeValuesList
* "STRING_VALUE",
* ],
* nextToken: "STRING_VALUE",
* maxResults: Number("int"),
* };
Expand Down
17 changes: 16 additions & 1 deletion clients/client-iotfleetwise/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ export interface CreateCampaignRequest {
description?: string;

/**
* <p>(Optional) The Amazon Resource Name (ARN) of the signal catalog to associate with the campaign.
* <p>The Amazon Resource Name (ARN) of the signal catalog to associate with the campaign.
* </p>
* @public
*/
Expand Down Expand Up @@ -4956,6 +4956,21 @@ export interface ListVehiclesRequest {
*/
modelManifestArn?: string;

/**
* <p>The fully qualified names of the attributes. For example, the fully qualified name of an attribute might be <code>Vehicle.Body.Engine.Type</code>.</p>
* @public
*/
attributeNames?: string[];

/**
* <p>Static information about a vehicle attribute value in string format. For example:</p>
* <p>
* <code>"1.3 L R2"</code>
* </p>
* @public
*/
attributeValues?: string[];

/**
* <p>A pagination token for the next set of results.</p>
* <p>If the results of a search are large, only a portion of the results are returned, and a <code>nextToken</code> pagination token is returned in the response. To retrieve the next set of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. </p>
Expand Down
4 changes: 4 additions & 0 deletions clients/client-iotfleetwise/src/protocols/Aws_json1_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2236,8 +2236,12 @@ const se_Attribute = (input: Attribute, context: __SerdeContext): any => {
});
};

// se_attributeNamesList omitted.

// se_attributesMap omitted.

// se_attributeValuesList omitted.

// se_BatchCreateVehicleRequest omitted.

// se_BatchUpdateVehicleRequest omitted.
Expand Down
40 changes: 39 additions & 1 deletion codegen/sdk-codegen/aws-models/iotfleetwise.json
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@
"signalCatalogArn": {
"target": "com.amazonaws.iotfleetwise#arn",
"traits": {
"smithy.api#documentation": "<p>(Optional) The Amazon Resource Name (ARN) of the signal catalog to associate with the campaign.\n </p>",
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the signal catalog to associate with the campaign.\n </p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -5560,6 +5560,20 @@
"smithy.api#httpQuery": "modelManifestArn"
}
},
"attributeNames": {
"target": "com.amazonaws.iotfleetwise#attributeNamesList",
"traits": {
"smithy.api#documentation": "<p>The fully qualified names of the attributes. For example, the fully qualified name of an attribute might be <code>Vehicle.Body.Engine.Type</code>.</p>",
"smithy.api#httpQuery": "attributeNames"
}
},
"attributeValues": {
"target": "com.amazonaws.iotfleetwise#attributeValuesList",
"traits": {
"smithy.api#documentation": "<p>Static information about a vehicle attribute value in string format. For example:</p>\n <p>\n <code>\"1.3 L R2\"</code>\n </p>",
"smithy.api#httpQuery": "attributeValues"
}
},
"nextToken": {
"target": "com.amazonaws.iotfleetwise#nextToken",
"traits": {
Expand Down Expand Up @@ -8912,9 +8926,33 @@
"smithy.api#pattern": "^[a-zA-Z0-9_.-]+$"
}
},
"com.amazonaws.iotfleetwise#attributeNamesList": {
"type": "list",
"member": {
"target": "com.amazonaws.iotfleetwise#attributeName"
},
"traits": {
"smithy.api#length": {
"min": 1,
"max": 5
}
}
},
"com.amazonaws.iotfleetwise#attributeValue": {
"type": "string"
},
"com.amazonaws.iotfleetwise#attributeValuesList": {
"type": "list",
"member": {
"target": "com.amazonaws.iotfleetwise#attributeValue"
},
"traits": {
"smithy.api#length": {
"min": 1,
"max": 5
}
}
},
"com.amazonaws.iotfleetwise#attributesMap": {
"type": "map",
"key": {
Expand Down

0 comments on commit 526c06c

Please sign in to comment.