2 lines
116 KiB
JavaScript
2 lines
116 KiB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnFleet=exports.CfnSourceCredential=exports.CfnReportGroup=exports.CfnProject=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnProject extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codebuild.CfnProject",version:"2.257.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CodeBuild::Project";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnProjectPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnProject(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnProject(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnProject.CFN_RESOURCE_TYPE_NAME}static fromProjectArn(scope,id,arn){class Import extends cdk().Resource{projectRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}").parse(arn2);this.projectRef={projectName:variables.ProjectName,projectArn:arn2}}}return new Import(scope,id,arn)}static fromProjectName(scope,id,projectName){class Import extends cdk().Resource{projectRef;constructor(scope2,id2,projectName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,ProjectName:projectName2});super(scope2,id2,{environmentFromArn:arn}),this.projectRef={projectName:projectName2,projectArn:arn}}}return new Import(scope,id,projectName)}static arnForProject(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_codebuild_IProjectRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForProject),error}return resource.projectRef.projectArn}_artifacts;_autoRetryLimit;_badgeEnabled;_buildBatchConfig;_cache;_concurrentBuildLimit;_description;_encryptionKey;_environment;_fileSystemLocations;_logsConfig;_name;_queuedTimeoutInMinutes;_resourceAccessRole;_secondaryArtifacts;_secondarySources;_secondarySourceVersions;_serviceRole;_source;_sourceVersion;tags;_tagsRaw;_timeoutInMinutes;_triggers;_visibility;_vpcConfig;cfnPropertyNames={artifacts:"Artifacts",autoRetryLimit:"AutoRetryLimit",badgeEnabled:"BadgeEnabled",buildBatchConfig:"BuildBatchConfig",cache:"Cache",concurrentBuildLimit:"ConcurrentBuildLimit",description:"Description",encryptionKey:"EncryptionKey",environment:"Environment",fileSystemLocations:"FileSystemLocations",logsConfig:"LogsConfig",name:"Name",queuedTimeoutInMinutes:"QueuedTimeoutInMinutes",resourceAccessRole:"ResourceAccessRole",secondaryArtifacts:"SecondaryArtifacts",secondarySources:"SecondarySources",secondarySourceVersions:"SecondarySourceVersions",serviceRole:"ServiceRole",source:"Source",sourceVersion:"SourceVersion",tags:"Tags",timeoutInMinutes:"TimeoutInMinutes",triggers:"Triggers",visibility:"Visibility",vpcConfig:"VpcConfig"};constructor(scope,id,props){super(scope,id,{type:CfnProject.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codebuild_CfnProjectProps(props)}catch(
|