@datafire/amazonaws_codeguru_reviewer
v5.0.0
Published
DataFire integration for Amazon CodeGuru Reviewer
Downloads
7
Readme
@datafire/amazonaws_codeguru_reviewer
Client library for Amazon CodeGuru Reviewer
Installation and Usage
npm install --save @datafire/amazonaws_codeguru_reviewer
let amazonaws_codeguru_reviewer = require('@datafire/amazonaws_codeguru_reviewer').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
.then(data => {
console.log(data);
});
Description
Actions
ListRepositoryAssociations
amazonaws_codeguru_reviewer.ListRepositoryAssociations({}, context)
Input
- input
object
- ProviderType
array
- State
array
- Name
array
- Owner
array
- MaxResults
integer
- NextToken
string
- ProviderType
Output
AssociateRepository
amazonaws_codeguru_reviewer.AssociateRepository({
"Repository": {}
}, context)
Input
- input
object
- ClientRequestToken
string
: Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries. - Repository required
object
: Information about an associated AWS CodeCommit repository or an associated repository that is managed by AWS CodeStar Connections (for example, Bitbucket). This Repository object is not used if your source code is in an associated GitHub repository.- Bitbucket
- ConnectionArn required
- Name required
- Owner required
- CodeCommit
- Name required
- GitHubEnterpriseServer
- ConnectionArn required
- Name required
- Owner required
- Bitbucket
- Tags
object
: An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts: A tag key (for example, CostCenter, Environment, Project, or Secret). Tag keys are case sensitive. An optional field known as a tag value (for example, 111122223333, Production, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
- ClientRequestToken
Output
- output AssociateRepositoryResponse
DisassociateRepository
amazonaws_codeguru_reviewer.DisassociateRepository({
"AssociationArn": ""
}, context)
Input
- input
object
- AssociationArn required
string
- AssociationArn required
Output
DescribeRepositoryAssociation
amazonaws_codeguru_reviewer.DescribeRepositoryAssociation({
"AssociationArn": ""
}, context)
Input
- input
object
- AssociationArn required
string
- AssociationArn required
Output
CreateCodeReview
amazonaws_codeguru_reviewer.CreateCodeReview({
"Name": "",
"RepositoryAssociationArn": "",
"Type": {}
}, context)
Input
- input
object
- ClientRequestToken
string
: Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate code reviews if there are failures and retries. - Name required
string
: The name of the code review. The name of each code review in your AWS account must be unique. - RepositoryAssociationArn required
string
: The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations . A code review can only be created on an associated repository. This is the ARN of the associated repository. - Type required
object
: The type of a code review. There are two code review types: PullRequest - A code review that is automatically triggered by a pull request on an assocaited repository. Because this type of code review is automatically generated, you cannot specify this code review type using CreateCodeReview . RepositoryAnalysis - A code review that analyzes all code under a specified branch in an associated respository. The assocated repository is specified using its ARN in CreateCodeReview .- RepositoryAnalysis
- RepositoryHead required
- BranchName required
- RepositoryHead required
- RepositoryAnalysis
- ClientRequestToken
Output
- output CreateCodeReviewResponse
ListCodeReviews
amazonaws_codeguru_reviewer.ListCodeReviews({
"Type": ""
}, context)
Input
- input
object
- ProviderTypes
array
- States
array
- RepositoryNames
array
- Type required
string
- MaxResults
integer
- NextToken
string
- ProviderTypes
Output
- output ListCodeReviewsResponse
DescribeCodeReview
amazonaws_codeguru_reviewer.DescribeCodeReview({
"CodeReviewArn": ""
}, context)
Input
- input
object
- CodeReviewArn required
string
- CodeReviewArn required
Output
- output DescribeCodeReviewResponse
ListRecommendations
amazonaws_codeguru_reviewer.ListRecommendations({
"CodeReviewArn": ""
}, context)
Input
- input
object
- NextToken
string
- MaxResults
integer
- CodeReviewArn required
string
- NextToken
Output
- output ListRecommendationsResponse
PutRecommendationFeedback
amazonaws_codeguru_reviewer.PutRecommendationFeedback({
"CodeReviewArn": "",
"RecommendationId": "",
"Reactions": []
}, context)
Input
- input
object
- CodeReviewArn required
string
: The Amazon Resource Name (ARN) of the CodeReview object. - Reactions required
array
: List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all your feedback.- items Reaction
- RecommendationId required
string
: The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
- CodeReviewArn required
Output
DescribeRecommendationFeedback
amazonaws_codeguru_reviewer.DescribeRecommendationFeedback({
"CodeReviewArn": "",
"RecommendationId": ""
}, context)
Input
- input
object
- CodeReviewArn required
string
- RecommendationId required
string
- UserId
string
- CodeReviewArn required
Output
ListRecommendationFeedback
amazonaws_codeguru_reviewer.ListRecommendationFeedback({
"CodeReviewArn": ""
}, context)
Input
- input
object
- NextToken
string
- MaxResults
integer
- CodeReviewArn required
string
- UserIds
array
- RecommendationIds
array
- NextToken
Output
ListTagsForResource
amazonaws_codeguru_reviewer.ListTagsForResource({
"resourceArn": ""
}, context)
Input
- input
object
- resourceArn required
string
- resourceArn required
Output
- output ListTagsForResourceResponse
TagResource
amazonaws_codeguru_reviewer.TagResource({
"resourceArn": "",
"Tags": {}
}, context)
Input
- input
object
- resourceArn required
string
- Tags required
object
: An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts: A tag key (for example, CostCenter, Environment, Project, or Secret). Tag keys are case sensitive. An optional field known as a tag value (for example, 111122223333, Production, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
- resourceArn required
Output
- output TagResourceResponse
UntagResource
amazonaws_codeguru_reviewer.UntagResource({
"resourceArn": "",
"tagKeys": []
}, context)
Input
- input
object
- resourceArn required
string
- tagKeys required
array
- resourceArn required
Output
- output UntagResourceResponse
Definitions
AccessDeniedException
Arn
- Arn
string
AssociateRepositoryRequest
- AssociateRepositoryRequest
object
- ClientRequestToken
- Repository required
- Bitbucket
- ConnectionArn required
- Name required
- Owner required
- CodeCommit
- Name required
- GitHubEnterpriseServer
- ConnectionArn required
- Name required
- Owner required
- Bitbucket
- Tags
AssociateRepositoryResponse
- AssociateRepositoryResponse
object
- RepositoryAssociation
- AssociationArn
- AssociationId
- ConnectionArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- Name
- Owner
- ProviderType
- State
- StateReason
- Tags
- RepositoryAssociation
AssociationArn
- AssociationArn
string
AssociationId
- AssociationId
string
BranchName
- BranchName
string
ClientRequestToken
- ClientRequestToken
string
CodeCommitRepository
- CodeCommitRepository
object
: Information about an AWS CodeCommit repository. The CodeCommit repository must be in the same AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.- Name required
CodeReview
- CodeReview
object
: Information about a code review. A code review belongs to the associated repository that contains the reviewed code.- AssociationArn
- CodeReviewArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- Metrics
- FindingsCount
- MeteredLinesOfCodeCount
- Name
- Owner
- ProviderType
- PullRequestId
- RepositoryName
- SourceCodeType
- CommitDiff
- DestinationCommit
- SourceCommit
- RepositoryHead RepositoryHeadSourceCodeType
- CommitDiff
- State
- StateReason
- Type
CodeReviewName
- CodeReviewName
string
CodeReviewSummaries
- CodeReviewSummaries
array
- items CodeReviewSummary
CodeReviewSummary
- CodeReviewSummary
object
: Information about the summary of the code review.- CodeReviewArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- MetricsSummary
- FindingsCount
- MeteredLinesOfCodeCount
- Name
- Owner
- ProviderType
- PullRequestId
- RepositoryName
- State
- Type
CodeReviewType
- CodeReviewType
object
: The type of a code review. There are two code review types: PullRequest - A code review that is automatically triggered by a pull request on an assocaited repository. Because this type of code review is automatically generated, you cannot specify this code review type using CreateCodeReview . RepositoryAnalysis - A code review that analyzes all code under a specified branch in an associated respository. The assocated repository is specified using its ARN in CreateCodeReview .- RepositoryAnalysis required
- RepositoryHead required
- BranchName required
- RepositoryHead required
- RepositoryAnalysis required
CommitDiffSourceCodeType
- CommitDiffSourceCodeType
object
: A type of SourceCodeType that specifies the commit diff for a pull request on an associated repository.- DestinationCommit
- SourceCommit
CommitId
- CommitId
string
ConflictException
ConnectionArn
- ConnectionArn
string
CreateCodeReviewRequest
- CreateCodeReviewRequest
object
- ClientRequestToken
- Name required
- RepositoryAssociationArn required
- Type required
- RepositoryAnalysis required
- RepositoryHead required
- BranchName required
- RepositoryHead required
- RepositoryAnalysis required
CreateCodeReviewResponse
- CreateCodeReviewResponse
object
- CodeReview CodeReview
DescribeCodeReviewRequest
- DescribeCodeReviewRequest
object
DescribeCodeReviewResponse
- DescribeCodeReviewResponse
object
- CodeReview
- AssociationArn
- CodeReviewArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- Metrics
- FindingsCount
- MeteredLinesOfCodeCount
- Name
- Owner
- ProviderType
- PullRequestId
- RepositoryName
- SourceCodeType
- CommitDiff
- DestinationCommit
- SourceCommit
- RepositoryHead RepositoryHeadSourceCodeType
- CommitDiff
- State
- StateReason
- Type
- CodeReview
DescribeRecommendationFeedbackRequest
- DescribeRecommendationFeedbackRequest
object
DescribeRecommendationFeedbackResponse
- DescribeRecommendationFeedbackResponse
object
- RecommendationFeedback
- CodeReviewArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- Reactions
- items Reaction
- RecommendationId
- UserId
- RecommendationFeedback
DescribeRepositoryAssociationRequest
- DescribeRepositoryAssociationRequest
object
DescribeRepositoryAssociationResponse
- DescribeRepositoryAssociationResponse
object
- RepositoryAssociation
- AssociationArn
- AssociationId
- ConnectionArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- Name
- Owner
- ProviderType
- State
- StateReason
- Tags
- RepositoryAssociation
DisassociateRepositoryRequest
- DisassociateRepositoryRequest
object
DisassociateRepositoryResponse
- DisassociateRepositoryResponse
object
- RepositoryAssociation
- AssociationArn
- AssociationId
- ConnectionArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- Name
- Owner
- ProviderType
- State
- StateReason
- Tags
- RepositoryAssociation
FilePath
- FilePath
string
FindingsCount
- FindingsCount
integer
InternalServerException
JobState
- JobState
string
(values: Completed, Pending, Failed, Deleting)
JobStates
- JobStates
array
- items JobState
LineNumber
- LineNumber
integer
ListCodeReviewsMaxResults
- ListCodeReviewsMaxResults
integer
ListCodeReviewsRequest
- ListCodeReviewsRequest
object
ListCodeReviewsResponse
- ListCodeReviewsResponse
object
- CodeReviewSummaries
- items CodeReviewSummary
- NextToken
- CodeReviewSummaries
ListRecommendationFeedbackRequest
- ListRecommendationFeedbackRequest
object
ListRecommendationFeedbackResponse
- ListRecommendationFeedbackResponse
object
- NextToken
- RecommendationFeedbackSummaries
ListRecommendationsRequest
- ListRecommendationsRequest
object
ListRecommendationsResponse
- ListRecommendationsResponse
object
- NextToken
- RecommendationSummaries
- items RecommendationSummary
ListRepositoryAssociationsRequest
- ListRepositoryAssociationsRequest
object
ListRepositoryAssociationsResponse
- ListRepositoryAssociationsResponse
object
- NextToken
- RepositoryAssociationSummaries
ListTagsForResourceRequest
- ListTagsForResourceRequest
object
ListTagsForResourceResponse
- ListTagsForResourceResponse
object
- Tags
MaxResults
- MaxResults
integer
MeteredLinesOfCodeCount
- MeteredLinesOfCodeCount
integer
Metrics
- Metrics
object
: Information about the statistics from the code review.- FindingsCount
- MeteredLinesOfCodeCount
MetricsSummary
- MetricsSummary
object
: Information about metrics summaries.- FindingsCount
- MeteredLinesOfCodeCount
Name
- Name
string
Names
- Names
array
- items Name
NextToken
- NextToken
string
NotFoundException
Owner
- Owner
string
Owners
- Owners
array
- items Owner
ProviderType
- ProviderType
string
(values: CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer)
ProviderTypes
- ProviderTypes
array
- items ProviderType
PullRequestId
- PullRequestId
string
PutRecommendationFeedbackRequest
- PutRecommendationFeedbackRequest
object
- CodeReviewArn required
- Reactions required
- items Reaction
- RecommendationId required
PutRecommendationFeedbackResponse
- PutRecommendationFeedbackResponse
object
Reaction
- Reaction
string
(values: ThumbsUp, ThumbsDown)
Reactions
- Reactions
array
- items Reaction
RecommendationFeedback
- RecommendationFeedback
object
: Information about the recommendation feedback.- CodeReviewArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- Reactions
- items Reaction
- RecommendationId
- UserId
RecommendationFeedbackSummaries
- RecommendationFeedbackSummaries
array
RecommendationFeedbackSummary
- RecommendationFeedbackSummary
object
: Information about recommendation feedback summaries.- Reactions
- items Reaction
- RecommendationId
- UserId
- Reactions
RecommendationId
- RecommendationId
string
RecommendationIds
- RecommendationIds
array
- items RecommendationId
RecommendationSummaries
- RecommendationSummaries
array
- items RecommendationSummary
RecommendationSummary
- RecommendationSummary
object
: Information about recommendations.- Description
- EndLine
- FilePath
- RecommendationId
- StartLine
Repository
- Repository
object
: Information about an associated AWS CodeCommit repository or an associated repository that is managed by AWS CodeStar Connections (for example, Bitbucket). This Repository object is not used if your source code is in an associated GitHub repository.- Bitbucket
- ConnectionArn required
- Name required
- Owner required
- CodeCommit
- Name required
- GitHubEnterpriseServer
- ConnectionArn required
- Name required
- Owner required
- Bitbucket
RepositoryAnalysis
- RepositoryAnalysis
object
: A code review type that analyzes all code under a specified branch in an associated respository. The assocated repository is specified using its ARN when you call CreateCodeReview .- RepositoryHead required
- BranchName required
- RepositoryHead required
RepositoryAssociation
- RepositoryAssociation
object
: Information about a repository association. The DescribeRepositoryAssociation operation returns a RepositoryAssociation object.- AssociationArn
- AssociationId
- ConnectionArn
- CreatedTimeStamp
- LastUpdatedTimeStamp
- Name
- Owner
- ProviderType
- State
- StateReason
RepositoryAssociationState
- RepositoryAssociationState
string
(values: Associated, Associating, Failed, Disassociating, Disassociated)
RepositoryAssociationStates
- RepositoryAssociationStates
array
RepositoryAssociationSummaries
- RepositoryAssociationSummaries
array
RepositoryAssociationSummary
- RepositoryAssociationSummary
object
: Summary information about a repository association. The ListRepositoryAssociations operation returns a list of RepositoryAssociationSummary objects.- AssociationArn
- AssociationId
- ConnectionArn
- LastUpdatedTimeStamp
- Name
- Owner
- ProviderType
- State
RepositoryHeadSourceCodeType
- RepositoryHeadSourceCodeType
object
: A SourceCodeType that specifies the tip of a branch in an associated repository.- BranchName required
RepositoryNames
- RepositoryNames
array
- items Name
ResourceNotFoundException
SourceCodeType
- SourceCodeType
object
: Specifies the source code that is analyzed in a code review. A code review can analyze the source code that is specified using a pull request diff or a branch in an associated repository.- CommitDiff
- DestinationCommit
- SourceCommit
- RepositoryHead RepositoryHeadSourceCodeType
- CommitDiff
StateReason
- StateReason
string
TagKey
- TagKey
string
TagKeyList
- TagKeyList
array
- items TagKey
TagMap
- TagMap
object
TagResourceRequest
- TagResourceRequest
object
- Tags required
TagResourceResponse
- TagResourceResponse
object
TagValue
- TagValue
string
Text
- Text
string
ThirdPartySourceRepository
- ThirdPartySourceRepository
object
: Information about a third-party source repository connected to CodeGuru Reviewer.- ConnectionArn required
- Name required
- Owner required
ThrottlingException
TimeStamp
- TimeStamp
string
Type
- Type
string
(values: PullRequest, RepositoryAnalysis)
UntagResourceRequest
- UntagResourceRequest
object
UntagResourceResponse
- UntagResourceResponse
object
UserId
- UserId
string
UserIds
- UserIds
array
- items UserId