Skip to content

Commit

Permalink
feat(client-pricing): Documentation update for GetProducts Response.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Jun 30, 2022
1 parent 3e7e5cb commit 8c5e287
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions clients/client-pricing/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ const deserializeAws_json1_1GetProductsResponse = (output: any, context: __Serde
NextToken: __expectString(output.NextToken),
PriceList:
output.PriceList !== undefined && output.PriceList !== null
? deserializeAws_json1_1PriceList(output.PriceList, context)
? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context)
: undefined,
} as any;
};
Expand Down Expand Up @@ -463,7 +463,10 @@ const deserializeAws_json1_1NotFoundException = (output: any, context: __SerdeCo
} as any;
};

const deserializeAws_json1_1PriceList = (output: any, context: __SerdeContext): (__LazyJsonString | string)[] => {
const deserializeAws_json1_1PriceListJsonItems = (
output: any,
context: __SerdeContext
): (__LazyJsonString | string)[] => {
const retVal = (output || [])
.filter((e: any) => e != null)
.map((entry: any) => {
Expand Down
8 changes: 4 additions & 4 deletions codegen/sdk-codegen/aws-models/pricing.json
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
}
},
"PriceList": {
"target": "com.amazonaws.pricing#PriceList",
"target": "com.amazonaws.pricing#PriceListJsonItems",
"traits": {
"smithy.api#documentation": "<p>The list of products that match your filters. The list contains both the product metadata and \n the price information.</p>"
}
Expand Down Expand Up @@ -469,10 +469,10 @@
"smithy.api#httpError": 400
}
},
"com.amazonaws.pricing#PriceList": {
"com.amazonaws.pricing#PriceListJsonItems": {
"type": "list",
"member": {
"target": "com.amazonaws.pricing#SynthesizedJsonPriceListItemJSON"
"target": "com.amazonaws.pricing#SynthesizedJsonPriceListJsonItem"
}
},
"com.amazonaws.pricing#Service": {
Expand Down Expand Up @@ -505,7 +505,7 @@
"com.amazonaws.pricing#String": {
"type": "string"
},
"com.amazonaws.pricing#SynthesizedJsonPriceListItemJSON": {
"com.amazonaws.pricing#SynthesizedJsonPriceListJsonItem": {
"type": "string",
"traits": {
"smithy.api#mediaType": "application/json"
Expand Down

0 comments on commit 8c5e287

Please sign in to comment.