UNPKG

@aws-cdk/aws-s3objectlambda-alpha

Version:

The CDK Construct Library for AWS::S3ObjectLambda

46 lines (45 loc) 1.76 kB
function _aws_cdk_aws_s3objectlambda_alpha_IAccessPoint(p) { } function _aws_cdk_aws_s3objectlambda_alpha_AccessPointProps(p) { } function _aws_cdk_aws_s3objectlambda_alpha_AccessPointAttributes(p) { } function _aws_cdk_aws_s3objectlambda_alpha_AccessPoint(p) { } function print(name, deprecationMessage) { const deprecated = process.env.JSII_DEPRECATED; const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn"; const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n 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); const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop); if (prototypeDescriptor) { return prototypeDescriptor; } return {}; } const visitedObjects = new Set(); class DeprecationError extends Error { constructor(...args) { super(...args); Object.defineProperty(this, "name", { configurable: false, enumerable: true, value: "DeprecationError", writable: false, }); } } module.exports = { print, getPropertyDescriptor, DeprecationError, _aws_cdk_aws_s3objectlambda_alpha_IAccessPoint, _aws_cdk_aws_s3objectlambda_alpha_AccessPointProps, _aws_cdk_aws_s3objectlambda_alpha_AccessPointAttributes, _aws_cdk_aws_s3objectlambda_alpha_AccessPoint };