agent-claw: automated task changes
This commit is contained in:
4
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/buildspecs.d.ts
generated
vendored
Normal file
4
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/buildspecs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import * as codebuild from '../../../../aws-codebuild';
|
||||
export declare function mergeBuildSpecs(a: codebuild.BuildSpec, b?: codebuild.BuildSpec): codebuild.BuildSpec;
|
||||
export declare function mergeBuildSpecs(a: codebuild.BuildSpec | undefined, b: codebuild.BuildSpec): codebuild.BuildSpec;
|
||||
export declare function mergeBuildSpecs(a?: codebuild.BuildSpec, b?: codebuild.BuildSpec): codebuild.BuildSpec | undefined;
|
||||
1
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/buildspecs.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/buildspecs.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mergeBuildSpecs=mergeBuildSpecs;var codebuild=()=>{var tmp=require("../../../../aws-codebuild");return codebuild=()=>tmp,tmp};function mergeBuildSpecs(a,b){return!a||!b?a??b:codebuild().mergeBuildSpecs(a,b)}
|
||||
120
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/codebuild-factory.d.ts
generated
vendored
Normal file
120
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/codebuild-factory.d.ts
generated
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
import type { Construct, IDependable } from 'constructs';
|
||||
import * as codebuild from '../../../../aws-codebuild';
|
||||
import type * as codepipeline from '../../../../aws-codepipeline';
|
||||
import * as iam from '../../../../aws-iam';
|
||||
import type { FileSetLocation, ShellStep, StackOutputReference } from '../../blueprint';
|
||||
import { StepOutput } from '../../helpers-internal/step-output';
|
||||
import type { CodeBuildStep } from '../codebuild-step';
|
||||
import type { CodeBuildOptions } from '../codepipeline';
|
||||
import type { ICodePipelineActionFactory, ProduceActionOptions, CodePipelineActionFactoryResult } from '../codepipeline-action-factory';
|
||||
export interface CodeBuildFactoryProps {
|
||||
/**
|
||||
* Name for the generated CodeBuild project
|
||||
*
|
||||
* @default - Automatically generated
|
||||
*/
|
||||
readonly projectName?: string;
|
||||
/**
|
||||
* Customization options for the project
|
||||
*
|
||||
* Will at CodeBuild production time be combined with the option
|
||||
* defaults configured on the pipeline.
|
||||
*
|
||||
* @default - No special values
|
||||
*/
|
||||
readonly projectOptions?: CodeBuildOptions;
|
||||
/**
|
||||
* Custom execution role to be used for the CodeBuild project
|
||||
*
|
||||
* @default - A role is automatically created
|
||||
*/
|
||||
readonly role?: iam.IRole;
|
||||
/**
|
||||
* Custom execution role to be used for the Code Build Action
|
||||
*
|
||||
* @default - A role is automatically created
|
||||
*/
|
||||
readonly actionRole?: iam.IRole;
|
||||
/**
|
||||
* If true, the build spec will be passed via the Cloud Assembly instead of rendered onto the Project
|
||||
*
|
||||
* Doing this has two advantages:
|
||||
*
|
||||
* - Bypass size restrictions: the buildspec on the project is restricted
|
||||
* in size, while buildspecs coming from an input artifact are not restricted
|
||||
* in such a way.
|
||||
* - Bypass pipeline update: if the SelfUpdate step has to change the buildspec,
|
||||
* that just takes time. On the other hand, if the buildspec comes from the
|
||||
* pipeline artifact, no such update has to take place.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly passBuildSpecViaCloudAssembly?: boolean;
|
||||
/**
|
||||
* Override the construct tree where the CodeBuild project is created.
|
||||
*
|
||||
* Normally, the construct tree will look like this:
|
||||
*
|
||||
* ── Pipeline
|
||||
* └── 'MyStage' <- options.scope
|
||||
* └── 'MyAction' <- this is the CodeBuild project
|
||||
*
|
||||
* If this flag is set, the construct tree will look like this:
|
||||
*
|
||||
* ── Pipeline
|
||||
* └── 'MyStage' <- options.scope
|
||||
* └── 'MyAction' <- just a scope
|
||||
* └── 'BackwardsCompatName' <- CodeBuild project
|
||||
*
|
||||
* This is to maintain logicalID compatibility with the previous iteration
|
||||
* of pipelines (where the Action was a construct that would create the Project).
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly additionalConstructLevel?: boolean;
|
||||
/**
|
||||
* Additional dependency that the CodeBuild project should take
|
||||
*
|
||||
* @default -
|
||||
*/
|
||||
readonly additionalDependable?: IDependable;
|
||||
readonly inputs?: FileSetLocation[];
|
||||
readonly outputs?: FileSetLocation[];
|
||||
readonly stepId?: string;
|
||||
readonly commands: string[];
|
||||
readonly installCommands?: string[];
|
||||
readonly env?: Record<string, string>;
|
||||
readonly envFromCfnOutputs?: Record<string, StackOutputReference>;
|
||||
/**
|
||||
* If given, override the scope from the produce call with this scope.
|
||||
*/
|
||||
readonly scope?: Construct;
|
||||
/**
|
||||
* Whether or not the given CodeBuild project is going to be the synth step
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly isSynth?: boolean;
|
||||
/**
|
||||
* StepOutputs produced by this CodeBuild step
|
||||
*/
|
||||
readonly producedStepOutputs?: StepOutput[];
|
||||
}
|
||||
/**
|
||||
* Produce a CodeBuild project from a ShellStep and some CodeBuild-specific customizations
|
||||
*
|
||||
* The functionality here is shared between the `CodePipeline` translating a `ShellStep` into
|
||||
* a CodeBuild project, as well as the `CodeBuildStep` straight up.
|
||||
*/
|
||||
export declare class CodeBuildFactory implements ICodePipelineActionFactory {
|
||||
private readonly constructId;
|
||||
private readonly props;
|
||||
static fromShellStep(constructId: string, shellStep: ShellStep, additional?: Partial<CodeBuildFactoryProps>): ICodePipelineActionFactory;
|
||||
static fromCodeBuildStep(constructId: string, step: CodeBuildStep, additional?: Partial<CodeBuildFactoryProps>): ICodePipelineActionFactory;
|
||||
private _project?;
|
||||
private stepId;
|
||||
private constructor();
|
||||
get project(): codebuild.IProject;
|
||||
produceAction(stage: codepipeline.IStage, options: ProduceActionOptions): CodePipelineActionFactoryResult;
|
||||
}
|
||||
export declare function mergeCodeBuildOptions(...opts: Array<CodeBuildOptions | undefined>): CodeBuildOptions;
|
||||
1
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/codebuild-factory.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/codebuild-factory.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
14
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/outputs.d.ts
generated
vendored
Normal file
14
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/outputs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import type * as cp from '../../../../aws-codepipeline';
|
||||
import type { Step } from '../../blueprint/step';
|
||||
export declare function makeCodePipelineOutput(step: Step, variableName: string): string;
|
||||
/**
|
||||
* If the step is producing outputs, determine a variableNamespace for it, and configure that on the outputs
|
||||
*/
|
||||
export declare function namespaceStepOutputs(step: Step, stage: cp.IStage, name: string): string | undefined;
|
||||
/**
|
||||
* Generate a variable namespace from stage and action names
|
||||
*
|
||||
* Variable namespaces cannot have '.', but they can have '@'. Other than that,
|
||||
* action names are more limited so they translate easily.
|
||||
*/
|
||||
export declare function namespaceName(stage: cp.IStage, name: string): string;
|
||||
1
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/outputs.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/private/outputs.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeCodePipelineOutput=makeCodePipelineOutput,exports.namespaceStepOutputs=namespaceStepOutputs,exports.namespaceName=namespaceName;var 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},helpers_internal_1=()=>{var tmp=require("../../helpers-internal");return helpers_internal_1=()=>tmp,tmp};const CODEPIPELINE_ENGINE_NAME="codepipeline";function makeCodePipelineOutput(step,variableName){return new(helpers_internal_1()).StepOutput(step,CODEPIPELINE_ENGINE_NAME,variableName).toString()}function namespaceStepOutputs(step,stage,name){let ret;for(const output of helpers_internal_1().StepOutput.producedStepOutputs(step)){if(ret=namespaceName(stage,name),output.engineName!==CODEPIPELINE_ENGINE_NAME)throw new(core_1()).ValidationError((0,literal_string_1().lit)`FoundUnrecognizedOutputType`,`Found unrecognized output type: ${output.engineName}`,stage.pipeline);if(typeof output.engineSpecificInformation!="string")throw new(core_1()).ValidationError((0,literal_string_1().lit)`CodePipelineRequiresEngineSpecific`,`CodePipeline requires that 'engineSpecificInformation' is a string, got: ${JSON.stringify(output.engineSpecificInformation)}`,stage.pipeline);output.defineResolution(`#{${ret}.${output.engineSpecificInformation}}`)}return ret}function namespaceName(stage,name){return`${stage.stageName}/${name}`.replace(/[^a-zA-Z0-9@_-]/g,"@")}
|
||||
Reference in New Issue
Block a user