Skip to content

Commit 3256d09

Browse files
Updated API documentation to include additional exceptions.
1 parent 94c977c commit 3256d09

17 files changed

+1886
-372
lines changed

generator/ServiceModels/chime-sdk-meetings/chime-sdk-meetings-2021-07-15.api.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
{"shape":"UnauthorizedException"},
4646
{"shape":"NotFoundException"},
4747
{"shape":"ForbiddenException"},
48-
{"shape":"ServiceUnavailableException"}
48+
{"shape":"ServiceUnavailableException"},
49+
{"shape":"ServiceFailureException"},
50+
{"shape":"ThrottlingException"}
4951
]
5052
},
5153
"CreateAttendee":{
@@ -78,6 +80,7 @@
7880
"output":{"shape":"CreateMeetingResponse"},
7981
"errors":[
8082
{"shape":"BadRequestException"},
83+
{"shape":"ConflictException"},
8184
{"shape":"ForbiddenException"},
8285
{"shape":"UnauthorizedException"},
8386
{"shape":"ThrottlingException"},
@@ -96,6 +99,7 @@
9699
"output":{"shape":"CreateMeetingWithAttendeesResponse"},
97100
"errors":[
98101
{"shape":"BadRequestException"},
102+
{"shape":"ConflictException"},
99103
{"shape":"ForbiddenException"},
100104
{"shape":"UnauthorizedException"},
101105
{"shape":"ThrottlingException"},
@@ -205,6 +209,13 @@
205209
"input":{"shape":"ListTagsForResourceRequest"},
206210
"output":{"shape":"ListTagsForResourceResponse"},
207211
"errors":[
212+
{"shape":"BadRequestException"},
213+
{"shape":"ForbiddenException"},
214+
{"shape":"UnauthorizedException"},
215+
{"shape":"LimitExceededException"},
216+
{"shape":"ServiceUnavailableException"},
217+
{"shape":"ServiceFailureException"},
218+
{"shape":"ThrottlingException"},
208219
{"shape":"ResourceNotFoundException"}
209220
]
210221
},
@@ -258,6 +269,12 @@
258269
"output":{"shape":"TagResourceResponse"},
259270
"errors":[
260271
{"shape":"BadRequestException"},
272+
{"shape":"ForbiddenException"},
273+
{"shape":"UnauthorizedException"},
274+
{"shape":"LimitExceededException"},
275+
{"shape":"ServiceUnavailableException"},
276+
{"shape":"ServiceFailureException"},
277+
{"shape":"ThrottlingException"},
261278
{"shape":"ResourceNotFoundException"},
262279
{"shape":"TooManyTagsException"}
263280
]
@@ -273,6 +290,12 @@
273290
"output":{"shape":"UntagResourceResponse"},
274291
"errors":[
275292
{"shape":"BadRequestException"},
293+
{"shape":"ForbiddenException"},
294+
{"shape":"UnauthorizedException"},
295+
{"shape":"LimitExceededException"},
296+
{"shape":"ServiceUnavailableException"},
297+
{"shape":"ServiceFailureException"},
298+
{"shape":"ThrottlingException"},
276299
{"shape":"ResourceNotFoundException"}
277300
]
278301
},
@@ -290,7 +313,9 @@
290313
{"shape":"UnauthorizedException"},
291314
{"shape":"NotFoundException"},
292315
{"shape":"ForbiddenException"},
293-
{"shape":"ServiceUnavailableException"}
316+
{"shape":"ServiceUnavailableException"},
317+
{"shape":"ServiceFailureException"},
318+
{"shape":"ThrottlingException"}
294319
]
295320
}
296321
},

generator/ServiceModels/chime-sdk-meetings/chime-sdk-meetings-2021-07-15.endpoint-rule-set.json

Lines changed: 154 additions & 190 deletions
Large diffs are not rendered by default.

