Files
personal_site/frontend/node_modules/aws-cdk-lib/aws-codeconnections/lib/codeconnections.generated.js
T

2 lines
6.6 KiB
JavaScript
Raw Normal View History

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnConnection=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 CfnConnection extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codeconnections.CfnConnection",version:"2.257.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CodeConnections::Connection";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnConnection(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 isCfnConnection(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnConnection.CFN_RESOURCE_TYPE_NAME}static arnForConnection(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_codeconnections_IConnectionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForConnection),error}return resource.connectionRef.connectionArn}cdkTagManager;_connectionName;_hostArn;_providerType;_tags;cfnPropertyNames={tags:"Tags",connectionName:"ConnectionName",hostArn:"HostArn",providerType:"ProviderType"};constructor(scope,id,props){super(scope,id,{type:CfnConnection.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codeconnections_CfnConnectionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConnection),error}cdk().requireProperty(props,"connectionName",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::CodeConnections::Connection",void 0,{tagPropertyName:"tags"}),this._connectionName=props.connectionName,this._hostArn=props.hostArn,this._providerType=props.providerType,this._tags=props.tags}get connectionRef(){return{connectionArn:this.ref}}get connectionName(){return this._connectionName}set connectionName(value){cdk().traceProperty(this.node,"ConnectionName"),this._connectionName=value}get hostArn(){return this._hostArn}set hostArn(value){cdk().traceProperty(this.node,"HostArn"),this._hostArn=value}get providerType(){return this._providerType}set providerType(value){cdk().traceProperty(this.node,"ProviderType"),this._providerType=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrConnectionArn(){return cdk().Token.asString(this.getAtt("ConnectionArn",cdk().ResolutionTypeHint.STRING))}get attrConnectionStatus(){return cdk().Token.asString(this.getAtt("ConnectionStatus",cdk().ResolutionTypeHint.STRING))}get attrOwnerAccountId(){return cdk().Token.asString(this.getAtt("OwnerAccountId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),connectionName:this._connectionName,hostArn:this._hostArn,providerType:this._providerType}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnConnection.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogic