Skip to content

Commit 7fd2e7b

Browse files
JordonPhillipsAllanZhengYP
authored andcommitted
chore: Update service models (#679)
Changes in this update include: * Added models for greengrass and mediaconnect. * Traits that don't match the protocol are preserved. * XML name and flattened traits are fixed up accoring to the updated spec.
1 parent de24c6d commit 7fd2e7b

File tree

116 files changed

+14294
-1641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+14294
-1641
lines changed

codegen/sdk-codegen/aws-models/amplify.2017-07-25.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@
175175
]
176176
}
177177
],
178-
"smithy.api#title": "AWS Amplify"
178+
"smithy.api#title": "AWS Amplify",
179+
"smithy.api#xmlNamespace": {
180+
"uri": "http://amplify.amazonaws.com"
181+
}
179182
}
180183
},
181184
"com.amazonaws.amplify#App": {

codegen/sdk-codegen/aws-models/application-auto-scaling.2016-02-06.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
},
133133
"traits": {
134134
"smithy.api#documentation": "\n <p>Concurrent updates caused an exception, for example, if you request an update to an\n Application Auto Scaling resource that already has a pending update.</p>\n ",
135-
"smithy.api#error": "server"
135+
"smithy.api#error": "server",
136+
"smithy.api#httpError": 500
136137
}
137138
},
138139
"com.amazonaws.autoscaling.anyscale.frontend#Cooldown": {
@@ -737,7 +738,8 @@
737738
},
738739
"traits": {
739740
"smithy.api#documentation": "\n <p>Failed access to resources caused an exception. This exception is thrown when Application Auto Scaling\n is unable to retrieve the alarms associated with a scaling policy due to a client error,\n for example, if the role ARN specified for a scalable target does not have permission to\n call the CloudWatch <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html\">DescribeAlarms</a> on your behalf.</p>\n ",
740-
"smithy.api#error": "client"
741+
"smithy.api#error": "client",
742+
"smithy.api#httpError": 400
741743
}
742744
},
743745
"com.amazonaws.autoscaling.anyscale.frontend#InternalServiceException": {
@@ -749,7 +751,8 @@
749751
},
750752
"traits": {
751753
"smithy.api#documentation": "\n <p>The service encountered an internal error.</p>\n ",
752-
"smithy.api#error": "server"
754+
"smithy.api#error": "server",
755+
"smithy.api#httpError": 500
753756
}
754757
},
755758
"com.amazonaws.autoscaling.anyscale.frontend#InvalidNextTokenException": {
@@ -761,7 +764,8 @@
761764
},
762765
"traits": {
763766
"smithy.api#documentation": "\n <p>The next token supplied was invalid.</p>\n ",
764-
"smithy.api#error": "client"
767+
"smithy.api#error": "client",
768+
"smithy.api#httpError": 400
765769
}
766770
},
767771
"com.amazonaws.autoscaling.anyscale.frontend#LimitExceededException": {
@@ -773,7 +777,8 @@
773777
},
774778
"traits": {
775779
"smithy.api#documentation": "\n <p>A per-account resource limit is exceeded. For more information, see <a href=\"https://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html\">Application Auto Scaling Limits</a>.</p>\n ",
776-
"smithy.api#error": "client"
780+
"smithy.api#error": "client",
781+
"smithy.api#httpError": 400
777782
}
778783
},
779784
"com.amazonaws.autoscaling.anyscale.frontend#MaxResults": {
@@ -933,7 +938,8 @@
933938
},
934939
"traits": {
935940
"smithy.api#documentation": "\n <p>The specified object could not be found. For any operation that depends on the existence\n of a scalable target, this exception is thrown if the scalable target with the specified\n service namespace, resource ID, and scalable dimension does not exist. For any operation\n that deletes or deregisters a resource, this exception is thrown if the resource cannot be\n found.</p>\n ",
936-
"smithy.api#error": "client"
941+
"smithy.api#error": "client",
942+
"smithy.api#httpError": 400
937943
}
938944
},
939945
"com.amazonaws.autoscaling.anyscale.frontend#PolicyName": {
@@ -1907,7 +1913,8 @@
19071913
},
19081914
"traits": {
19091915
"smithy.api#documentation": "\n <p>An exception was thrown for a validation issue. Review the available parameters for the\n API request.</p>\n ",
1910-
"smithy.api#error": "client"
1916+
"smithy.api#error": "client",
1917+
"smithy.api#httpError": 400
19111918
}
19121919
},
19131920
"com.amazonaws.autoscaling.anyscale.frontend#XmlString": {

codegen/sdk-codegen/aws-models/application-discovery-service.2015-11-01.json

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@
121121
]
122122
}
123123
],
124-
"smithy.api#title": "AWS Application Discovery Service"
124+
"smithy.api#title": "AWS Application Discovery Service",
125+
"smithy.api#xmlNamespace": {
126+
"uri": "http://ec2.amazon.com/awsposiedon/V2015_11_01/"
127+
}
125128
}
126129
},
127130
"com.amazonaws.awsposeidon.V2015_11_01#AgentConfigurationStatus": {
@@ -360,7 +363,8 @@
360363
},
361364
"traits": {
362365
"smithy.api#documentation": "\n <p>The AWS user account does not have permission to perform the action. Check the IAM\n policy associated with this account.</p>\n ",
363-
"smithy.api#error": "client"
366+
"smithy.api#error": "client",
367+
"smithy.api#httpError": 403
364368
}
365369
},
366370
"com.amazonaws.awsposeidon.V2015_11_01#BatchDeleteImportData": {
@@ -565,7 +569,10 @@
565569
"com.amazonaws.awsposeidon.V2015_11_01#ConfigurationTagSet": {
566570
"type": "list",
567571
"member": {
568-
"target": "com.amazonaws.awsposeidon.V2015_11_01#ConfigurationTag"
572+
"target": "com.amazonaws.awsposeidon.V2015_11_01#ConfigurationTag",
573+
"traits": {
574+
"smithy.api#xmlName": "item"
575+
}
569576
}
570577
},
571578
"com.amazonaws.awsposeidon.V2015_11_01#Configurations": {
@@ -589,7 +596,8 @@
589596
},
590597
"traits": {
591598
"smithy.api#documentation": "\n <p></p>\n ",
592-
"smithy.api#error": "client"
599+
"smithy.api#error": "client",
600+
"smithy.api#httpError": 409
593601
}
594602
},
595603
"com.amazonaws.awsposeidon.V2015_11_01#ContinuousExportDescription": {
@@ -1854,7 +1862,10 @@
18541862
"com.amazonaws.awsposeidon.V2015_11_01#FilterValues": {
18551863
"type": "list",
18561864
"member": {
1857-
"target": "com.amazonaws.awsposeidon.V2015_11_01#FilterValue"
1865+
"target": "com.amazonaws.awsposeidon.V2015_11_01#FilterValue",
1866+
"traits": {
1867+
"smithy.api#xmlName": "item"
1868+
}
18581869
}
18591870
},
18601871
"com.amazonaws.awsposeidon.V2015_11_01#Filters": {
@@ -1946,7 +1957,8 @@
19461957
},
19471958
"traits": {
19481959
"smithy.api#documentation": "\n <p>The home region is not set. Set the home region to continue.</p>\n ",
1949-
"smithy.api#error": "client"
1960+
"smithy.api#error": "client",
1961+
"smithy.api#httpError": 400
19501962
}
19511963
},
19521964
"com.amazonaws.awsposeidon.V2015_11_01#ImportStatus": {
@@ -2171,7 +2183,8 @@
21712183
},
21722184
"traits": {
21732185
"smithy.api#documentation": "\n <p>One or more parameters are not valid. Verify the parameters and try again.</p>\n ",
2174-
"smithy.api#error": "client"
2186+
"smithy.api#error": "client",
2187+
"smithy.api#httpError": 400
21752188
}
21762189
},
21772190
"com.amazonaws.awsposeidon.V2015_11_01#InvalidParameterValueException": {
@@ -2183,7 +2196,8 @@
21832196
},
21842197
"traits": {
21852198
"smithy.api#documentation": "\n <p>The value of one or more parameters are either invalid or out of range. Verify the\n parameter values and try again.</p>\n ",
2186-
"smithy.api#error": "client"
2199+
"smithy.api#error": "client",
2200+
"smithy.api#httpError": 400
21872201
}
21882202
},
21892203
"com.amazonaws.awsposeidon.V2015_11_01#ListConfigurations": {
@@ -2425,7 +2439,8 @@
24252439
},
24262440
"traits": {
24272441
"smithy.api#documentation": "\n <p>This operation is not permitted.</p>\n ",
2428-
"smithy.api#error": "client"
2442+
"smithy.api#error": "client",
2443+
"smithy.api#httpError": 429
24292444
}
24302445
},
24312446
"com.amazonaws.awsposeidon.V2015_11_01#OrderByElement": {
@@ -2464,7 +2479,8 @@
24642479
},
24652480
"traits": {
24662481
"smithy.api#documentation": "\n <p>This issue occurs when the same <code>clientRequestToken</code> is used with the\n <code>StartImportTask</code> action, but with different parameters. For example, you use the\n same request token but have two different import URLs, you can encounter this issue. If the\n import tasks are meant to be different, use a different <code>clientRequestToken</code>, and\n try again.</p>\n ",
2467-
"smithy.api#error": "client"
2482+
"smithy.api#error": "client",
2483+
"smithy.api#httpError": 400
24682484
}
24692485
},
24702486
"com.amazonaws.awsposeidon.V2015_11_01#ResourceNotFoundException": {
@@ -2476,7 +2492,8 @@
24762492
},
24772493
"traits": {
24782494
"smithy.api#documentation": "\n <p>The specified configuration ID was not located. Verify the configuration ID and try\n again.</p>\n ",
2479-
"smithy.api#error": "client"
2495+
"smithy.api#error": "client",
2496+
"smithy.api#httpError": 400
24802497
}
24812498
},
24822499
"com.amazonaws.awsposeidon.V2015_11_01#S3Bucket": {
@@ -2503,7 +2520,8 @@
25032520
},
25042521
"traits": {
25052522
"smithy.api#documentation": "\n <p>The server experienced an internal error. Try again.</p>\n ",
2506-
"smithy.api#error": "server"
2523+
"smithy.api#error": "server",
2524+
"smithy.api#httpError": 500
25072525
}
25082526
},
25092527
"com.amazonaws.awsposeidon.V2015_11_01#StartContinuousExport": {
@@ -2963,7 +2981,10 @@
29632981
"com.amazonaws.awsposeidon.V2015_11_01#TagSet": {
29642982
"type": "list",
29652983
"member": {
2966-
"target": "com.amazonaws.awsposeidon.V2015_11_01#Tag"
2984+
"target": "com.amazonaws.awsposeidon.V2015_11_01#Tag",
2985+
"traits": {
2986+
"smithy.api#xmlName": "item"
2987+
}
29672988
}
29682989
},
29692990
"com.amazonaws.awsposeidon.V2015_11_01#TagValue": {

codegen/sdk-codegen/aws-models/application-insights.2018-11-25.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
},
129129
"traits": {
130130
"smithy.api#documentation": "\n <p>The request is not understood by the server.</p>\n ",
131-
"smithy.api#error": "client"
131+
"smithy.api#error": "client",
132+
"smithy.api#httpError": 400
132133
}
133134
},
134135
"com.amazonaws.ec2windowsbarley#ComponentConfiguration": {
@@ -1083,7 +1084,8 @@
10831084
},
10841085
"traits": {
10851086
"smithy.api#documentation": "\n <p>The server encountered an internal error and is unable to complete the request.</p>\n ",
1086-
"smithy.api#error": "server"
1087+
"smithy.api#error": "server",
1088+
"smithy.api#httpError": 500
10871089
}
10881090
},
10891091
"com.amazonaws.ec2windowsbarley#LifeCycle": {
@@ -1868,7 +1870,8 @@
18681870
},
18691871
"traits": {
18701872
"smithy.api#documentation": "\n <p>The resource is already created or in use.</p>\n ",
1871-
"smithy.api#error": "client"
1873+
"smithy.api#error": "client",
1874+
"smithy.api#httpError": 400
18721875
}
18731876
},
18741877
"com.amazonaws.ec2windowsbarley#ResourceList": {
@@ -1886,7 +1889,8 @@
18861889
},
18871890
"traits": {
18881891
"smithy.api#documentation": "\n <p>The resource does not exist in the customer account.</p>\n ",
1889-
"smithy.api#error": "client"
1892+
"smithy.api#error": "client",
1893+
"smithy.api#httpError": 404
18901894
}
18911895
},
18921896
"com.amazonaws.ec2windowsbarley#ResourceType": {
@@ -2040,7 +2044,8 @@
20402044
},
20412045
"traits": {
20422046
"smithy.api#documentation": "\n <p>Tags are already registered for the specified application ARN.</p>\n ",
2043-
"smithy.api#error": "client"
2047+
"smithy.api#error": "client",
2048+
"smithy.api#httpError": 400
20442049
}
20452050
},
20462051
"com.amazonaws.ec2windowsbarley#Tier": {
@@ -2077,7 +2082,8 @@
20772082
},
20782083
"traits": {
20792084
"smithy.api#documentation": "\n <p>The number of the provided tags is beyond the limit, or\n the number of total tags you are trying to attach to the specified resource exceeds the limit.</p>\n ",
2080-
"smithy.api#error": "client"
2085+
"smithy.api#error": "client",
2086+
"smithy.api#httpError": 400
20812087
}
20822088
},
20832089
"com.amazonaws.ec2windowsbarley#Unit": {
@@ -2405,7 +2411,8 @@
24052411
},
24062412
"traits": {
24072413
"smithy.api#documentation": "\n <p>The parameter is not valid.</p>\n ",
2408-
"smithy.api#error": "client"
2414+
"smithy.api#error": "client",
2415+
"smithy.api#httpError": 400
24092416
}
24102417
},
24112418
"com.amazonaws.ec2windowsbarley#Value": {

codegen/sdk-codegen/aws-models/appstream.2016-12-01.json

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,8 @@
463463
},
464464
"traits": {
465465
"smithy.api#documentation": "\n <p>An API error occurred. Wait a few minutes and try again.</p>\n ",
466-
"smithy.api#error": "client"
466+
"smithy.api#error": "client",
467+
"smithy.api#httpError": 400
467468
}
468469
},
469470
"com.amazonaws.photon#CopyImage": {
@@ -3235,7 +3236,8 @@
32353236
},
32363237
"traits": {
32373238
"smithy.api#documentation": "\n <p>The image does not support storage connectors.</p>\n ",
3238-
"smithy.api#error": "client"
3239+
"smithy.api#error": "client",
3240+
"smithy.api#httpError": 400
32393241
}
32403242
},
32413243
"com.amazonaws.photon#Integer": {
@@ -3253,7 +3255,8 @@
32533255
},
32543256
"traits": {
32553257
"smithy.api#documentation": "\n <p>The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support. </p>\n ",
3256-
"smithy.api#error": "client"
3258+
"smithy.api#error": "client",
3259+
"smithy.api#httpError": 400
32573260
}
32583261
},
32593262
"com.amazonaws.photon#InvalidParameterCombinationException": {
@@ -3265,7 +3268,8 @@
32653268
},
32663269
"traits": {
32673270
"smithy.api#documentation": "\n <p>Indicates an incorrect combination of parameters, or a missing parameter.</p>\n ",
3268-
"smithy.api#error": "client"
3271+
"smithy.api#error": "client",
3272+
"smithy.api#httpError": 400
32693273
}
32703274
},
32713275
"com.amazonaws.photon#InvalidRoleException": {
@@ -3277,7 +3281,8 @@
32773281
},
32783282
"traits": {
32793283
"smithy.api#documentation": "\n <p>The specified role is invalid.</p>\n ",
3280-
"smithy.api#error": "client"
3284+
"smithy.api#error": "client",
3285+
"smithy.api#httpError": 400
32813286
}
32823287
},
32833288
"com.amazonaws.photon#LastReportGenerationExecutionError": {
@@ -3315,7 +3320,8 @@
33153320
},
33163321
"traits": {
33173322
"smithy.api#documentation": "\n <p>The requested limit exceeds the permitted limit for an account.</p>\n ",
3318-
"smithy.api#error": "client"
3323+
"smithy.api#error": "client",
3324+
"smithy.api#httpError": 400
33193325
}
33203326
},
33213327
"com.amazonaws.photon#ListAssociatedFleets": {
@@ -3525,7 +3531,8 @@
35253531
},
35263532
"traits": {
35273533
"smithy.api#documentation": "\n <p>The attempted operation is not permitted.</p>\n ",
3528-
"smithy.api#error": "client"
3534+
"smithy.api#error": "client",
3535+
"smithy.api#httpError": 400
35293536
}
35303537
},
35313538
"com.amazonaws.photon#OrganizationalUnitDistinguishedName": {
@@ -3758,7 +3765,8 @@
37583765
},
37593766
"traits": {
37603767
"smithy.api#documentation": "\n <p>The specified resource already exists.</p>\n ",
3761-
"smithy.api#error": "client"
3768+
"smithy.api#error": "client",
3769+
"smithy.api#httpError": 400
37623770
}
37633771
},
37643772
"com.amazonaws.photon#ResourceError": {
@@ -3811,7 +3819,8 @@
38113819
},
38123820
"traits": {
38133821
"smithy.api#documentation": "\n <p>The specified resource is in use.</p>\n ",
3814-
"smithy.api#error": "client"
3822+
"smithy.api#error": "client",
3823+
"smithy.api#httpError": 400
38153824
}
38163825
},
38173826
"com.amazonaws.photon#ResourceNotAvailableException": {
@@ -3823,7 +3832,8 @@
38233832
},
38243833
"traits": {
38253834
"smithy.api#documentation": "\n <p>The specified resource exists and is not in use, but isn't available.</p>\n ",
3826-
"smithy.api#error": "client"
3835+
"smithy.api#error": "client",
3836+
"smithy.api#httpError": 400
38273837
}
38283838
},
38293839
"com.amazonaws.photon#ResourceNotFoundException": {
@@ -3835,7 +3845,8 @@
38353845
},
38363846
"traits": {
38373847
"smithy.api#documentation": "\n <p>The specified resource was not found.</p>\n ",
3838-
"smithy.api#error": "client"
3848+
"smithy.api#error": "client",
3849+
"smithy.api#httpError": 404
38393850
}
38403851
},
38413852
"com.amazonaws.photon#SecurityGroupIdList": {

0 commit comments

Comments
 (0)