-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnRepositoryAssociationProps.go
78 lines (75 loc) · 4.04 KB
/
CfnRepositoryAssociationProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package awscodegurureviewer
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnRepositoryAssociation`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cfnRepositoryAssociationProps := &CfnRepositoryAssociationProps{
// Name: jsii.String("name"),
// Type: jsii.String("type"),
//
// // the properties below are optional
// BucketName: jsii.String("bucketName"),
// ConnectionArn: jsii.String("connectionArn"),
// Owner: jsii.String("owner"),
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html
//
type CfnRepositoryAssociationProps struct {
// The name of the repository.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-name
//
Name *string `field:"required" json:"name" yaml:"name"`
// The type of repository that contains the source code to be reviewed. The valid values are:.
//
// - `CodeCommit`
// - `Bitbucket`
// - `GitHubEnterpriseServer`
// - `S3Bucket`.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-type
//
Type *string `field:"required" json:"type" yaml:"type"`
// The name of the bucket.
//
// This is required for your S3Bucket repository. The name must start with the prefix `codeguru-reviewer-*` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-bucketname
//
BucketName *string `field:"optional" json:"bucketName" yaml:"bucketName"`
// The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
//
// Its format is `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id` . For more information, see [Connection](https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html) 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-connectionarn
//
ConnectionArn *string `field:"optional" json:"connectionArn" yaml:"connectionArn"`
// The owner of the repository.
//
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-owner
//
Owner *string `field:"optional" json:"owner" yaml:"owner"`
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codegurureviewer-repositoryassociation.html#cfn-codegurureviewer-repositoryassociation-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}