Skip to content

Commit

Permalink
feat(client-ecs): Documentation update for new error type NamespaceNo…
Browse files Browse the repository at this point in the history
…tFoundException for CreateCluster and UpdateCluster
  • Loading branch information
awstools committed May 4, 2023
1 parent 4f67883 commit fd48f2d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
3 changes: 3 additions & 0 deletions clients/client-ecs/src/commands/CreateClusterCommand.ts
Expand Up @@ -179,6 +179,9 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
* <p>The specified parameter isn't valid. Review the available parameters for the API
* request.</p>
*
* @throws {@link NamespaceNotFoundException} (client fault)
* <p>The specified namespace wasn't found.</p>
*
* @throws {@link ServerException} (server fault)
* <p>These errors are usually caused by a server issue.</p>
*
Expand Down
3 changes: 3 additions & 0 deletions clients/client-ecs/src/commands/UpdateClusterCommand.ts
Expand Up @@ -156,6 +156,9 @@ export interface UpdateClusterCommandOutput extends UpdateClusterResponse, __Met
* <p>The specified parameter isn't valid. Review the available parameters for the API
* request.</p>
*
* @throws {@link NamespaceNotFoundException} (client fault)
* <p>The specified namespace wasn't found.</p>
*
* @throws {@link ServerException} (server fault)
* <p>These errors are usually caused by a server issue.</p>
*
Expand Down
40 changes: 20 additions & 20 deletions clients/client-ecs/src/models/models_0.ts
Expand Up @@ -1146,6 +1146,26 @@ export interface CreateClusterResponse {
cluster?: Cluster;
}

/**
* @public
* <p>The specified namespace wasn't found.</p>
*/
export class NamespaceNotFoundException extends __BaseException {
readonly name: "NamespaceNotFoundException" = "NamespaceNotFoundException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<NamespaceNotFoundException, __BaseException>) {
super({
name: "NamespaceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, NamespaceNotFoundException.prototype);
}
}

/**
* @public
* <p>The specified cluster wasn't found. You can view your available clusters with <a>ListClusters</a>. Amazon ECS clusters are Region specific.</p>
Expand Down Expand Up @@ -3045,26 +3065,6 @@ export interface CreateServiceResponse {
service?: Service;
}

/**
* @public
* <p>The specified namespace wasn't found.</p>
*/
export class NamespaceNotFoundException extends __BaseException {
readonly name: "NamespaceNotFoundException" = "NamespaceNotFoundException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<NamespaceNotFoundException, __BaseException>) {
super({
name: "NamespaceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, NamespaceNotFoundException.prototype);
}
}

/**
* @public
* <p>The specified platform version doesn't satisfy the required capabilities of the task
Expand Down
6 changes: 6 additions & 0 deletions clients/client-ecs/src/protocols/Aws_json1_1.ts
Expand Up @@ -1187,6 +1187,9 @@ const de_CreateClusterCommandError = async (
case "InvalidParameterException":
case "com.amazonaws.ecs#InvalidParameterException":
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
case "NamespaceNotFoundException":
case "com.amazonaws.ecs#NamespaceNotFoundException":
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
case "ServerException":
case "com.amazonaws.ecs#ServerException":
throw await de_ServerExceptionRes(parsedOutput, context);
Expand Down Expand Up @@ -3832,6 +3835,9 @@ const de_UpdateClusterCommandError = async (
case "InvalidParameterException":
case "com.amazonaws.ecs#InvalidParameterException":
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
case "NamespaceNotFoundException":
case "com.amazonaws.ecs#NamespaceNotFoundException":
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
case "ServerException":
case "com.amazonaws.ecs#ServerException":
throw await de_ServerExceptionRes(parsedOutput, context);
Expand Down

0 comments on commit fd48f2d

Please sign in to comment.