Class CfnGitHubRepositoryPropsMixin
The AWS::CodeStar::GitHubRepository resource creates a GitHub repository where users can store source code for use with AWS workflows.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.CodeStar
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnGitHubRepositoryPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnGitHubRepositoryPropsMixin Inherits Mixin Implements IMixin
Remarks
You must provide a location for the source code ZIP file in the CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
CloudformationResource: AWS::CodeStar::GitHubRepository
Mixin: true
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.CfnPropertyMixins.AWS.CodeStar;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnGitHubRepositoryPropsMixin = new CfnGitHubRepositoryPropsMixin(new CfnGitHubRepositoryMixinProps {
Code = new CodeProperty {
S3 = new S3Property {
Bucket = "bucket",
Key = "key",
ObjectVersion = "objectVersion"
}
},
ConnectionArn = "connectionArn",
EnableIssues = false,
IsPrivate = false,
RepositoryAccessToken = "repositoryAccessToken",
RepositoryDescription = "repositoryDescription",
RepositoryName = "repositoryName",
RepositoryOwner = "repositoryOwner"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Synopsis
Constructors
| CfnGitHubRepositoryPropsMixin(ICfnGitHubRepositoryMixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | The |
| Props | The |
| Strategy | The |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnGitHubRepositoryPropsMixin(ICfnGitHubRepositoryMixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::CodeStar::GitHubRepository.
public CfnGitHubRepositoryPropsMixin(ICfnGitHubRepositoryMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnGitHubRepositoryMixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
Remarks
You must provide a location for the source code ZIP file in the CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
CloudformationResource: AWS::CodeStar::GitHubRepository
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
The AWS::CodeStar::GitHubRepository resource creates a GitHub repository where users can store source code for use with AWS workflows.
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
Remarks
You must provide a location for the source code ZIP file in the CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
CloudformationResource: AWS::CodeStar::GitHubRepository
Mixin: true
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.CfnPropertyMixins.AWS.CodeStar;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnGitHubRepositoryPropsMixin = new CfnGitHubRepositoryPropsMixin(new CfnGitHubRepositoryMixinProps {
Code = new CodeProperty {
S3 = new S3Property {
Bucket = "bucket",
Key = "key",
ObjectVersion = "objectVersion"
}
},
ConnectionArn = "connectionArn",
EnableIssues = false,
IsPrivate = false,
RepositoryAccessToken = "repositoryAccessToken",
RepositoryDescription = "repositoryDescription",
RepositoryName = "repositoryName",
RepositoryOwner = "repositoryOwner"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Props
The AWS::CodeStar::GitHubRepository resource creates a GitHub repository where users can store source code for use with AWS workflows.
protected virtual ICfnGitHubRepositoryMixinProps Props { get; }
Property Value
ICfnGitHubRepositoryMixinProps
Remarks
You must provide a location for the source code ZIP file in the CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
CloudformationResource: AWS::CodeStar::GitHubRepository
Mixin: true
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.CfnPropertyMixins.AWS.CodeStar;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnGitHubRepositoryPropsMixin = new CfnGitHubRepositoryPropsMixin(new CfnGitHubRepositoryMixinProps {
Code = new CodeProperty {
S3 = new S3Property {
Bucket = "bucket",
Key = "key",
ObjectVersion = "objectVersion"
}
},
ConnectionArn = "connectionArn",
EnableIssues = false,
IsPrivate = false,
RepositoryAccessToken = "repositoryAccessToken",
RepositoryDescription = "repositoryDescription",
RepositoryName = "repositoryName",
RepositoryOwner = "repositoryOwner"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Strategy
The AWS::CodeStar::GitHubRepository resource creates a GitHub repository where users can store source code for use with AWS workflows.
protected virtual IMergeStrategy Strategy { get; }
Property Value
Remarks
You must provide a location for the source code ZIP file in the CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
CloudformationResource: AWS::CodeStar::GitHubRepository
Mixin: true
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.CfnPropertyMixins.AWS.CodeStar;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnGitHubRepositoryPropsMixin = new CfnGitHubRepositoryPropsMixin(new CfnGitHubRepositoryMixinProps {
Code = new CodeProperty {
S3 = new S3Property {
Bucket = "bucket",
Key = "key",
ObjectVersion = "objectVersion"
}
},
ConnectionArn = "connectionArn",
EnableIssues = false,
IsPrivate = false,
RepositoryAccessToken = "repositoryAccessToken",
RepositoryDescription = "repositoryDescription",
RepositoryName = "repositoryName",
RepositoryOwner = "repositoryOwner"
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override void ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
Overrides
Remarks
You must provide a location for the source code ZIP file in the CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
CloudformationResource: AWS::CodeStar::GitHubRepository
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
Returns
Overrides
Remarks
You must provide a location for the source code ZIP file in the CloudFormation template, so the code can be uploaded to the created repository. You must have created a personal access token in GitHub to provide in the CloudFormation template. AWS uses this token to connect to GitHub on your behalf.
CloudformationResource: AWS::CodeStar::GitHubRepository
Mixin: true
ExampleMetadata: fixture=_generated