Skip to content

Commit 2a31f0d

Browse files
Update JSON target for Kubernetes workload resource type.
1 parent f25543e commit 2a31f0d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

generator/ServiceModels/guardduty/guardduty-2017-11-28.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5179,7 +5179,7 @@
51795179
},
51805180
"KubernetesResourcesTypes":{
51815181
"shape":"KubernetesResourcesTypes",
5182-
"locationName":"kubernetesResourcesTypes"
5182+
"locationName":"type"
51835183
}
51845184
}
51855185
},

generator/ServiceModels/guardduty/guardduty-2017-11-28.normal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5899,7 +5899,7 @@
58995899
"KubernetesResourcesTypes":{
59005900
"shape":"KubernetesResourcesTypes",
59015901
"documentation":"<p>The types of Kubernetes resources involved in the workload.</p>",
5902-
"locationName":"kubernetesResourcesTypes"
5902+
"locationName":"type"
59035903
}
59045904
},
59055905
"documentation":"<p>Contains information about Kubernetes workloads involved in a GuardDuty finding, including pods, deployments, and other Kubernetes resources.</p>"

sdk/src/Services/GuardDuty/Generated/Model/Internal/MarshallTransformations/KubernetesWorkloadUnmarshaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public KubernetesWorkload Unmarshall(JsonUnmarshallerContext context, ref Stream
6262
unmarshalledObject.ContainerUids = unmarshaller.Unmarshall(context, ref reader);
6363
continue;
6464
}
65-
if (context.TestExpression("kubernetesResourcesTypes", targetDepth))
65+
if (context.TestExpression("type", targetDepth))
6666
{
6767
var unmarshaller = StringUnmarshaller.Instance;
6868
unmarshalledObject.KubernetesResourcesTypes = unmarshaller.Unmarshall(context, ref reader);

0 commit comments

Comments
 (0)