CfnGitHubRepositoryProps Struct
Properties for defining a CfnGitHubRepository.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codestar as codestar } from 'aws-cdk-lib';
const cfnGitHubRepositoryProps: codestar.CfnGitHubRepositoryProps = {
repositoryName: 'repositoryName',
repositoryOwner: 'repositoryOwner',
// the properties below are optional
code: {
s3: {
bucket: 'bucket',
key: 'key',
// the properties below are optional
objectVersion: 'objectVersion',
},
},
connectionArn: 'connectionArn',
enableIssues: false,
isPrivate: false,
repositoryAccessToken: 'repositoryAccessToken',
repositoryDescription: 'repositoryDescription',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codestar as codestar
cfn_git_hub_repository_props = codestar.CfnGitHubRepositoryProps(
repository_name="repositoryName",
repository_owner="repositoryOwner",
# the properties below are optional
code=codestar.CfnGitHubRepository.CodeProperty(
s3=codestar.CfnGitHubRepository.S3Property(
bucket="bucket",
key="key",
# the properties below are optional
object_version="objectVersion"
)
),
connection_arn="connectionArn",
enable_issues=False,
is_private=False,
repository_access_token="repositoryAccessToken",
repository_description="repositoryDescription"
)
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.codestar.*;
CfnGitHubRepositoryProps cfnGitHubRepositoryProps = CfnGitHubRepositoryProps.builder()
.repositoryName("repositoryName")
.repositoryOwner("repositoryOwner")
// the properties below are optional
.code(CodeProperty.builder()
.s3(S3Property.builder()
.bucket("bucket")
.key("key")
// the properties below are optional
.objectVersion("objectVersion")
.build())
.build())
.connectionArn("connectionArn")
.enableIssues(false)
.isPrivate(false)
.repositoryAccessToken("repositoryAccessToken")
.repositoryDescription("repositoryDescription")
.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.Codestar;
var cfnGitHubRepositoryProps = new CfnGitHubRepositoryProps {
RepositoryName = "repositoryName",
RepositoryOwner = "repositoryOwner",
// the properties below are optional
Code = new CodeProperty {
S3 = new S3Property {
Bucket = "bucket",
Key = "key",
// the properties below are optional
ObjectVersion = "objectVersion"
}
},
ConnectionArn = "connectionArn",
EnableIssues = false,
IsPrivate = false,
RepositoryAccessToken = "repositoryAccessToken",
RepositoryDescription = "repositoryDescription"
};
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"
cfnGitHubRepositoryProps := &CfnGitHubRepositoryProps{
RepositoryName: jsii.String("repositoryName"),
RepositoryOwner: jsii.String("repositoryOwner"),
// the properties below are optional
Code: &CodeProperty{
S3: &S3Property{
Bucket: jsii.String("bucket"),
Key: jsii.String("key"),
// the properties below are optional
ObjectVersion: jsii.String("objectVersion"),
},
},
ConnectionArn: jsii.String("connectionArn"),
EnableIssues: jsii.Boolean(false),
IsPrivate: jsii.Boolean(false),
RepositoryAccessToken: jsii.String("repositoryAccessToken"),
RepositoryDescription: jsii.String("repositoryDescription"),
}
Properties
codeoptionalIResolvable | CfnGitHubRepository.CodePropertycodeoptionaltyping.Union[IResolvable, CodeProperty]codeoptionalIResolvableCodeoptionalIResolvableCodeoptionalinterface{} #Information about code to be committed to a repository after it is created in an CloudFormation stack.
connectionArnoptionalstringconnection_arnoptionalstrconnectionArnoptionalStringConnectionArnoptionalstringConnectionArnoptional*string #enableIssuesoptionalboolean | IResolvableenable_issuesoptionaltyping.Union[bool, IResolvable]enableIssuesoptionalBooleanEnableIssuesoptionalboolEnableIssuesoptionalinterface{} #Indicates whether to enable issues for the GitHub repository.
You can use GitHub issues to track information and bugs for your repository.
isPrivateoptionalboolean | IResolvableis_privateoptionaltyping.Union[bool, IResolvable]isPrivateoptionalBooleanIsPrivateoptionalboolIsPrivateoptionalinterface{} #Indicates whether the GitHub repository is a private repository.
If so, you choose who can see and commit to this repository.
repositoryAccessTokenoptionalstringrepository_access_tokenoptionalstrrepositoryAccessTokenoptionalStringRepositoryAccessTokenoptionalstringRepositoryAccessTokenoptional*string #The GitHub user's personal access token for the GitHub repository.
repositoryDescriptionoptionalstringrepository_descriptionoptionalstrrepositoryDescriptionoptionalStringRepositoryDescriptionoptionalstringRepositoryDescriptionoptional*string #A comment or description about the new repository.
This description is displayed in GitHub after the repository is created.
repositoryNamestringrepository_namestrrepositoryNameStringRepositoryNamestringRepositoryName*string required #The name of the repository you want to create in GitHub with CloudFormation stack creation.
repositoryOwnerstringrepository_ownerstrrepositoryOwnerStringRepositoryOwnerstringRepositoryOwner*string required #The GitHub user name for the owner of the GitHub repository to be created.
If this repository should be owned by a GitHub organization, provide its name.