@aws-sdk/client-codeguru-reviewer 3.34.0 → 3.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/CodeGuruReviewer.js +0 -19
- package/dist-cjs/CodeGuruReviewerClient.js +35 -0
- package/dist-cjs/commands/AssociateRepositoryCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/CreateCodeReviewCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/DescribeCodeReviewCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeRecommendationFeedbackCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DescribeRepositoryAssociationCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/DisassociateRepositoryCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListCodeReviewsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/ListRecommendationFeedbackCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/ListRecommendationsCommand.js +2 -29
- package/dist-cjs/commands/ListRepositoryAssociationsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/PutRecommendationFeedbackCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -184
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListCodeReviewsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListRecommendationFeedbackPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListRecommendationsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListRepositoryAssociationsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +5 -11
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/cjs → dist-cjs}/waiters/waitForCodeReviewCompleted.js +4 -14
- package/{dist/cjs → dist-cjs}/waiters/waitForRepositoryAssociationSucceeded.js +4 -14
- package/{dist/es → dist-es}/CodeGuruReviewer.js +0 -1
- package/{dist/es → dist-es}/CodeGuruReviewerClient.js +1 -2
- package/{dist/es → dist-es}/commands/AssociateRepositoryCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateCodeReviewCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeCodeReviewCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeRecommendationFeedbackCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeRepositoryAssociationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DisassociateRepositoryCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListCodeReviewsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListRecommendationFeedbackCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListRecommendationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListRepositoryAssociationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutRecommendationFeedbackCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListCodeReviewsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListRecommendationFeedbackPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListRecommendationsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListRepositoryAssociationsPaginator.js +0 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForCodeReviewCompleted.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForRepositoryAssociationSucceeded.js +1 -2
- package/{dist/types → dist-types}/CodeGuruReviewer.d.ts +1 -1
- package/{dist/types → dist-types}/CodeGuruReviewerClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AssociateRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateCodeReviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeCodeReviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRecommendationFeedbackCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRepositoryAssociationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisassociateRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListCodeReviewsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRecommendationFeedbackCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRecommendationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRepositoryAssociationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutRecommendationFeedbackCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListCodeReviewsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRecommendationFeedbackPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRecommendationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRepositoryAssociationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/CodeGuruReviewer.d.ts +16 -127
- package/{dist/types → dist-types}/ts3.4/CodeGuruReviewerClient.d.ts +32 -112
- package/dist-types/ts3.4/commands/AssociateRepositoryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateCodeReviewCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCodeReviewCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRecommendationFeedbackCommand.d.ts +4 -24
- package/dist-types/ts3.4/commands/DescribeRepositoryAssociationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateRepositoryCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListCodeReviewsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecommendationFeedbackCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRepositoryAssociationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRecommendationFeedbackCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +838 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListCodeReviewsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRecommendationFeedbackPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRecommendationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRepositoryAssociationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/waiters/waitForCodeReviewCompleted.d.ts +3 -10
- package/{dist/types → dist-types}/ts3.4/waiters/waitForRepositoryAssociationSucceeded.d.ts +3 -10
- package/{dist/types → dist-types}/waiters/waitForCodeReviewCompleted.d.ts +1 -1
- package/{dist/types → dist-types}/waiters/waitForRepositoryAssociationSucceeded.d.ts +1 -1
- package/package.json +46 -43
- package/CodeGuruReviewer.ts +0 -596
- package/CodeGuruReviewerClient.ts +0 -319
- package/commands/AssociateRepositoryCommand.ts +0 -118
- package/commands/CreateCodeReviewCommand.ts +0 -100
- package/commands/DescribeCodeReviewCommand.ts +0 -94
- package/commands/DescribeRecommendationFeedbackCommand.ts +0 -104
- package/commands/DescribeRepositoryAssociationCommand.ts +0 -104
- package/commands/DisassociateRepositoryCommand.ts +0 -94
- package/commands/ListCodeReviewsCommand.ts +0 -96
- package/commands/ListRecommendationFeedbackCommand.ts +0 -103
- package/commands/ListRecommendationsCommand.ts +0 -96
- package/commands/ListRepositoryAssociationsCommand.ts +0 -114
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/PutRecommendationFeedbackCommand.ts +0 -99
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/dist/cjs/CodeGuruReviewer.js.map +0 -1
- package/dist/cjs/CodeGuruReviewerClient.js +0 -59
- package/dist/cjs/CodeGuruReviewerClient.js.map +0 -1
- package/dist/cjs/commands/AssociateRepositoryCommand.js +0 -85
- package/dist/cjs/commands/AssociateRepositoryCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCodeReviewCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeCodeReviewCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRecommendationFeedbackCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRepositoryAssociationCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateRepositoryCommand.js.map +0 -1
- package/dist/cjs/commands/ListCodeReviewsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRecommendationFeedbackCommand.js.map +0 -1
- package/dist/cjs/commands/ListRecommendationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRepositoryAssociationsCommand.js +0 -78
- package/dist/cjs/commands/ListRepositoryAssociationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PutRecommendationFeedbackCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -94
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListCodeReviewsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRecommendationFeedbackPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRecommendationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRepositoryAssociationsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/cjs/waiters/waitForCodeReviewCompleted.js.map +0 -1
- package/dist/cjs/waiters/waitForRepositoryAssociationSucceeded.js.map +0 -1
- package/dist/es/CodeGuruReviewer.js.map +0 -1
- package/dist/es/CodeGuruReviewerClient.js.map +0 -1
- package/dist/es/commands/AssociateRepositoryCommand.js.map +0 -1
- package/dist/es/commands/CreateCodeReviewCommand.js.map +0 -1
- package/dist/es/commands/DescribeCodeReviewCommand.js.map +0 -1
- package/dist/es/commands/DescribeRecommendationFeedbackCommand.js.map +0 -1
- package/dist/es/commands/DescribeRepositoryAssociationCommand.js.map +0 -1
- package/dist/es/commands/DisassociateRepositoryCommand.js.map +0 -1
- package/dist/es/commands/ListCodeReviewsCommand.js.map +0 -1
- package/dist/es/commands/ListRecommendationFeedbackCommand.js.map +0 -1
- package/dist/es/commands/ListRecommendationsCommand.js.map +0 -1
- package/dist/es/commands/ListRepositoryAssociationsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PutRecommendationFeedbackCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -25
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -94
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListCodeReviewsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRecommendationFeedbackPaginator.js.map +0 -1
- package/dist/es/pagination/ListRecommendationsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRepositoryAssociationsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/es/waiters/waitForCodeReviewCompleted.js.map +0 -1
- package/dist/es/waiters/waitForRepositoryAssociationSucceeded.js.map +0 -1
- package/dist/types/ts3.4/commands/AssociateRepositoryCommand.d.ts +0 -59
- package/dist/types/ts3.4/commands/CreateCodeReviewCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/DescribeCodeReviewCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeRepositoryAssociationCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/ListCodeReviewsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListRecommendationFeedbackCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/ListRecommendationsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListRepositoryAssociationsCommand.d.ts +0 -52
- package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/PutRecommendationFeedbackCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2210
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2570
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListCodeReviewsPaginator.ts +0 -58
- package/pagination/ListRecommendationFeedbackPaginator.ts +0 -58
- package/pagination/ListRecommendationsPaginator.ts +0 -58
- package/pagination/ListRepositoryAssociationsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -2525
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
- package/waiters/waitForCodeReviewCompleted.ts +0 -57
- package/waiters/waitForRepositoryAssociationSucceeded.ts +0 -60
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AssociateRepositoryCommandInput,
|
|
3
|
-
AssociateRepositoryCommandOutput,
|
|
4
|
-
} from "./commands/AssociateRepositoryCommand";
|
|
5
|
-
import { CreateCodeReviewCommandInput, CreateCodeReviewCommandOutput } from "./commands/CreateCodeReviewCommand";
|
|
6
|
-
import { DescribeCodeReviewCommandInput, DescribeCodeReviewCommandOutput } from "./commands/DescribeCodeReviewCommand";
|
|
7
|
-
import {
|
|
8
|
-
DescribeRecommendationFeedbackCommandInput,
|
|
9
|
-
DescribeRecommendationFeedbackCommandOutput,
|
|
10
|
-
} from "./commands/DescribeRecommendationFeedbackCommand";
|
|
11
|
-
import {
|
|
12
|
-
DescribeRepositoryAssociationCommandInput,
|
|
13
|
-
DescribeRepositoryAssociationCommandOutput,
|
|
14
|
-
} from "./commands/DescribeRepositoryAssociationCommand";
|
|
15
|
-
import {
|
|
16
|
-
DisassociateRepositoryCommandInput,
|
|
17
|
-
DisassociateRepositoryCommandOutput,
|
|
18
|
-
} from "./commands/DisassociateRepositoryCommand";
|
|
19
|
-
import { ListCodeReviewsCommandInput, ListCodeReviewsCommandOutput } from "./commands/ListCodeReviewsCommand";
|
|
20
|
-
import {
|
|
21
|
-
ListRecommendationFeedbackCommandInput,
|
|
22
|
-
ListRecommendationFeedbackCommandOutput,
|
|
23
|
-
} from "./commands/ListRecommendationFeedbackCommand";
|
|
24
|
-
import {
|
|
25
|
-
ListRecommendationsCommandInput,
|
|
26
|
-
ListRecommendationsCommandOutput,
|
|
27
|
-
} from "./commands/ListRecommendationsCommand";
|
|
28
|
-
import {
|
|
29
|
-
ListRepositoryAssociationsCommandInput,
|
|
30
|
-
ListRepositoryAssociationsCommandOutput,
|
|
31
|
-
} from "./commands/ListRepositoryAssociationsCommand";
|
|
32
|
-
import {
|
|
33
|
-
ListTagsForResourceCommandInput,
|
|
34
|
-
ListTagsForResourceCommandOutput,
|
|
35
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
36
|
-
import {
|
|
37
|
-
PutRecommendationFeedbackCommandInput,
|
|
38
|
-
PutRecommendationFeedbackCommandOutput,
|
|
39
|
-
} from "./commands/PutRecommendationFeedbackCommand";
|
|
40
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
41
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
42
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
43
|
-
import {
|
|
44
|
-
EndpointsInputConfig,
|
|
45
|
-
EndpointsResolvedConfig,
|
|
46
|
-
RegionInputConfig,
|
|
47
|
-
RegionResolvedConfig,
|
|
48
|
-
resolveEndpointsConfig,
|
|
49
|
-
resolveRegionConfig,
|
|
50
|
-
} from "@aws-sdk/config-resolver";
|
|
51
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
52
|
-
import {
|
|
53
|
-
HostHeaderInputConfig,
|
|
54
|
-
HostHeaderResolvedConfig,
|
|
55
|
-
getHostHeaderPlugin,
|
|
56
|
-
resolveHostHeaderConfig,
|
|
57
|
-
} from "@aws-sdk/middleware-host-header";
|
|
58
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
59
|
-
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
60
|
-
import {
|
|
61
|
-
AwsAuthInputConfig,
|
|
62
|
-
AwsAuthResolvedConfig,
|
|
63
|
-
getAwsAuthPlugin,
|
|
64
|
-
resolveAwsAuthConfig,
|
|
65
|
-
} from "@aws-sdk/middleware-signing";
|
|
66
|
-
import {
|
|
67
|
-
UserAgentInputConfig,
|
|
68
|
-
UserAgentResolvedConfig,
|
|
69
|
-
getUserAgentPlugin,
|
|
70
|
-
resolveUserAgentConfig,
|
|
71
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
72
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
73
|
-
import {
|
|
74
|
-
Client as __Client,
|
|
75
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
76
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
77
|
-
} from "@aws-sdk/smithy-client";
|
|
78
|
-
import {
|
|
79
|
-
Provider,
|
|
80
|
-
RegionInfoProvider,
|
|
81
|
-
Credentials as __Credentials,
|
|
82
|
-
Decoder as __Decoder,
|
|
83
|
-
Encoder as __Encoder,
|
|
84
|
-
Hash as __Hash,
|
|
85
|
-
HashConstructor as __HashConstructor,
|
|
86
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
87
|
-
Logger as __Logger,
|
|
88
|
-
Provider as __Provider,
|
|
89
|
-
StreamCollector as __StreamCollector,
|
|
90
|
-
UrlParser as __UrlParser,
|
|
91
|
-
UserAgent as __UserAgent,
|
|
92
|
-
} from "@aws-sdk/types";
|
|
93
|
-
|
|
94
|
-
export type ServiceInputTypes =
|
|
95
|
-
| AssociateRepositoryCommandInput
|
|
96
|
-
| CreateCodeReviewCommandInput
|
|
97
|
-
| DescribeCodeReviewCommandInput
|
|
98
|
-
| DescribeRecommendationFeedbackCommandInput
|
|
99
|
-
| DescribeRepositoryAssociationCommandInput
|
|
100
|
-
| DisassociateRepositoryCommandInput
|
|
101
|
-
| ListCodeReviewsCommandInput
|
|
102
|
-
| ListRecommendationFeedbackCommandInput
|
|
103
|
-
| ListRecommendationsCommandInput
|
|
104
|
-
| ListRepositoryAssociationsCommandInput
|
|
105
|
-
| ListTagsForResourceCommandInput
|
|
106
|
-
| PutRecommendationFeedbackCommandInput
|
|
107
|
-
| TagResourceCommandInput
|
|
108
|
-
| UntagResourceCommandInput;
|
|
109
|
-
|
|
110
|
-
export type ServiceOutputTypes =
|
|
111
|
-
| AssociateRepositoryCommandOutput
|
|
112
|
-
| CreateCodeReviewCommandOutput
|
|
113
|
-
| DescribeCodeReviewCommandOutput
|
|
114
|
-
| DescribeRecommendationFeedbackCommandOutput
|
|
115
|
-
| DescribeRepositoryAssociationCommandOutput
|
|
116
|
-
| DisassociateRepositoryCommandOutput
|
|
117
|
-
| ListCodeReviewsCommandOutput
|
|
118
|
-
| ListRecommendationFeedbackCommandOutput
|
|
119
|
-
| ListRecommendationsCommandOutput
|
|
120
|
-
| ListRepositoryAssociationsCommandOutput
|
|
121
|
-
| ListTagsForResourceCommandOutput
|
|
122
|
-
| PutRecommendationFeedbackCommandOutput
|
|
123
|
-
| TagResourceCommandOutput
|
|
124
|
-
| UntagResourceCommandOutput;
|
|
125
|
-
|
|
126
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
127
|
-
/**
|
|
128
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
129
|
-
*/
|
|
130
|
-
requestHandler?: __HttpHandler;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
134
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
135
|
-
* @internal
|
|
136
|
-
*/
|
|
137
|
-
sha256?: __HashConstructor;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
143
|
-
urlParser?: __UrlParser;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* A function that can calculate the length of a request body.
|
|
147
|
-
* @internal
|
|
148
|
-
*/
|
|
149
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* A function that converts a stream into an array of bytes.
|
|
153
|
-
* @internal
|
|
154
|
-
*/
|
|
155
|
-
streamCollector?: __StreamCollector;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
159
|
-
* @internal
|
|
160
|
-
*/
|
|
161
|
-
base64Decoder?: __Decoder;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
167
|
-
base64Encoder?: __Encoder;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
utf8Decoder?: __Decoder;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
177
|
-
* @internal
|
|
178
|
-
*/
|
|
179
|
-
utf8Encoder?: __Encoder;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* The runtime environment.
|
|
183
|
-
* @internal
|
|
184
|
-
*/
|
|
185
|
-
runtime?: string;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
189
|
-
* trait of an operation.
|
|
190
|
-
*/
|
|
191
|
-
disableHostPrefix?: boolean;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
195
|
-
*/
|
|
196
|
-
maxAttempts?: number | __Provider<number>;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Specifies which retry algorithm to use.
|
|
200
|
-
*/
|
|
201
|
-
retryMode?: string | __Provider<string>;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Optional logger for logging debug/info/warn/error.
|
|
205
|
-
*/
|
|
206
|
-
logger?: __Logger;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Unique service identifier.
|
|
210
|
-
* @internal
|
|
211
|
-
*/
|
|
212
|
-
serviceId?: string;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* The AWS region to which this client will send requests
|
|
216
|
-
*/
|
|
217
|
-
region?: string | __Provider<string>;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Default credentials provider; Not available in browser runtime.
|
|
221
|
-
* @internal
|
|
222
|
-
*/
|
|
223
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
227
|
-
* @internal
|
|
228
|
-
*/
|
|
229
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
233
|
-
* @internal
|
|
234
|
-
*/
|
|
235
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
type CodeGuruReviewerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
239
|
-
ClientDefaults &
|
|
240
|
-
RegionInputConfig &
|
|
241
|
-
EndpointsInputConfig &
|
|
242
|
-
RetryInputConfig &
|
|
243
|
-
HostHeaderInputConfig &
|
|
244
|
-
AwsAuthInputConfig &
|
|
245
|
-
UserAgentInputConfig;
|
|
246
|
-
/**
|
|
247
|
-
* The configuration interface of CodeGuruReviewerClient class constructor that set the region, credentials and other options.
|
|
248
|
-
*/
|
|
249
|
-
export interface CodeGuruReviewerClientConfig extends CodeGuruReviewerClientConfigType {}
|
|
250
|
-
|
|
251
|
-
type CodeGuruReviewerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
252
|
-
Required<ClientDefaults> &
|
|
253
|
-
RegionResolvedConfig &
|
|
254
|
-
EndpointsResolvedConfig &
|
|
255
|
-
RetryResolvedConfig &
|
|
256
|
-
HostHeaderResolvedConfig &
|
|
257
|
-
AwsAuthResolvedConfig &
|
|
258
|
-
UserAgentResolvedConfig;
|
|
259
|
-
/**
|
|
260
|
-
* The resolved configuration interface of CodeGuruReviewerClient class. This is resolved and normalized from the {@link CodeGuruReviewerClientConfig | constructor configuration interface}.
|
|
261
|
-
*/
|
|
262
|
-
export interface CodeGuruReviewerClientResolvedConfig extends CodeGuruReviewerClientResolvedConfigType {}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* <p>This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a service
|
|
266
|
-
* that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommends
|
|
267
|
-
* fixes in your Java and Python code.</p>
|
|
268
|
-
*
|
|
269
|
-
* <p>By proactively detecting and providing recommendations for addressing code defects and implementing best practices, CodeGuru Reviewer
|
|
270
|
-
* improves the overall quality and maintainability of your code base during the code review stage. For more information about CodeGuru Reviewer, see the
|
|
271
|
-
* <i>
|
|
272
|
-
* <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/welcome.html">Amazon CodeGuru Reviewer User Guide</a>.</i>
|
|
273
|
-
* </p>
|
|
274
|
-
*
|
|
275
|
-
* <p>
|
|
276
|
-
* To improve the security of your CodeGuru Reviewer API calls, you can establish a private connection between your VPC and CodeGuru Reviewer by
|
|
277
|
-
* creating an <i>interface VPC endpoint</i>. For more information, see
|
|
278
|
-
* <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/vpc-interface-endpoints.html">CodeGuru Reviewer and interface
|
|
279
|
-
* VPC endpoints (Amazon Web Services PrivateLink)</a> in the <i>Amazon CodeGuru Reviewer User Guide</i>.
|
|
280
|
-
* </p>
|
|
281
|
-
*/
|
|
282
|
-
export class CodeGuruReviewerClient extends __Client<
|
|
283
|
-
__HttpHandlerOptions,
|
|
284
|
-
ServiceInputTypes,
|
|
285
|
-
ServiceOutputTypes,
|
|
286
|
-
CodeGuruReviewerClientResolvedConfig
|
|
287
|
-
> {
|
|
288
|
-
/**
|
|
289
|
-
* The resolved configuration of CodeGuruReviewerClient class. This is resolved and normalized from the {@link CodeGuruReviewerClientConfig | constructor configuration interface}.
|
|
290
|
-
*/
|
|
291
|
-
readonly config: CodeGuruReviewerClientResolvedConfig;
|
|
292
|
-
|
|
293
|
-
constructor(configuration: CodeGuruReviewerClientConfig) {
|
|
294
|
-
let _config_0 = __getRuntimeConfig(configuration);
|
|
295
|
-
let _config_1 = resolveRegionConfig(_config_0);
|
|
296
|
-
let _config_2 = resolveEndpointsConfig(_config_1);
|
|
297
|
-
let _config_3 = resolveRetryConfig(_config_2);
|
|
298
|
-
let _config_4 = resolveHostHeaderConfig(_config_3);
|
|
299
|
-
let _config_5 = resolveAwsAuthConfig(_config_4);
|
|
300
|
-
let _config_6 = resolveUserAgentConfig(_config_5);
|
|
301
|
-
super(_config_6);
|
|
302
|
-
this.config = _config_6;
|
|
303
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
304
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
305
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
306
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
307
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
308
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
313
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
314
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
315
|
-
*/
|
|
316
|
-
destroy(): void {
|
|
317
|
-
super.destroy();
|
|
318
|
-
}
|
|
319
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { CodeGuruReviewerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruReviewerClient";
|
|
2
|
-
import { AssociateRepositoryRequest, AssociateRepositoryResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1AssociateRepositoryCommand,
|
|
5
|
-
serializeAws_restJson1AssociateRepositoryCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface AssociateRepositoryCommandInput extends AssociateRepositoryRequest {}
|
|
21
|
-
export interface AssociateRepositoryCommandOutput extends AssociateRepositoryResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>
|
|
25
|
-
* Use to associate an Amazon Web Services CodeCommit repository or a repostory managed by
|
|
26
|
-
* Amazon Web Services CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a
|
|
27
|
-
* repository, CodeGuru Reviewer reviews source code changes in the repository's pull requests and provides
|
|
28
|
-
* automatic recommendations. You can view recommendations using the CodeGuru Reviewer console. For more information, see
|
|
29
|
-
* <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html">Recommendations in
|
|
30
|
-
* Amazon CodeGuru Reviewer</a> in the <i>Amazon CodeGuru Reviewer User Guide.</i>
|
|
31
|
-
* </p>
|
|
32
|
-
*
|
|
33
|
-
* <p>If you associate a CodeCommit or S3 repository, it must be in the same
|
|
34
|
-
* Amazon Web Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews are configured.</p>
|
|
35
|
-
*
|
|
36
|
-
* <p>Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services CodeStar
|
|
37
|
-
* Connections to connect to CodeGuru Reviewer. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-associate-repository.html">Associate a repository</a> in
|
|
38
|
-
* the <i>Amazon CodeGuru Reviewer User Guide.</i>
|
|
39
|
-
* </p>
|
|
40
|
-
*
|
|
41
|
-
* <note>
|
|
42
|
-
* <p>
|
|
43
|
-
* You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate
|
|
44
|
-
* a GitHub repository, use the console. For more information, see
|
|
45
|
-
* <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html">Getting
|
|
46
|
-
* started with CodeGuru Reviewer</a> in the <i>CodeGuru Reviewer User Guide.</i>
|
|
47
|
-
* </p>
|
|
48
|
-
* </note>
|
|
49
|
-
* @example
|
|
50
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
51
|
-
* ```javascript
|
|
52
|
-
* import { CodeGuruReviewerClient, AssociateRepositoryCommand } from "@aws-sdk/client-codeguru-reviewer"; // ES Modules import
|
|
53
|
-
* // const { CodeGuruReviewerClient, AssociateRepositoryCommand } = require("@aws-sdk/client-codeguru-reviewer"); // CommonJS import
|
|
54
|
-
* const client = new CodeGuruReviewerClient(config);
|
|
55
|
-
* const command = new AssociateRepositoryCommand(input);
|
|
56
|
-
* const response = await client.send(command);
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @see {@link AssociateRepositoryCommandInput} for command's `input` shape.
|
|
60
|
-
* @see {@link AssociateRepositoryCommandOutput} for command's `response` shape.
|
|
61
|
-
* @see {@link CodeGuruReviewerClientResolvedConfig | config} for command's `input` shape.
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
export class AssociateRepositoryCommand extends $Command<
|
|
65
|
-
AssociateRepositoryCommandInput,
|
|
66
|
-
AssociateRepositoryCommandOutput,
|
|
67
|
-
CodeGuruReviewerClientResolvedConfig
|
|
68
|
-
> {
|
|
69
|
-
// Start section: command_properties
|
|
70
|
-
// End section: command_properties
|
|
71
|
-
|
|
72
|
-
constructor(readonly input: AssociateRepositoryCommandInput) {
|
|
73
|
-
// Start section: command_constructor
|
|
74
|
-
super();
|
|
75
|
-
// End section: command_constructor
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
|
-
resolveMiddleware(
|
|
82
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
83
|
-
configuration: CodeGuruReviewerClientResolvedConfig,
|
|
84
|
-
options?: __HttpHandlerOptions
|
|
85
|
-
): Handler<AssociateRepositoryCommandInput, AssociateRepositoryCommandOutput> {
|
|
86
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
87
|
-
|
|
88
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
89
|
-
|
|
90
|
-
const { logger } = configuration;
|
|
91
|
-
const clientName = "CodeGuruReviewerClient";
|
|
92
|
-
const commandName = "AssociateRepositoryCommand";
|
|
93
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
94
|
-
logger,
|
|
95
|
-
clientName,
|
|
96
|
-
commandName,
|
|
97
|
-
inputFilterSensitiveLog: AssociateRepositoryRequest.filterSensitiveLog,
|
|
98
|
-
outputFilterSensitiveLog: AssociateRepositoryResponse.filterSensitiveLog,
|
|
99
|
-
};
|
|
100
|
-
const { requestHandler } = configuration;
|
|
101
|
-
return stack.resolve(
|
|
102
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
103
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
104
|
-
handlerExecutionContext
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
private serialize(input: AssociateRepositoryCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
109
|
-
return serializeAws_restJson1AssociateRepositoryCommand(input, context);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AssociateRepositoryCommandOutput> {
|
|
113
|
-
return deserializeAws_restJson1AssociateRepositoryCommand(output, context);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Start section: command_body_extra
|
|
117
|
-
// End section: command_body_extra
|
|
118
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { CodeGuruReviewerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruReviewerClient";
|
|
2
|
-
import { CreateCodeReviewRequest, CreateCodeReviewResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1CreateCodeReviewCommand,
|
|
5
|
-
serializeAws_restJson1CreateCodeReviewCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface CreateCodeReviewCommandInput extends CreateCodeReviewRequest {}
|
|
21
|
-
export interface CreateCodeReviewCommandOutput extends CreateCodeReviewResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>
|
|
25
|
-
* Use to create a code review with a <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html">
|
|
26
|
-
* <code>CodeReviewType</code>
|
|
27
|
-
* </a>
|
|
28
|
-
* of <code>RepositoryAnalysis</code>. This type of code review analyzes all code under a specified branch in an associated repository.
|
|
29
|
-
* <code>PullRequest</code> code reviews are automatically triggered by a pull request.
|
|
30
|
-
* </p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { CodeGuruReviewerClient, CreateCodeReviewCommand } from "@aws-sdk/client-codeguru-reviewer"; // ES Modules import
|
|
35
|
-
* // const { CodeGuruReviewerClient, CreateCodeReviewCommand } = require("@aws-sdk/client-codeguru-reviewer"); // CommonJS import
|
|
36
|
-
* const client = new CodeGuruReviewerClient(config);
|
|
37
|
-
* const command = new CreateCodeReviewCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link CreateCodeReviewCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link CreateCodeReviewCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link CodeGuruReviewerClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class CreateCodeReviewCommand extends $Command<
|
|
47
|
-
CreateCodeReviewCommandInput,
|
|
48
|
-
CreateCodeReviewCommandOutput,
|
|
49
|
-
CodeGuruReviewerClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: CreateCodeReviewCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: CodeGuruReviewerClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<CreateCodeReviewCommandInput, CreateCodeReviewCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "CodeGuruReviewerClient";
|
|
74
|
-
const commandName = "CreateCodeReviewCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: CreateCodeReviewRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: CreateCodeReviewResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: CreateCodeReviewCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_restJson1CreateCodeReviewCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateCodeReviewCommandOutput> {
|
|
95
|
-
return deserializeAws_restJson1CreateCodeReviewCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CodeGuruReviewerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeGuruReviewerClient";
|
|
2
|
-
import { DescribeCodeReviewRequest, DescribeCodeReviewResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1DescribeCodeReviewCommand,
|
|
5
|
-
serializeAws_restJson1DescribeCodeReviewCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface DescribeCodeReviewCommandInput extends DescribeCodeReviewRequest {}
|
|
21
|
-
export interface DescribeCodeReviewCommandOutput extends DescribeCodeReviewResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p> Returns the metadata associated with the code review along with its status.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { CodeGuruReviewerClient, DescribeCodeReviewCommand } from "@aws-sdk/client-codeguru-reviewer"; // ES Modules import
|
|
29
|
-
* // const { CodeGuruReviewerClient, DescribeCodeReviewCommand } = require("@aws-sdk/client-codeguru-reviewer"); // CommonJS import
|
|
30
|
-
* const client = new CodeGuruReviewerClient(config);
|
|
31
|
-
* const command = new DescribeCodeReviewCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link DescribeCodeReviewCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link DescribeCodeReviewCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link CodeGuruReviewerClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class DescribeCodeReviewCommand extends $Command<
|
|
41
|
-
DescribeCodeReviewCommandInput,
|
|
42
|
-
DescribeCodeReviewCommandOutput,
|
|
43
|
-
CodeGuruReviewerClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: DescribeCodeReviewCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: CodeGuruReviewerClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<DescribeCodeReviewCommandInput, DescribeCodeReviewCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "CodeGuruReviewerClient";
|
|
68
|
-
const commandName = "DescribeCodeReviewCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: DescribeCodeReviewRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: DescribeCodeReviewResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: DescribeCodeReviewCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1DescribeCodeReviewCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeCodeReviewCommandOutput> {
|
|
89
|
-
return deserializeAws_restJson1DescribeCodeReviewCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|