"use strict";var _a,_b,_c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitBucketSourceCredentials=exports.GitHubEnterpriseSourceCredentials=exports.GitHubSourceCredentials=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var codebuild_generated_1=()=>{var tmp=require("./codebuild.generated");return codebuild_generated_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};class GitHubSourceCredentials extends core_1().Resource{constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codebuild_GitHubSourceCredentialsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,GitHubSourceCredentials),error}new(codebuild_generated_1()).CfnSourceCredential(this,"Resource",{serverType:"GITHUB",authType:"PERSONAL_ACCESS_TOKEN",token:props.accessToken.unsafeUnwrap()})}}exports.GitHubSourceCredentials=GitHubSourceCredentials,_a=JSII_RTTI_SYMBOL_1,GitHubSourceCredentials[_a]={fqn:"aws-cdk-lib.aws_codebuild.GitHubSourceCredentials",version:"2.159.0"};class GitHubEnterpriseSourceCredentials extends core_1().Resource{constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codebuild_GitHubEnterpriseSourceCredentialsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,GitHubEnterpriseSourceCredentials),error}new(codebuild_generated_1()).CfnSourceCredential(this,"Resource",{serverType:"GITHUB_ENTERPRISE",authType:"PERSONAL_ACCESS_TOKEN",token:props.accessToken.unsafeUnwrap()})}}exports.GitHubEnterpriseSourceCredentials=GitHubEnterpriseSourceCredentials,_b=JSII_RTTI_SYMBOL_1,GitHubEnterpriseSourceCredentials[_b]={fqn:"aws-cdk-lib.aws_codebuild.GitHubEnterpriseSourceCredentials",version:"2.159.0"};class BitBucketSourceCredentials extends core_1().Resource{constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codebuild_BitBucketSourceCredentialsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,BitBucketSourceCredentials),error}new(codebuild_generated_1()).CfnSourceCredential(this,"Resource",{serverType:"BITBUCKET",authType:"BASIC_AUTH",username:props.username.unsafeUnwrap(),token:props.password.unsafeUnwrap()})}}exports.BitBucketSourceCredentials=BitBucketSourceCredentials,_c=JSII_RTTI_SYMBOL_1,BitBucketSourceCredentials[_c]={fqn:"aws-cdk-lib.aws_codebuild.BitBucketSourceCredentials",version:"2.159.0"};
