aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 979 B
JavaScript
var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.FieldIndexPolicy=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};class FieldIndexPolicy{constructor(props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_logs_FieldIndexPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,FieldIndexPolicy),error}if(props.fields.length>20)throw new(core_1()).UnscopedValidationError("A maximum of 20 fields can be indexed per log group");this.fieldIndexPolicyProps=props}_bind(_scope){return{Fields:this.fieldIndexPolicyProps.fields}}}exports.FieldIndexPolicy=FieldIndexPolicy,_a=JSII_RTTI_SYMBOL_1,FieldIndexPolicy[_a]={fqn:"aws-cdk-lib.aws_logs.FieldIndexPolicy",version:"2.202.0"};
;