codegurureviewer

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 7

Documentation

Overview

Package codegurureviewer provides the client and types for making API requests to CodeGuruReviewer.

This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a service that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommends fixes in your Java code.

By proactively detecting and providing recommendations for addressing code defects and implementing best practices, CodeGuru Reviewer improves the overall quality and maintainability of your code base during the code review stage. For more information about CodeGuru Reviewer, see the Amazon CodeGuru Reviewer User Guide (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/welcome.html).

See https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19 for more information on this service.

See codegurureviewer package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/codegurureviewer/

Using the Client

To use CodeGuruReviewer with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the CodeGuruReviewer client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/codegurureviewer/#New

Index

Constants

View Source
const (
	ServiceName = "CodeGuruReviewer"  // Service's name
	ServiceID   = "CodeGuruReviewer"  // Service's identifier
	EndpointsID = "codeguru-reviewer" // Service's Endpoint identifier
)
View Source
const (

	// ErrCodeAccessDeniedException for service response error code
	// "AccessDeniedException".
	//
	// You do not have sufficient access to perform this action.
	ErrCodeAccessDeniedException = "AccessDeniedException"

	// ErrCodeConflictException for service response error code
	// "ConflictException".
	//
	// The requested operation would cause a conflict with the current state of
	// a service resource associated with the request. Resolve the conflict before
	// retrying this request.
	ErrCodeConflictException = "ConflictException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// The server encountered an internal error and is unable to complete the request.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeNotFoundException for service response error code
	// "NotFoundException".
	//
	// The resource specified in the request was not found.
	ErrCodeNotFoundException = "NotFoundException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The resource specified in the request was not found.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// The request was denied due to request throttling.
	ErrCodeThrottlingException = "ThrottlingException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// The input fails to satisfy the specified constraints.
	ErrCodeValidationException = "ValidationException"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateRepositoryInput

type AssociateRepositoryInput struct {

	// Unique, case-sensitive identifier that you provide to ensure the idempotency
	// of the request.
	//
	// To add a new repository association, this parameter specifies a unique identifier
	// for the new repository association that helps ensure idempotency.
	//
	// If you use the AWS CLI or one of the AWS SDKs to call this operation, you
	// can leave this parameter empty. The CLI or SDK generates a random UUID for
	// you and includes that in the request. If you don't use the SDK and instead
	// generate a raw HTTP request to the Secrets Manager service endpoint, you
	// must generate a ClientRequestToken yourself for new versions and include
	// that value in the request.
	//
	// You typically interact with this value if you implement your own retry logic
	// and want to ensure that a given repository association is not created twice.
	// We recommend that you generate a UUID-type value to ensure uniqueness within
	// the specified repository association.
	//
	// Amazon CodeGuru Reviewer uses this value to prevent the accidental creation
	// of duplicate repository associations if there are failures and retries.
	ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`

	// The repository to associate.
	//
	// Repository is a required field
	Repository *Repository `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (AssociateRepositoryInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (AssociateRepositoryInput) String

func (s AssociateRepositoryInput) String() string

String returns the string representation

func (*AssociateRepositoryInput) Validate

func (s *AssociateRepositoryInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AssociateRepositoryOutput

type AssociateRepositoryOutput struct {

	// Information about the repository association.
	RepositoryAssociation *RepositoryAssociation `type:"structure"`
	// contains filtered or unexported fields
}

func (AssociateRepositoryOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (AssociateRepositoryOutput) String

func (s AssociateRepositoryOutput) String() string

String returns the string representation

type AssociateRepositoryRequest

type AssociateRepositoryRequest struct {
	*aws.Request
	Input *AssociateRepositoryInput
	Copy  func(*AssociateRepositoryInput) AssociateRepositoryRequest
}

AssociateRepositoryRequest is the request type for the AssociateRepository API operation.

func (AssociateRepositoryRequest) Send

Send marshals and sends the AssociateRepository API request.

type AssociateRepositoryResponse

type AssociateRepositoryResponse struct {
	*AssociateRepositoryOutput
	// contains filtered or unexported fields
}

AssociateRepositoryResponse is the response type for the AssociateRepository API operation.

func (*AssociateRepositoryResponse) SDKResponseMetdata

func (r *AssociateRepositoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateRepository request.

type Client

type Client struct {
	*aws.Client
}

Client provides the API operation methods for making requests to CodeGuruReviewer. See this package's package overview docs for details on the service.

The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := codegurureviewer.New(myConfig)

func (*Client) AssociateRepositoryRequest

func (c *Client) AssociateRepositoryRequest(input *AssociateRepositoryInput) AssociateRepositoryRequest

AssociateRepositoryRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Use to associate an AWS CodeCommit repository or a repostory managed by AWS CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a repository, CodeGuru Reviewer reviews source code changes in the repository's pull requests and provides automatic recommendations. You can view recommendations using the CodeGuru Reviewer console. For more information, see Recommendations in Amazon CodeGuru Reviewer (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html) in the Amazon CodeGuru Reviewer User Guide.

If you associate a CodeCommit repository, it must be in the same AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.

Bitbucket and GitHub Enterprise Server repositories are managed by AWS CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Connect to a repository source provider (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/reviewer-ug/step-one.html#select-repository-source-provider) in the Amazon CodeGuru Reviewer User Guide.

You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub repository, use the console. For more information, see Getting started with CodeGuru Reviewer (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html) in the CodeGuru Reviewer User Guide.

// Example sending a request using AssociateRepositoryRequest.
req := client.AssociateRepositoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository

func (*Client) DescribeCodeReviewRequest added in v0.22.0

func (c *Client) DescribeCodeReviewRequest(input *DescribeCodeReviewInput) DescribeCodeReviewRequest

DescribeCodeReviewRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Returns the metadata associated with the code review along with its status.

// Example sending a request using DescribeCodeReviewRequest.
req := client.DescribeCodeReviewRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview

func (*Client) DescribeRecommendationFeedbackRequest added in v0.22.0

func (c *Client) DescribeRecommendationFeedbackRequest(input *DescribeRecommendationFeedbackInput) DescribeRecommendationFeedbackRequest

DescribeRecommendationFeedbackRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Describes the customer feedback for a CodeGuru Reviewer recommendation.

// Example sending a request using DescribeRecommendationFeedbackRequest.
req := client.DescribeRecommendationFeedbackRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedback

func (*Client) DescribeRepositoryAssociationRequest

func (c *Client) DescribeRepositoryAssociationRequest(input *DescribeRepositoryAssociationInput) DescribeRepositoryAssociationRequest

DescribeRepositoryAssociationRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Returns a RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) object that contains information about the requested repository association.

// Example sending a request using DescribeRepositoryAssociationRequest.
req := client.DescribeRepositoryAssociationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation

func (*Client) DisassociateRepositoryRequest

func (c *Client) DisassociateRepositoryRequest(input *DisassociateRepositoryInput) DisassociateRepositoryRequest

DisassociateRepositoryRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Removes the association between Amazon CodeGuru Reviewer and a repository.

// Example sending a request using DisassociateRepositoryRequest.
req := client.DisassociateRepositoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository

func (*Client) ListCodeReviewsRequest added in v0.22.0

func (c *Client) ListCodeReviewsRequest(input *ListCodeReviewsInput) ListCodeReviewsRequest

ListCodeReviewsRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Lists all the code reviews that the customer has created in the past 90 days.

// Example sending a request using ListCodeReviewsRequest.
req := client.ListCodeReviewsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews

func (*Client) ListRecommendationFeedbackRequest added in v0.22.0

func (c *Client) ListRecommendationFeedbackRequest(input *ListRecommendationFeedbackInput) ListRecommendationFeedbackRequest

ListRecommendationFeedbackRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Returns a list of RecommendationFeedbackSummary (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html) objects that contain customer recommendation feedback for all CodeGuru Reviewer users.

// Example sending a request using ListRecommendationFeedbackRequest.
req := client.ListRecommendationFeedbackRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedback

func (*Client) ListRecommendationsRequest added in v0.22.0

func (c *Client) ListRecommendationsRequest(input *ListRecommendationsInput) ListRecommendationsRequest

ListRecommendationsRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Returns the list of all recommendations for a completed code review.

// Example sending a request using ListRecommendationsRequest.
req := client.ListRecommendationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations

func (*Client) ListRepositoryAssociationsRequest

func (c *Client) ListRepositoryAssociationsRequest(input *ListRepositoryAssociationsInput) ListRepositoryAssociationsRequest

ListRepositoryAssociationsRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Returns a list of RepositoryAssociationSummary (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html) objects that contain summary information about a repository association. You can filter the returned list by ProviderType (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-ProviderType), Name (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Name), State (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-State), and Owner (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Owner).

// Example sending a request using ListRepositoryAssociationsRequest.
req := client.ListRepositoryAssociationsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations

func (*Client) PutRecommendationFeedbackRequest added in v0.22.0

func (c *Client) PutRecommendationFeedbackRequest(input *PutRecommendationFeedbackInput) PutRecommendationFeedbackRequest

PutRecommendationFeedbackRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.

Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.

// Example sending a request using PutRecommendationFeedbackRequest.
req := client.PutRecommendationFeedbackRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedback

type CodeCommitRepository

type CodeCommitRepository struct {

	// The name of the AWS CodeCommit repository. For more information, see repositoryName
	// (https://docs.aws.amazon.com/codecommit/latest/APIReference/API_GetRepository.html#CodeCommit-GetRepository-request-repositoryName)
	// in the AWS CodeCommit API Reference.
	//
	// Name is a required field
	Name *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

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.

func (CodeCommitRepository) MarshalFields

func (s CodeCommitRepository) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CodeCommitRepository) String

func (s CodeCommitRepository) String() string

String returns the string representation

func (*CodeCommitRepository) Validate

func (s *CodeCommitRepository) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CodeReview added in v0.22.0

type CodeReview struct {

	// The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html)
	// object.
	CodeReviewArn *string `min:"1" type:"string"`

	// The time, in milliseconds since the epoch, when the code review was created.
	CreatedTimeStamp *time.Time `type:"timestamp"`

	// The time, in milliseconds since the epoch, when the code review was last
	// updated.
	LastUpdatedTimeStamp *time.Time `type:"timestamp"`

	// The statistics from the code review.
	Metrics *Metrics `type:"structure"`

	// The name of the code review.
	Name *string `min:"1" type:"string"`

	// The owner of the repository. For an AWS CodeCommit repository, this is the
	// AWS account ID of the account that owns the repository. For a GitHub or Bitbucket
	// repository, this is the username for the account that owns the repository.
	Owner *string `min:"1" type:"string"`

	// The type of repository that contains the reviewed code (for example, GitHub
	// or Bitbucket).
	ProviderType ProviderType `type:"string" enum:"true"`

	// The pull request ID for the code review.
	PullRequestId *string `min:"1" type:"string"`

	// The name of the repository.
	RepositoryName *string `min:"1" type:"string"`

	// The type of the source code for the code review.
	SourceCodeType *SourceCodeType `type:"structure"`

	// The valid code review states are:
	//
	//    * Completed: The code review is complete.
	//
	//    * Pending: The code review started and has not completed or failed.
	//
	//    * Failed: The code review failed.
	//
	//    * Deleting: The code review is being deleted.
	State JobState `type:"string" enum:"true"`

	// The reason for the state of the code review.
	StateReason *string `type:"string"`

	// The type of code review.
	Type Type `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Information about a code review.

func (CodeReview) MarshalFields added in v0.22.0

func (s CodeReview) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CodeReview) String added in v0.22.0

func (s CodeReview) String() string

String returns the string representation

type CodeReviewSummary added in v0.22.0

type CodeReviewSummary struct {

	// The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html)
	// object.
	CodeReviewArn *string `min:"1" type:"string"`

	// The time, in milliseconds since the epoch, when the code review was created.
	CreatedTimeStamp *time.Time `type:"timestamp"`

	// The time, in milliseconds since the epoch, when the code review was last
	// updated.
	LastUpdatedTimeStamp *time.Time `type:"timestamp"`

	// The statistics from the code review.
	MetricsSummary *MetricsSummary `type:"structure"`

	// The name of the code review.
	Name *string `min:"1" type:"string"`

	// The owner of the repository. For an AWS CodeCommit repository, this is the
	// AWS account ID of the account that owns the repository. For a GitHub or Bitbucket
	// repository, this is the username for the account that owns the repository.
	Owner *string `min:"1" type:"string"`

	// The provider type of the repository association.
	ProviderType ProviderType `type:"string" enum:"true"`

	// The pull request ID for the code review.
	PullRequestId *string `min:"1" type:"string"`

	// The name of the repository.
	RepositoryName *string `min:"1" type:"string"`

	// The state of the code review.
	//
	// The valid code review states are:
	//
	//    * Completed: The code review is complete.
	//
	//    * Pending: The code review started and has not completed or failed.
	//
	//    * Failed: The code review failed.
	//
	//    * Deleting: The code review is being deleted.
	State JobState `type:"string" enum:"true"`

	// The type of the code review.
	Type Type `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Information about the summary of the code review.

func (CodeReviewSummary) MarshalFields added in v0.22.0

func (s CodeReviewSummary) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CodeReviewSummary) String added in v0.22.0

func (s CodeReviewSummary) String() string

String returns the string representation

type CommitDiffSourceCodeType added in v0.22.0

type CommitDiffSourceCodeType struct {

	// The SHA of the destination commit.
	DestinationCommit *string `min:"6" type:"string"`

	// The SHA of the source commit.
	SourceCommit *string `min:"6" type:"string"`
	// contains filtered or unexported fields
}

The commit diff for the pull request.

func (CommitDiffSourceCodeType) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CommitDiffSourceCodeType) String added in v0.22.0

func (s CommitDiffSourceCodeType) String() string

String returns the string representation

type DescribeCodeReviewInput added in v0.22.0

type DescribeCodeReviewInput struct {

	// The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html)
	// object.
	//
	// CodeReviewArn is a required field
	CodeReviewArn *string `location:"uri" locationName:"CodeReviewArn" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeCodeReviewInput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeCodeReviewInput) String added in v0.22.0

func (s DescribeCodeReviewInput) String() string

String returns the string representation

func (*DescribeCodeReviewInput) Validate added in v0.22.0

func (s *DescribeCodeReviewInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeCodeReviewOutput added in v0.22.0

type DescribeCodeReviewOutput struct {

	// Information about the code review.
	CodeReview *CodeReview `type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeCodeReviewOutput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeCodeReviewOutput) String added in v0.22.0

func (s DescribeCodeReviewOutput) String() string

String returns the string representation

type DescribeCodeReviewRequest added in v0.22.0

type DescribeCodeReviewRequest struct {
	*aws.Request
	Input *DescribeCodeReviewInput
	Copy  func(*DescribeCodeReviewInput) DescribeCodeReviewRequest
}

DescribeCodeReviewRequest is the request type for the DescribeCodeReview API operation.

func (DescribeCodeReviewRequest) Send added in v0.22.0

Send marshals and sends the DescribeCodeReview API request.

type DescribeCodeReviewResponse added in v0.22.0

type DescribeCodeReviewResponse struct {
	*DescribeCodeReviewOutput
	// contains filtered or unexported fields
}

DescribeCodeReviewResponse is the response type for the DescribeCodeReview API operation.

func (*DescribeCodeReviewResponse) SDKResponseMetdata added in v0.22.0

func (r *DescribeCodeReviewResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeCodeReview request.

type DescribeRecommendationFeedbackInput added in v0.22.0

type DescribeRecommendationFeedbackInput struct {

	// The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html)
	// object.
	//
	// CodeReviewArn is a required field
	CodeReviewArn *string `location:"uri" locationName:"CodeReviewArn" min:"1" type:"string" required:"true"`

	// The recommendation ID that can be used to track the provided recommendations
	// and then to collect the feedback.
	//
	// RecommendationId is a required field
	RecommendationId *string `location:"querystring" locationName:"RecommendationId" min:"1" type:"string" required:"true"`

	// Optional parameter to describe the feedback for a given user. If this is
	// not supplied, it defaults to the user making the request.
	//
	// The UserId is an IAM principal that can be specified as an AWS account ID
	// or an Amazon Resource Name (ARN). For more information, see Specifying a
	// Principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying)
	// in the AWS Identity and Access Management User Guide.
	UserId *string `location:"querystring" locationName:"UserId" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeRecommendationFeedbackInput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeRecommendationFeedbackInput) String added in v0.22.0

String returns the string representation

func (*DescribeRecommendationFeedbackInput) Validate added in v0.22.0

Validate inspects the fields of the type to determine if they are valid.

type DescribeRecommendationFeedbackOutput added in v0.22.0

type DescribeRecommendationFeedbackOutput struct {

	// The recommendation feedback given by the user.
	RecommendationFeedback *RecommendationFeedback `type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeRecommendationFeedbackOutput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeRecommendationFeedbackOutput) String added in v0.22.0

String returns the string representation

type DescribeRecommendationFeedbackRequest added in v0.22.0

type DescribeRecommendationFeedbackRequest struct {
	*aws.Request
	Input *DescribeRecommendationFeedbackInput
	Copy  func(*DescribeRecommendationFeedbackInput) DescribeRecommendationFeedbackRequest
}

DescribeRecommendationFeedbackRequest is the request type for the DescribeRecommendationFeedback API operation.

func (DescribeRecommendationFeedbackRequest) Send added in v0.22.0

Send marshals and sends the DescribeRecommendationFeedback API request.

type DescribeRecommendationFeedbackResponse added in v0.22.0

type DescribeRecommendationFeedbackResponse struct {
	*DescribeRecommendationFeedbackOutput
	// contains filtered or unexported fields
}

DescribeRecommendationFeedbackResponse is the response type for the DescribeRecommendationFeedback API operation.

func (*DescribeRecommendationFeedbackResponse) SDKResponseMetdata added in v0.22.0

func (r *DescribeRecommendationFeedbackResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeRecommendationFeedback request.

type DescribeRepositoryAssociationInput

type DescribeRepositoryAssociationInput struct {

	// The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html)
	// object. You can retrieve this ARN by calling ListRepositories.
	//
	// AssociationArn is a required field
	AssociationArn *string `location:"uri" locationName:"AssociationArn" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeRepositoryAssociationInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeRepositoryAssociationInput) String

String returns the string representation

func (*DescribeRepositoryAssociationInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type DescribeRepositoryAssociationOutput

type DescribeRepositoryAssociationOutput struct {

	// Information about the repository association.
	RepositoryAssociation *RepositoryAssociation `type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeRepositoryAssociationOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeRepositoryAssociationOutput) String

String returns the string representation

type DescribeRepositoryAssociationRequest

type DescribeRepositoryAssociationRequest struct {
	*aws.Request
	Input *DescribeRepositoryAssociationInput
	Copy  func(*DescribeRepositoryAssociationInput) DescribeRepositoryAssociationRequest
}

DescribeRepositoryAssociationRequest is the request type for the DescribeRepositoryAssociation API operation.

func (DescribeRepositoryAssociationRequest) Send

Send marshals and sends the DescribeRepositoryAssociation API request.

type DescribeRepositoryAssociationResponse

type DescribeRepositoryAssociationResponse struct {
	*DescribeRepositoryAssociationOutput
	// contains filtered or unexported fields
}

DescribeRepositoryAssociationResponse is the response type for the DescribeRepositoryAssociation API operation.

func (*DescribeRepositoryAssociationResponse) SDKResponseMetdata

func (r *DescribeRepositoryAssociationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeRepositoryAssociation request.

type DisassociateRepositoryInput

type DisassociateRepositoryInput struct {

	// The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html)
	// object.
	//
	// AssociationArn is a required field
	AssociationArn *string `location:"uri" locationName:"AssociationArn" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisassociateRepositoryInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DisassociateRepositoryInput) String

String returns the string representation

func (*DisassociateRepositoryInput) Validate

func (s *DisassociateRepositoryInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DisassociateRepositoryOutput

type DisassociateRepositoryOutput struct {

	// Information about the disassociated repository.
	RepositoryAssociation *RepositoryAssociation `type:"structure"`
	// contains filtered or unexported fields
}

func (DisassociateRepositoryOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DisassociateRepositoryOutput) String

String returns the string representation

type DisassociateRepositoryRequest

type DisassociateRepositoryRequest struct {
	*aws.Request
	Input *DisassociateRepositoryInput
	Copy  func(*DisassociateRepositoryInput) DisassociateRepositoryRequest
}

DisassociateRepositoryRequest is the request type for the DisassociateRepository API operation.

func (DisassociateRepositoryRequest) Send

Send marshals and sends the DisassociateRepository API request.

type DisassociateRepositoryResponse

type DisassociateRepositoryResponse struct {
	*DisassociateRepositoryOutput
	// contains filtered or unexported fields
}

DisassociateRepositoryResponse is the response type for the DisassociateRepository API operation.

func (*DisassociateRepositoryResponse) SDKResponseMetdata

func (r *DisassociateRepositoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateRepository request.

type JobState added in v0.22.0

type JobState string
const (
	JobStateCompleted JobState = "Completed"
	JobStatePending   JobState = "Pending"
	JobStateFailed    JobState = "Failed"
	JobStateDeleting  JobState = "Deleting"
)

Enum values for JobState

func (JobState) MarshalValue added in v0.22.0

func (enum JobState) MarshalValue() (string, error)

func (JobState) MarshalValueBuf added in v0.22.0

func (enum JobState) MarshalValueBuf(b []byte) ([]byte, error)

type ListCodeReviewsInput added in v0.22.0

type ListCodeReviewsInput struct {

	// The maximum number of results that are returned per call. The default is
	// 100.
	MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`

	// If nextToken is returned, there are more results available. The value of
	// nextToken is a unique pagination token for each page. Make the call again
	// using the returned token to retrieve the next page. Keep all other arguments
	// unchanged.
	NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"`

	// List of provider types for filtering that needs to be applied before displaying
	// the result. For example, providerTypes=[GitHub] lists code reviews from GitHub.
	ProviderTypes []ProviderType `location:"querystring" locationName:"ProviderTypes" min:"1" type:"list"`

	// List of repository names for filtering that needs to be applied before displaying
	// the result.
	RepositoryNames []string `location:"querystring" locationName:"RepositoryNames" min:"1" type:"list"`

	// List of states for filtering that needs to be applied before displaying the
	// result. For example, states=[Pending] lists code reviews in the Pending state.
	//
	// The valid code review states are:
	//
	//    * Completed: The code review is complete.
	//
	//    * Pending: The code review started and has not completed or failed.
	//
	//    * Failed: The code review failed.
	//
	//    * Deleting: The code review is being deleted.
	States []JobState `location:"querystring" locationName:"States" min:"1" type:"list"`

	// The type of code reviews to list in the response.
	//
	// Type is a required field
	Type Type `location:"querystring" locationName:"Type" type:"string" required:"true" enum:"true"`
	// contains filtered or unexported fields
}

func (ListCodeReviewsInput) MarshalFields added in v0.22.0

func (s ListCodeReviewsInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListCodeReviewsInput) String added in v0.22.0

func (s ListCodeReviewsInput) String() string

String returns the string representation

func (*ListCodeReviewsInput) Validate added in v0.22.0

func (s *ListCodeReviewsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListCodeReviewsOutput added in v0.22.0

type ListCodeReviewsOutput struct {

	// A list of code reviews that meet the criteria of the request.
	CodeReviewSummaries []CodeReviewSummary `type:"list"`

	// Pagination token.
	NextToken *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListCodeReviewsOutput) MarshalFields added in v0.22.0

func (s ListCodeReviewsOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListCodeReviewsOutput) String added in v0.22.0

func (s ListCodeReviewsOutput) String() string

String returns the string representation

type ListCodeReviewsPaginator added in v0.22.0

type ListCodeReviewsPaginator struct {
	aws.Pager
}

ListCodeReviewsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListCodeReviewsPaginator added in v0.22.0

func NewListCodeReviewsPaginator(req ListCodeReviewsRequest) ListCodeReviewsPaginator

NewListCodeReviewsRequestPaginator returns a paginator for ListCodeReviews. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.ListCodeReviewsRequest(input)
p := codegurureviewer.NewListCodeReviewsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListCodeReviewsPaginator) CurrentPage added in v0.22.0

type ListCodeReviewsRequest added in v0.22.0

type ListCodeReviewsRequest struct {
	*aws.Request
	Input *ListCodeReviewsInput
	Copy  func(*ListCodeReviewsInput) ListCodeReviewsRequest
}

ListCodeReviewsRequest is the request type for the ListCodeReviews API operation.

func (ListCodeReviewsRequest) Send added in v0.22.0

Send marshals and sends the ListCodeReviews API request.

type ListCodeReviewsResponse added in v0.22.0

type ListCodeReviewsResponse struct {
	*ListCodeReviewsOutput
	// contains filtered or unexported fields
}

ListCodeReviewsResponse is the response type for the ListCodeReviews API operation.

func (*ListCodeReviewsResponse) SDKResponseMetdata added in v0.22.0

func (r *ListCodeReviewsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListCodeReviews request.

type ListRecommendationFeedbackInput added in v0.22.0

type ListRecommendationFeedbackInput struct {

	// The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html)
	// object.
	//
	// CodeReviewArn is a required field
	CodeReviewArn *string `location:"uri" locationName:"CodeReviewArn" min:"1" type:"string" required:"true"`

	// The maximum number of results that are returned per call. The default is
	// 100.
	MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`

	// If nextToken is returned, there are more results available. The value of
	// nextToken is a unique pagination token for each page. Make the call again
	// using the returned token to retrieve the next page. Keep all other arguments
	// unchanged.
	NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"`

	// Used to query the recommendation feedback for a given recommendation.
	RecommendationIds []string `location:"querystring" locationName:"RecommendationIds" min:"1" type:"list"`

	// An AWS user's account ID or Amazon Resource Name (ARN). Use this ID to query
	// the recommendation feedback for a code review from that user.
	//
	// The UserId is an IAM principal that can be specified as an AWS account ID
	// or an Amazon Resource Name (ARN). For more information, see Specifying a
	// Principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying)
	// in the AWS Identity and Access Management User Guide.
	UserIds []string `location:"querystring" locationName:"UserIds" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (ListRecommendationFeedbackInput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRecommendationFeedbackInput) String added in v0.22.0

String returns the string representation

func (*ListRecommendationFeedbackInput) Validate added in v0.22.0

func (s *ListRecommendationFeedbackInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListRecommendationFeedbackOutput added in v0.22.0

type ListRecommendationFeedbackOutput struct {

	// If nextToken is returned, there are more results available. The value of
	// nextToken is a unique pagination token for each page. Make the call again
	// using the returned token to retrieve the next page. Keep all other arguments
	// unchanged.
	NextToken *string `min:"1" type:"string"`

	// Recommendation feedback summaries corresponding to the code review ARN.
	RecommendationFeedbackSummaries []RecommendationFeedbackSummary `type:"list"`
	// contains filtered or unexported fields
}

func (ListRecommendationFeedbackOutput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRecommendationFeedbackOutput) String added in v0.22.0

String returns the string representation

type ListRecommendationFeedbackPaginator added in v0.22.0

type ListRecommendationFeedbackPaginator struct {
	aws.Pager
}

ListRecommendationFeedbackPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListRecommendationFeedbackPaginator added in v0.22.0

func NewListRecommendationFeedbackPaginator(req ListRecommendationFeedbackRequest) ListRecommendationFeedbackPaginator

NewListRecommendationFeedbackRequestPaginator returns a paginator for ListRecommendationFeedback. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.ListRecommendationFeedbackRequest(input)
p := codegurureviewer.NewListRecommendationFeedbackRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListRecommendationFeedbackPaginator) CurrentPage added in v0.22.0

type ListRecommendationFeedbackRequest added in v0.22.0

type ListRecommendationFeedbackRequest struct {
	*aws.Request
	Input *ListRecommendationFeedbackInput
	Copy  func(*ListRecommendationFeedbackInput) ListRecommendationFeedbackRequest
}

ListRecommendationFeedbackRequest is the request type for the ListRecommendationFeedback API operation.

func (ListRecommendationFeedbackRequest) Send added in v0.22.0

Send marshals and sends the ListRecommendationFeedback API request.

type ListRecommendationFeedbackResponse added in v0.22.0

type ListRecommendationFeedbackResponse struct {
	*ListRecommendationFeedbackOutput
	// contains filtered or unexported fields
}

ListRecommendationFeedbackResponse is the response type for the ListRecommendationFeedback API operation.

func (*ListRecommendationFeedbackResponse) SDKResponseMetdata added in v0.22.0

func (r *ListRecommendationFeedbackResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListRecommendationFeedback request.

type ListRecommendationsInput added in v0.22.0

type ListRecommendationsInput struct {

	// The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html)
	// object.
	//
	// CodeReviewArn is a required field
	CodeReviewArn *string `location:"uri" locationName:"CodeReviewArn" min:"1" type:"string" required:"true"`

	// The maximum number of results that are returned per call. The default is
	// 100.
	MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`

	// Pagination token.
	NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListRecommendationsInput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRecommendationsInput) String added in v0.22.0

func (s ListRecommendationsInput) String() string

String returns the string representation

func (*ListRecommendationsInput) Validate added in v0.22.0

func (s *ListRecommendationsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListRecommendationsOutput added in v0.22.0

type ListRecommendationsOutput struct {

	// Pagination token.
	NextToken *string `min:"1" type:"string"`

	// List of recommendations for the requested code review.
	RecommendationSummaries []RecommendationSummary `type:"list"`
	// contains filtered or unexported fields
}

func (ListRecommendationsOutput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRecommendationsOutput) String added in v0.22.0

func (s ListRecommendationsOutput) String() string

String returns the string representation

type ListRecommendationsPaginator added in v0.22.0

type ListRecommendationsPaginator struct {
	aws.Pager
}

ListRecommendationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListRecommendationsPaginator added in v0.22.0

func NewListRecommendationsPaginator(req ListRecommendationsRequest) ListRecommendationsPaginator

NewListRecommendationsRequestPaginator returns a paginator for ListRecommendations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.ListRecommendationsRequest(input)
p := codegurureviewer.NewListRecommendationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListRecommendationsPaginator) CurrentPage added in v0.22.0

type ListRecommendationsRequest added in v0.22.0

type ListRecommendationsRequest struct {
	*aws.Request
	Input *ListRecommendationsInput
	Copy  func(*ListRecommendationsInput) ListRecommendationsRequest
}

ListRecommendationsRequest is the request type for the ListRecommendations API operation.

func (ListRecommendationsRequest) Send added in v0.22.0

Send marshals and sends the ListRecommendations API request.

type ListRecommendationsResponse added in v0.22.0

type ListRecommendationsResponse struct {
	*ListRecommendationsOutput
	// contains filtered or unexported fields
}

ListRecommendationsResponse is the response type for the ListRecommendations API operation.

func (*ListRecommendationsResponse) SDKResponseMetdata added in v0.22.0

func (r *ListRecommendationsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListRecommendations request.

type ListRepositoryAssociationsInput

type ListRepositoryAssociationsInput struct {

	// The maximum number of repository association results returned by ListRepositoryAssociations
	// in paginated output. When this parameter is used, ListRepositoryAssociations
	// only returns maxResults results in a single page with a nextToken response
	// element. The remaining results of the initial request can be seen by sending
	// another ListRepositoryAssociations request with the returned nextToken value.
	// This value can be between 1 and 100. If this parameter is not used, ListRepositoryAssociations
	// returns up to 100 results and a nextToken value if applicable.
	MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`

	// List of repository names to use as a filter.
	Names []string `location:"querystring" locationName:"Name" min:"1" type:"list"`

	// The nextToken value returned from a previous paginated ListRepositoryAssociations
	// request where maxResults was used and the results exceeded the value of that
	// parameter. Pagination continues from the end of the previous results that
	// returned the nextToken value.
	//
	// Treat this token as an opaque identifier that is only used to retrieve the
	// next items in a list and not for other programmatic purposes.
	NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"`

	// List of owners to use as a filter. For AWS CodeCommit, it is the name of
	// the CodeCommit account that was used to associate the repository. For other
	// repository source providers, such as Bitbucket, this is name of the account
	// that was used to associate the repository.
	Owners []string `location:"querystring" locationName:"Owner" min:"1" type:"list"`

	// List of provider types to use as a filter.
	ProviderTypes []ProviderType `location:"querystring" locationName:"ProviderType" min:"1" type:"list"`

	// List of repository association states to use as a filter.
	//
	// The valid repository association states are:
	//
	//    * Associated: The repository association is complete.
	//
	//    * Associating: CodeGuru Reviewer is: Setting up pull request notifications.
	//    This is required for pull requests to trigger a CodeGuru Reviewer review.
	//    If your repository ProviderType is GitHub or Bitbucket, CodeGuru Reviewer
	//    creates webhooks in your repository to trigger CodeGuru Reviewer reviews.
	//    If you delete these webhooks, reviews of code in your repository cannot
	//    be triggered. Setting up source code access. This is required for CodeGuru
	//    Reviewer to securely clone code in your repository.
	//
	//    * Failed: The repository failed to associate or disassociate.
	//
	//    * Disassociating: CodeGuru Reviewer is removing the repository's pull
	//    request notifications and source code access.
	States []RepositoryAssociationState `location:"querystring" locationName:"State" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (ListRepositoryAssociationsInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRepositoryAssociationsInput) String

String returns the string representation

func (*ListRepositoryAssociationsInput) Validate

func (s *ListRepositoryAssociationsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListRepositoryAssociationsOutput

type ListRepositoryAssociationsOutput struct {

	// The nextToken value to include in a future ListRecommendations request. When
	// the results of a ListRecommendations request exceed maxResults, this value
	// can be used to retrieve the next page of results. This value is null when
	// there are no more results to return.
	NextToken *string `min:"1" type:"string"`

	// A list of repository associations that meet the criteria of the request.
	RepositoryAssociationSummaries []RepositoryAssociationSummary `type:"list"`
	// contains filtered or unexported fields
}

func (ListRepositoryAssociationsOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRepositoryAssociationsOutput) String

String returns the string representation

type ListRepositoryAssociationsPaginator

type ListRepositoryAssociationsPaginator struct {
	aws.Pager
}

ListRepositoryAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListRepositoryAssociationsPaginator

func NewListRepositoryAssociationsPaginator(req ListRepositoryAssociationsRequest) ListRepositoryAssociationsPaginator

NewListRepositoryAssociationsRequestPaginator returns a paginator for ListRepositoryAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

Note: This operation can generate multiple requests to a service.

// Example iterating over pages.
req := client.ListRepositoryAssociationsRequest(input)
p := codegurureviewer.NewListRepositoryAssociationsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListRepositoryAssociationsPaginator) CurrentPage

type ListRepositoryAssociationsRequest

type ListRepositoryAssociationsRequest struct {
	*aws.Request
	Input *ListRepositoryAssociationsInput
	Copy  func(*ListRepositoryAssociationsInput) ListRepositoryAssociationsRequest
}

ListRepositoryAssociationsRequest is the request type for the ListRepositoryAssociations API operation.

func (ListRepositoryAssociationsRequest) Send

Send marshals and sends the ListRepositoryAssociations API request.

type ListRepositoryAssociationsResponse

type ListRepositoryAssociationsResponse struct {
	*ListRepositoryAssociationsOutput
	// contains filtered or unexported fields
}

ListRepositoryAssociationsResponse is the response type for the ListRepositoryAssociations API operation.

func (*ListRepositoryAssociationsResponse) SDKResponseMetdata

func (r *ListRepositoryAssociationsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListRepositoryAssociations request.

type Metrics added in v0.22.0

type Metrics struct {

	// Total number of recommendations found in the code review.
	FindingsCount *int64 `type:"long"`

	// Lines of code metered in the code review. For the initial code review pull
	// request and all subsequent revisions, this includes all lines of code in
	// the files added to the pull request. In subsequent revisions, for files that
	// already existed in the pull request, this includes only the changed lines
	// of code. In both cases, this does not include non-code lines such as comments
	// and import statements. For example, if you submit a pull request containing
	// 5 files, each with 500 lines of code, and in a subsequent revision you added
	// a new file with 200 lines of code, and also modified a total of 25 lines
	// across the initial 5 files, MeteredLinesOfCodeCount includes the first 5
	// files (5 * 500 = 2,500 lines), the new file (200 lines) and the 25 changed
	// lines of code for a total of 2,725 lines of code.
	MeteredLinesOfCodeCount *int64 `type:"long"`
	// contains filtered or unexported fields
}

Information about the statistics from the code review.

func (Metrics) MarshalFields added in v0.22.0

func (s Metrics) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Metrics) String added in v0.22.0

func (s Metrics) String() string

String returns the string representation

type MetricsSummary added in v0.22.0

type MetricsSummary struct {

	// Total number of recommendations found in the code review.
	FindingsCount *int64 `type:"long"`

	// Lines of code metered in the code review. For the initial code review pull
	// request and all subsequent revisions, this includes all lines of code in
	// the files added to the pull request. In subsequent revisions, for files that
	// already existed in the pull request, this includes only the changed lines
	// of code. In both cases, this does not include non-code lines such as comments
	// and import statements. For example, if you submit a pull request containing
	// 5 files, each with 500 lines of code, and in a subsequent revision you added
	// a new file with 200 lines of code, and also modified a total of 25 lines
	// across the initial 5 files, MeteredLinesOfCodeCount includes the first 5
	// files (5 * 500 = 2,500 lines), the new file (200 lines) and the 25 changed
	// lines of code for a total of 2,725 lines of code.
	MeteredLinesOfCodeCount *int64 `type:"long"`
	// contains filtered or unexported fields
}

Information about metrics summaries.

func (MetricsSummary) MarshalFields added in v0.22.0

func (s MetricsSummary) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (MetricsSummary) String added in v0.22.0

func (s MetricsSummary) String() string

String returns the string representation

type ProviderType

type ProviderType string
const (
	ProviderTypeCodeCommit             ProviderType = "CodeCommit"
	ProviderTypeGitHub                 ProviderType = "GitHub"
	ProviderTypeBitbucket              ProviderType = "Bitbucket"
	ProviderTypeGitHubEnterpriseServer ProviderType = "GitHubEnterpriseServer"
)

Enum values for ProviderType

func (ProviderType) MarshalValue

func (enum ProviderType) MarshalValue() (string, error)

func (ProviderType) MarshalValueBuf

func (enum ProviderType) MarshalValueBuf(b []byte) ([]byte, error)

type PutRecommendationFeedbackInput added in v0.22.0

type PutRecommendationFeedbackInput struct {

	// The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html)
	// object.
	//
	// CodeReviewArn is a required field
	CodeReviewArn *string `min:"1" type:"string" required:"true"`

	// List for storing reactions. Reactions are utf-8 text code for emojis. If
	// you send an empty list it clears all your feedback.
	//
	// Reactions is a required field
	Reactions []Reaction `type:"list" required:"true"`

	// The recommendation ID that can be used to track the provided recommendations
	// and then to collect the feedback.
	//
	// RecommendationId is a required field
	RecommendationId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutRecommendationFeedbackInput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutRecommendationFeedbackInput) String added in v0.22.0

String returns the string representation

func (*PutRecommendationFeedbackInput) Validate added in v0.22.0

func (s *PutRecommendationFeedbackInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PutRecommendationFeedbackOutput added in v0.22.0

type PutRecommendationFeedbackOutput struct {
	// contains filtered or unexported fields
}

func (PutRecommendationFeedbackOutput) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutRecommendationFeedbackOutput) String added in v0.22.0

String returns the string representation

type PutRecommendationFeedbackRequest added in v0.22.0

type PutRecommendationFeedbackRequest struct {
	*aws.Request
	Input *PutRecommendationFeedbackInput
	Copy  func(*PutRecommendationFeedbackInput) PutRecommendationFeedbackRequest
}

PutRecommendationFeedbackRequest is the request type for the PutRecommendationFeedback API operation.

func (PutRecommendationFeedbackRequest) Send added in v0.22.0

Send marshals and sends the PutRecommendationFeedback API request.

type PutRecommendationFeedbackResponse added in v0.22.0

type PutRecommendationFeedbackResponse struct {
	*PutRecommendationFeedbackOutput
	// contains filtered or unexported fields
}

PutRecommendationFeedbackResponse is the response type for the PutRecommendationFeedback API operation.

func (*PutRecommendationFeedbackResponse) SDKResponseMetdata added in v0.22.0

func (r *PutRecommendationFeedbackResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutRecommendationFeedback request.

type Reaction added in v0.22.0

type Reaction string
const (
	ReactionThumbsUp   Reaction = "ThumbsUp"
	ReactionThumbsDown Reaction = "ThumbsDown"
)

Enum values for Reaction

func (Reaction) MarshalValue added in v0.22.0

func (enum Reaction) MarshalValue() (string, error)

func (Reaction) MarshalValueBuf added in v0.22.0

func (enum Reaction) MarshalValueBuf(b []byte) ([]byte, error)

type RecommendationFeedback added in v0.22.0

type RecommendationFeedback struct {

	// The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html)
	// object.
	CodeReviewArn *string `min:"1" type:"string"`

	// The time at which the feedback was created.
	CreatedTimeStamp *time.Time `type:"timestamp"`

	// The time at which the feedback was last updated.
	LastUpdatedTimeStamp *time.Time `type:"timestamp"`

	// List for storing reactions. Reactions are utf-8 text code for emojis. You
	// can send an empty list to clear off all your feedback.
	Reactions []Reaction `type:"list"`

	// The recommendation ID that can be used to track the provided recommendations.
	// Later on it can be used to collect the feedback.
	RecommendationId *string `min:"1" type:"string"`

	// The ID of the user that made the API call.
	//
	// The UserId is an IAM principal that can be specified as an AWS account ID
	// or an Amazon Resource Name (ARN). For more information, see Specifying a
	// Principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying)
	// in the AWS Identity and Access Management User Guide.
	UserId *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Information about the recommendation feedback.

func (RecommendationFeedback) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RecommendationFeedback) String added in v0.22.0

func (s RecommendationFeedback) String() string

String returns the string representation

type RecommendationFeedbackSummary added in v0.22.0

type RecommendationFeedbackSummary struct {

	// List for storing reactions. Reactions are utf-8 text code for emojis.
	Reactions []Reaction `type:"list"`

	// The recommendation ID that can be used to track the provided recommendations.
	// Later on it can be used to collect the feedback.
	RecommendationId *string `min:"1" type:"string"`

	// The ID of the user that gave the feedback.
	//
	// The UserId is an IAM principal that can be specified as an AWS account ID
	// or an Amazon Resource Name (ARN). For more information, see Specifying a
	// Principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying)
	// in the AWS Identity and Access Management User Guide.
	UserId *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Information about recommendation feedback summaries.

func (RecommendationFeedbackSummary) MarshalFields added in v0.22.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RecommendationFeedbackSummary) String added in v0.22.0

String returns the string representation

type RecommendationSummary added in v0.22.0

type RecommendationSummary struct {

	// A description of the recommendation generated by CodeGuru Reviewer for the
	// lines of code between the start line and the end line.
	Description *string `min:"1" type:"string"`

	// Last line where the recommendation is applicable in the source commit or
	// source branch. For a single line comment the start line and end line values
	// are the same.
	EndLine *int64 `type:"integer"`

	// Name of the file on which a recommendation is provided.
	FilePath *string `min:"1" type:"string"`

	// The recommendation ID that can be used to track the provided recommendations.
	// Later on it can be used to collect the feedback.
	RecommendationId *string `min:"1" type:"string"`

	// Start line from where the recommendation is applicable in the source commit
	// or source branch.
	StartLine *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Information about recommendations.

func (RecommendationSummary) MarshalFields added in v0.22.0

func (s RecommendationSummary) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RecommendationSummary) String added in v0.22.0

func (s RecommendationSummary) String() string

String returns the string representation

type Repository

type Repository struct {

	// Information about a Bitbucket repository.
	Bitbucket *ThirdPartySourceRepository `type:"structure"`

	// Information about an AWS CodeCommit repository.
	CodeCommit *CodeCommitRepository `type:"structure"`

	// Information about a GitHub Enterprise Server repository.
	GitHubEnterpriseServer *ThirdPartySourceRepository `type:"structure"`
	// contains filtered or unexported fields
}

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.

func (Repository) MarshalFields

func (s Repository) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Repository) String

func (s Repository) String() string

String returns the string representation

func (*Repository) Validate

func (s *Repository) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RepositoryAssociation

type RepositoryAssociation struct {

	// The Amazon Resource Name (ARN) identifying the repository association.
	AssociationArn *string `min:"1" type:"string"`

	// The ID of the repository association.
	AssociationId *string `min:"1" type:"string"`

	// The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
	// Its format is arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id.
	// For more information, see Connection (https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html)
	// in the AWS CodeStar Connections API Reference.
	ConnectionArn *string `type:"string"`

	// The time, in milliseconds since the epoch, when the repository association
	// was created.
	CreatedTimeStamp *time.Time `type:"timestamp"`

	// The time, in milliseconds since the epoch, when the repository association
	// was last updated.
	LastUpdatedTimeStamp *time.Time `type:"timestamp"`

	// The name of the repository.
	Name *string `min:"1" type:"string"`

	// The owner of the repository. For an AWS CodeCommit repository, this is the
	// AWS account ID of the account that owns the repository. For a GitHub or Bitbucket
	// repository, this is the username for the account that owns the repository.
	Owner *string `min:"1" type:"string"`

	// The provider type of the repository association.
	ProviderType ProviderType `type:"string" enum:"true"`

	// The state of the repository association.
	//
	// The valid repository association states are:
	//
	//    * Associated: The repository association is complete.
	//
	//    * Associating: CodeGuru Reviewer is: Setting up pull request notifications.
	//    This is required for pull requests to trigger a CodeGuru Reviewer review.
	//    If your repository ProviderType is GitHub or Bitbucket, CodeGuru Reviewer
	//    creates webhooks in your repository to trigger CodeGuru Reviewer reviews.
	//    If you delete these webhooks, reviews of code in your repository cannot
	//    be triggered. Setting up source code access. This is required for CodeGuru
	//    Reviewer to securely clone code in your repository.
	//
	//    * Failed: The repository failed to associate or disassociate.
	//
	//    * Disassociating: CodeGuru Reviewer is removing the repository's pull
	//    request notifications and source code access.
	State RepositoryAssociationState `type:"string" enum:"true"`

	// A description of why the repository association is in the current state.
	StateReason *string `type:"string"`
	// contains filtered or unexported fields
}

Information about a repository association. The DescribeRepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_DescribeRepositoryAssociation.html) operation returns a RepositoryAssociation object.

func (RepositoryAssociation) MarshalFields

func (s RepositoryAssociation) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RepositoryAssociation) String

func (s RepositoryAssociation) String() string

String returns the string representation

type RepositoryAssociationState

type RepositoryAssociationState string
const (
	RepositoryAssociationStateAssociated     RepositoryAssociationState = "Associated"
	RepositoryAssociationStateAssociating    RepositoryAssociationState = "Associating"
	RepositoryAssociationStateFailed         RepositoryAssociationState = "Failed"
	RepositoryAssociationStateDisassociating RepositoryAssociationState = "Disassociating"
)

Enum values for RepositoryAssociationState

func (RepositoryAssociationState) MarshalValue

func (enum RepositoryAssociationState) MarshalValue() (string, error)

func (RepositoryAssociationState) MarshalValueBuf

func (enum RepositoryAssociationState) MarshalValueBuf(b []byte) ([]byte, error)

type RepositoryAssociationSummary

type RepositoryAssociationSummary struct {

	// The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html)
	// object.
	AssociationArn *string `min:"1" type:"string"`

	// The repository association ID.
	AssociationId *string `min:"1" type:"string"`

	// The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
	// Its format is arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id.
	// For more information, see Connection (https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html)
	// in the AWS CodeStar Connections API Reference.
	ConnectionArn *string `type:"string"`

	// The time, in milliseconds since the epoch, since the repository association
	// was last updated.
	LastUpdatedTimeStamp *time.Time `type:"timestamp"`

	// The name of the repository association.
	Name *string `min:"1" type:"string"`

	// The owner of the repository. For an AWS CodeCommit repository, this is the
	// AWS account ID of the account that owns the repository. For a GitHub or Bitbucket
	// repository, this is the username for the account that owns the repository.
	Owner *string `min:"1" type:"string"`

	// The provider type of the repository association.
	ProviderType ProviderType `type:"string" enum:"true"`

	// The state of the repository association.
	//
	// The valid repository association states are:
	//
	//    * Associated: The repository association is complete.
	//
	//    * Associating: CodeGuru Reviewer is: Setting up pull request notifications.
	//    This is required for pull requests to trigger a CodeGuru Reviewer review.
	//    If your repository ProviderType is GitHub or Bitbucket, CodeGuru Reviewer
	//    creates webhooks in your repository to trigger CodeGuru Reviewer reviews.
	//    If you delete these webhooks, reviews of code in your repository cannot
	//    be triggered. Setting up source code access. This is required for CodeGuru
	//    Reviewer to securely clone code in your repository.
	//
	//    * Failed: The repository failed to associate or disassociate.
	//
	//    * Disassociating: CodeGuru Reviewer is removing the repository's pull
	//    request notifications and source code access.
	State RepositoryAssociationState `type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Summary information about a repository association. The ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html) operation returns a list of RepositoryAssociationSummary objects.

func (RepositoryAssociationSummary) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RepositoryAssociationSummary) String

String returns the string representation

type SourceCodeType added in v0.22.0

type SourceCodeType struct {

	// The commit diff for the pull request.
	CommitDiff *CommitDiffSourceCodeType `type:"structure"`
	// contains filtered or unexported fields
}

Information about the source code type.

func (SourceCodeType) MarshalFields added in v0.22.0

func (s SourceCodeType) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (SourceCodeType) String added in v0.22.0

func (s SourceCodeType) String() string

String returns the string representation

type ThirdPartySourceRepository added in v0.23.0

type ThirdPartySourceRepository struct {

	// The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
	// Its format is arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id.
	// For more information, see Connection (https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html)
	// in the AWS CodeStar Connections API Reference.
	//
	// ConnectionArn is a required field
	ConnectionArn *string `type:"string" required:"true"`

	// The name of the third party source repository.
	//
	// Name is a required field
	Name *string `min:"1" type:"string" required:"true"`

	// The owner of the repository. For a GitHub, GitHub Enterprise, or Bitbucket
	// repository, this is the username for the account that owns the repository.
	//
	// Owner is a required field
	Owner *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Information about a third-party source repository connected to CodeGuru Reviewer.

func (ThirdPartySourceRepository) MarshalFields added in v0.23.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ThirdPartySourceRepository) String added in v0.23.0

String returns the string representation

func (*ThirdPartySourceRepository) Validate added in v0.23.0

func (s *ThirdPartySourceRepository) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type Type added in v0.22.0

type Type string
const (
	TypePullRequest Type = "PullRequest"
)

Enum values for Type

func (Type) MarshalValue added in v0.22.0

func (enum Type) MarshalValue() (string, error)

func (Type) MarshalValueBuf added in v0.22.0

func (enum Type) MarshalValueBuf(b []byte) ([]byte, error)

Directories

Path Synopsis
Package codegururevieweriface provides an interface to enable mocking the Amazon CodeGuru Reviewer service client for testing your code.
Package codegururevieweriface provides an interface to enable mocking the Amazon CodeGuru Reviewer service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL