ResourceExplorer2
unmarshaller for ResourceProperty
is missing the Data
field
#3016
Labels
bug
This issue is a bug.
Describe the bug
SearchResult :: List<Resources> :: List<ResourceProperty>
Data
field bound and unmarshalled into theResourceProperty
objectThis prevents me from seeing tags associated with my resources via the SDK, whereas I can see them from the CLI
Expected Behavior
I expect the Java SDK to have all of the same fields as the documentation
In Java SDK
https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-resourceexplorer2/src/main/java/com/amazonaws/services/resourceexplorer2/model/ResourceProperty.java
In AWS docs
https://docs.aws.amazon.com/resource-explorer/latest/apireference/API_ResourceProperty.html
Current Behavior
The Java SDK is missing the
Data
field in theResourceProperty
objectI do not see a variable to hold the
Data
field returned by the AWS servicehttps://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-resourceexplorer2/src/main/java/com/amazonaws/services/resourceexplorer2/model/ResourceProperty.java
I also do not see an unmarshaller which visits this node in the response and attempts to bind it
Reproduction Steps
When invoking the resource explorer via the AWS CLI, I can see the
Data
field present in the response for resources which have tagsaws resource-explorer-2 search --query-string "region:us-east-1" --no-paginate
When using the AwsResourceExplorer2Async client, I am unable to find any methods which interact with the
Data
field, example in Scala included:The call to
resourceProperty.getData
does not compilePossible Solution
I'm not sure why the Java SDK and the listed documentation is different.
I suspect this is an issue with the codegen configuration for this service's data model.
Additional Information/Context
No response
AWS Java SDK version used
1.12.518
JDK version used
openjdk 11.0.13 2021-10-19 LTS OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS) OpenJDK 64-Bit Server VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode)
Operating System and version
macOS 13.4.1 (c) (22F770820d)
The text was updated successfully, but these errors were encountered: