agent-claw: automated task changes
This commit is contained in:
118
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/codebuild/build-action.d.ts
generated
vendored
Normal file
118
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/codebuild/build-action.d.ts
generated
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as codebuild from '../../../aws-codebuild';
|
||||
import * as codepipeline from '../../../aws-codepipeline';
|
||||
import { Action } from '../action';
|
||||
/**
|
||||
* The type of the CodeBuild action that determines its CodePipeline Category -
|
||||
* Build, or Test.
|
||||
* The default is Build.
|
||||
*/
|
||||
export declare enum CodeBuildActionType {
|
||||
/**
|
||||
* The action will have the Build Category.
|
||||
* This is the default.
|
||||
*/
|
||||
BUILD = 0,
|
||||
/**
|
||||
* The action will have the Test Category.
|
||||
*/
|
||||
TEST = 1
|
||||
}
|
||||
/**
|
||||
* Construction properties of the `CodeBuildAction CodeBuild build CodePipeline action`.
|
||||
*/
|
||||
export interface CodeBuildActionProps extends codepipeline.CommonAwsActionProps {
|
||||
/**
|
||||
* The source to use as input for this action.
|
||||
*/
|
||||
readonly input: codepipeline.Artifact;
|
||||
/**
|
||||
* The list of additional input Artifacts for this action.
|
||||
*
|
||||
* The directories the additional inputs will be available at are available
|
||||
* during the project's build in the CODEBUILD_SRC_DIR_<artifact-name> environment variables.
|
||||
* The project's build always starts in the directory with the primary input artifact checked out,
|
||||
* the one pointed to by the `input` property.
|
||||
* For more information,
|
||||
* see https://docs.aws.amazon.com/codebuild/latest/userguide/sample-multi-in-out.html .
|
||||
*/
|
||||
readonly extraInputs?: codepipeline.Artifact[];
|
||||
/**
|
||||
* The list of output Artifacts for this action.
|
||||
* **Note**: if you specify more than one output Artifact here,
|
||||
* you cannot use the primary 'artifacts' section of the buildspec;
|
||||
* you have to use the 'secondary-artifacts' section instead.
|
||||
* See https://docs.aws.amazon.com/codebuild/latest/userguide/sample-multi-in-out.html
|
||||
* for details.
|
||||
*
|
||||
* @default the action will not have any outputs
|
||||
*/
|
||||
readonly outputs?: codepipeline.Artifact[];
|
||||
/**
|
||||
* The action's Project.
|
||||
*/
|
||||
readonly project: codebuild.IProject;
|
||||
/**
|
||||
* The type of the action that determines its CodePipeline Category -
|
||||
* Build, or Test.
|
||||
*
|
||||
* @default CodeBuildActionType.BUILD
|
||||
*/
|
||||
readonly type?: CodeBuildActionType;
|
||||
/**
|
||||
* The environment variables to pass to the CodeBuild project when this action executes.
|
||||
* If a variable with the same name was set both on the project level, and here,
|
||||
* this value will take precedence.
|
||||
*
|
||||
* @default - No additional environment variables are specified.
|
||||
*/
|
||||
readonly environmentVariables?: {
|
||||
[name: string]: codebuild.BuildEnvironmentVariable;
|
||||
};
|
||||
/**
|
||||
* Whether to check for the presence of any secrets in the environment variables of the default type, BuildEnvironmentVariableType.PLAINTEXT.
|
||||
* Since using a secret for the value of that kind of variable would result in it being displayed in plain text in the AWS Console,
|
||||
* the construct will throw an exception if it detects a secret was passed there.
|
||||
* Pass this property as false if you want to skip this validation,
|
||||
* and keep using a secret in a plain text environment variable.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly checkSecretsInPlainTextEnvVariables?: boolean;
|
||||
/**
|
||||
* Trigger a batch build.
|
||||
*
|
||||
* Enabling this will enable batch builds on the CodeBuild project.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly executeBatchBuild?: boolean;
|
||||
/**
|
||||
* Combine the build artifacts for a batch builds.
|
||||
*
|
||||
* Enabling this will combine the build artifacts into the same location for batch builds.
|
||||
* If `executeBatchBuild` is not set to `true`, this property is ignored.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly combineBatchBuildArtifacts?: boolean;
|
||||
}
|
||||
/**
|
||||
* CodePipeline build action that uses AWS CodeBuild.
|
||||
*/
|
||||
export declare class CodeBuildAction extends Action {
|
||||
private readonly props;
|
||||
constructor(props: CodeBuildActionProps);
|
||||
/**
|
||||
* Reference a CodePipeline variable defined by the CodeBuild project this action points to.
|
||||
* Variables in CodeBuild actions are defined using the 'exported-variables' subsection of the 'env'
|
||||
* section of the buildspec.
|
||||
*
|
||||
* @param variableName the name of the variable to reference.
|
||||
* A variable by this name must be present in the 'exported-variables' section of the buildspec
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-syntax
|
||||
*/
|
||||
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/codebuild/build-action.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/codebuild/build-action.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CodeBuildAction=exports.CodeBuildActionType=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var __1=()=>{var tmp=require("..");return __1=()=>tmp,tmp},codebuild=()=>{var tmp=require("../../../aws-codebuild");return codebuild=()=>tmp,tmp},codepipeline=()=>{var tmp=require("../../../aws-codepipeline");return codepipeline=()=>tmp,tmp},iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},cdk=()=>{var tmp=require("../../../core");return cdk=()=>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},source_action_1=()=>{var tmp=require("../codecommit/source-action");return source_action_1=()=>tmp,tmp},CodeBuildActionType;(function(CodeBuildActionType2){CodeBuildActionType2[CodeBuildActionType2.BUILD=0]="BUILD",CodeBuildActionType2[CodeBuildActionType2.TEST=1]="TEST"})(CodeBuildActionType||(exports.CodeBuildActionType=CodeBuildActionType={}));class CodeBuildAction extends action_1().Action{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.CodeBuildAction",version:"2.252.0"};props;constructor(props){super({...props,category:props.type===CodeBuildActionType.TEST?codepipeline().ActionCategory.TEST:codepipeline().ActionCategory.BUILD,provider:"CodeBuild",artifactBounds:{minInputs:1,maxInputs:5,minOutputs:0,maxOutputs:5},inputs:[props.input,...props.extraInputs||[]],resource:props.project});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_CodeBuildActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CodeBuildAction),error}this.props=props}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}if((this.actionProperties.outputs||[]).length>0){const pipelineStack=cdk().Stack.of(scope),projectStack=cdk().Stack.of(this.props.project);if(pipelineStack.account!==projectStack.account)throw new(cdk()).ValidationError((0,literal_string_1().lit)`CrossAccountActionCannotHaveOutputs`,"A cross-account CodeBuild action cannot have outputs. This is a known CodeBuild limitation. See https://github.com/aws/aws-cdk/issues/4169 for details",scope)}options.role.addToPolicy(new(iam()).PolicyStatement({resources:[this.props.project.projectArn],actions:[`codebuild:${this.props.executeBatchBuild?"BatchGetBuildBatches":"BatchGetBuilds"}`,`codebuild:${this.props.executeBatchBuild?"StartBuildBatch":"StartBuild"}`,`codebuild:${this.props.executeBatchBuild?"StopBuildBatch":"StopBuild"}`]})),this.props.project.role&&((this.actionProperties.outputs||[]).length>0?options.bucket.grantReadWrite(this.props.project):options.bucket.grantRead(this.props.project)),this.props.project instanceof codebuild().Project&&this.props.project.bindToCodePipeline(scope,{artifactBucket:options.bucket});for(const inputArtifact of this.actionProperties.inputs||[]){const connectionArn=inputArtifact.getMetadata(__1().CodeStarConnectionsSourceAction._CONNECTION_ARN_PROPERTY);connectionArn&&this.props.project.addToRolePolicy(new(iam()).PolicyStatement({actions:["codestar-connections:UseConnection"],resources:[connectionArn]}));const codecommitRepositoryArn=inputArtifact.getMetadata(source_action_1().CodeCommitSourceAction._FULL_CLONE_ARN_PROPERTY);codecommitRepositoryArn&&this.props.project.addToRolePolicy(new(iam()).PolicyStatement({actions:["codecommit:GitPull"],resources:[codecommitRepositoryArn]}))}const configuration={ProjectName:this.props.project.projectName,EnvironmentVariables:this.props.environmentVariables&&cdk().Stack.of(scope).toJsonString(codebuild().Project.serializeEnvVariables(this.props.environmentVariables,this.props.checkSecretsInPlainTextEnvVariables??!0,this.props.project))};return(this.actionProperties.inputs||[]).length>1&&(configuration.PrimarySource=cdk().Lazy.string({produce:()=>this.props.input.artifactName})),this.props.executeBatchBuild&&(configuration.BatchEnabled="true",this.props.project.enableBatchBuilds(),this.props.combineBatchBuildArtifacts&&(configuration.CombineArtifacts="true")),{configuration}}}exports.CodeBuildAction=CodeBuildAction;
|
||||
Reference in New Issue
Block a user