aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
4 lines (3 loc) • 2.24 kB
JavaScript
;function _aws_cdk_aws_codeguruprofiler_CfnProfilingGroupProps(p){if(p!=null){visitedObjects.add(p);try{if(p.tags!=null)for(const o of p.tags)visitedObjects.has(o)||require("@aws-cdk/core/.warnings.jsii.js")._aws_cdk_core_CfnTag(o)}finally{visitedObjects.delete(p)}}}function _aws_cdk_aws_codeguruprofiler_CfnProfilingGroup(p){}function _aws_cdk_aws_codeguruprofiler_CfnProfilingGroup_AgentPermissionsProperty(p){}function _aws_cdk_aws_codeguruprofiler_CfnProfilingGroup_ChannelProperty(p){}function _aws_cdk_aws_codeguruprofiler_ComputePlatform(p){}function _aws_cdk_aws_codeguruprofiler_IProfilingGroup(p){}function _aws_cdk_aws_codeguruprofiler_ProfilingGroupProps(p){if(p!=null){visitedObjects.add(p);try{visitedObjects.has(p.computePlatform)||(p.computePlatform,void 0)}finally{visitedObjects.delete(p)}}}function _aws_cdk_aws_codeguruprofiler_ProfilingGroup(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_codeguruprofiler_CfnProfilingGroupProps,_aws_cdk_aws_codeguruprofiler_CfnProfilingGroup,_aws_cdk_aws_codeguruprofiler_CfnProfilingGroup_AgentPermissionsProperty,_aws_cdk_aws_codeguruprofiler_CfnProfilingGroup_ChannelProperty,_aws_cdk_aws_codeguruprofiler_ComputePlatform,_aws_cdk_aws_codeguruprofiler_IProfilingGroup,_aws_cdk_aws_codeguruprofiler_ProfilingGroupProps,_aws_cdk_aws_codeguruprofiler_ProfilingGroup};