Skip to content
v2.278.0

CfnRepositoryLinkProps Struct ​

Properties for defining a CfnRepositoryLink.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codestarconnections as codestarconnections } from 'aws-cdk-lib';
const cfnRepositoryLinkProps: codestarconnections.CfnRepositoryLinkProps = {
  connectionArn: 'connectionArn',
  ownerId: 'ownerId',
  repositoryName: 'repositoryName',

  // the properties below are optional
  encryptionKeyArn: 'encryptionKeyArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codestarconnections as codestarconnections

cfn_repository_link_props = codestarconnections.CfnRepositoryLinkProps(
    connection_arn="connectionArn",
    owner_id="ownerId",
    repository_name="repositoryName",

    # the properties below are optional
    encryption_key_arn="encryptionKeyArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codestarconnections.*;

CfnRepositoryLinkProps cfnRepositoryLinkProps = CfnRepositoryLinkProps.builder()
        .connectionArn("connectionArn")
        .ownerId("ownerId")
        .repositoryName("repositoryName")

        // the properties below are optional
        .encryptionKeyArn("encryptionKeyArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeStarConnections;

var cfnRepositoryLinkProps = new CfnRepositoryLinkProps {
    ConnectionArn = "connectionArn",
    OwnerId = "ownerId",
    RepositoryName = "repositoryName",

    // the properties below are optional
    EncryptionKeyArn = "encryptionKeyArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"

cfnRepositoryLinkProps := &CfnRepositoryLinkProps{
	ConnectionArn: jsii.String("connectionArn"),
	OwnerId: jsii.String("ownerId"),
	RepositoryName: jsii.String("repositoryName"),

	// the properties below are optional
	EncryptionKeyArn: jsii.String("encryptionKeyArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

connectionArnstringconnection_arnstrconnectionArnStringConnectionArnstringConnectionArn*string required #
The Amazon Resource Name (ARN) of the connection associated with the repository link.
encryptionKeyArnoptionalstringencryption_key_arnoptionalstrencryptionKeyArnoptionalStringEncryptionKeyArnoptionalstringEncryptionKeyArnoptional*string #
The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.
ownerIdstringowner_idstrownerIdStringOwnerIdstringOwnerId*string required #
The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.
repositoryNamestringrepository_namestrrepositoryNameStringRepositoryNamestringRepositoryName*string required #
The name of the repository associated with the repository link.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags for the repository to be associated with the repository link.