import { Value } from '../../cloudformation/Value';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type RepositoryAssociationAttributes = {
    AssociationArn: Attribute<string>;
};
export type RepositoryAssociation = AwsResource<'AWS::CodeGuruReviewer::RepositoryAssociation', RepositoryAssociationProperties, RepositoryAssociationAttributes>;
/**
  This resource configures how Amazon CodeGuru Reviewer retrieves the source code to be reviewed. You can use an AWS CloudFormation template to create an association with the following repository types:
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html">the AWS Docs</a>
*/
export declare function repositoryAssociation(repositoryAssociationProps: RepositoryAssociationProperties): RepositoryAssociation;
/**
  This resource configures how Amazon CodeGuru Reviewer retrieves the source code to be reviewed. You can use an AWS CloudFormation template to create an association with the following repository types:
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html">the AWS Docs</a>
*/
export interface RepositoryAssociationProperties {
    /** <p> */
    type: Value<string>;
    /** <code>Owner</code>  <a name="cfn-codegurureviewer-repositoryassociation-owner"></a>
  The owner of the repository. For a GitHub Enterprise Server or Bitbucket repository, this is the username for the account that owns the repository.<br />
  <code>Owner</code> must be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>100</code><br />
  
  Pattern: <code>^\S(.*\S)?$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    owner?: Value<string>;
    /** <code>BucketName</code>  <a name="cfn-codegurureviewer-repositoryassociation-bucketname"></a>
  The name of the bucket. This is required for your S3Bucket repository. The name must start with the prefix <code>codeguru-reviewer-*</code>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    bucketName?: Value<string>;
    /** <code>ConnectionArn</code>  <a name="cfn-codegurureviewer-repositoryassociation-connectionarn"></a>
  The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. Its format is <code>arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id</code>. For more information, see <a href="https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html">Connection</a> in the
  AWS CodeStar Connections API Reference: br />
  <code>ConnectionArn</code> must be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.<br />
  
  Required: No<br />
  
  Minimum: <code>0</code><br />
  
  Maximum: <code>256</code><br />
  
  Pattern: <code>arn:aws(-[\w]+)*:.+:.+:[0-9]{12}:.+</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    connectionArn?: Value<string>;
    /** <p> */
    tags?: Tag[];
    /** <code>Name</code>  <a name="cfn-codegurureviewer-repositoryassociation-name"></a>
  The name of the repository.<br />
  
  Required: Yes<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>100</code><br />
  
  Pattern: <code>^\S[\w.-]*$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    name: Value<string>;
}
