Skip to content

Commit

Permalink
feat(client-iot): This release reduces the maximum results returned p…
Browse files Browse the repository at this point in the history
…er query invocation from 500 to 100 for the SearchIndex API. This change has no implications as long as the API is invoked until the nextToken is NULL.
  • Loading branch information
awstools committed Feb 28, 2024
1 parent 46e974e commit 1ebc3aa
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 20 deletions.
10 changes: 8 additions & 2 deletions clients/client-iot/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,10 @@ export interface AssociateTargetsWithJobRequest {
* <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>
* </p>
* <note>
* <p>The <code>namespaceId</code> feature is in public preview.</p>
* <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at
* this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting
* up IoT Greengrass core devices.</a>
* </p>
* </note>
*/
namespaceId?: string;
Expand Down Expand Up @@ -5010,7 +5013,10 @@ export interface CreateJobRequest {
* <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>
* </p>
* <note>
* <p>The <code>namespaceId</code> feature is in public preview.</p>
* <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at
* this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting
* up IoT Greengrass core devices.</a>
* </p>
* </note>
*/
namespaceId?: string;
Expand Down
24 changes: 19 additions & 5 deletions clients/client-iot/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ export interface DeleteJobRequest {
* <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>
* </p>
* <note>
* <p>The <code>namespaceId</code> feature is in public preview.</p>
* <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at
* this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting
* up IoT Greengrass core devices.</a>
* </p>
* </note>
*/
namespaceId?: string;
Expand Down Expand Up @@ -249,7 +252,10 @@ export interface DeleteJobExecutionRequest {
* <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>
* </p>
* <note>
* <p>The <code>namespaceId</code> feature is in public preview.</p>
* <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at
* this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting
* up IoT Greengrass core devices.</a>
* </p>
* </note>
*/
namespaceId?: string;
Expand Down Expand Up @@ -2498,7 +2504,10 @@ export interface Job {
* <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>
* </p>
* <note>
* <p>The <code>namespaceId</code> feature is in public preview.</p>
* <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at
* this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting
* up IoT Greengrass core devices.</a>
* </p>
* </note>
*/
namespaceId?: string;
Expand Down Expand Up @@ -6893,7 +6902,10 @@ export interface ListJobExecutionsForThingRequest {
* <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>
* </p>
* <note>
* <p>The <code>namespaceId</code> feature is in public preview.</p>
* <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at
* this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting
* up IoT Greengrass core devices.</a>
* </p>
* </note>
*/
namespaceId?: string;
Expand Down Expand Up @@ -7010,7 +7022,9 @@ export interface ListJobsRequest {
* <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>
* </p>
* <note>
* <p>The <code>namespaceId</code> feature is in public preview.</p>
* <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at this time. For
* more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting up IoT Greengrass core devices.</a>
* </p>
* </note>
*/
namespaceId?: string;
Expand Down
13 changes: 10 additions & 3 deletions clients/client-iot/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2618,8 +2618,12 @@ export interface SearchIndexRequest {

/**
* @public
* <p>The maximum number of results to return per page at one time. The response might
* contain fewer results but will never contain more.</p>
* <p>The maximum number of results to return per page at one time. This maximum number
* cannot exceed 100. The response might contain fewer results but will never contain more. You
* can use <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_SearchIndex.html#iot-SearchIndex-request-nextToken">
* <code>nextToken</code>
* </a> to retrieve the next set of results until
* <code>nextToken</code> returns <code>NULL</code>.</p>
*/
maxResults?: number;

Expand Down Expand Up @@ -4129,7 +4133,10 @@ export interface UpdateJobRequest {
* <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>
* </p>
* <note>
* <p>The <code>namespaceId</code> feature is in public preview.</p>
* <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at
* this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting
* up IoT Greengrass core devices.</a>
* </p>
* </note>
*/
namespaceId?: string;
Expand Down
28 changes: 18 additions & 10 deletions codegen/sdk-codegen/aws-models/iot.json
Original file line number Diff line number Diff line change
Expand Up @@ -2787,7 +2787,7 @@
"namespaceId": {
"target": "com.amazonaws.iot#NamespaceId",
"traits": {
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is in public preview.</p>\n </note>",
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at\n this time. For more information, see <a href=\"https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html\">Setting\n up IoT Greengrass core devices.</a>\n </p>\n </note>",
"smithy.api#httpQuery": "namespaceId"
}
}
Expand Down Expand Up @@ -7424,7 +7424,7 @@
"namespaceId": {
"target": "com.amazonaws.iot#NamespaceId",
"traits": {
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is in public preview.</p>\n </note>"
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at\n this time. For more information, see <a href=\"https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html\">Setting\n up IoT Greengrass core devices.</a>\n </p>\n </note>"
}
},
"jobTemplateArn": {
Expand Down Expand Up @@ -10587,7 +10587,7 @@
"namespaceId": {
"target": "com.amazonaws.iot#NamespaceId",
"traits": {
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is in public preview.</p>\n </note>",
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at\n this time. For more information, see <a href=\"https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html\">Setting\n up IoT Greengrass core devices.</a>\n </p>\n </note>",
"smithy.api#httpQuery": "namespaceId"
}
}
Expand Down Expand Up @@ -10618,7 +10618,7 @@
"namespaceId": {
"target": "com.amazonaws.iot#NamespaceId",
"traits": {
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is in public preview.</p>\n </note>",
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at\n this time. For more information, see <a href=\"https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html\">Setting\n up IoT Greengrass core devices.</a>\n </p>\n </note>",
"smithy.api#httpQuery": "namespaceId"
}
}
Expand Down Expand Up @@ -19141,7 +19141,7 @@
"namespaceId": {
"target": "com.amazonaws.iot#NamespaceId",
"traits": {
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is in public preview.</p>\n </note>"
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at\n this time. For more information, see <a href=\"https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html\">Setting\n up IoT Greengrass core devices.</a>\n </p>\n </note>"
}
},
"jobTemplateArn": {
Expand Down Expand Up @@ -22055,7 +22055,7 @@
"namespaceId": {
"target": "com.amazonaws.iot#NamespaceId",
"traits": {
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is in public preview.</p>\n </note>",
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at\n this time. For more information, see <a href=\"https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html\">Setting\n up IoT Greengrass core devices.</a>\n </p>\n </note>",
"smithy.api#httpQuery": "namespaceId"
}
},
Expand Down Expand Up @@ -22266,7 +22266,7 @@
"namespaceId": {
"target": "com.amazonaws.iot#NamespaceId",
"traits": {
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is in public preview.</p>\n </note>",
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at this time. For\n more information, see <a href=\"https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html\">Setting up IoT Greengrass core devices.</a>\n </p>\n </note>",
"smithy.api#httpQuery": "namespaceId"
}
}
Expand Down Expand Up @@ -29589,9 +29589,9 @@
}
},
"maxResults": {
"target": "com.amazonaws.iot#QueryMaxResults",
"target": "com.amazonaws.iot#SearchQueryMaxResults",
"traits": {
"smithy.api#documentation": "<p>The maximum number of results to return per page at one time. The response might\n contain fewer results but will never contain more.</p>"
"smithy.api#documentation": "<p>The maximum number of results to return per page at one time. This maximum number\n cannot exceed 100. The response might contain fewer results but will never contain more. You\n can use <a href=\"https://docs.aws.amazon.com/iot/latest/apireference/API_SearchIndex.html#iot-SearchIndex-request-nextToken\">\n <code>nextToken</code>\n </a> to retrieve the next set of results until\n <code>nextToken</code> returns <code>NULL</code>.</p>"
}
},
"queryVersion": {
Expand Down Expand Up @@ -29631,6 +29631,14 @@
"smithy.api#output": {}
}
},
"com.amazonaws.iot#SearchQueryMaxResults": {
"type": "integer",
"traits": {
"smithy.api#range": {
"min": 1
}
}
},
"com.amazonaws.iot#SearchableAttributes": {
"type": "list",
"member": {
Expand Down Expand Up @@ -34470,7 +34478,7 @@
"namespaceId": {
"target": "com.amazonaws.iot#NamespaceId",
"traits": {
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is in public preview.</p>\n </note>",
"smithy.api#documentation": "<p>The namespace used to indicate that a job is a customer-managed job.</p>\n <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that \n contain the value in the following format.</p>\n <p>\n <code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code>\n </p>\n <note>\n <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at\n this time. For more information, see <a href=\"https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html\">Setting\n up IoT Greengrass core devices.</a>\n </p>\n </note>",
"smithy.api#httpQuery": "namespaceId"
}
},
Expand Down

0 comments on commit 1ebc3aa

Please sign in to comment.