"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const action_1 = require("./action");
/**
 * Low-level class for source actions.
 * It is recommended that concrete types are used instead,
 * such as {@link codepipeline.AmazonS3Source} or
 * {@link codecommit.PipelineSource}.
 */
class SourceAction extends action_1.Action {
    constructor(parent, name, props) {
        super(parent, name, {
            stage: props.stage,
            category: action_1.ActionCategory.Source,
            owner: props.owner,
            provider: props.provider,
            version: props.version,
            artifactBounds: { minInputs: 0, maxInputs: 0, minOutputs: 1, maxOutputs: 1 },
            configuration: props.configuration
        });
        this.artifact = this.addOutputArtifact(props.artifactName);
    }
}
exports.SourceAction = SourceAction;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlLWFjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNvdXJjZS1hY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxxQ0FBcUU7QUEwQ3JFOzs7OztHQUtHO0FBQ0gsTUFBc0IsWUFBYSxTQUFRLGVBQU07SUFHN0MsWUFBWSxNQUFxQixFQUFFLElBQVksRUFBRSxLQUF3QjtRQUNyRSxLQUFLLENBQUMsTUFBTSxFQUFFLElBQUksRUFBRTtZQUNoQixLQUFLLEVBQUUsS0FBSyxDQUFDLEtBQUs7WUFDbEIsUUFBUSxFQUFFLHVCQUFjLENBQUMsTUFBTTtZQUMvQixLQUFLLEVBQUUsS0FBSyxDQUFDLEtBQUs7WUFDbEIsUUFBUSxFQUFFLEtBQUssQ0FBQyxRQUFRO1lBQ3hCLE9BQU8sRUFBRSxLQUFLLENBQUMsT0FBTztZQUN0QixjQUFjLEVBQUUsRUFBRSxTQUFTLEVBQUUsQ0FBQyxFQUFFLFNBQVMsRUFBRSxDQUFDLEVBQUUsVUFBVSxFQUFFLENBQUMsRUFBRSxVQUFVLEVBQUUsQ0FBQyxFQUFFO1lBQzVFLGFBQWEsRUFBRSxLQUFLLENBQUMsYUFBYTtTQUNyQyxDQUFDLENBQUM7UUFFSCxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxLQUFLLENBQUMsWUFBWSxDQUFDLENBQUM7SUFDL0QsQ0FBQztDQUNKO0FBaEJELG9DQWdCQyJ9