Skip to content

docs(clients): codegen for command errors #4510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ export interface ApplyArchiveRuleCommandOutput extends __MetadataBearer {}
* @see {@link ApplyArchiveRuleCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class ApplyArchiveRuleCommand extends $Command<
ApplyArchiveRuleCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ export interface CancelPolicyGenerationCommandOutput extends CancelPolicyGenerat
* @see {@link CancelPolicyGenerationCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class CancelPolicyGenerationCommand extends $Command<
CancelPolicyGenerationCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,28 @@ export interface CreateAccessPreviewCommandOutput extends CreateAccessPreviewRes
* @see {@link CreateAccessPreviewCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>A conflict exception error.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>Service quote met error.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class CreateAccessPreviewCommand extends $Command<
CreateAccessPreviewCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,25 @@ export interface CreateAnalyzerCommandOutput extends CreateAnalyzerResponse, __M
* @see {@link CreateAnalyzerCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>A conflict exception error.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>Service quote met error.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class CreateAnalyzerCommand extends $Command<
CreateAnalyzerCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@ export interface CreateArchiveRuleCommandOutput extends __MetadataBearer {}
* @see {@link CreateArchiveRuleCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>A conflict exception error.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>Service quote met error.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class CreateArchiveRuleCommand extends $Command<
CreateArchiveRuleCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ export interface DeleteAnalyzerCommandOutput extends __MetadataBearer {}
* @see {@link DeleteAnalyzerCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class DeleteAnalyzerCommand extends $Command<
DeleteAnalyzerCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ export interface DeleteArchiveRuleCommandOutput extends __MetadataBearer {}
* @see {@link DeleteArchiveRuleCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class DeleteArchiveRuleCommand extends $Command<
DeleteArchiveRuleCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ export interface GetAccessPreviewCommandOutput extends GetAccessPreviewResponse,
* @see {@link GetAccessPreviewCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class GetAccessPreviewCommand extends $Command<
GetAccessPreviewCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ export interface GetAnalyzedResourceCommandOutput extends GetAnalyzedResourceRes
* @see {@link GetAnalyzedResourceCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class GetAnalyzedResourceCommand extends $Command<
GetAnalyzedResourceCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ export interface GetAnalyzerCommandOutput extends GetAnalyzerResponse, __Metadat
* @see {@link GetAnalyzerCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class GetAnalyzerCommand extends $Command<
GetAnalyzerCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ export interface GetArchiveRuleCommandOutput extends GetArchiveRuleResponse, __M
* @see {@link GetArchiveRuleCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class GetArchiveRuleCommand extends $Command<
GetArchiveRuleCommandInput,
Expand Down
16 changes: 16 additions & 0 deletions clients/client-accessanalyzer/src/commands/GetFindingCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ export interface GetFindingCommandOutput extends GetFindingResponse, __MetadataB
* @see {@link GetFindingCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class GetFindingCommand extends $Command<
GetFindingCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ export interface GetGeneratedPolicyCommandOutput extends GetGeneratedPolicyRespo
* @see {@link GetGeneratedPolicyCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class GetGeneratedPolicyCommand extends $Command<
GetGeneratedPolicyCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@ export interface ListAccessPreviewFindingsCommandOutput extends ListAccessPrevie
* @see {@link ListAccessPreviewFindingsCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>A conflict exception error.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class ListAccessPreviewFindingsCommand extends $Command<
ListAccessPreviewFindingsCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ export interface ListAccessPreviewsCommandOutput extends ListAccessPreviewsRespo
* @see {@link ListAccessPreviewsCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class ListAccessPreviewsCommand extends $Command<
ListAccessPreviewsCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ export interface ListAnalyzedResourcesCommandOutput extends ListAnalyzedResource
* @see {@link ListAnalyzedResourcesCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource could not be found.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class ListAnalyzedResourcesCommand extends $Command<
ListAnalyzedResourcesCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ export interface ListAnalyzersCommandOutput extends ListAnalyzersResponse, __Met
* @see {@link ListAnalyzersCommandOutput} for command's `response` shape.
* @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>You do not have sufficient access to perform this action.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>Internal server error.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>Throttling limit exceeded error.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Validation exception error.</p>
*
*
*/
export class ListAnalyzersCommand extends $Command<
ListAnalyzersCommandInput,
Expand Down
Loading