@aws-cdk_aws-amplify-alpha.GitHubSourceCodeProviderProps

interface GitHubSourceCodeProviderProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Amplify.Alpha.GitHubSourceCodeProviderProps
Gogithub.com/aws/aws-cdk-go/awscdkamplifyalpha/v2#GitHubSourceCodeProviderProps
Javasoftware.amazon.awscdk.services.amplify.alpha.GitHubSourceCodeProviderProps
Pythonaws_cdk.aws_amplify_alpha.GitHubSourceCodeProviderProps
TypeScript (source)@aws-cdk/aws-amplify-alpha ยป GitHubSourceCodeProviderProps

Properties for a GitHub source code provider.

Example

const amplifyApp = new amplify.App(this, 'MyApp', {
  sourceCodeProvider: new amplify.GitHubSourceCodeProvider({
    owner: '<user>',
    repository: '<repo>',
    oauthToken: SecretValue.secretsManager('my-github-token'),
  }),
  autoBranchCreation: { // Automatically connect branches that match a pattern set
    patterns: ['feature/*', 'test/*'],
  },
  autoBranchDeletion: true, // Automatically disconnect a branch when you delete a branch from your repository
});

Properties

NameTypeDescription
oauthToken๐Ÿ”นSecretValueA personal access token with the repo scope.
owner๐Ÿ”นstringThe user or organization owning the repository.
repository๐Ÿ”นstringThe name of the repository.

oauthToken๐Ÿ”น

Type: SecretValue

A personal access token with the repo scope.


owner๐Ÿ”น

Type: string

The user or organization owning the repository.


repository๐Ÿ”น

Type: string

The name of the repository.