aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 1.8 kB
JavaScript
var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Artifacts=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class Artifacts{static s3(props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codebuild_S3ArtifactsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.s3),error}return new S3Artifacts(props)}constructor(props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codebuild_ArtifactsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Artifacts),error}this.identifier=props.identifier}bind(_scope,_project){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codebuild_IProject(_project)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{artifactsProperty:{artifactIdentifier:this.identifier,type:this.type}}}}exports.Artifacts=Artifacts,_a=JSII_RTTI_SYMBOL_1,Artifacts[_a]={fqn:"aws-cdk-lib.aws_codebuild.Artifacts",version:"2.185.0"};class S3Artifacts extends Artifacts{constructor(props){super(props),this.props=props,this.type="S3"}bind(_scope,project){return this.props.bucket.grantReadWrite(project),{artifactsProperty:{...super.bind(_scope,project).artifactsProperty,location:this.props.bucket.bucketName,path:this.props.path,namespaceType:this.props.includeBuildId===!1?"NONE":"BUILD_ID",name:this.props.name==null?void 0:this.props.name,packaging:this.props.packageZip===!1?"NONE":"ZIP",encryptionDisabled:this.props.encryption===!1?!0:void 0,overrideArtifactName:this.props.name==null?!0:void 0}}}}
;