"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const actions = require("@aws-cdk/aws-codepipeline-api");
/**
 * Source that is provided by a GitHub repository.
 */
class GitHubSource extends actions.SourceAction {
    constructor(parent, name, props) {
        super(parent, name, {
            stage: props.stage,
            owner: 'ThirdParty',
            provider: 'GitHub',
            configuration: {
                Owner: props.owner,
                Repo: props.repo,
                Branch: props.branch || "master",
                OAuthToken: props.oauthToken,
                PollForSourceChanges: props.pollForSourceChanges || true
            },
            artifactName: props.artifactName
        });
    }
}
exports.GitHubSource = GitHubSource;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2l0aHViLXNvdXJjZS1hY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJnaXRodWItc291cmNlLWFjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlEQUEwRDtBQWtEMUQ7O0dBRUc7QUFDSCxNQUFhLFlBQWEsU0FBUSxPQUFPLENBQUMsWUFBWTtJQUNsRCxZQUFZLE1BQXFCLEVBQUUsSUFBWSxFQUFFLEtBQXdCO1FBQ3JFLEtBQUssQ0FBQyxNQUFNLEVBQUUsSUFBSSxFQUFFO1lBQ2hCLEtBQUssRUFBRSxLQUFLLENBQUMsS0FBSztZQUNsQixLQUFLLEVBQUUsWUFBWTtZQUNuQixRQUFRLEVBQUUsUUFBUTtZQUNsQixhQUFhLEVBQUU7Z0JBQ1gsS0FBSyxFQUFFLEtBQUssQ0FBQyxLQUFLO2dCQUNsQixJQUFJLEVBQUUsS0FBSyxDQUFDLElBQUk7Z0JBQ2hCLE1BQU0sRUFBRSxLQUFLLENBQUMsTUFBTSxJQUFJLFFBQVE7Z0JBQ2hDLFVBQVUsRUFBRSxLQUFLLENBQUMsVUFBVTtnQkFDNUIsb0JBQW9CLEVBQUUsS0FBSyxDQUFDLG9CQUFvQixJQUFJLElBQUk7YUFDM0Q7WUFDRCxZQUFZLEVBQUUsS0FBSyxDQUFDLFlBQVk7U0FDbkMsQ0FBQyxDQUFDO0lBQ1AsQ0FBQztDQUNKO0FBaEJELG9DQWdCQyJ9