# AWS::CodeGuruReviewer::RepositoryAssociation This resource schema represents the RepositoryAssociation resource in the Amazon CodeGuru Reviewer service. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::CodeGuruReviewer::RepositoryAssociation",
    "Properties" : {
        "Name" : String,
        "Type" : String,
        "Owner" : String,
        "BucketName" : String,
        "ConnectionArn" : String,
        "Tags" : [ Tag, ... ]
    }
}
### YAML
Type: AWS::CodeGuruReviewer::RepositoryAssociation
Properties:
    Name: String
    Type: String
    Owner: String
    BucketName: String
    ConnectionArn: String
    Tags: 
      - Tag
## Properties #### Name Name of the repository to be associated. _Required_: Yes _Type_: String _Minimum_: 1 _Maximum_: 100 _Pattern_: ^\S[\w.-]*$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Type The type of repository to be associated. _Required_: Yes _Type_: String _Allowed Values_: CodeCommit | Bitbucket | GitHubEnterpriseServer | S3Bucket _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Owner The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository. _Required_: No _Type_: String _Minimum_: 1 _Maximum_: 100 _Pattern_: ^\S(.*\S)?$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### BucketName The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`. _Required_: No _Type_: String _Minimum_: 3 _Maximum_: 63 _Pattern_: ^\S(.*\S)?$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### ConnectionArn The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. _Required_: No _Type_: String _Maximum_: 256 _Pattern_: arn:aws(-[\w]+)*:.+:.+:[0-9]{12}:.+ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### Tags The tags associated with a repository association. _Required_: No _Type_: List of Tag _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the AssociationArn. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### AssociationArn The Amazon Resource Name (ARN) of the repository association.