"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.S3Destination=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class S3Destination{bucket;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda_destinations.S3Destination",version:"2.256.1"};constructor(bucket){this.bucket=bucket;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_s3_IBucket(bucket)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,S3Destination),error}}bind(_scope,fn,_options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_IFunction(fn),jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_DestinationOptions(_options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return this.bucket.grantRead(fn),this.bucket.grantPut(fn),{destination:this.bucket.bucketArn}}}exports.S3Destination=S3Destination;
