UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

4 lines (3 loc) 2.88 kB
"use strict";function _aws_cdk_aws_codestarnotifications_CfnNotificationRuleProps(p){}function _aws_cdk_aws_codestarnotifications_CfnNotificationRule(p){}function _aws_cdk_aws_codestarnotifications_CfnNotificationRule_TargetProperty(p){}function _aws_cdk_aws_codestarnotifications_DetailType(p){}function _aws_cdk_aws_codestarnotifications_NotificationRuleOptions(p){if(p!=null){visitedObjects.add(p);try{visitedObjects.has(p.detailType)||(p.detailType,void 0)}finally{visitedObjects.delete(p)}}}function _aws_cdk_aws_codestarnotifications_NotificationRuleProps(p){if(p!=null){visitedObjects.add(p);try{if(visitedObjects.has(p.source)||(p.source,void 0),p.targets!=null)for(const o of p.targets)visitedObjects.has(o)||void 0;visitedObjects.has(p.detailType)||(p.detailType,void 0)}finally{visitedObjects.delete(p)}}}function _aws_cdk_aws_codestarnotifications_INotificationRule(p){}function _aws_cdk_aws_codestarnotifications_NotificationRule(p){}function _aws_cdk_aws_codestarnotifications_NotificationRuleSourceConfig(p){}function _aws_cdk_aws_codestarnotifications_INotificationRuleSource(p){}function _aws_cdk_aws_codestarnotifications_NotificationRuleTargetConfig(p){}function _aws_cdk_aws_codestarnotifications_INotificationRuleTarget(p){}function print(name,deprecationMessage){const deprecated=process.env.JSII_DEPRECATED,deprecationMode=["warn","fail","quiet"].includes(deprecated)?deprecated:"warn",message=`${name} is deprecated. ${deprecationMessage.trim()} This API will be removed in the next major release.`;switch(deprecationMode){case"fail":throw new DeprecationError(message);case"warn":console.warn("[WARNING]",message);break}}function getPropertyDescriptor(obj,prop){const descriptor=Object.getOwnPropertyDescriptor(obj,prop);if(descriptor)return descriptor;const proto=Object.getPrototypeOf(obj),prototypeDescriptor=proto&&getPropertyDescriptor(proto,prop);return prototypeDescriptor||{}}const visitedObjects=new Set;class DeprecationError extends Error{constructor(...args){super(...args),Object.defineProperty(this,"name",{configurable:!1,enumerable:!0,value:"DeprecationError",writable:!1})}}module.exports={print,getPropertyDescriptor,DeprecationError,_aws_cdk_aws_codestarnotifications_CfnNotificationRuleProps,_aws_cdk_aws_codestarnotifications_CfnNotificationRule,_aws_cdk_aws_codestarnotifications_CfnNotificationRule_TargetProperty,_aws_cdk_aws_codestarnotifications_DetailType,_aws_cdk_aws_codestarnotifications_NotificationRuleOptions,_aws_cdk_aws_codestarnotifications_NotificationRuleProps,_aws_cdk_aws_codestarnotifications_INotificationRule,_aws_cdk_aws_codestarnotifications_NotificationRule,_aws_cdk_aws_codestarnotifications_NotificationRuleSourceConfig,_aws_cdk_aws_codestarnotifications_INotificationRuleSource,_aws_cdk_aws_codestarnotifications_NotificationRuleTargetConfig,_aws_cdk_aws_codestarnotifications_INotificationRuleTarget};