Skip to content

Commit 3788909

Browse files
authored
docs(client): use interface for command input and output (#2274)
* feat(client-documentation-generator): change command io to interface from type * docs(client): use interface for command input and output It will save users 1 click to go from command to input/output interface definition by getting rid of type alias. * fix(protocol_tests): update protocol test
1 parent 9ab71e8 commit 3788909

File tree

9,622 files changed

+23207
-19820
lines changed

Some content is hidden

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

9,622 files changed

+23207
-19820
lines changed

clients/client-accessanalyzer/commands/ApplyArchiveRuleCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type ApplyArchiveRuleCommandInput = ApplyArchiveRuleRequest;
21-
export type ApplyArchiveRuleCommandOutput = __MetadataBearer;
20+
export interface ApplyArchiveRuleCommandInput extends ApplyArchiveRuleRequest {}
21+
export interface ApplyArchiveRuleCommandOutput extends __MetadataBearer {}
2222

2323
/**
2424
* <p>Retroactively applies the archive rule to existing findings that meet the archive rule

clients/client-accessanalyzer/commands/CancelPolicyGenerationCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type CancelPolicyGenerationCommandInput = CancelPolicyGenerationRequest;
21-
export type CancelPolicyGenerationCommandOutput = CancelPolicyGenerationResponse & __MetadataBearer;
20+
export interface CancelPolicyGenerationCommandInput extends CancelPolicyGenerationRequest {}
21+
export interface CancelPolicyGenerationCommandOutput extends CancelPolicyGenerationResponse, __MetadataBearer {}
2222

2323
/**
2424
* <p>Cancels the requested policy generation.</p>

clients/client-accessanalyzer/commands/CreateAccessPreviewCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type CreateAccessPreviewCommandInput = CreateAccessPreviewRequest;
21-
export type CreateAccessPreviewCommandOutput = CreateAccessPreviewResponse & __MetadataBearer;
20+
export interface CreateAccessPreviewCommandInput extends CreateAccessPreviewRequest {}
21+
export interface CreateAccessPreviewCommandOutput extends CreateAccessPreviewResponse, __MetadataBearer {}
2222

2323
/**
2424
* <p>Creates an access preview that allows you to preview Access Analyzer findings for your resource

clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type CreateAnalyzerCommandInput = CreateAnalyzerRequest;
21-
export type CreateAnalyzerCommandOutput = CreateAnalyzerResponse & __MetadataBearer;
20+
export interface CreateAnalyzerCommandInput extends CreateAnalyzerRequest {}
21+
export interface CreateAnalyzerCommandOutput extends CreateAnalyzerResponse, __MetadataBearer {}
2222

2323
/**
2424
* <p>Creates an analyzer for your account.</p>

clients/client-accessanalyzer/commands/CreateArchiveRuleCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type CreateArchiveRuleCommandInput = CreateArchiveRuleRequest;
21-
export type CreateArchiveRuleCommandOutput = __MetadataBearer;
20+
export interface CreateArchiveRuleCommandInput extends CreateArchiveRuleRequest {}
21+
export interface CreateArchiveRuleCommandOutput extends __MetadataBearer {}
2222

2323
/**
2424
* <p>Creates an archive rule for the specified analyzer. Archive rules automatically archive

clients/client-accessanalyzer/commands/DeleteAnalyzerCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type DeleteAnalyzerCommandInput = DeleteAnalyzerRequest;
21-
export type DeleteAnalyzerCommandOutput = __MetadataBearer;
20+
export interface DeleteAnalyzerCommandInput extends DeleteAnalyzerRequest {}
21+
export interface DeleteAnalyzerCommandOutput extends __MetadataBearer {}
2222

2323
/**
2424
* <p>Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the

clients/client-accessanalyzer/commands/DeleteArchiveRuleCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type DeleteArchiveRuleCommandInput = DeleteArchiveRuleRequest;
21-
export type DeleteArchiveRuleCommandOutput = __MetadataBearer;
20+
export interface DeleteArchiveRuleCommandInput extends DeleteArchiveRuleRequest {}
21+
export interface DeleteArchiveRuleCommandOutput extends __MetadataBearer {}
2222

2323
/**
2424
* <p>Deletes the specified archive rule.</p>

clients/client-accessanalyzer/commands/GetAccessPreviewCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type GetAccessPreviewCommandInput = GetAccessPreviewRequest;
21-
export type GetAccessPreviewCommandOutput = GetAccessPreviewResponse & __MetadataBearer;
20+
export interface GetAccessPreviewCommandInput extends GetAccessPreviewRequest {}
21+
export interface GetAccessPreviewCommandOutput extends GetAccessPreviewResponse, __MetadataBearer {}
2222

2323
/**
2424
* <p>Retrieves information about an access preview for the specified analyzer.</p>

clients/client-accessanalyzer/commands/GetAnalyzedResourceCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type GetAnalyzedResourceCommandInput = GetAnalyzedResourceRequest;
21-
export type GetAnalyzedResourceCommandOutput = GetAnalyzedResourceResponse & __MetadataBearer;
20+
export interface GetAnalyzedResourceCommandInput extends GetAnalyzedResourceRequest {}
21+
export interface GetAnalyzedResourceCommandOutput extends GetAnalyzedResourceResponse, __MetadataBearer {}
2222

2323
/**
2424
* <p>Retrieves information about a resource that was analyzed.</p>

clients/client-accessanalyzer/commands/GetAnalyzerCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
SerdeContext as __SerdeContext,
1818
} from "@aws-sdk/types";
1919

20-
export type GetAnalyzerCommandInput = GetAnalyzerRequest;
21-
export type GetAnalyzerCommandOutput = GetAnalyzerResponse & __MetadataBearer;
20+
export interface GetAnalyzerCommandInput extends GetAnalyzerRequest {}
21+
export interface GetAnalyzerCommandOutput extends GetAnalyzerResponse, __MetadataBearer {}
2222

2323
/**
2424
* <p>Retrieves information about the specified analyzer.</p>

0 commit comments

Comments
 (0)