agent-claw: automated task changes
This commit is contained in:
72
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/build-and-publish-action.d.ts
generated
vendored
Normal file
72
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/build-and-publish-action.d.ts
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as codepipeline from '../../../aws-codepipeline';
|
||||
import { Action } from '../action';
|
||||
/**
|
||||
* The CodePipeline variables emitted by the ECR build and publish Action.
|
||||
*/
|
||||
export interface EcrBuildAndPublishVariables {
|
||||
/**
|
||||
* The sha256 digest of the image manifest.
|
||||
*/
|
||||
readonly ecrImageDigestId: string;
|
||||
/**
|
||||
* The name of the Amazon ECR repository where the image was pushed.
|
||||
*/
|
||||
readonly ecrRepositoryName: string;
|
||||
}
|
||||
/**
|
||||
* The type of registry to use for the EcrBuildAndPublish action.
|
||||
*/
|
||||
export declare enum RegistryType {
|
||||
/**
|
||||
* Private registry
|
||||
*/
|
||||
PRIVATE = "private",
|
||||
/**
|
||||
* Public registry
|
||||
*/
|
||||
PUBLIC = "public"
|
||||
}
|
||||
/**
|
||||
* Construction properties of the `EcrBuildAndPublishAction`.
|
||||
*/
|
||||
export interface EcrBuildAndPublishActionProps extends codepipeline.CommonAwsActionProps {
|
||||
/**
|
||||
* The name of the ECR repository where the image is pushed.
|
||||
*/
|
||||
readonly repositoryName: string;
|
||||
/**
|
||||
* The directory path of Dockerfile used to build the image.
|
||||
*
|
||||
* Optionally, you can provide an alternate directory path if Dockerfile is not at the root level.
|
||||
*
|
||||
* @default - the source repository root level
|
||||
*/
|
||||
readonly dockerfileDirectoryPath?: string;
|
||||
/**
|
||||
* The tags used for the image.
|
||||
*
|
||||
* @default - latest
|
||||
*/
|
||||
readonly imageTags?: string[];
|
||||
/**
|
||||
* Specifies whether the repository is public or private.
|
||||
*
|
||||
* @default - RegistryType.PRIVATE
|
||||
*/
|
||||
readonly registryType?: RegistryType;
|
||||
/**
|
||||
* The artifact produced by the source action that contains the Dockerfile needed to build the image.
|
||||
*/
|
||||
readonly input: codepipeline.Artifact;
|
||||
}
|
||||
/**
|
||||
* CodePipeline build action that uses AWS EcrBuildAndPublish.
|
||||
*/
|
||||
export declare class EcrBuildAndPublishAction extends Action {
|
||||
private readonly props;
|
||||
constructor(props: EcrBuildAndPublishActionProps);
|
||||
/** The variables emitted by this action. */
|
||||
get variables(): EcrBuildAndPublishVariables;
|
||||
protected bound(scope: Construct, stage: codepipeline.IStage, options: codepipeline.ActionBindOptions): codepipeline.ActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/build-and-publish-action.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/build-and-publish-action.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EcrBuildAndPublishAction=exports.RegistryType=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},ecr=()=>{var tmp=require("../../../aws-ecr");return ecr=()=>tmp,tmp},iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},cdk=()=>{var tmp=require("../../../core");return cdk=()=>tmp,tmp},action_1=()=>{var tmp=require("../action");return action_1=()=>tmp,tmp},RegistryType;(function(RegistryType2){RegistryType2.PRIVATE="private",RegistryType2.PUBLIC="public"})(RegistryType||(exports.RegistryType=RegistryType={}));class EcrBuildAndPublishAction extends action_1().Action{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.EcrBuildAndPublishAction",version:"2.252.0"};props;constructor(props){super({...props,category:codepipeline().ActionCategory.BUILD,provider:"ECRBuildAndPublish",artifactBounds:{minInputs:1,maxInputs:1,minOutputs:0,maxOutputs:0},inputs:[props.input]});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_EcrBuildAndPublishActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,EcrBuildAndPublishAction),error}this.props=props}get variables(){return{ecrImageDigestId:this.variableExpression("ECRImageDigestId"),ecrRepositoryName:this.variableExpression("ECRRepositoryName")}}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.props.registryType===RegistryType.PUBLIC){const repositoryArn=cdk().Stack.of(scope).formatArn({service:"ecr-public",resource:"repository",resourceName:this.props.repositoryName,region:""});options.role.addToPrincipalPolicy(new(iam()).PolicyStatement({resources:[repositoryArn],actions:["ecr-public:DescribeRepositories","ecr-public:InitiateLayerUpload","ecr-public:UploadLayerPart","ecr-public:CompleteLayerUpload","ecr-public:PutImage","ecr-public:BatchCheckLayerAvailability"]})),ecr().PublicGalleryAuthorizationToken.grantRead(options.role)}else{const repositoryArn=cdk().Stack.of(scope).formatArn({service:"ecr",resource:"repository",resourceName:this.props.repositoryName,region:cdk().Stack.of(scope).region});options.role.addToPrincipalPolicy(new(iam()).PolicyStatement({resources:[repositoryArn],actions:["ecr:DescribeRepositories","ecr:InitiateLayerUpload","ecr:UploadLayerPart","ecr:CompleteLayerUpload","ecr:PutImage","ecr:GetDownloadUrlForLayer","ecr:BatchCheckLayerAvailability"]})),ecr().AuthorizationToken.grantRead(options.role)}const logGroupArn=cdk().Stack.of(scope).formatArn({service:"logs",resource:"log-group",resourceName:`/aws/codepipeline/${stage.pipeline.pipelineName}`,arnFormat:cdk().ArnFormat.COLON_RESOURCE_NAME}),logGroupArnWithWildcard=`${logGroupArn}:*`;return options.role.addToPrincipalPolicy(new(iam()).PolicyStatement({resources:[logGroupArn,logGroupArnWithWildcard],actions:["logs:CreateLogGroup","logs:CreateLogStream","logs:PutLogEvents"]})),(this.actionProperties.inputs??[]).length>0&&options.bucket.grantRead(options.role),{configuration:{ECRRepositoryName:this.props.repositoryName,DockerFilePath:this.props.dockerfileDirectoryPath,ImageTags:this.props.imageTags!==void 0?this.props.imageTags.join(","):void 0,RegistryType:this.props.registryType}}}}exports.EcrBuildAndPublishAction=EcrBuildAndPublishAction;
|
||||
2
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/index.d.ts
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './build-and-publish-action';
|
||||
export * from './source-action';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.RegistryType=void 0,Object.defineProperty(exports,_noFold="RegistryType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./build-and-publish-action").RegistryType;return Object.defineProperty(exports,_noFold="RegistryType",{enumerable:!0,configurable:!0,value}),value}}),exports.EcrBuildAndPublishAction=void 0,Object.defineProperty(exports,_noFold="EcrBuildAndPublishAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./build-and-publish-action").EcrBuildAndPublishAction;return Object.defineProperty(exports,_noFold="EcrBuildAndPublishAction",{enumerable:!0,configurable:!0,value}),value}}),exports.EcrSourceAction=void 0,Object.defineProperty(exports,_noFold="EcrSourceAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./source-action").EcrSourceAction;return Object.defineProperty(exports,_noFold="EcrSourceAction",{enumerable:!0,configurable:!0,value}),value}});
|
||||
54
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/source-action.d.ts
generated
vendored
Normal file
54
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/source-action.d.ts
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as codepipeline from '../../../aws-codepipeline';
|
||||
import type { IRepositoryRef } from '../../../interfaces/generated/aws-ecr-interfaces.generated';
|
||||
import { Action } from '../action';
|
||||
/**
|
||||
* The CodePipeline variables emitted by the ECR source Action.
|
||||
*/
|
||||
export interface EcrSourceVariables {
|
||||
/** The identifier of the registry. In ECR, this is usually the ID of the AWS account owning it. */
|
||||
readonly registryId: string;
|
||||
/** The physical name of the repository that this action tracks. */
|
||||
readonly repositoryName: string;
|
||||
/** The digest of the current image, in the form '<digest type>:<digest value>'. */
|
||||
readonly imageDigest: string;
|
||||
/** The Docker tag of the current image. */
|
||||
readonly imageTag: string;
|
||||
/** The full ECR Docker URI of the current image. */
|
||||
readonly imageUri: string;
|
||||
}
|
||||
/**
|
||||
* Construction properties of `EcrSourceAction`.
|
||||
*/
|
||||
export interface EcrSourceActionProps extends codepipeline.CommonAwsActionProps {
|
||||
/**
|
||||
* The image tag that will be checked for changes.
|
||||
*
|
||||
* It is not possible to trigger on changes to more than one tag.
|
||||
*
|
||||
* @default 'latest'
|
||||
*/
|
||||
readonly imageTag?: string;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
readonly output: codepipeline.Artifact;
|
||||
/**
|
||||
* The repository that will be watched for changes.
|
||||
*/
|
||||
readonly repository: IRepositoryRef;
|
||||
}
|
||||
/**
|
||||
* The ECR Repository source CodePipeline Action.
|
||||
*
|
||||
* Will trigger the pipeline as soon as the target tag in the repository
|
||||
* changes, but only if there is a CloudTrail Trail in the account that
|
||||
* captures the ECR event.
|
||||
*/
|
||||
export declare class EcrSourceAction extends Action {
|
||||
private readonly props;
|
||||
constructor(props: EcrSourceActionProps);
|
||||
/** The variables emitted by this action. */
|
||||
get variables(): EcrSourceVariables;
|
||||
protected bound(scope: Construct, stage: codepipeline.IStage, options: codepipeline.ActionBindOptions): codepipeline.ActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/source-action.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-codepipeline-actions/lib/ecr/source-action.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EcrSourceAction=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},aws_events_1=()=>{var tmp=require("../../../aws-events");return aws_events_1=()=>tmp,tmp},targets=()=>{var tmp=require("../../../aws-events-targets");return targets=()=>tmp,tmp},iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},core_1=()=>{var tmp=require("../../../core");return core_1=()=>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 EcrSourceAction extends action_1().Action{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.EcrSourceAction",version:"2.252.0"};props;constructor(props){super({...props,category:codepipeline().ActionCategory.SOURCE,provider:"ECR",artifactBounds:(0,common_1().sourceArtifactBounds)(),outputs:[props.output]});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_EcrSourceActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,EcrSourceAction),error}this.props=props}get variables(){return{registryId:this.variableExpression("RegistryId"),repositoryName:this.variableExpression("RepositoryName"),imageDigest:this.variableExpression("ImageDigest"),imageTag:this.variableExpression("ImageTag"),imageUri:this.variableExpression("ImageURI")}}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:["ecr:DescribeImages"],resources:[this.props.repository.repositoryRef.repositoryArn]})),new(aws_events_1()).Rule(scope,core_1().Names.nodeUniqueId(stage.pipeline.node)+"SourceEventRule",{targets:[new(targets()).CodePipeline(stage.pipeline)],eventPattern:{detailType:["ECR Image Action"],source:["aws.ecr"],detail:{result:["SUCCESS"],"repository-name":[this.props.repository.repositoryRef.repositoryName],"image-tag":[this.props.imageTag===""?void 0:this.props.imageTag??"latest"],"action-type":["PUSH"]}}}),options.bucket.grantWrite(options.role),{configuration:{RepositoryName:this.props.repository.repositoryRef.repositoryName,ImageTag:this.props.imageTag?this.props.imageTag:void 0}}}}exports.EcrSourceAction=EcrSourceAction;
|
||||
Reference in New Issue
Block a user