aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
4 lines (3 loc) • 2.45 kB
JavaScript
;function _aws_cdk_aws_s3_deployment_BucketDeploymentProps(p){if(p!=null){visitedObjects.add(p);try{if(p.sources!=null)for(const o of p.sources)visitedObjects.has(o)||void 0;if(p.cacheControl!=null)for(const o of p.cacheControl)visitedObjects.has(o)||void 0;visitedObjects.has(p.metadata)||(p.metadata,void 0),visitedObjects.has(p.serverSideEncryption)||(p.serverSideEncryption,void 0),visitedObjects.has(p.storageClass)||(p.storageClass,void 0)}finally{visitedObjects.delete(p)}}}function _aws_cdk_aws_s3_deployment_BucketDeployment(p){}function _aws_cdk_aws_s3_deployment_CacheControl(p){}function _aws_cdk_aws_s3_deployment_ServerSideEncryption(p){}function _aws_cdk_aws_s3_deployment_StorageClass(p){}function _aws_cdk_aws_s3_deployment_Expires(p){}function _aws_cdk_aws_s3_deployment_UserDefinedObjectMetadata(p){}function _aws_cdk_aws_s3_deployment_SourceConfig(p){}function _aws_cdk_aws_s3_deployment_DeploymentSourceContext(p){}function _aws_cdk_aws_s3_deployment_ISource(p){}function _aws_cdk_aws_s3_deployment_Source(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_s3_deployment_BucketDeploymentProps,_aws_cdk_aws_s3_deployment_BucketDeployment,_aws_cdk_aws_s3_deployment_CacheControl,_aws_cdk_aws_s3_deployment_ServerSideEncryption,_aws_cdk_aws_s3_deployment_StorageClass,_aws_cdk_aws_s3_deployment_Expires,_aws_cdk_aws_s3_deployment_UserDefinedObjectMetadata,_aws_cdk_aws_s3_deployment_SourceConfig,_aws_cdk_aws_s3_deployment_DeploymentSourceContext,_aws_cdk_aws_s3_deployment_ISource,_aws_cdk_aws_s3_deployment_Source};