generator/ServiceModels/chime-sdk-meetings/chime-sdk-meetings-2021-07-15.normal.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
{"shape":"UnauthorizedException"},
4747
{"shape":"NotFoundException"},
4848
{"shape":"ForbiddenException"},
49-
{"shape":"ServiceUnavailableException"}
49+
{"shape":"ServiceUnavailableException"},
50+
{"shape":"ServiceFailureException"},
51+
{"shape":"ThrottlingException"}
5052
],
5153
"documentation":"<p>Updates <code>AttendeeCapabilities</code> except the capabilities listed in an <code>ExcludedAttendeeIds</code> table.</p> <note> <p>You use the capabilities with a set of values that control what the capabilities can do, such as <code>SendReceive</code> data. For more information about those values, see .</p> </note> <p>When using capabilities, be aware of these corner cases:</p> <ul> <li> <p>You can't set <code>content</code> capabilities to <code>SendReceive</code> or <code>Receive</code> unless you also set <code>video</code> capabilities to <code>SendReceive</code> or <code>Receive</code>. If you don't set the <code>video</code> capability to receive, the response will contain an HTTP 400 Bad Request status code. However, you can set your <code>video</code> capability to receive and you set your <code>content</code> capability to not receive.</p> </li> <li> <p>When you change an <code>audio</code> capability from <code>None</code> or <code>Receive</code> to <code>Send</code> or <code>SendReceive</code> , and if the attendee left their microphone unmuted, audio will flow from the attendee to the other meeting participants.</p> </li> <li> <p>When you change a <code>video</code> or <code>content</code> capability from <code>None</code> or <code>Receive</code> to <code>Send</code> or <code>SendReceive</code> , and if the attendee turned on their video or content streams, remote attendees can receive those streams, but only after media renegotiation between the client and the Amazon Chime back-end server.</p> </li> </ul>"
5254
},
@@ -81,6 +83,7 @@
8183
"output":{"shape":"CreateMeetingResponse"},
8284
"errors":[
8385
{"shape":"BadRequestException"},
86+
{"shape":"ConflictException"},
8487
{"shape":"ForbiddenException"},
8588
{"shape":"UnauthorizedException"},
8689
{"shape":"ThrottlingException"},
@@ -100,6 +103,7 @@
100103
"output":{"shape":"CreateMeetingWithAttendeesResponse"},
101104
"errors":[
102105
{"shape":"BadRequestException"},
106+
{"shape":"ConflictException"},
103107
{"shape":"ForbiddenException"},
104108
{"shape":"UnauthorizedException"},
105109
{"shape":"ThrottlingException"},
@@ -215,6 +219,13 @@
215219
"input":{"shape":"ListTagsForResourceRequest"},
216220
"output":{"shape":"ListTagsForResourceResponse"},
217221
"errors":[
222+
{"shape":"BadRequestException"},
223+
{"shape":"ForbiddenException"},
224+
{"shape":"UnauthorizedException"},
225+
{"shape":"LimitExceededException"},
226+
{"shape":"ServiceUnavailableException"},
227+
{"shape":"ServiceFailureException"},
228+
{"shape":"ThrottlingException"},
218229
{"shape":"ResourceNotFoundException"}
219230
],
220231
"documentation":"<p>Returns a list of the tags available for the specified resource.</p>"
@@ -271,6 +282,12 @@
271282
"output":{"shape":"TagResourceResponse"},
272283
"errors":[
273284
{"shape":"BadRequestException"},
285+
{"shape":"ForbiddenException"},
286+
{"shape":"UnauthorizedException"},
287+
{"shape":"LimitExceededException"},
288+
{"shape":"ServiceUnavailableException"},
289+
{"shape":"ServiceFailureException"},
290+
{"shape":"ThrottlingException"},
274291
{"shape":"ResourceNotFoundException"},
275292
{"shape":"TooManyTagsException"}
276293
],
@@ -287,6 +304,12 @@
287304
"output":{"shape":"UntagResourceResponse"},
288305
"errors":[
289306
{"shape":"BadRequestException"},
307+
{"shape":"ForbiddenException"},
308+
{"shape":"UnauthorizedException"},
309+
{"shape":"LimitExceededException"},
310+
{"shape":"ServiceUnavailableException"},
311+
{"shape":"ServiceFailureException"},
312+
{"shape":"ThrottlingException"},
290313
{"shape":"ResourceNotFoundException"}
291314
],
292315
"documentation":"<p>Removes the specified tags from the specified resources. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from a resource that were already removed. Note the following:</p> <ul> <li> <p>To remove tags from a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for removing tags. For more information, see the documentation for the service whose resource you want to untag.</p> </li> <li> <p>You can only tag resources that are located in the specified AWS Region for the calling AWS account.</p> </li> </ul> <p> <b>Minimum permissions</b> </p> <p>In addition to the <code>tag:UntagResources</code> permission required by this operation, you must also have the remove tags permission defined by the service that created the resource. For example, to remove the tags from an Amazon EC2 instance using the <code>UntagResources</code> operation, you must have both of the following permissions:</p> <p> <code>tag:UntagResource</code> </p> <p> <code>ChimeSDKMeetings:DeleteTags</code> </p>"
@@ -305,7 +328,9 @@
305328
{"shape":"UnauthorizedException"},
306329
{"shape":"NotFoundException"},
307330
{"shape":"ForbiddenException"},
308-
{"shape":"ServiceUnavailableException"}
331+
{"shape":"ServiceUnavailableException"},
332+
{"shape":"ServiceFailureException"},
333+
{"shape":"ThrottlingException"}
309334
],
310335
"documentation":"<p>The capabilities that you want to update.</p> <note> <p>You use the capabilities with a set of values that control what the capabilities can do, such as <code>SendReceive</code> data. For more information about those values, see .</p> </note> <p>When using capabilities, be aware of these corner cases:</p> <ul> <li> <p>You can't set <code>content</code> capabilities to <code>SendReceive</code> or <code>Receive</code> unless you also set <code>video</code> capabilities to <code>SendReceive</code> or <code>Receive</code>. If you don't set the <code>video</code> capability to receive, the response will contain an HTTP 400 Bad Request status code. However, you can set your <code>video</code> capability to receive and you set your <code>content</code> capability to not receive.</p> </li> <li> <p>When you change an <code>audio</code> capability from <code>None</code> or <code>Receive</code> to <code>Send</code> or <code>SendReceive</code> , and if the attendee left their microphone unmuted, audio will flow from the attendee to the other meeting participants.</p> </li> <li> <p>When you change a <code>video</code> or <code>content</code> capability from <code>None</code> or <code>Receive</code> to <code>Send</code> or <code>SendReceive</code> , and if the attendee turned on their video or content streams, remote attendees can receive those streams, but only after media renegotiation between the client and the Amazon Chime back-end server.</p> </li> </ul>"
311336
}

