Skip to content

Commit 2657cc9

Browse files
author
awstools
committed
feat(client-pricing): Update GetProducts and DescribeServices API request input validations.
1 parent 08b5479 commit 2657cc9

File tree

1 file changed

+39
-6
lines changed

1 file changed

+39
-6
lines changed

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

+39-6
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@
833833
}
834834
},
835835
"FormatVersion": {
836-
"target": "com.amazonaws.pricing#String",
836+
"target": "com.amazonaws.pricing#FormatVersion",
837837
"traits": {
838838
"smithy.api#documentation": "<p>The format version that you want the response to be in.</p>\n <p>Valid values are: <code>aws_v1</code>\n </p>"
839839
}
@@ -866,7 +866,7 @@
866866
}
867867
},
868868
"FormatVersion": {
869-
"target": "com.amazonaws.pricing#String",
869+
"target": "com.amazonaws.pricing#FormatVersion",
870870
"traits": {
871871
"smithy.api#documentation": "<p>The format version of the response. For example, <code>aws_v1</code>.</p>"
872872
}
@@ -898,6 +898,15 @@
898898
"smithy.api#httpError": 400
899899
}
900900
},
901+
"com.amazonaws.pricing#Field": {
902+
"type": "string",
903+
"traits": {
904+
"smithy.api#length": {
905+
"min": 1,
906+
"max": 1024
907+
}
908+
}
909+
},
901910
"com.amazonaws.pricing#FileFormat": {
902911
"type": "string",
903912
"traits": {
@@ -924,14 +933,14 @@
924933
}
925934
},
926935
"Field": {
927-
"target": "com.amazonaws.pricing#String",
936+
"target": "com.amazonaws.pricing#Field",
928937
"traits": {
929938
"smithy.api#documentation": "<p>The product metadata field that you want to filter on. You can filter by just the \n service code to see all products for a specific service, filter \n by just the attribute name to see a specific attribute for multiple services, or use both a service code\n and an attribute name to retrieve only products that match both fields.</p>\n <p>Valid values include: <code>ServiceCode</code>, and all attribute names</p>\n <p>For example, you can filter by the <code>AmazonEC2</code> service code and the \n <code>volumeType</code> attribute name to get the prices for only Amazon EC2 volumes.</p>",
930939
"smithy.api#required": {}
931940
}
932941
},
933942
"Value": {
934-
"target": "com.amazonaws.pricing#String",
943+
"target": "com.amazonaws.pricing#Value",
935944
"traits": {
936945
"smithy.api#documentation": "<p>The service code or attribute value that you want to filter by. If you're filtering\n by service code this is the actual service code, such as <code>AmazonEC2</code>. If you're\n filtering by attribute name, this is the attribute value that you want the returned\n products to match, such as a <code>Provisioned IOPS</code> volume.</p>",
937946
"smithy.api#required": {}
@@ -957,6 +966,21 @@
957966
"type": "list",
958967
"member": {
959968
"target": "com.amazonaws.pricing#Filter"
969+
},
970+
"traits": {
971+
"smithy.api#length": {
972+
"min": 0,
973+
"max": 50
974+
}
975+
}
976+
},
977+
"com.amazonaws.pricing#FormatVersion": {
978+
"type": "string",
979+
"traits": {
980+
"smithy.api#length": {
981+
"min": 1,
982+
"max": 32
983+
}
960984
}
961985
},
962986
"com.amazonaws.pricing#GetAttributeValues": {
@@ -1197,7 +1221,7 @@
11971221
}
11981222
},
11991223
"FormatVersion": {
1200-
"target": "com.amazonaws.pricing#String",
1224+
"target": "com.amazonaws.pricing#FormatVersion",
12011225
"traits": {
12021226
"smithy.api#documentation": "<p>The format version that you want the response to be in.</p>\n <p>Valid values are: <code>aws_v1</code>\n </p>"
12031227
}
@@ -1224,7 +1248,7 @@
12241248
"type": "structure",
12251249
"members": {
12261250
"FormatVersion": {
1227-
"target": "com.amazonaws.pricing#String",
1251+
"target": "com.amazonaws.pricing#FormatVersion",
12281252
"traits": {
12291253
"smithy.api#documentation": "<p>The format version of the response. For example, aws_v1.</p>"
12301254
}
@@ -1558,6 +1582,15 @@
15581582
}
15591583
}
15601584
},
1585+
"com.amazonaws.pricing#Value": {
1586+
"type": "string",
1587+
"traits": {
1588+
"smithy.api#length": {
1589+
"min": 1,
1590+
"max": 1024
1591+
}
1592+
}
1593+
},
15611594
"com.amazonaws.pricing#errorMessage": {
15621595
"type": "string"
15631596
}

0 commit comments

Comments
 (0)