UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 57.3 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnTemplate=exports.CfnLayout=exports.CfnField=exports.CfnDomain=exports.CfnCaseRule=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnCaseRule extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cases.CfnCaseRule",version:"2.234.1"};static CFN_RESOURCE_TYPE_NAME="AWS::Cases::CaseRule";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCaseRulePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnCaseRule(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnCaseRule(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCaseRule.CFN_RESOURCE_TYPE_NAME}static arnForCaseRule(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cases_ICaseRuleRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForCaseRule),error}return resource.caseRuleRef.caseRuleArn}attrCaseRuleArn;attrCaseRuleId;attrCreatedTime;attrLastModifiedTime;cdkTagManager;description;domainId;name;rule;tags;constructor(scope,id,props){super(scope,id,{type:CfnCaseRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cases_CfnCaseRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCaseRule),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"rule",this),this.attrCaseRuleArn=cdk().Token.asString(this.getAtt("CaseRuleArn",cdk().ResolutionTypeHint.STRING)),this.attrCaseRuleId=cdk().Token.asString(this.getAtt("CaseRuleId",cdk().ResolutionTypeHint.STRING)),this.attrCreatedTime=cdk().Token.asString(this.getAtt("CreatedTime",cdk().ResolutionTypeHint.STRING)),this.attrLastModifiedTime=cdk().Token.asString(this.getAtt("LastModifiedTime",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Cases::CaseRule",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.domainId=props.domainId,this.name=props.name,this.rule=props.rule,this.tags=props.tags}get caseRuleRef(){return{caseRuleArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),description:this.description,domainId:this.domainId,name:this.name,rule:this.rule}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnCaseRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCaseRulePropsToCloudFormation(props)}}exports.CfnCaseRule=CfnCaseRule;function CfnCaseRuleOperandOnePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("fieldId",cdk().requiredValidator)(properties.fieldId)),errors.collect(cdk().propertyValidator("fieldId",cdk().validateString)(properties.fieldId)),errors.wrap('supplied properties not correct for "OperandOneProperty"')}function convertCfnCaseRuleOperandOnePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCaseRuleOperandOnePropertyValidator(properties).assertSuccess(),{FieldId:cdk().stringToCloudFormation(properties.fieldId)}):properties}function CfnCaseRuleOperandOnePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("fieldId","FieldId",properties.FieldId!=null?cfn_parse().FromCloudFormation.getString(properties.FieldId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCaseRuleOperandTwoPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("booleanValue",cdk().validateBoolean)(properties.booleanValue)),errors.collect(cdk().propertyValidator("doubleValue",cdk().validateNumber)(properties.doubleValue)),errors.collect(cdk().propertyValidator("emptyValue",cdk().validateObject)(properties.emptyValue)),errors.collect(cdk().propertyValidator("stringValue",cdk().validateString)(properties.stringValue)),errors.wrap('supplied properties not correct for "OperandTwoProperty"')}function convertCfnCaseRuleOperandTwoPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCaseRuleOperandTwoPropertyValidator(properties).assertSuccess(),{BooleanValue:cdk().booleanToCloudFormation(properties.booleanValue),DoubleValue:cdk().numberToCloudFormation(properties.doubleValue),EmptyValue:cdk().objectToCloudFormation(properties.emptyValue),StringValue:cdk().stringToCloudFormation(properties.stringValue)}):properties}function CfnCaseRuleOperandTwoPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("booleanValue","BooleanValue",properties.BooleanValue!=null?cfn_parse().FromCloudFormation.getBoolean(properties.BooleanValue):void 0),ret.addPropertyResult("doubleValue","DoubleValue",properties.DoubleValue!=null?cfn_parse().FromCloudFormation.getNumber(properties.DoubleValue):void 0),ret.addPropertyResult("emptyValue","EmptyValue",properties.EmptyValue!=null?cfn_parse().FromCloudFormation.getAny(properties.EmptyValue):void 0),ret.addPropertyResult("stringValue","StringValue",properties.StringValue!=null?cfn_parse().FromCloudFormation.getString(properties.StringValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCaseRuleBooleanOperandsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("operandOne",cdk().requiredValidator)(properties.operandOne)),errors.collect(cdk().propertyValidator("operandOne",CfnCaseRuleOperandOnePropertyValidator)(properties.operandOne)),errors.collect(cdk().propertyValidator("operandTwo",cdk().requiredValidator)(properties.operandTwo)),errors.collect(cdk().propertyValidator("operandTwo",CfnCaseRuleOperandTwoPropertyValidator)(properties.operandTwo)),errors.collect(cdk().propertyValidator("result",cdk().requiredValidator)(properties.result)),errors.collect(cdk().propertyValidator("result",cdk().validateBoolean)(properties.result)),errors.wrap('supplied properties not correct for "BooleanOperandsProperty"')}function convertCfnCaseRuleBooleanOperandsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCaseRuleBooleanOperandsPropertyValidator(properties).assertSuccess(),{OperandOne:convertCfnCaseRuleOperandOnePropertyToCloudFormation(properties.operandOne),OperandTwo:convertCfnCaseRuleOperandTwoPropertyToCloudFormation(properties.operandTwo),Result:cdk().booleanToCloudFormation(properties.result)}):properties}function CfnCaseRuleBooleanOperandsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("operandOne","OperandOne",properties.OperandOne!=null?CfnCaseRuleOperandOnePropertyFromCloudFormation(properties.OperandOne):void 0),ret.addPropertyResult("operandTwo","OperandTwo",properties.OperandTwo!=null?CfnCaseRuleOperandTwoPropertyFromCloudFormation(properties.OperandTwo):void 0),ret.addPropertyResult("result","Result",properties.Result!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Result):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCaseRuleBooleanConditionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("equalTo",CfnCaseRuleBooleanOperandsPropertyValidator)(properties.equalTo)),errors.collect(cdk().propertyValidator("notEqualTo",CfnCaseRuleBooleanOperandsPropertyValidator)(properties.notEqualTo)),errors.wrap('supplied properties not correct for "BooleanConditionProperty"')}function convertCfnCaseRuleBooleanConditionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCaseRuleBooleanConditionPropertyValidator(properties).assertSuccess(),{EqualTo:convertCfnCaseRuleBooleanOperandsPropertyToCloudFormation(properties.equalTo),NotEqualTo:convertCfnCaseRuleBooleanOperandsPropertyToCloudFormation(properties.notEqualTo)}):properties}function CfnCaseRuleBooleanConditionPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("equalTo","EqualTo",properties.EqualTo!=null?CfnCaseRuleBooleanOperandsPropertyFromCloudFormation(properties.EqualTo):void 0),ret.addPropertyResult("notEqualTo","NotEqualTo",properties.NotEqualTo!=null?CfnCaseRuleBooleanOperandsPropertyFromCloudFormation(properties.NotEqualTo):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCaseRuleRequiredCaseRulePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("conditions",cdk().requiredValidator)(properties.conditions)),errors.collect(cdk().propertyValidator("conditions",cdk().listValidator(CfnCaseRuleBooleanConditionPropertyValidator))(properties.conditions)),errors.collect(cdk().propertyValidator("defaultValue",cdk().requiredValidator)(properties.defaultValue)),errors.collect(cdk().propertyValidator("defaultValue",cdk().validateBoolean)(properties.defaultValue)),errors.wrap('supplied properties not correct for "RequiredCaseRuleProperty"')}function convertCfnCaseRuleRequiredCaseRulePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCaseRuleRequiredCaseRulePropertyValidator(properties).assertSuccess(),{Conditions:cdk().listMapper(convertCfnCaseRuleBooleanConditionPropertyToCloudFormation)(properties.conditions),DefaultValue:cdk().booleanToCloudFormation(properties.defaultValue)}):properties}function CfnCaseRuleRequiredCaseRulePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("conditions","Conditions",properties.Conditions!=null?cfn_parse().FromCloudFormation.getArray(CfnCaseRuleBooleanConditionPropertyFromCloudFormation)(properties.Conditions):void 0),ret.addPropertyResult("defaultValue","DefaultValue",properties.DefaultValue!=null?cfn_parse().FromCloudFormation.getBoolean(properties.DefaultValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCaseRuleHiddenCaseRulePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("conditions",cdk().requiredValidator)(properties.conditions)),errors.collect(cdk().propertyValidator("conditions",cdk().listValidator(CfnCaseRuleBooleanConditionPropertyValidator))(properties.conditions)),errors.collect(cdk().propertyValidator("defaultValue",cdk().requiredValidator)(properties.defaultValue)),errors.collect(cdk().propertyValidator("defaultValue",cdk().validateBoolean)(properties.defaultValue)),errors.wrap('supplied properties not correct for "HiddenCaseRuleProperty"')}function convertCfnCaseRuleHiddenCaseRulePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCaseRuleHiddenCaseRulePropertyValidator(properties).assertSuccess(),{Conditions:cdk().listMapper(convertCfnCaseRuleBooleanConditionPropertyToCloudFormation)(properties.conditions),DefaultValue:cdk().booleanToCloudFormation(properties.defaultValue)}):properties}function CfnCaseRuleHiddenCaseRulePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("conditions","Conditions",properties.Conditions!=null?cfn_parse().FromCloudFormation.getArray(CfnCaseRuleBooleanConditionPropertyFromCloudFormation)(properties.Conditions):void 0),ret.addPropertyResult("defaultValue","DefaultValue",properties.DefaultValue!=null?cfn_parse().FromCloudFormation.getBoolean(properties.DefaultValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCaseRuleCaseRuleDetailsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("hidden",CfnCaseRuleHiddenCaseRulePropertyValidator)(properties.hidden)),errors.collect(cdk().propertyValidator("required",CfnCaseRuleRequiredCaseRulePropertyValidator)(properties.required)),errors.wrap('supplied properties not correct for "CaseRuleDetailsProperty"')}function convertCfnCaseRuleCaseRuleDetailsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCaseRuleCaseRuleDetailsPropertyValidator(properties).assertSuccess(),{Hidden:convertCfnCaseRuleHiddenCaseRulePropertyToCloudFormation(properties.hidden),Required:convertCfnCaseRuleRequiredCaseRulePropertyToCloudFormation(properties.required)}):properties}function CfnCaseRuleCaseRuleDetailsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("hidden","Hidden",properties.Hidden!=null?CfnCaseRuleHiddenCaseRulePropertyFromCloudFormation(properties.Hidden):void 0),ret.addPropertyResult("required","Required",properties.Required!=null?CfnCaseRuleRequiredCaseRulePropertyFromCloudFormation(properties.Required):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCaseRulePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("domainId",cdk().validateString)(properties.domainId)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("rule",cdk().requiredValidator)(properties.rule)),errors.collect(cdk().propertyValidator("rule",CfnCaseRuleCaseRuleDetailsPropertyValidator)(properties.rule)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnCaseRuleProps"')}function convertCfnCaseRulePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCaseRulePropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),DomainId:cdk().stringToCloudFormation(properties.domainId),Name:cdk().stringToCloudFormation(properties.name),Rule:convertCfnCaseRuleCaseRuleDetailsPropertyToCloudFormation(properties.rule),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnCaseRulePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("domainId","DomainId",properties.DomainId!=null?cfn_parse().FromCloudFormation.getString(properties.DomainId):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("rule","Rule",properties.Rule!=null?CfnCaseRuleCaseRuleDetailsPropertyFromCloudFormation(properties.Rule):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDomain extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cases.CfnDomain",version:"2.234.1"};static CFN_RESOURCE_TYPE_NAME="AWS::Cases::Domain";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDomainPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnDomain(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnDomain(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnDomain.CFN_RESOURCE_TYPE_NAME}static arnForDomain(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cases_IDomainRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForDomain),error}return resource.domainRef.domainArn}attrCreatedTime;attrDomainArn;attrDomainId;attrDomainStatus;cdkTagManager;name;tags;constructor(scope,id,props){super(scope,id,{type:CfnDomain.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cases_CfnDomainProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDomain),error}cdk().requireProperty(props,"name",this),this.attrCreatedTime=cdk().Token.asString(this.getAtt("CreatedTime",cdk().ResolutionTypeHint.STRING)),this.attrDomainArn=cdk().Token.asString(this.getAtt("DomainArn",cdk().ResolutionTypeHint.STRING)),this.attrDomainId=cdk().Token.asString(this.getAtt("DomainId",cdk().ResolutionTypeHint.STRING)),this.attrDomainStatus=cdk().Token.asString(this.getAtt("DomainStatus",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Cases::Domain",void 0,{tagPropertyName:"tags"}),this.name=props.name,this.tags=props.tags}get domainRef(){return{domainArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),name:this.name}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnDomain.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnDomainPropsToCloudFormation(props)}}exports.CfnDomain=CfnDomain;function CfnDomainPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnDomainProps"')}function convertCfnDomainPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDomainPropsValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnDomainPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnField extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cases.CfnField",version:"2.234.1"};static CFN_RESOURCE_TYPE_NAME="AWS::Cases::Field";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFieldPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnField(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnField(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnField.CFN_RESOURCE_TYPE_NAME}static arnForField(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cases_IFieldRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForField),error}return resource.fieldRef.fieldArn}attrCreatedTime;attrFieldArn;attrFieldId;attrLastModifiedTime;attrNamespace;cdkTagManager;description;domainId;name;tags;type;constructor(scope,id,props){super(scope,id,{type:CfnField.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cases_CfnFieldProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnField),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"type",this),this.attrCreatedTime=cdk().Token.asString(this.getAtt("CreatedTime",cdk().ResolutionTypeHint.STRING)),this.attrFieldArn=cdk().Token.asString(this.getAtt("FieldArn",cdk().ResolutionTypeHint.STRING)),this.attrFieldId=cdk().Token.asString(this.getAtt("FieldId",cdk().ResolutionTypeHint.STRING)),this.attrLastModifiedTime=cdk().Token.asString(this.getAtt("LastModifiedTime",cdk().ResolutionTypeHint.STRING)),this.attrNamespace=cdk().Token.asString(this.getAtt("Namespace",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Cases::Field",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.domainId=props.domainId,this.name=props.name,this.tags=props.tags,this.type=props.type}get fieldRef(){return{fieldArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),description:this.description,domainId:this.domainId,name:this.name,type:this.type}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnField.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnFieldPropsToCloudFormation(props)}}exports.CfnField=CfnField;function CfnFieldPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("domainId",cdk().validateString)(properties.domainId)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnFieldProps"')}function convertCfnFieldPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFieldPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),DomainId:cdk().stringToCloudFormation(properties.domainId),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnFieldPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("domainId","DomainId",properties.DomainId!=null?cfn_parse().FromCloudFormation.getString(properties.DomainId):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLayout extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cases.CfnLayout",version:"2.234.1"};static CFN_RESOURCE_TYPE_NAME="AWS::Cases::Layout";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLayoutPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnLayout(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnLayout(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLayout.CFN_RESOURCE_TYPE_NAME}static arnForLayout(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cases_ILayoutRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForLayout),error}return resource.layoutRef.layoutArn}attrCreatedTime;attrLastModifiedTime;attrLayoutArn;attrLayoutId;cdkTagManager;content;domainId;name;tags;constructor(scope,id,props){super(scope,id,{type:CfnLayout.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cases_CfnLayoutProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLayout),error}cdk().requireProperty(props,"content",this),cdk().requireProperty(props,"name",this),this.attrCreatedTime=cdk().Token.asString(this.getAtt("CreatedTime",cdk().ResolutionTypeHint.STRING)),this.attrLastModifiedTime=cdk().Token.asString(this.getAtt("LastModifiedTime",cdk().ResolutionTypeHint.STRING)),this.attrLayoutArn=cdk().Token.asString(this.getAtt("LayoutArn",cdk().ResolutionTypeHint.STRING)),this.attrLayoutId=cdk().Token.asString(this.getAtt("LayoutId",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Cases::Layout",void 0,{tagPropertyName:"tags"}),this.content=props.content,this.domainId=props.domainId,this.name=props.name,this.tags=props.tags}get layoutRef(){return{layoutArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),content:this.content,domainId:this.domainId,name:this.name}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnLayout.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLayoutPropsToCloudFormation(props)}}exports.CfnLayout=CfnLayout;function CfnLayoutFieldItemPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("id",cdk().requiredValidator)(properties.id)),errors.collect(cdk().propertyValidator("id",cdk().validateString)(properties.id)),errors.wrap('supplied properties not correct for "FieldItemProperty"')}function convertCfnLayoutFieldItemPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayoutFieldItemPropertyValidator(properties).assertSuccess(),{Id:cdk().stringToCloudFormation(properties.id)}):properties}function CfnLayoutFieldItemPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("id","Id",properties.Id!=null?cfn_parse().FromCloudFormation.getString(properties.Id):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLayoutFieldGroupPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("fields",cdk().requiredValidator)(properties.fields)),errors.collect(cdk().propertyValidator("fields",cdk().listValidator(CfnLayoutFieldItemPropertyValidator))(properties.fields)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.wrap('supplied properties not correct for "FieldGroupProperty"')}function convertCfnLayoutFieldGroupPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayoutFieldGroupPropertyValidator(properties).assertSuccess(),{Fields:cdk().listMapper(convertCfnLayoutFieldItemPropertyToCloudFormation)(properties.fields),Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnLayoutFieldGroupPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("fields","Fields",properties.Fields!=null?cfn_parse().FromCloudFormation.getArray(CfnLayoutFieldItemPropertyFromCloudFormation)(properties.Fields):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLayoutSectionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("fieldGroup",cdk().requiredValidator)(properties.fieldGroup)),errors.collect(cdk().propertyValidator("fieldGroup",CfnLayoutFieldGroupPropertyValidator)(properties.fieldGroup)),errors.wrap('supplied properties not correct for "SectionProperty"')}function convertCfnLayoutSectionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayoutSectionPropertyValidator(properties).assertSuccess(),{FieldGroup:convertCfnLayoutFieldGroupPropertyToCloudFormation(properties.fieldGroup)}):properties}function CfnLayoutSectionPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("fieldGroup","FieldGroup",properties.FieldGroup!=null?CfnLayoutFieldGroupPropertyFromCloudFormation(properties.FieldGroup):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLayoutLayoutSectionsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("sections",cdk().listValidator(CfnLayoutSectionPropertyValidator))(properties.sections)),errors.wrap('supplied properties not correct for "LayoutSectionsProperty"')}function convertCfnLayoutLayoutSectionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayoutLayoutSectionsPropertyValidator(properties).assertSuccess(),{Sections:cdk().listMapper(convertCfnLayoutSectionPropertyToCloudFormation)(properties.sections)}):properties}function CfnLayoutLayoutSectionsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("sections","Sections",properties.Sections!=null?cfn_parse().FromCloudFormation.getArray(CfnLayoutSectionPropertyFromCloudFormation)(properties.Sections):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLayoutBasicLayoutPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("moreInfo",CfnLayoutLayoutSectionsPropertyValidator)(properties.moreInfo)),errors.collect(cdk().propertyValidator("topPanel",CfnLayoutLayoutSectionsPropertyValidator)(properties.topPanel)),errors.wrap('supplied properties not correct for "BasicLayoutProperty"')}function convertCfnLayoutBasicLayoutPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayoutBasicLayoutPropertyValidator(properties).assertSuccess(),{MoreInfo:convertCfnLayoutLayoutSectionsPropertyToCloudFormation(properties.moreInfo),TopPanel:convertCfnLayoutLayoutSectionsPropertyToCloudFormation(properties.topPanel)}):properties}function CfnLayoutBasicLayoutPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("moreInfo","MoreInfo",properties.MoreInfo!=null?CfnLayoutLayoutSectionsPropertyFromCloudFormation(properties.MoreInfo):void 0),ret.addPropertyResult("topPanel","TopPanel",properties.TopPanel!=null?CfnLayoutLayoutSectionsPropertyFromCloudFormation(properties.TopPanel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLayoutLayoutContentPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("basic",cdk().requiredValidator)(properties.basic)),errors.collect(cdk().propertyValidator("basic",CfnLayoutBasicLayoutPropertyValidator)(properties.basic)),errors.wrap('supplied properties not correct for "LayoutContentProperty"')}function convertCfnLayoutLayoutContentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayoutLayoutContentPropertyValidator(properties).assertSuccess(),{Basic:convertCfnLayoutBasicLayoutPropertyToCloudFormation(properties.basic)}):properties}function CfnLayoutLayoutContentPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("basic","Basic",properties.Basic!=null?CfnLayoutBasicLayoutPropertyFromCloudFormation(properties.Basic):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLayoutPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("content",cdk().requiredValidator)(properties.content)),errors.collect(cdk().propertyValidator("content",CfnLayoutLayoutContentPropertyValidator)(properties.content)),errors.collect(cdk().propertyValidator("domainId",cdk().validateString)(properties.domainId)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnLayoutProps"')}function convertCfnLayoutPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayoutPropsValidator(properties).assertSuccess(),{Content:convertCfnLayoutLayoutContentPropertyToCloudFormation(properties.content),DomainId:cdk().stringToCloudFormation(properties.domainId),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnLayoutPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("content","Content",properties.Content!=null?CfnLayoutLayoutContentPropertyFromCloudFormation(properties.Content):void 0),ret.addPropertyResult("domainId","DomainId",properties.DomainId!=null?cfn_parse().FromCloudFormation.getString(properties.DomainId):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnTemplate extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cases.CfnTemplate",version:"2.234.1"};static CFN_RESOURCE_TYPE_NAME="AWS::Cases::Template";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnTemplatePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnTemplate(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnTemplate(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnTemplate.CFN_RESOURCE_TYPE_NAME}static arnForTemplate(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cases_ITemplateRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForTemplate),error}return resource.templateRef.templateArn}attrCreatedTime;attrLastModifiedTime;attrTemplateArn;attrTemplateId;cdkTagManager;description;domainId;layoutConfiguration;name;requiredFields;rules;status;tags;constructor(scope,id,props){super(scope,id,{type:CfnTemplate.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cases_CfnTemplateProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnTemplate),error}cdk().requireProperty(props,"name",this),this.attrCreatedTime=cdk().Token.asString(this.getAtt("CreatedTime",cdk().ResolutionTypeHint.STRING)),this.attrLastModifiedTime=cdk().Token.asString(this.getAtt("LastModifiedTime",cdk().ResolutionTypeHint.STRING)),this.attrTemplateArn=cdk().Token.asString(this.getAtt("TemplateArn",cdk().ResolutionTypeHint.STRING)),this.attrTemplateId=cdk().Token.asString(this.getAtt("TemplateId",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Cases::Template",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.domainId=props.domainId,this.layoutConfiguration=props.layoutConfiguration,this.name=props.name,this.requiredFields=props.requiredFields,this.rules=props.rules,this.status=props.status,this.tags=props.tags}get templateRef(){return{templateArn:this.ref}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),description:this.description,domainId:this.domainId,layoutConfiguration:this.layoutConfiguration,name:this.name,requiredFields:this.requiredFields,rules:this.rules,status:this.status}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnTemplate.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnTemplatePropsToCloudFormation(props)}}exports.CfnTemplate=CfnTemplate;function CfnTemplateLayoutConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("defaultLayout",cdk().validateString)(properties.defaultLayout)),errors.wrap('supplied properties not correct for "LayoutConfigurationProperty"')}function convertCfnTemplateLayoutConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTemplateLayoutConfigurationPropertyValidator(properties).assertSuccess(),{DefaultLayout:cdk().stringToCloudFormation(properties.defaultLayout)}):properties}function CfnTemplateLayoutConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("defaultLayout","DefaultLayout",properties.De