agent-claw: automated task changes
This commit is contained in:
77
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/lambda/invoke-action.d.ts
generated
vendored
Normal file
77
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/lambda/invoke-action.d.ts
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as codepipeline from '../../../aws-codepipeline';
|
||||
import type * as lambda from '../../../aws-lambda';
|
||||
import { Action } from '../action';
|
||||
/**
|
||||
* Construction properties of the `LambdaInvokeAction Lambda invoke CodePipeline Action`.
|
||||
*/
|
||||
export interface LambdaInvokeActionProps extends codepipeline.CommonAwsActionProps {
|
||||
/**
|
||||
* The optional input Artifacts of the Action.
|
||||
* A Lambda Action can have up to 5 inputs.
|
||||
* The inputs will appear in the event passed to the Lambda,
|
||||
* under the `'CodePipeline.job'.data.inputArtifacts` path.
|
||||
*
|
||||
* @default the Action will not have any inputs
|
||||
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html#actions-invoke-lambda-function-json-event-example
|
||||
*/
|
||||
readonly inputs?: codepipeline.Artifact[];
|
||||
/**
|
||||
* The optional names of the output Artifacts of the Action.
|
||||
* A Lambda Action can have up to 5 outputs.
|
||||
* The outputs will appear in the event passed to the Lambda,
|
||||
* under the `'CodePipeline.job'.data.outputArtifacts` path.
|
||||
* It is the responsibility of the Lambda to upload ZIP files with the Artifact contents to the provided locations.
|
||||
*
|
||||
* @default the Action will not have any outputs
|
||||
*/
|
||||
readonly outputs?: codepipeline.Artifact[];
|
||||
/**
|
||||
* A set of key-value pairs that will be accessible to the invoked Lambda
|
||||
* inside the event that the Pipeline will call it with.
|
||||
*
|
||||
* Only one of `userParameters` or `userParametersString` can be specified.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html#actions-invoke-lambda-function-json-event-example
|
||||
* @default - no user parameters will be passed
|
||||
*/
|
||||
readonly userParameters?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
/**
|
||||
* The string representation of the user parameters that will be
|
||||
* accessible to the invoked Lambda inside the event
|
||||
* that the Pipeline will call it with.
|
||||
*
|
||||
* Only one of `userParametersString` or `userParameters` can be specified.
|
||||
*
|
||||
* @default - no user parameters will be passed
|
||||
*/
|
||||
readonly userParametersString?: string;
|
||||
/**
|
||||
* The lambda function to invoke.
|
||||
*/
|
||||
readonly lambda: lambda.IFunction;
|
||||
}
|
||||
/**
|
||||
* CodePipeline invoke Action that is provided by an AWS Lambda function.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html
|
||||
*/
|
||||
export declare class LambdaInvokeAction extends Action {
|
||||
private readonly props;
|
||||
constructor(props: LambdaInvokeActionProps);
|
||||
/**
|
||||
* Reference a CodePipeline variable defined by the Lambda function this action points to.
|
||||
* Variables in Lambda invoke actions are defined by calling the PutJobSuccessResult CodePipeline API call
|
||||
* with the 'outputVariables' property filled.
|
||||
*
|
||||
* @param variableName the name of the variable to reference.
|
||||
* A variable by this name must be present in the 'outputVariables' section of the PutJobSuccessResult
|
||||
* request that the Lambda function calls when the action is invoked
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_PutJobSuccessResult.html
|
||||
*/
|
||||
variable(variableName: string): string;
|
||||
protected bound(scope: Construct, _stage: codepipeline.IStage, options: codepipeline.ActionBindOptions): codepipeline.ActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/lambda/invoke-action.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/lambda/invoke-action.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LambdaInvokeAction=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var codepipeline=()=>{var tmp=require("../../../aws-codepipeline");return codepipeline=()=>tmp,tmp},iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp},action_1=()=>{var tmp=require("../action");return action_1=()=>tmp,tmp};class LambdaInvokeAction extends action_1().Action{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.LambdaInvokeAction",version:"2.252.0"};props;constructor(props){super({...props,resource:props.lambda,category:codepipeline().ActionCategory.INVOKE,provider:"Lambda",artifactBounds:{minInputs:0,maxInputs:5,minOutputs:0,maxOutputs:5}});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_LambdaInvokeActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,LambdaInvokeAction),error}if(this.props=props,props.userParameters&&props.userParametersString)throw new(core_1()).UnscopedValidationError((0,literal_string_1().lit)`OneUserParametersUserParameters`,"Only one of userParameters or userParametersString can be specified")}variable(variableName){return this.variableExpression(variableName)}bound(scope,_stage,options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_IStage(_stage),jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_ActionBindOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bound),error}return options.role.addToPolicy(new(iam()).PolicyStatement({actions:["lambda:ListFunctions"],resources:["*"]})),this.props.lambda.grantInvoke(options.role),(this.actionProperties.inputs||[]).length>0&&options.bucket.grantRead(options.role),(this.actionProperties.outputs||[]).length>0&&options.bucket.grantWrite(options.role),this.props.lambda.addToRolePolicy(new(iam()).PolicyStatement({resources:["*"],actions:["codepipeline:PutJobSuccessResult","codepipeline:PutJobFailureResult"]})),{configuration:{FunctionName:this.props.lambda.functionName,UserParameters:this.props.userParametersString??core_1().Stack.of(scope).toJsonString(this.props.userParameters)}}}}exports.LambdaInvokeAction=LambdaInvokeAction;
|
||||
Reference in New Issue
Block a user