Class CfnRepositoryAssociation
This resource configures how Amazon CodeGuru Reviewer retrieves the source code to be reviewed.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeGuruReviewer
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRepositoryAssociation : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnRepositoryAssociation
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
You can use an AWS CloudFormation template to create an association with the following repository types:
You cannot use a CloudFormation template to create an association with a GitHub repository.
CloudformationResource: AWS::CodeGuruReviewer::RepositoryAssociation
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeGuruReviewer;
var cfnRepositoryAssociation = new CfnRepositoryAssociation(this, "MyCfnRepositoryAssociation", new CfnRepositoryAssociationProps {
Name = "name",
Type = "type",
// the properties below are optional
BucketName = "bucketName",
ConnectionArn = "connectionArn",
Owner = "owner",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnRepositoryAssociation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnRepositoryAssociation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnRepositoryAssociation(Construct, String, ICfnRepositoryAssociationProps) |
Properties
AttrAssociationArn | The Amazon Resource Name (ARN) of the |
BucketName | The name of the bucket. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ConnectionArn | The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. |
Name | The name of the repository. |
Owner | The owner of the repository. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | An array of key-value pairs used to tag an associated repository. |
Type | The type of repository that contains the source code to be reviewed. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnRepositoryAssociation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnRepositoryAssociation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnRepositoryAssociation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnRepositoryAssociation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnRepositoryAssociation(Construct, String, ICfnRepositoryAssociationProps)
public CfnRepositoryAssociation(Construct scope, string id, ICfnRepositoryAssociationProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnRepositoryAssociationProps
Resource properties.
Properties
AttrAssociationArn
The Amazon Resource Name (ARN) of the RepositoryAssociation
object. You can retrieve this ARN by calling ListRepositories
.
public virtual string AttrAssociationArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: AssociationArn
BucketName
The name of the bucket.
public virtual string BucketName { get; set; }
Property Value
System.String
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ConnectionArn
The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
public virtual string ConnectionArn { get; set; }
Property Value
System.String
Name
The name of the repository.
public virtual string Name { get; set; }
Property Value
System.String
Owner
The owner of the repository.
public virtual string Owner { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
An array of key-value pairs used to tag an associated repository.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Type
The type of repository that contains the source code to be reviewed.
public virtual string Type { get; set; }
Property Value
System.String
Remarks
The valid values are:.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>