"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnHook=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cfn_element_1=require("./cfn-element"),util_1=require("./util");class CfnHook extends cfn_element_1.CfnElement{constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings.aws_cdk_lib_CfnHookProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnHook),error}this.type=props.type,this._cfnHookProperties=props.properties}_toCloudFormation(){return{Hooks:{[this.logicalId]:{Type:this.type,Properties:(0,util_1.ignoreEmpty)(this.renderProperties(this._cfnHookProperties))}}}}renderProperties(props){return props}}exports.CfnHook=CfnHook,_a=JSII_RTTI_SYMBOL_1,CfnHook[_a]={fqn:"aws-cdk-lib.CfnHook",version:"2.96.1"};
