libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeGuruReviewer.AssociateRepository

Description

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 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 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 in the CodeGuru Reviewer User Guide.

Synopsis

Creating a Request

data AssociateRepository Source #

See: newAssociateRepository smart constructor.

Constructors

AssociateRepository' 

Fields

  • kmsKeyDetails :: Maybe KMSKeyDetails

    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.
  • clientRequestToken :: Maybe Text

    Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.

  • tags :: Maybe (HashMap Text Text)

    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.
  • repository :: Repository

    The repository to associate.

Instances

Instances details
Eq AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Read AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Show AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Generic AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Associated Types

type Rep AssociateRepository :: Type -> Type #

NFData AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Methods

rnf :: AssociateRepository -> () #

Hashable AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

ToJSON AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

AWSRequest AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Associated Types

type AWSResponse AssociateRepository #

ToHeaders AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

ToPath AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

ToQuery AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

type Rep AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

type Rep AssociateRepository = D1 ('MetaData "AssociateRepository" "Amazonka.CodeGuruReviewer.AssociateRepository" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "AssociateRepository'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "kmsKeyDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KMSKeyDetails)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Repository))))
type AWSResponse AssociateRepository Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

newAssociateRepository Source #

Create a value of AssociateRepository with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:kmsKeyDetails:AssociateRepository', associateRepository_kmsKeyDetails - 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.

$sel:clientRequestToken:AssociateRepository', associateRepository_clientRequestToken - Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.

$sel:tags:AssociateRepository', associateRepository_tags - 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.

$sel:repository:AssociateRepository', associateRepository_repository - The repository to associate.

Request Lenses

associateRepository_kmsKeyDetails :: Lens' AssociateRepository (Maybe KMSKeyDetails) Source #

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.

associateRepository_clientRequestToken :: Lens' AssociateRepository (Maybe Text) Source #

Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.

associateRepository_tags :: Lens' AssociateRepository (Maybe (HashMap Text Text)) Source #

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.

Destructuring the Response

data AssociateRepositoryResponse Source #

See: newAssociateRepositoryResponse smart constructor.

Constructors

AssociateRepositoryResponse' 

Fields

  • repositoryAssociation :: Maybe RepositoryAssociation

    Information about the repository association.

  • tags :: Maybe (HashMap Text Text)

    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.
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq AssociateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Read AssociateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Show AssociateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Generic AssociateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

Associated Types

type Rep AssociateRepositoryResponse :: Type -> Type #

NFData AssociateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

type Rep AssociateRepositoryResponse Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.AssociateRepository

type Rep AssociateRepositoryResponse = D1 ('MetaData "AssociateRepositoryResponse" "Amazonka.CodeGuruReviewer.AssociateRepository" "libZSservicesZSamazonka-codeguru-reviewerZSamazonka-codeguru-reviewer" 'False) (C1 ('MetaCons "AssociateRepositoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryAssociation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RepositoryAssociation)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newAssociateRepositoryResponse Source #

Create a value of AssociateRepositoryResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:repositoryAssociation:AssociateRepositoryResponse', associateRepositoryResponse_repositoryAssociation - Information about the repository association.

$sel:tags:AssociateRepository', associateRepositoryResponse_tags - 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.

$sel:httpStatus:AssociateRepositoryResponse', associateRepositoryResponse_httpStatus - The response's http status code.

Response Lenses

associateRepositoryResponse_tags :: Lens' AssociateRepositoryResponse (Maybe (HashMap Text Text)) Source #

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.