sdk/src/Services/ChimeSDKMeetings/Generated/Model/Internal/MarshallTransformations/BatchUpdateAttendeeCapabilitiesExceptResponseUnmarshaller.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,18 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
8585
{
8686
return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
8787
}
88+
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException"))
89+
{
90+
return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
91+
}
8892
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
8993
{
9094
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
9195
}
96+
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
97+
{
98+
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
99+
}
92100
if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException"))
93101
{
94102
return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);

sdk/src/Services/ChimeSDKMeetings/Generated/Model/Internal/MarshallTransformations/CreateMeetingResponseUnmarshaller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
8484
{
8585
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
8686
}
87+
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
88+
{
89+
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
90+
}
8791
if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException"))
8892
{
8993
return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);

sdk/src/Services/ChimeSDKMeetings/Generated/Model/Internal/MarshallTransformations/CreateMeetingWithAttendeesResponseUnmarshaller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
9696
{
9797
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
9898
}
99+
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
100+
{
101+
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
102+
}
99103
if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException"))
100104
{
101105
return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);

sdk/src/Services/ChimeSDKMeetings/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,38 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
8080
using (var streamCopy = new MemoryStream(responseBodyBytes))
8181
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
8282
{
83+
if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException"))
84+
{
85+
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
86+
}
87+
if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException"))
88+
{
89+
return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
90+
}
91+
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
92+
{
93+
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
94+
}
8395
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
8496
{
8597
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
8698
}
99+
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException"))
100+
{
101+
return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
102+
}
103+
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
104+
{
105+
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
106+
}
107+
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
108+
{
109+
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
110+
}
111+
if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException"))
112+
{
113+
return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
114+
}
87115
}
88116
return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
89117
}

sdk/src/Services/ChimeSDKMeetings/Generated/Model/Internal/MarshallTransformations/TagResourceResponseUnmarshaller.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,38 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
7373
{
7474
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
7575
}
76+
if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException"))
77+
{
78+
return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
79+
}
80+
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
81+
{
82+
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
83+
}
7684
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
7785
{
7886
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
7987
}
88+
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException"))
89+
{
90+
return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
91+
}
92+
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
93+
{
94+
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
95+
}
96+
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
97+
{
98+
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
99+
}
80100
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException"))
81101
{
82102
return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
83103
}
104+
if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException"))
105+
{
106+
return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
107+
}
84108
}
85109
return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
86110
}

sdk/src/Services/ChimeSDKMeetings/Generated/Model/Internal/MarshallTransformations/UntagResourceResponseUnmarshaller.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,34 @@ public override AmazonServiceException UnmarshallException(JsonUnmarshallerConte
7373
{
7474
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
7575
}
76+
if (errorResponse.Code != null && errorResponse.Code.Equals("ForbiddenException"))
77+
{
78+
return ForbiddenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
79+
}
80+
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
81+
{
82+
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
83+
}
7684
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
7785
{
7886
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
7987
}
88+
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceFailureException"))
89+
{
90+
return ServiceFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
91+
}
92+
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
93+
{
94+
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
95+
}
96+
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
97+
{
98+
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
99+
}
100+
if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException"))
101+
{
102+
return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
103+
}
80104
}
81105
return new AmazonChimeSDKMeetingsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
82106
}

0 commit comments

Comments
 (0)