Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(aws-codepipeline-actions): Added region as prop of LambdaInvokeAction #18229

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-codepipeline-actions/README.md
Expand Up @@ -1021,6 +1021,7 @@ declare const fn: lambda.Function;
const pipeline = new codepipeline.Pipeline(this, 'MyPipeline');
const lambdaAction = new codepipeline_actions.LambdaInvokeAction({
actionName: 'Lambda',
region: 'us-east-1',
lambda: fn,
userParameters: {
foo: 'bar',
Expand Down
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