agent-claw: automated task changes
This commit is contained in:
95
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/codestar-connections/source-action.d.ts
generated
vendored
Normal file
95
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/codestar-connections/source-action.d.ts
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as codepipeline from '../../../aws-codepipeline';
|
||||
import { Action } from '../action';
|
||||
/**
|
||||
* The CodePipeline variables emitted by CodeStar source Action.
|
||||
*/
|
||||
export interface CodeStarSourceVariables {
|
||||
/** The name of the repository this action points to. */
|
||||
readonly fullRepositoryName: string;
|
||||
/** The name of the branch this action tracks. */
|
||||
readonly branchName: string;
|
||||
/** The date the currently last commit on the tracked branch was authored, in ISO-8601 format. */
|
||||
readonly authorDate: string;
|
||||
/** The SHA1 hash of the currently last commit on the tracked branch. */
|
||||
readonly commitId: string;
|
||||
/** The message of the currently last commit on the tracked branch. */
|
||||
readonly commitMessage: string;
|
||||
/** The connection ARN this source uses. */
|
||||
readonly connectionArn: string;
|
||||
}
|
||||
/**
|
||||
* Construction properties for `CodeStarConnectionsSourceAction`.
|
||||
*/
|
||||
export interface CodeStarConnectionsSourceActionProps extends codepipeline.CommonAwsActionProps {
|
||||
/**
|
||||
* The output artifact that this action produces.
|
||||
* Can be used as input for further pipeline actions.
|
||||
*/
|
||||
readonly output: codepipeline.Artifact;
|
||||
/**
|
||||
* The ARN of the CodeStar Connection created in the AWS console
|
||||
* that has permissions to access this GitHub or BitBucket repository.
|
||||
*
|
||||
* @example 'arn:aws:codestar-connections:us-east-1:123456789012:connection/12345678-abcd-12ab-34cdef5678gh'
|
||||
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/connections-create.html
|
||||
*/
|
||||
readonly connectionArn: string;
|
||||
/**
|
||||
* The owning user or organization of the repository.
|
||||
*
|
||||
* @example 'aws'
|
||||
*/
|
||||
readonly owner: string;
|
||||
/**
|
||||
* The name of the repository.
|
||||
*
|
||||
* @example 'aws-cdk'
|
||||
*/
|
||||
readonly repo: string;
|
||||
/**
|
||||
* The branch to build.
|
||||
*
|
||||
* @default 'master'
|
||||
*/
|
||||
readonly branch?: string;
|
||||
/**
|
||||
* Whether the output should be the contents of the repository
|
||||
* (which is the default),
|
||||
* or a link that allows CodeBuild to clone the repository before building.
|
||||
*
|
||||
* **Note**: if this option is true,
|
||||
* then only CodeBuild actions can use the resulting `output`.
|
||||
*
|
||||
* @default false
|
||||
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-config
|
||||
*/
|
||||
readonly codeBuildCloneOutput?: boolean;
|
||||
/**
|
||||
* Controls automatically starting your pipeline when a new commit
|
||||
* is made on the configured repository and branch. If unspecified,
|
||||
* the default value is true, and the field does not display by default.
|
||||
*
|
||||
* @default true
|
||||
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html
|
||||
*/
|
||||
readonly triggerOnPush?: boolean;
|
||||
}
|
||||
/**
|
||||
* A CodePipeline source action for the CodeStar Connections source,
|
||||
* which allows connecting to GitHub and BitBucket.
|
||||
*/
|
||||
export declare class CodeStarConnectionsSourceAction extends Action {
|
||||
/**
|
||||
* The name of the property that holds the ARN of the CodeStar Connection
|
||||
* inside of the CodePipeline Artifact's metadata.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static readonly _CONNECTION_ARN_PROPERTY = "CodeStarConnectionArnProperty";
|
||||
private readonly props;
|
||||
constructor(props: CodeStarConnectionsSourceActionProps);
|
||||
/** The variables emitted by this action. */
|
||||
get variables(): CodeStarSourceVariables;
|
||||
protected bound(_scope: Construct, _stage: codepipeline.IStage, options: codepipeline.ActionBindOptions): codepipeline.ActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/codestar-connections/source-action.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/codestar-connections/source-action.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CodeStarConnectionsSourceAction=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},action_1=()=>{var tmp=require("../action");return action_1=()=>tmp,tmp},common_1=()=>{var tmp=require("../common");return common_1=()=>tmp,tmp};class CodeStarConnectionsSourceAction extends action_1().Action{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.CodeStarConnectionsSourceAction",version:"2.252.0"};static _CONNECTION_ARN_PROPERTY="CodeStarConnectionArnProperty";props;constructor(props){super({...props,category:codepipeline().ActionCategory.SOURCE,owner:"AWS",provider:"CodeStarSourceConnection",artifactBounds:(0,common_1().sourceArtifactBounds)(),outputs:[props.output]});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_CodeStarConnectionsSourceActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CodeStarConnectionsSourceAction),error}this.props=props}get variables(){return{fullRepositoryName:this.variableExpression("FullRepositoryName"),branchName:this.variableExpression("BranchName"),authorDate:this.variableExpression("AuthorDate"),commitId:this.variableExpression("CommitId"),commitMessage:this.variableExpression("CommitMessage"),connectionArn:this.variableExpression("ConnectionArn")}}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:["codestar-connections:UseConnection"],resources:[this.props.connectionArn]})),options.bucket.grantReadWrite(options.role),options.bucket.grantPutAcl(options.role),this.props.codeBuildCloneOutput===!0&&this.props.output.setMetadata(CodeStarConnectionsSourceAction._CONNECTION_ARN_PROPERTY,this.props.connectionArn),{configuration:{ConnectionArn:this.props.connectionArn,FullRepositoryId:`${this.props.owner}/${this.props.repo}`,BranchName:this.props.branch??"master",OutputArtifactFormat:this.props.codeBuildCloneOutput===!0?"CODEBUILD_CLONE_REF":void 0,DetectChanges:this.props.triggerOnPush}}}}exports.CodeStarConnectionsSourceAction=CodeStarConnectionsSourceAction;
|
||||
Reference in New Issue
Block a user