@Stability(value=Stable) public static final class CfnRepositoryAssociation.Builder extends Object implements software.amazon.jsii.Builder<CfnRepositoryAssociation>
CfnRepositoryAssociation.| Modifier and Type | Method and Description |
|---|---|
CfnRepositoryAssociation.Builder |
bucketName(String bucketName)
The name of the bucket.
|
CfnRepositoryAssociation |
build() |
CfnRepositoryAssociation.Builder |
connectionArn(String connectionArn)
The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
|
static CfnRepositoryAssociation.Builder |
create(software.constructs.Construct scope,
String id) |
CfnRepositoryAssociation.Builder |
name(String name)
The name of the repository.
|
CfnRepositoryAssociation.Builder |
owner(String owner)
The owner of the repository.
|
CfnRepositoryAssociation.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs used to tag an associated repository.
|
CfnRepositoryAssociation.Builder |
type(String type)
The type of repository that contains the source code to be reviewed.
|
@Stability(value=Stable) public static CfnRepositoryAssociation.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnRepositoryAssociation.Builder.@Stability(value=Stable) public CfnRepositoryAssociation.Builder name(String name)
name - The name of the repository. This parameter is required.this@Stability(value=Stable) public CfnRepositoryAssociation.Builder type(String type)
CodeCommitBitbucketGitHubEnterpriseServerS3Buckettype - The type of repository that contains the source code to be reviewed. The valid values are:. This parameter is required.this@Stability(value=Stable) public CfnRepositoryAssociation.Builder bucketName(String bucketName)
This is required for your S3Bucket repositoryThe name must start with the prefix, codeguru-reviewer-* .
bucketName - The name of the bucket. This parameter is required.this@Stability(value=Stable) public CfnRepositoryAssociation.Builder connectionArn(String connectionArn)
Its format is arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id . For more information, see Connection in the AWS CodeStar Connections API Reference .
ConnectionArn must be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.
connectionArn - The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection. This parameter is required.this@Stability(value=Stable) public CfnRepositoryAssociation.Builder owner(String owner)
For a GitHub Enterprise Server or Bitbucket repository, this is the username for the account that owns the repository.
Owner must be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.
owner - The owner of the repository. This parameter is required.this@Stability(value=Stable) public CfnRepositoryAssociation.Builder tags(List<? extends CfnTag> tags)
A tag is a custom attribute label with two parts:
CostCenter , Environment , Project , or Secret ). Tag keys are case sensitive.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 - An array of key-value pairs used to tag an associated repository. This parameter is required.this@Stability(value=Stable) public CfnRepositoryAssociation build()
build in interface software.amazon.jsii.Builder<CfnRepositoryAssociation>Copyright © 2022. All rights reserved.