Skip to content

Commit

Permalink
feat(client-chime-sdk-meetings): Updated API documentation to include…
Browse files Browse the repository at this point in the history
… additional exceptions.
  • Loading branch information
awstools committed Aug 15, 2023
1 parent cd827e7 commit 964f281
Show file tree
Hide file tree
Showing 10 changed files with 380 additions and 191 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,15 @@ export interface BatchUpdateAttendeeCapabilitiesExceptCommandOutput extends __Me
* @throws {@link NotFoundException} (client fault)
* <p>One or more of the resources in the request does not exist in the system.</p>
*
* @throws {@link ServiceFailureException} (server fault)
* <p>The service encountered an unexpected error.</p>
*
* @throws {@link ServiceUnavailableException} (server fault)
* <p>The service is currently unavailable.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The number of customer requests exceeds the request rate limit.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>The user isn't authorized to request a resource.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ export interface CreateMeetingCommandOutput extends CreateMeetingResponse, __Met
* @throws {@link BadRequestException} (client fault)
* <p>The input parameters don't match the service's restrictions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>Multiple instances of the same request have been made simultaneously.</p>
*
* @throws {@link ForbiddenException} (client fault)
* <p>The client is permanently forbidden from making the request.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ export interface CreateMeetingWithAttendeesCommandOutput extends CreateMeetingWi
* @throws {@link BadRequestException} (client fault)
* <p>The input parameters don't match the service's restrictions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>Multiple instances of the same request have been made simultaneously.</p>
*
* @throws {@link ForbiddenException} (client fault)
* <p>The client is permanently forbidden from making the request.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,30 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
* @see {@link ChimeSDKMeetingsClientResolvedConfig | config} for ChimeSDKMeetingsClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p>The input parameters don't match the service's restrictions.</p>
*
* @throws {@link ForbiddenException} (client fault)
* <p>The client is permanently forbidden from making the request.</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>The request exceeds the resource limit.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The resource that you want to tag couldn't be found.</p>
*
* @throws {@link ServiceFailureException} (server fault)
* <p>The service encountered an unexpected error.</p>
*
* @throws {@link ServiceUnavailableException} (server fault)
* <p>The service is currently unavailable.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The number of customer requests exceeds the request rate limit.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>The user isn't authorized to request a resource.</p>
*
* @throws {@link ChimeSDKMeetingsServiceException}
* <p>Base exception class for all service exceptions from ChimeSDKMeetings service.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,30 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
* @throws {@link BadRequestException} (client fault)
* <p>The input parameters don't match the service's restrictions.</p>
*
* @throws {@link ForbiddenException} (client fault)
* <p>The client is permanently forbidden from making the request.</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>The request exceeds the resource limit.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The resource that you want to tag couldn't be found.</p>
*
* @throws {@link ServiceFailureException} (server fault)
* <p>The service encountered an unexpected error.</p>
*
* @throws {@link ServiceUnavailableException} (server fault)
* <p>The service is currently unavailable.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The number of customer requests exceeds the request rate limit.</p>
*
* @throws {@link TooManyTagsException} (client fault)
* <p>Too many tags were added to the specified resource.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>The user isn't authorized to request a resource.</p>
*
* @throws {@link ChimeSDKMeetingsServiceException}
* <p>Base exception class for all service exceptions from ChimeSDKMeetings service.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,27 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
* @throws {@link BadRequestException} (client fault)
* <p>The input parameters don't match the service's restrictions.</p>
*
* @throws {@link ForbiddenException} (client fault)
* <p>The client is permanently forbidden from making the request.</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>The request exceeds the resource limit.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The resource that you want to tag couldn't be found.</p>
*
* @throws {@link ServiceFailureException} (server fault)
* <p>The service encountered an unexpected error.</p>
*
* @throws {@link ServiceUnavailableException} (server fault)
* <p>The service is currently unavailable.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The number of customer requests exceeds the request rate limit.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>The user isn't authorized to request a resource.</p>
*
* @throws {@link ChimeSDKMeetingsServiceException}
* <p>Base exception class for all service exceptions from ChimeSDKMeetings service.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,15 @@ export interface UpdateAttendeeCapabilitiesCommandOutput extends UpdateAttendeeC
* @throws {@link NotFoundException} (client fault)
* <p>One or more of the resources in the request does not exist in the system.</p>
*
* @throws {@link ServiceFailureException} (server fault)
* <p>The service encountered an unexpected error.</p>
*
* @throws {@link ServiceUnavailableException} (server fault)
* <p>The service is currently unavailable.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The number of customer requests exceeds the request rate limit.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>The user isn't authorized to request a resource.</p>
*
Expand Down
2 changes: 1 addition & 1 deletion clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"
n=[i],
o=[j],
p=[{[t]:"Region"}];
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://meetings-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://meetings-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://meetings-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://meetings-chime.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]},{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://meetings-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://meetings-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://meetings-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://meetings-chime.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"Invalid Configuration: Missing Region",type:c}]};
export const ruleSet: RuleSetObject = _data;
75 changes: 75 additions & 0 deletions clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,15 @@ const de_BatchUpdateAttendeeCapabilitiesExceptCommandError = async (
case "NotFoundException":
case "com.amazonaws.chimesdkmeetings#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
case "ServiceFailureException":
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
case "ServiceUnavailableException":
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
case "ThrottlingException":
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "UnauthorizedException":
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
Expand Down Expand Up @@ -821,6 +827,9 @@ const de_CreateMeetingCommandError = async (
case "BadRequestException":
case "com.amazonaws.chimesdkmeetings#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.chimesdkmeetings#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "ForbiddenException":
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
throw await de_ForbiddenExceptionRes(parsedOutput, context);
Expand Down Expand Up @@ -888,6 +897,9 @@ const de_CreateMeetingWithAttendeesCommandError = async (
case "BadRequestException":
case "com.amazonaws.chimesdkmeetings#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.chimesdkmeetings#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "ForbiddenException":
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
throw await de_ForbiddenExceptionRes(parsedOutput, context);
Expand Down Expand Up @@ -1268,9 +1280,30 @@ const de_ListTagsForResourceCommandError = async (
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadRequestException":
case "com.amazonaws.chimesdkmeetings#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ForbiddenException":
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
throw await de_ForbiddenExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "ResourceNotFoundException":
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
case "ServiceFailureException":
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
case "ServiceUnavailableException":
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
case "ThrottlingException":
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "UnauthorizedException":
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
Expand Down Expand Up @@ -1445,12 +1478,30 @@ const de_TagResourceCommandError = async (
case "BadRequestException":
case "com.amazonaws.chimesdkmeetings#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ForbiddenException":
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
throw await de_ForbiddenExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "ResourceNotFoundException":
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
case "ServiceFailureException":
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
case "ServiceUnavailableException":
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
case "ThrottlingException":
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "TooManyTagsException":
case "com.amazonaws.chimesdkmeetings#TooManyTagsException":
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
case "UnauthorizedException":
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
Expand Down Expand Up @@ -1494,9 +1545,27 @@ const de_UntagResourceCommandError = async (
case "BadRequestException":
case "com.amazonaws.chimesdkmeetings#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ForbiddenException":
case "com.amazonaws.chimesdkmeetings#ForbiddenException":
throw await de_ForbiddenExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.chimesdkmeetings#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "ResourceNotFoundException":
case "com.amazonaws.chimesdkmeetings#ResourceNotFoundException":
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
case "ServiceFailureException":
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
case "ServiceUnavailableException":
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
case "ThrottlingException":
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "UnauthorizedException":
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
Expand Down Expand Up @@ -1553,9 +1622,15 @@ const de_UpdateAttendeeCapabilitiesCommandError = async (
case "NotFoundException":
case "com.amazonaws.chimesdkmeetings#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
case "ServiceFailureException":
case "com.amazonaws.chimesdkmeetings#ServiceFailureException":
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
case "ServiceUnavailableException":
case "com.amazonaws.chimesdkmeetings#ServiceUnavailableException":
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
case "ThrottlingException":
case "com.amazonaws.chimesdkmeetings#ThrottlingException":
throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "UnauthorizedException":
case "com.amazonaws.chimesdkmeetings#UnauthorizedException":
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
Expand Down
Loading

0 comments on commit 964f281

Please sign in to comment.