package codegurureviewer
import "github.com/aws/aws-sdk-go-v2/service/codegurureviewer"
Package codegurureviewer provides the API client, operations, and parameter types for Amazon CodeGuru Reviewer.
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 and Python 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). To improve the security of your CodeGuru Reviewer API calls, you can establish a private connection between your VPC and CodeGuru Reviewer by creating an interface VPC endpoint. For more information, see CodeGuru Reviewer and interface VPC endpoints (Amazon Web Services PrivateLink) (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/vpc-interface-endpoints.html) in the Amazon CodeGuru Reviewer User Guide.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)
- type AssociateRepositoryInput
- type AssociateRepositoryOutput
- type Client
- func New(options Options, optFns ...func(*Options)) *Client
- func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
- func (c *Client) AssociateRepository(ctx context.Context, params *AssociateRepositoryInput, optFns ...func(*Options)) (*AssociateRepositoryOutput, error)
- func (c *Client) CreateCodeReview(ctx context.Context, params *CreateCodeReviewInput, optFns ...func(*Options)) (*CreateCodeReviewOutput, error)
- func (c *Client) DescribeCodeReview(ctx context.Context, params *DescribeCodeReviewInput, optFns ...func(*Options)) (*DescribeCodeReviewOutput, error)
- func (c *Client) DescribeRecommendationFeedback(ctx context.Context, params *DescribeRecommendationFeedbackInput, optFns ...func(*Options)) (*DescribeRecommendationFeedbackOutput, error)
- func (c *Client) DescribeRepositoryAssociation(ctx context.Context, params *DescribeRepositoryAssociationInput, optFns ...func(*Options)) (*DescribeRepositoryAssociationOutput, error)
- func (c *Client) DisassociateRepository(ctx context.Context, params *DisassociateRepositoryInput, optFns ...func(*Options)) (*DisassociateRepositoryOutput, error)
- func (c *Client) ListCodeReviews(ctx context.Context, params *ListCodeReviewsInput, optFns ...func(*Options)) (*ListCodeReviewsOutput, error)
- func (c *Client) ListRecommendationFeedback(ctx context.Context, params *ListRecommendationFeedbackInput, optFns ...func(*Options)) (*ListRecommendationFeedbackOutput, error)
- func (c *Client) ListRecommendations(ctx context.Context, params *ListRecommendationsInput, optFns ...func(*Options)) (*ListRecommendationsOutput, error)
- func (c *Client) ListRepositoryAssociations(ctx context.Context, params *ListRepositoryAssociationsInput, optFns ...func(*Options)) (*ListRepositoryAssociationsOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
- func (c *Client) PutRecommendationFeedback(ctx context.Context, params *PutRecommendationFeedbackInput, optFns ...func(*Options)) (*PutRecommendationFeedbackOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- type CodeReviewCompletedWaiter
- func NewCodeReviewCompletedWaiter(client DescribeCodeReviewAPIClient, optFns ...func(*CodeReviewCompletedWaiterOptions)) *CodeReviewCompletedWaiter
- func (w *CodeReviewCompletedWaiter) Wait(ctx context.Context, params *DescribeCodeReviewInput, maxWaitDur time.Duration, optFns ...func(*CodeReviewCompletedWaiterOptions)) error
- func (w *CodeReviewCompletedWaiter) WaitForOutput(ctx context.Context, params *DescribeCodeReviewInput, maxWaitDur time.Duration, optFns ...func(*CodeReviewCompletedWaiterOptions)) (*DescribeCodeReviewOutput, error)
- type CodeReviewCompletedWaiterOptions
- type CreateCodeReviewInput
- type CreateCodeReviewOutput
- type DescribeCodeReviewAPIClient
- type DescribeCodeReviewInput
- type DescribeCodeReviewOutput
- type DescribeRecommendationFeedbackInput
- type DescribeRecommendationFeedbackOutput
- type DescribeRepositoryAssociationAPIClient
- type DescribeRepositoryAssociationInput
- type DescribeRepositoryAssociationOutput
- type DisassociateRepositoryInput
- type DisassociateRepositoryOutput
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListCodeReviewsAPIClient
- type ListCodeReviewsInput
- type ListCodeReviewsOutput
- type ListCodeReviewsPaginator
- func NewListCodeReviewsPaginator(client ListCodeReviewsAPIClient, params *ListCodeReviewsInput, optFns ...func(*ListCodeReviewsPaginatorOptions)) *ListCodeReviewsPaginator
- func (p *ListCodeReviewsPaginator) HasMorePages() bool
- func (p *ListCodeReviewsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCodeReviewsOutput, error)
- type ListCodeReviewsPaginatorOptions
- type ListRecommendationFeedbackAPIClient
- type ListRecommendationFeedbackInput
- type ListRecommendationFeedbackOutput
- type ListRecommendationFeedbackPaginator
- func NewListRecommendationFeedbackPaginator(client ListRecommendationFeedbackAPIClient, params *ListRecommendationFeedbackInput, optFns ...func(*ListRecommendationFeedbackPaginatorOptions)) *ListRecommendationFeedbackPaginator
- func (p *ListRecommendationFeedbackPaginator) HasMorePages() bool
- func (p *ListRecommendationFeedbackPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecommendationFeedbackOutput, error)
- type ListRecommendationFeedbackPaginatorOptions
- type ListRecommendationsAPIClient
- type ListRecommendationsInput
- type ListRecommendationsOutput
- type ListRecommendationsPaginator
- func NewListRecommendationsPaginator(client ListRecommendationsAPIClient, params *ListRecommendationsInput, optFns ...func(*ListRecommendationsPaginatorOptions)) *ListRecommendationsPaginator
- func (p *ListRecommendationsPaginator) HasMorePages() bool
- func (p *ListRecommendationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecommendationsOutput, error)
- type ListRecommendationsPaginatorOptions
- type ListRepositoryAssociationsAPIClient
- type ListRepositoryAssociationsInput
- type ListRepositoryAssociationsOutput
- type ListRepositoryAssociationsPaginator
- func NewListRepositoryAssociationsPaginator(client ListRepositoryAssociationsAPIClient, params *ListRepositoryAssociationsInput, optFns ...func(*ListRepositoryAssociationsPaginatorOptions)) *ListRepositoryAssociationsPaginator
- func (p *ListRepositoryAssociationsPaginator) HasMorePages() bool
- func (p *ListRepositoryAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRepositoryAssociationsOutput, error)
- type ListRepositoryAssociationsPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type PutRecommendationFeedbackInput
- type PutRecommendationFeedbackOutput
- type RepositoryAssociationSucceededWaiter
- func NewRepositoryAssociationSucceededWaiter(client DescribeRepositoryAssociationAPIClient, optFns ...func(*RepositoryAssociationSucceededWaiterOptions)) *RepositoryAssociationSucceededWaiter
- func (w *RepositoryAssociationSucceededWaiter) Wait(ctx context.Context, params *DescribeRepositoryAssociationInput, maxWaitDur time.Duration, optFns ...func(*RepositoryAssociationSucceededWaiterOptions)) error
- func (w *RepositoryAssociationSucceededWaiter) WaitForOutput(ctx context.Context, params *DescribeRepositoryAssociationInput, maxWaitDur time.Duration, optFns ...func(*RepositoryAssociationSucceededWaiterOptions)) (*DescribeRepositoryAssociationOutput, error)
- type RepositoryAssociationSucceededWaiterOptions
- type ResolveEndpoint
- func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
- func (*ResolveEndpoint) ID() string
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
Constants ¶
const ServiceAPIVersion = "2019-09-19"
const ServiceID = "CodeGuru Reviewer"
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver ¶
func WithEndpointResolver(v EndpointResolver) func(*Options)
WithEndpointResolver returns a functional option for setting the Client's EndpointResolver option.
Types ¶
type AssociateRepositoryInput ¶
type AssociateRepositoryInput struct { // The repository to associate. // // This member is required. Repository *types.Repository // Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of // duplicate repository associations if there are failures and retries. ClientRequestToken *string // A KMSKeyDetails object that contains: // // * The encryption option for this // repository association. It is either owned by Amazon Web Services Key Management // Service (KMS) (AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK). // // * The // ID of the Amazon Web Services KMS key that is associated with this respository // association. KMSKeyDetails *types.KMSKeyDetails // 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. Tags map[string]string // contains filtered or unexported fields }
type AssociateRepositoryOutput ¶
type AssociateRepositoryOutput struct { // Information about the repository association. RepositoryAssociation *types.RepositoryAssociation // 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. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon CodeGuru Reviewer.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) AssociateRepository ¶
func (c *Client) AssociateRepository(ctx context.Context, params *AssociateRepositoryInput, optFns ...func(*Options)) (*AssociateRepositoryOutput, error)
Use to associate an Amazon Web Services CodeCommit repository or a repostory managed by Amazon Web Services 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 or S3 repository, it must be in the same Amazon Web Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews are configured. Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Associate a repository (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-associate-repository.html) in the Amazon CodeGuru Reviewer User Guide. You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services 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.
func (*Client) CreateCodeReview ¶
func (c *Client) CreateCodeReview(ctx context.Context, params *CreateCodeReviewInput, optFns ...func(*Options)) (*CreateCodeReviewOutput, error)
Use to create a code review with a CodeReviewType (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html) of RepositoryAnalysis. This type of code review analyzes all code under a specified branch in an associated repository. PullRequest code reviews are automatically triggered by a pull request.
func (*Client) DescribeCodeReview ¶
func (c *Client) DescribeCodeReview(ctx context.Context, params *DescribeCodeReviewInput, optFns ...func(*Options)) (*DescribeCodeReviewOutput, error)
Returns the metadata associated with the code review along with its status.
func (*Client) DescribeRecommendationFeedback ¶
func (c *Client) DescribeRecommendationFeedback(ctx context.Context, params *DescribeRecommendationFeedbackInput, optFns ...func(*Options)) (*DescribeRecommendationFeedbackOutput, error)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
func (*Client) DescribeRepositoryAssociation ¶
func (c *Client) DescribeRepositoryAssociation(ctx context.Context, params *DescribeRepositoryAssociationInput, optFns ...func(*Options)) (*DescribeRepositoryAssociationOutput, error)
Returns a RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) object that contains information about the requested repository association.
func (*Client) DisassociateRepository ¶
func (c *Client) DisassociateRepository(ctx context.Context, params *DisassociateRepositoryInput, optFns ...func(*Options)) (*DisassociateRepositoryOutput, error)
Removes the association between Amazon CodeGuru Reviewer and a repository.
func (*Client) ListCodeReviews ¶
func (c *Client) ListCodeReviews(ctx context.Context, params *ListCodeReviewsInput, optFns ...func(*Options)) (*ListCodeReviewsOutput, error)
Lists all the code reviews that the customer has created in the past 90 days.
func (*Client) ListRecommendationFeedback ¶
func (c *Client) ListRecommendationFeedback(ctx context.Context, params *ListRecommendationFeedbackInput, optFns ...func(*Options)) (*ListRecommendationFeedbackOutput, error)
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.
func (*Client) ListRecommendations ¶
func (c *Client) ListRecommendations(ctx context.Context, params *ListRecommendationsInput, optFns ...func(*Options)) (*ListRecommendationsOutput, error)
Returns the list of all recommendations for a completed code review.
func (*Client) ListRepositoryAssociations ¶
func (c *Client) ListRepositoryAssociations(ctx context.Context, params *ListRepositoryAssociationsInput, optFns ...func(*Options)) (*ListRepositoryAssociationsOutput, error)
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).
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Returns the list of tags associated with an associated repository resource.
func (*Client) PutRecommendationFeedback ¶
func (c *Client) PutRecommendationFeedback(ctx context.Context, params *PutRecommendationFeedbackInput, optFns ...func(*Options)) (*PutRecommendationFeedbackOutput, error)
Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds one or more tags to an associated repository.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes a tag from an associated repository.
type CodeReviewCompletedWaiter ¶
type CodeReviewCompletedWaiter struct {
// contains filtered or unexported fields
}
CodeReviewCompletedWaiter defines the waiters for CodeReviewCompleted
func NewCodeReviewCompletedWaiter ¶
func NewCodeReviewCompletedWaiter(client DescribeCodeReviewAPIClient, optFns ...func(*CodeReviewCompletedWaiterOptions)) *CodeReviewCompletedWaiter
NewCodeReviewCompletedWaiter constructs a CodeReviewCompletedWaiter.
func (*CodeReviewCompletedWaiter) Wait ¶
func (w *CodeReviewCompletedWaiter) Wait(ctx context.Context, params *DescribeCodeReviewInput, maxWaitDur time.Duration, optFns ...func(*CodeReviewCompletedWaiterOptions)) error
Wait calls the waiter function for CodeReviewCompleted waiter. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
func (*CodeReviewCompletedWaiter) WaitForOutput ¶
func (w *CodeReviewCompletedWaiter) WaitForOutput(ctx context.Context, params *DescribeCodeReviewInput, maxWaitDur time.Duration, optFns ...func(*CodeReviewCompletedWaiterOptions)) (*DescribeCodeReviewOutput, error)
WaitForOutput calls the waiter function for CodeReviewCompleted waiter and returns the output of the successful operation. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
type CodeReviewCompletedWaiterOptions ¶
type CodeReviewCompletedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // CodeReviewCompletedWaiter will use default minimum delay of 10 seconds. Note // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or set // to zero, CodeReviewCompletedWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeCodeReviewInput, *DescribeCodeReviewOutput, error) (bool, error) }
CodeReviewCompletedWaiterOptions are waiter options for CodeReviewCompletedWaiter
type CreateCodeReviewInput ¶
type CreateCodeReviewInput struct { // The name of the code review. The name of each code review in your Amazon Web // Services account must be unique. // // This member is required. Name *string // 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 ListRepositoryAssociations // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // A code review can only be created on an associated repository. This is the ARN // of the associated repository. // // This member is required. RepositoryAssociationArn *string // The type of code review to create. This is specified using a CodeReviewType // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html) // object. You can create a code review only of type RepositoryAnalysis. // // This member is required. Type *types.CodeReviewType // Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of // duplicate code reviews if there are failures and retries. ClientRequestToken *string // contains filtered or unexported fields }
type CreateCodeReviewOutput ¶
type CreateCodeReviewOutput struct { // Information about a code review. A code review belongs to the associated // repository that contains the reviewed code. CodeReview *types.CodeReview // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeCodeReviewAPIClient ¶
type DescribeCodeReviewAPIClient interface { DescribeCodeReview(context.Context, *DescribeCodeReviewInput, ...func(*Options)) (*DescribeCodeReviewOutput, error) }
DescribeCodeReviewAPIClient is a client that implements the DescribeCodeReview operation.
type DescribeCodeReviewInput ¶
type DescribeCodeReviewInput struct { // The Amazon Resource Name (ARN) of the CodeReview // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) // object. // // This member is required. CodeReviewArn *string // contains filtered or unexported fields }
type DescribeCodeReviewOutput ¶
type DescribeCodeReviewOutput struct { // Information about the code review. CodeReview *types.CodeReview // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeRecommendationFeedbackInput ¶
type DescribeRecommendationFeedbackInput struct { // The Amazon Resource Name (ARN) of the CodeReview // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) // object. // // This member is required. CodeReviewArn *string // The recommendation ID that can be used to track the provided recommendations and // then to collect the feedback. // // This member is required. RecommendationId *string // 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 Amazon Web Services 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 Amazon Web Services Identity and Access Management User Guide. UserId *string // contains filtered or unexported fields }
type DescribeRecommendationFeedbackOutput ¶
type DescribeRecommendationFeedbackOutput struct { // The recommendation feedback given by the user. RecommendationFeedback *types.RecommendationFeedback // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeRepositoryAssociationAPIClient ¶
type DescribeRepositoryAssociationAPIClient interface { DescribeRepositoryAssociation(context.Context, *DescribeRepositoryAssociationInput, ...func(*Options)) (*DescribeRepositoryAssociationOutput, error) }
DescribeRepositoryAssociationAPIClient is a client that implements the DescribeRepositoryAssociation operation.
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 ListRepositoryAssociations // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // // This member is required. AssociationArn *string // contains filtered or unexported fields }
type DescribeRepositoryAssociationOutput ¶
type DescribeRepositoryAssociationOutput struct { // Information about the repository association. RepositoryAssociation *types.RepositoryAssociation // 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. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
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. You can retrieve this ARN by calling ListRepositoryAssociations // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // // This member is required. AssociationArn *string // contains filtered or unexported fields }
type DisassociateRepositoryOutput ¶
type DisassociateRepositoryOutput struct { // Information about the disassociated repository. RepositoryAssociation *types.RepositoryAssociation // 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. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointResolver ¶
type EndpointResolver interface { ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) }
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type HTTPClient ¶
type HTTPSignerV4 ¶
type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error }
type IdempotencyTokenProvider ¶
IdempotencyTokenProvider interface for providing idempotency token
type ListCodeReviewsAPIClient ¶
type ListCodeReviewsAPIClient interface { ListCodeReviews(context.Context, *ListCodeReviewsInput, ...func(*Options)) (*ListCodeReviewsOutput, error) }
ListCodeReviewsAPIClient is a client that implements the ListCodeReviews operation.
type ListCodeReviewsInput ¶
type ListCodeReviewsInput struct { // The type of code reviews to list in the response. // // This member is required. Type types.Type // The maximum number of results that are returned per call. The default is 100. MaxResults *int32 // 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 // 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 []types.ProviderType // List of repository names for filtering that needs to be applied before // displaying the result. RepositoryNames []string // 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 []types.JobState // contains filtered or unexported fields }
type ListCodeReviewsOutput ¶
type ListCodeReviewsOutput struct { // A list of code reviews that meet the criteria of the request. CodeReviewSummaries []types.CodeReviewSummary // Pagination token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListCodeReviewsPaginator ¶
type ListCodeReviewsPaginator struct {
// contains filtered or unexported fields
}
ListCodeReviewsPaginator is a paginator for ListCodeReviews
func NewListCodeReviewsPaginator ¶
func NewListCodeReviewsPaginator(client ListCodeReviewsAPIClient, params *ListCodeReviewsInput, optFns ...func(*ListCodeReviewsPaginatorOptions)) *ListCodeReviewsPaginator
NewListCodeReviewsPaginator returns a new ListCodeReviewsPaginator
func (*ListCodeReviewsPaginator) HasMorePages ¶
func (p *ListCodeReviewsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListCodeReviewsPaginator) NextPage ¶
func (p *ListCodeReviewsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListCodeReviewsOutput, error)
NextPage retrieves the next ListCodeReviews page.
type ListCodeReviewsPaginatorOptions ¶
type ListCodeReviewsPaginatorOptions struct { // The maximum number of results that are returned per call. The default is 100. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListCodeReviewsPaginatorOptions is the paginator options for ListCodeReviews
type ListRecommendationFeedbackAPIClient ¶
type ListRecommendationFeedbackAPIClient interface { ListRecommendationFeedback(context.Context, *ListRecommendationFeedbackInput, ...func(*Options)) (*ListRecommendationFeedbackOutput, error) }
ListRecommendationFeedbackAPIClient is a client that implements the ListRecommendationFeedback operation.
type ListRecommendationFeedbackInput ¶
type ListRecommendationFeedbackInput struct { // The Amazon Resource Name (ARN) of the CodeReview // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) // object. // // This member is required. CodeReviewArn *string // The maximum number of results that are returned per call. The default is 100. MaxResults *int32 // 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 // Used to query the recommendation feedback for a given recommendation. RecommendationIds []string // An Amazon Web Services 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 Amazon Web Services // 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 Amazon Web Services Identity and Access Management User Guide. UserIds []string // contains filtered or unexported fields }
type ListRecommendationFeedbackOutput ¶
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 // Recommendation feedback summaries corresponding to the code review ARN. RecommendationFeedbackSummaries []types.RecommendationFeedbackSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListRecommendationFeedbackPaginator ¶
type ListRecommendationFeedbackPaginator struct {
// contains filtered or unexported fields
}
ListRecommendationFeedbackPaginator is a paginator for ListRecommendationFeedback
func NewListRecommendationFeedbackPaginator ¶
func NewListRecommendationFeedbackPaginator(client ListRecommendationFeedbackAPIClient, params *ListRecommendationFeedbackInput, optFns ...func(*ListRecommendationFeedbackPaginatorOptions)) *ListRecommendationFeedbackPaginator
NewListRecommendationFeedbackPaginator returns a new ListRecommendationFeedbackPaginator
func (*ListRecommendationFeedbackPaginator) HasMorePages ¶
func (p *ListRecommendationFeedbackPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListRecommendationFeedbackPaginator) NextPage ¶
func (p *ListRecommendationFeedbackPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecommendationFeedbackOutput, error)
NextPage retrieves the next ListRecommendationFeedback page.
type ListRecommendationFeedbackPaginatorOptions ¶
type ListRecommendationFeedbackPaginatorOptions struct { // The maximum number of results that are returned per call. The default is 100. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListRecommendationFeedbackPaginatorOptions is the paginator options for ListRecommendationFeedback
type ListRecommendationsAPIClient ¶
type ListRecommendationsAPIClient interface { ListRecommendations(context.Context, *ListRecommendationsInput, ...func(*Options)) (*ListRecommendationsOutput, error) }
ListRecommendationsAPIClient is a client that implements the ListRecommendations operation.
type ListRecommendationsInput ¶
type ListRecommendationsInput struct { // The Amazon Resource Name (ARN) of the CodeReview // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) // object. // // This member is required. CodeReviewArn *string // The maximum number of results that are returned per call. The default is 100. MaxResults *int32 // Pagination token. NextToken *string // contains filtered or unexported fields }
type ListRecommendationsOutput ¶
type ListRecommendationsOutput struct { // Pagination token. NextToken *string // List of recommendations for the requested code review. RecommendationSummaries []types.RecommendationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListRecommendationsPaginator ¶
type ListRecommendationsPaginator struct {
// contains filtered or unexported fields
}
ListRecommendationsPaginator is a paginator for ListRecommendations
func NewListRecommendationsPaginator ¶
func NewListRecommendationsPaginator(client ListRecommendationsAPIClient, params *ListRecommendationsInput, optFns ...func(*ListRecommendationsPaginatorOptions)) *ListRecommendationsPaginator
NewListRecommendationsPaginator returns a new ListRecommendationsPaginator
func (*ListRecommendationsPaginator) HasMorePages ¶
func (p *ListRecommendationsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListRecommendationsPaginator) NextPage ¶
func (p *ListRecommendationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecommendationsOutput, error)
NextPage retrieves the next ListRecommendations page.
type ListRecommendationsPaginatorOptions ¶
type ListRecommendationsPaginatorOptions struct { // The maximum number of results that are returned per call. The default is 100. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListRecommendationsPaginatorOptions is the paginator options for ListRecommendations
type ListRepositoryAssociationsAPIClient ¶
type ListRepositoryAssociationsAPIClient interface { ListRepositoryAssociations(context.Context, *ListRepositoryAssociationsInput, ...func(*Options)) (*ListRepositoryAssociationsOutput, error) }
ListRepositoryAssociationsAPIClient is a client that implements the ListRepositoryAssociations operation.
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 *int32 // List of repository names to use as a filter. Names []string // 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 // List of owners to use as a filter. For Amazon Web Services CodeCommit, it is the // name of the CodeCommit account that was used to associate the repository. For // other repository source providers, such as Bitbucket and GitHub Enterprise // Server, this is name of the account that was used to associate the repository. Owners []string // List of provider types to use as a filter. ProviderTypes []types.ProviderType // 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, GitHub Enterprise Server, 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. // // * Disassociated: CodeGuru Reviewer successfully // disassociated the repository. You can create a new association with this // repository if you want to review source code in it later. You can control access // to code reviews created in an associated repository with tags after it has been // disassociated. For more information, see Using tags to control access to // associated repositories // (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html) // in the Amazon CodeGuru Reviewer User Guide. States []types.RepositoryAssociationState // contains filtered or unexported fields }
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 // A list of repository associations that meet the criteria of the request. RepositoryAssociationSummaries []types.RepositoryAssociationSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListRepositoryAssociationsPaginator ¶
type ListRepositoryAssociationsPaginator struct {
// contains filtered or unexported fields
}
ListRepositoryAssociationsPaginator is a paginator for ListRepositoryAssociations
func NewListRepositoryAssociationsPaginator ¶
func NewListRepositoryAssociationsPaginator(client ListRepositoryAssociationsAPIClient, params *ListRepositoryAssociationsInput, optFns ...func(*ListRepositoryAssociationsPaginatorOptions)) *ListRepositoryAssociationsPaginator
NewListRepositoryAssociationsPaginator returns a new ListRepositoryAssociationsPaginator
func (*ListRepositoryAssociationsPaginator) HasMorePages ¶
func (p *ListRepositoryAssociationsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListRepositoryAssociationsPaginator) NextPage ¶
func (p *ListRepositoryAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRepositoryAssociationsOutput, error)
NextPage retrieves the next ListRepositoryAssociations page.
type ListRepositoryAssociationsPaginatorOptions ¶
type ListRepositoryAssociationsPaginatorOptions 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. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListRepositoryAssociationsPaginatorOptions is the paginator options for ListRepositoryAssociations
type ListTagsForResourceInput ¶
type ListTagsForResourceInput 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 ListRepositoryAssociations // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // 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. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // Provides idempotency tokens values that will be automatically populated into // idempotent API operations. IdempotencyTokenProvider IdempotencyTokenProvider // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. If specified in an operation call's functional // options with a value that is different than the constructed client's Options, // the Client's Retryer will be wrapped to use the operation's specific // RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. Currently does not support per operation call // overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig. You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // contains filtered or unexported fields }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
type PutRecommendationFeedbackInput ¶
type PutRecommendationFeedbackInput struct { // The Amazon Resource Name (ARN) of the CodeReview // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) // object. // // This member is required. CodeReviewArn *string // List for storing reactions. Reactions are utf-8 text code for emojis. If you // send an empty list it clears all your feedback. // // This member is required. Reactions []types.Reaction // The recommendation ID that can be used to track the provided recommendations and // then to collect the feedback. // // This member is required. RecommendationId *string // contains filtered or unexported fields }
type PutRecommendationFeedbackOutput ¶
type PutRecommendationFeedbackOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type RepositoryAssociationSucceededWaiter ¶
type RepositoryAssociationSucceededWaiter struct {
// contains filtered or unexported fields
}
RepositoryAssociationSucceededWaiter defines the waiters for RepositoryAssociationSucceeded
func NewRepositoryAssociationSucceededWaiter ¶
func NewRepositoryAssociationSucceededWaiter(client DescribeRepositoryAssociationAPIClient, optFns ...func(*RepositoryAssociationSucceededWaiterOptions)) *RepositoryAssociationSucceededWaiter
NewRepositoryAssociationSucceededWaiter constructs a RepositoryAssociationSucceededWaiter.
func (*RepositoryAssociationSucceededWaiter) Wait ¶
func (w *RepositoryAssociationSucceededWaiter) Wait(ctx context.Context, params *DescribeRepositoryAssociationInput, maxWaitDur time.Duration, optFns ...func(*RepositoryAssociationSucceededWaiterOptions)) error
Wait calls the waiter function for RepositoryAssociationSucceeded waiter. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
func (*RepositoryAssociationSucceededWaiter) WaitForOutput ¶
func (w *RepositoryAssociationSucceededWaiter) WaitForOutput(ctx context.Context, params *DescribeRepositoryAssociationInput, maxWaitDur time.Duration, optFns ...func(*RepositoryAssociationSucceededWaiterOptions)) (*DescribeRepositoryAssociationOutput, error)
WaitForOutput calls the waiter function for RepositoryAssociationSucceeded waiter and returns the output of the successful operation. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.
type RepositoryAssociationSucceededWaiterOptions ¶
type RepositoryAssociationSucceededWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // RepositoryAssociationSucceededWaiter will use default minimum delay of 10 // seconds. Note that MinDelay must resolve to a value lesser than or equal to the // MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or set // to zero, RepositoryAssociationSucceededWaiter will use default max delay of 120 // seconds. Note that MaxDelay must resolve to value greater than or equal to the // MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeRepositoryAssociationInput, *DescribeRepositoryAssociationOutput, error) (bool, error) }
RepositoryAssociationSucceededWaiterOptions are waiter options for RepositoryAssociationSucceededWaiter
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type TagResourceInput ¶
type TagResourceInput 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 ListRepositoryAssociations // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // // This member is required. ResourceArn *string // 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. // // This member is required. Tags map[string]string // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput 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 ListRepositoryAssociations // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // // This member is required. ResourceArn *string // A list of the keys for each tag you want to remove from an associated // repository. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
api_client.go api_op_AssociateRepository.go api_op_CreateCodeReview.go api_op_DescribeCodeReview.go api_op_DescribeRecommendationFeedback.go api_op_DescribeRepositoryAssociation.go api_op_DisassociateRepository.go api_op_ListCodeReviews.go api_op_ListRecommendationFeedback.go api_op_ListRecommendations.go api_op_ListRepositoryAssociations.go api_op_ListTagsForResource.go api_op_PutRecommendationFeedback.go api_op_TagResource.go api_op_UntagResource.go deserializers.go doc.go endpoints.go go_module_metadata.go serializers.go validators.go
Directories ¶
Path | Synopsis |
---|---|
internal | |
types |
- Version
- v1.16.4
- Published
- Jul 5, 2022
- Platform
- windows/amd64
- Imports
- 35 packages
- Last checked
- now –
Tools for package owners.