Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props: EcsDeployActionProps) {
super({
...props,
category: codepipeline.ActionCategory.DEPLOY,
provider: 'ECS',
artifactBounds: deployArtifactBounds(),
inputs: [determineInputArtifact(props)],
resource: props.service
});
this.props = props;
}
constructor(props: GitHubSourceActionProps) {
super({
...props,
category: codepipeline.ActionCategory.SOURCE,
owner: 'ThirdParty',
provider: 'GitHub',
artifactBounds: sourceArtifactBounds(),
outputs: [props.output],
});
this.props = props;
}
constructor(props: ManualApprovalActionProps) {
super({
...props,
category: codepipeline.ActionCategory.APPROVAL,
provider: 'Manual',
artifactBounds: { minInputs: 0, maxInputs: 0, minOutputs: 0, maxOutputs: 0 },
});
this.props = props;
}
constructor(props: AlexaSkillDeployActionProps) {
super({
...props,
category: codepipeline.ActionCategory.DEPLOY,
owner: 'ThirdParty',
provider: 'AlexaSkillsKit',
artifactBounds: {
minInputs: 1,
maxInputs: 2,
minOutputs: 0,
maxOutputs: 0,
},
inputs: getInputs(props),
});
this.props = props;
}
constructor(props: CodeDeployServerDeployActionProps) {
super({
...props,
resource: props.deploymentGroup,
category: codepipeline.ActionCategory.DEPLOY,
provider: 'CodeDeploy',
artifactBounds: deployArtifactBounds(),
inputs: [props.input],
});
this.deploymentGroup = props.deploymentGroup;
}
inputs.push(determineAppSpecArtifact(props));
if (props.containerImageInputs) {
if (props.containerImageInputs.length > 4) {
throw new Error(`Action cannot have more than 4 container image inputs, got: ${props.containerImageInputs.length}`);
}
for (const imageInput of props.containerImageInputs) {
inputs.push(imageInput.input);
}
}
super({
...props,
resource: props.deploymentGroup,
category: codepipeline.ActionCategory.DEPLOY,
provider: 'CodeDeployToECS',
artifactBounds: { minInputs: 1, maxInputs: 5, minOutputs: 0, maxOutputs: 0 },
inputs,
});
this.actionProps = props;
}
constructor(props: LambdaInvokeActionProps) {
super({
...props,
resource: props.lambda,
category: codepipeline.ActionCategory.INVOKE,
provider: 'Lambda',
artifactBounds: {
minInputs: 0,
maxInputs: 5,
minOutputs: 0,
maxOutputs: 5,
},
});
this.props = props;
}
constructor(props: JenkinsActionProps) {
super({
...props,
category: props.type === JenkinsActionType.BUILD
? codepipeline.ActionCategory.BUILD
: codepipeline.ActionCategory.TEST,
provider: props.jenkinsProvider.providerName,
owner: 'Custom',
artifactBounds: jenkinsArtifactsBounds,
version: props.jenkinsProvider.version,
});
this.props = props;
}
constructor(props: EcrSourceActionProps) {
super({
...props,
resource: props.repository,
category: codepipeline.ActionCategory.SOURCE,
provider: 'ECR',
artifactBounds: sourceArtifactBounds(),
outputs: [props.output],
});
this.props = props;
}
constructor(props: S3DeployActionProps) {
super({
...props,
resource: props.bucket,
category: codepipeline.ActionCategory.DEPLOY,
provider: 'S3',
artifactBounds: deployArtifactBounds(),
inputs: [props.input],
});
this.props = props;
}