Skip to content

Commit

Permalink
Added region as prop of LambdaInvokeAction
Browse files Browse the repository at this point in the history
  • Loading branch information
ryparker committed Dec 30, 2021
1 parent 7df4a58 commit 1f13ffc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ export interface LambdaInvokeActionProps extends codepipeline.CommonAwsActionPro
* The lambda function to invoke.
*/
readonly lambda: lambda.IFunction;

/**
* The region of the Lambda Function.
*
* @default - same region as the stack
*/
readonly region?: string;
}

/**
Expand All @@ -74,6 +81,7 @@ export class LambdaInvokeAction extends Action {
super({
...props,
resource: props.lambda,
region: props.region,
category: codepipeline.ActionCategory.INVOKE,
provider: 'Lambda',
artifactBounds: {
Expand Down

0 comments on commit 1f13ffc

Please sign in to comment.