Skip to content

Commit 8395d2b

Browse files
author
AWS SDK for Go v2 automation user
committed
Update API model
1 parent 5b31157 commit 8395d2b

File tree

4 files changed

+306
-143
lines changed

4 files changed

+306
-143
lines changed

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

Lines changed: 152 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@
513513
{
514514
"target": "com.amazonaws.iot#ListManagedJobTemplates"
515515
},
516+
{
517+
"target": "com.amazonaws.iot#ListMetricValues"
518+
},
516519
{
517520
"target": "com.amazonaws.iot#ListMitigationActions"
518521
},
@@ -1304,7 +1307,7 @@
13041307
}
13051308
},
13061309
"overrideDynamicGroups": {
1307-
"target": "com.amazonaws.iot#OverrideDynamicGroups",
1310+
"target": "com.amazonaws.iot#NullableBoolean",
13081311
"traits": {
13091312
"smithy.api#documentation": "<p>Specifies if this mitigation action can move the things that triggered the mitigation action even if they are part of one or more dynamic thing groups.</p>"
13101313
}
@@ -7641,13 +7644,13 @@
76417644
"hashAlgorithm": {
76427645
"target": "com.amazonaws.iot#HashAlgorithm",
76437646
"traits": {
7644-
"smithy.api#documentation": "<p>The hash algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you can pass either of them based on which was used for generating the signature.</p>"
7647+
"smithy.api#documentation": "<p>The hash algorithm used to code sign the file.</p>"
76457648
}
76467649
},
76477650
"signatureAlgorithm": {
76487651
"target": "com.amazonaws.iot#SignatureAlgorithm",
76497652
"traits": {
7650-
"smithy.api#documentation": "<p>The signature algorithm used to code sign the file. You can use a string as the algorithm name if the target over-the-air (OTA) update devices are able to verify the signature that was generated using the same signature algorithm. For example, FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you can pass either of them based on which was used for generating the signature.</p>"
7653+
"smithy.api#documentation": "<p>The signature algorithm used to code sign the file.</p>"
76517654
}
76527655
}
76537656
},
@@ -18759,6 +18762,125 @@
1875918762
}
1876018763
}
1876118764
},
18765+
"com.amazonaws.iot#ListMetricValues": {
18766+
"type": "operation",
18767+
"input": {
18768+
"target": "com.amazonaws.iot#ListMetricValuesRequest"
18769+
},
18770+
"output": {
18771+
"target": "com.amazonaws.iot#ListMetricValuesResponse"
18772+
},
18773+
"errors": [
18774+
{
18775+
"target": "com.amazonaws.iot#InternalFailureException"
18776+
},
18777+
{
18778+
"target": "com.amazonaws.iot#InvalidRequestException"
18779+
},
18780+
{
18781+
"target": "com.amazonaws.iot#ResourceNotFoundException"
18782+
},
18783+
{
18784+
"target": "com.amazonaws.iot#ThrottlingException"
18785+
}
18786+
],
18787+
"traits": {
18788+
"smithy.api#documentation": "<p>Lists the values reported for an IoT Device Defender metric (device-side metric, cloud-side metric, or custom metric) \n by the given thing during the specified time period.</p>",
18789+
"smithy.api#http": {
18790+
"method": "GET",
18791+
"uri": "/metric-values",
18792+
"code": 200
18793+
},
18794+
"smithy.api#paginated": {
18795+
"inputToken": "nextToken",
18796+
"outputToken": "nextToken",
18797+
"items": "metricDatumList",
18798+
"pageSize": "maxResults"
18799+
}
18800+
}
18801+
},
18802+
"com.amazonaws.iot#ListMetricValuesRequest": {
18803+
"type": "structure",
18804+
"members": {
18805+
"thingName": {
18806+
"target": "com.amazonaws.iot#DeviceDefenderThingName",
18807+
"traits": {
18808+
"smithy.api#documentation": "<p>The name of the thing for which security profile metric values are returned.</p>",
18809+
"smithy.api#httpQuery": "thingName",
18810+
"smithy.api#required": {}
18811+
}
18812+
},
18813+
"metricName": {
18814+
"target": "com.amazonaws.iot#BehaviorMetric",
18815+
"traits": {
18816+
"smithy.api#documentation": "<p>The name of the security profile metric for which values are returned.</p>",
18817+
"smithy.api#httpQuery": "metricName",
18818+
"smithy.api#required": {}
18819+
}
18820+
},
18821+
"dimensionName": {
18822+
"target": "com.amazonaws.iot#DimensionName",
18823+
"traits": {
18824+
"smithy.api#documentation": "<p>The dimension name.</p>",
18825+
"smithy.api#httpQuery": "dimensionName"
18826+
}
18827+
},
18828+
"dimensionValueOperator": {
18829+
"target": "com.amazonaws.iot#DimensionValueOperator",
18830+
"traits": {
18831+
"smithy.api#documentation": "<p>The dimension value operator.</p>",
18832+
"smithy.api#httpQuery": "dimensionValueOperator"
18833+
}
18834+
},
18835+
"startTime": {
18836+
"target": "com.amazonaws.iot#Timestamp",
18837+
"traits": {
18838+
"smithy.api#documentation": "<p>The start of the time period for which metric values are returned.</p>",
18839+
"smithy.api#httpQuery": "startTime",
18840+
"smithy.api#required": {}
18841+
}
18842+
},
18843+
"endTime": {
18844+
"target": "com.amazonaws.iot#Timestamp",
18845+
"traits": {
18846+
"smithy.api#documentation": "<p>The end of the time period for which metric values are returned.</p>",
18847+
"smithy.api#httpQuery": "endTime",
18848+
"smithy.api#required": {}
18849+
}
18850+
},
18851+
"maxResults": {
18852+
"target": "com.amazonaws.iot#MaxResults",
18853+
"traits": {
18854+
"smithy.api#documentation": "<p>The maximum number of results to return at one time.</p>",
18855+
"smithy.api#httpQuery": "maxResults"
18856+
}
18857+
},
18858+
"nextToken": {
18859+
"target": "com.amazonaws.iot#NextToken",
18860+
"traits": {
18861+
"smithy.api#documentation": "<p>The token for the next set of results.</p>",
18862+
"smithy.api#httpQuery": "nextToken"
18863+
}
18864+
}
18865+
}
18866+
},
18867+
"com.amazonaws.iot#ListMetricValuesResponse": {
18868+
"type": "structure",
18869+
"members": {
18870+
"metricDatumList": {
18871+
"target": "com.amazonaws.iot#MetricDatumList",
18872+
"traits": {
18873+
"smithy.api#documentation": "<p>The data the thing reports for the metric during the specified time period.</p>"
18874+
}
18875+
},
18876+
"nextToken": {
18877+
"target": "com.amazonaws.iot#NextToken",
18878+
"traits": {
18879+
"smithy.api#documentation": "<p>A token that can be used to retrieve the next set of results, or <code>null</code> \n if there are no additional results.</p>"
18880+
}
18881+
}
18882+
}
18883+
},
1876218884
"com.amazonaws.iot#ListMitigationActions": {
1876318885
"type": "operation",
1876418886
"input": {
@@ -21758,6 +21880,32 @@
2175821880
}
2175921881
}
2176021882
},
21883+
"com.amazonaws.iot#MetricDatum": {
21884+
"type": "structure",
21885+
"members": {
21886+
"timestamp": {
21887+
"target": "com.amazonaws.iot#Timestamp",
21888+
"traits": {
21889+
"smithy.api#documentation": "<p>The time the metric value was reported.</p>"
21890+
}
21891+
},
21892+
"value": {
21893+
"target": "com.amazonaws.iot#MetricValue",
21894+
"traits": {
21895+
"smithy.api#documentation": "<p>The value reported for the metric.</p>"
21896+
}
21897+
}
21898+
},
21899+
"traits": {
21900+
"smithy.api#documentation": "<p>A metric.</p>"
21901+
}
21902+
},
21903+
"com.amazonaws.iot#MetricDatumList": {
21904+
"type": "list",
21905+
"member": {
21906+
"target": "com.amazonaws.iot#MetricDatum"
21907+
}
21908+
},
2176121909
"com.amazonaws.iot#MetricDimension": {
2176221910
"type": "structure",
2176321911
"members": {
@@ -30289,7 +30437,7 @@
3028930437
"min": 0,
3029030438
"max": 1000
3029130439
},
30292-
"smithy.api#pattern": "^[\\p{Graph}\\x20]*$"
30440+
"smithy.api#pattern": "^[^\\p{Cntrl}]*$"
3029330441
}
3029430442
},
3029530443
"com.amazonaws.iot#Version": {

0 commit comments

Comments
 (0)