aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 37.8 kB
JavaScript
"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnResponsePlan=exports.CfnReplicationSet=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");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 CfnReplicationSet extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnReplicationSetPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnReplicationSet(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}constructor(scope,id,props){super(scope,id,{type:CfnReplicationSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ssmincidents_CfnReplicationSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnReplicationSet),error}cdk().requireProperty(props,"regions",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.deletionProtected=props.deletionProtected,this.regions=props.regions,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::SSMIncidents::ReplicationSet",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{deletionProtected:this.deletionProtected,regions:this.regions,tags:this.tags.renderTags()}}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",CfnReplicationSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnReplicationSetPropsToCloudFormation(props)}}exports.CfnReplicationSet=CfnReplicationSet,_a=JSII_RTTI_SYMBOL_1,CfnReplicationSet[_a]={fqn:"aws-cdk-lib.aws_ssmincidents.CfnReplicationSet",version:"2.185.0"},CfnReplicationSet.CFN_RESOURCE_TYPE_NAME="AWS::SSMIncidents::ReplicationSet";function CfnReplicationSetRegionConfigurationPropertyValidator(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("sseKmsKeyId",cdk().requiredValidator)(properties.sseKmsKeyId)),errors.collect(cdk().propertyValidator("sseKmsKeyId",cdk().validateString)(properties.sseKmsKeyId)),errors.wrap('supplied properties not correct for "RegionConfigurationProperty"')}function convertCfnReplicationSetRegionConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnReplicationSetRegionConfigurationPropertyValidator(properties).assertSuccess(),{SseKmsKeyId:cdk().stringToCloudFormation(properties.sseKmsKeyId)}):properties}function CfnReplicationSetRegionConfigurationPropertyFromCloudFormation(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("sseKmsKeyId","SseKmsKeyId",properties.SseKmsKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.SseKmsKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnReplicationSetReplicationRegionPropertyValidator(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("regionConfiguration",CfnReplicationSetRegionConfigurationPropertyValidator)(properties.regionConfiguration)),errors.collect(cdk().propertyValidator("regionName",cdk().validateString)(properties.regionName)),errors.wrap('supplied properties not correct for "ReplicationRegionProperty"')}function convertCfnReplicationSetReplicationRegionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnReplicationSetReplicationRegionPropertyValidator(properties).assertSuccess(),{RegionConfiguration:convertCfnReplicationSetRegionConfigurationPropertyToCloudFormation(properties.regionConfiguration),RegionName:cdk().stringToCloudFormation(properties.regionName)}):properties}function CfnReplicationSetReplicationRegionPropertyFromCloudFormation(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("regionConfiguration","RegionConfiguration",properties.RegionConfiguration!=null?CfnReplicationSetRegionConfigurationPropertyFromCloudFormation(properties.RegionConfiguration):void 0),ret.addPropertyResult("regionName","RegionName",properties.RegionName!=null?cfn_parse().FromCloudFormation.getString(properties.RegionName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnReplicationSetPropsValidator(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("deletionProtected",cdk().validateBoolean)(properties.deletionProtected)),errors.collect(cdk().propertyValidator("regions",cdk().requiredValidator)(properties.regions)),errors.collect(cdk().propertyValidator("regions",cdk().listValidator(CfnReplicationSetReplicationRegionPropertyValidator))(properties.regions)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnReplicationSetProps"')}function convertCfnReplicationSetPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnReplicationSetPropsValidator(properties).assertSuccess(),{DeletionProtected:cdk().booleanToCloudFormation(properties.deletionProtected),Regions:cdk().listMapper(convertCfnReplicationSetReplicationRegionPropertyToCloudFormation)(properties.regions),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnReplicationSetPropsFromCloudFormation(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("deletionProtected","DeletionProtected",properties.DeletionProtected!=null?cfn_parse().FromCloudFormation.getBoolean(properties.DeletionProtected):void 0),ret.addPropertyResult("regions","Regions",properties.Regions!=null?cfn_parse().FromCloudFormation.getArray(CfnReplicationSetReplicationRegionPropertyFromCloudFormation)(properties.Regions):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 CfnResponsePlan extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResponsePlanPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnResponsePlan(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}constructor(scope,id,props){super(scope,id,{type:CfnResponsePlan.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ssmincidents_CfnResponsePlanProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResponsePlan),error}cdk().requireProperty(props,"incidentTemplate",this),cdk().requireProperty(props,"name",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.actions=props.actions,this.chatChannel=props.chatChannel,this.displayName=props.displayName,this.engagements=props.engagements,this.incidentTemplate=props.incidentTemplate,this.integrations=props.integrations,this.name=props.name,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::SSMIncidents::ResponsePlan",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{actions:this.actions,chatChannel:this.chatChannel,displayName:this.displayName,engagements:this.engagements,incidentTemplate:this.incidentTemplate,integrations:this.integrations,name:this.name,tags:this.tags.renderTags()}}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",CfnResponsePlan.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnResponsePlanPropsToCloudFormation(props)}}exports.CfnResponsePlan=CfnResponsePlan,_b=JSII_RTTI_SYMBOL_1,CfnResponsePlan[_b]={fqn:"aws-cdk-lib.aws_ssmincidents.CfnResponsePlan",version:"2.185.0"},CfnResponsePlan.CFN_RESOURCE_TYPE_NAME="AWS::SSMIncidents::ResponsePlan";function CfnResponsePlanChatChannelPropertyValidator(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("chatbotSns",cdk().listValidator(cdk().validateString))(properties.chatbotSns)),errors.wrap('supplied properties not correct for "ChatChannelProperty"')}function convertCfnResponsePlanChatChannelPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanChatChannelPropertyValidator(properties).assertSuccess(),{ChatbotSns:cdk().listMapper(cdk().stringToCloudFormation)(properties.chatbotSns)}):properties}function CfnResponsePlanChatChannelPropertyFromCloudFormation(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("chatbotSns","ChatbotSns",properties.ChatbotSns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ChatbotSns):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanPagerDutyIncidentConfigurationPropertyValidator(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("serviceId",cdk().requiredValidator)(properties.serviceId)),errors.collect(cdk().propertyValidator("serviceId",cdk().validateString)(properties.serviceId)),errors.wrap('supplied properties not correct for "PagerDutyIncidentConfigurationProperty"')}function convertCfnResponsePlanPagerDutyIncidentConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanPagerDutyIncidentConfigurationPropertyValidator(properties).assertSuccess(),{ServiceId:cdk().stringToCloudFormation(properties.serviceId)}):properties}function CfnResponsePlanPagerDutyIncidentConfigurationPropertyFromCloudFormation(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("serviceId","ServiceId",properties.ServiceId!=null?cfn_parse().FromCloudFormation.getString(properties.ServiceId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanPagerDutyConfigurationPropertyValidator(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("pagerDutyIncidentConfiguration",cdk().requiredValidator)(properties.pagerDutyIncidentConfiguration)),errors.collect(cdk().propertyValidator("pagerDutyIncidentConfiguration",CfnResponsePlanPagerDutyIncidentConfigurationPropertyValidator)(properties.pagerDutyIncidentConfiguration)),errors.collect(cdk().propertyValidator("secretId",cdk().requiredValidator)(properties.secretId)),errors.collect(cdk().propertyValidator("secretId",cdk().validateString)(properties.secretId)),errors.wrap('supplied properties not correct for "PagerDutyConfigurationProperty"')}function convertCfnResponsePlanPagerDutyConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanPagerDutyConfigurationPropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),PagerDutyIncidentConfiguration:convertCfnResponsePlanPagerDutyIncidentConfigurationPropertyToCloudFormation(properties.pagerDutyIncidentConfiguration),SecretId:cdk().stringToCloudFormation(properties.secretId)}):properties}function CfnResponsePlanPagerDutyConfigurationPropertyFromCloudFormation(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("pagerDutyIncidentConfiguration","PagerDutyIncidentConfiguration",properties.PagerDutyIncidentConfiguration!=null?CfnResponsePlanPagerDutyIncidentConfigurationPropertyFromCloudFormation(properties.PagerDutyIncidentConfiguration):void 0),ret.addPropertyResult("secretId","SecretId",properties.SecretId!=null?cfn_parse().FromCloudFormation.getString(properties.SecretId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanIntegrationPropertyValidator(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("pagerDutyConfiguration",cdk().requiredValidator)(properties.pagerDutyConfiguration)),errors.collect(cdk().propertyValidator("pagerDutyConfiguration",CfnResponsePlanPagerDutyConfigurationPropertyValidator)(properties.pagerDutyConfiguration)),errors.wrap('supplied properties not correct for "IntegrationProperty"')}function convertCfnResponsePlanIntegrationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanIntegrationPropertyValidator(properties).assertSuccess(),{PagerDutyConfiguration:convertCfnResponsePlanPagerDutyConfigurationPropertyToCloudFormation(properties.pagerDutyConfiguration)}):properties}function CfnResponsePlanIntegrationPropertyFromCloudFormation(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("pagerDutyConfiguration","PagerDutyConfiguration",properties.PagerDutyConfiguration!=null?CfnResponsePlanPagerDutyConfigurationPropertyFromCloudFormation(properties.PagerDutyConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanSsmParameterPropertyValidator(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("key",cdk().requiredValidator)(properties.key)),errors.collect(cdk().propertyValidator("key",cdk().validateString)(properties.key)),errors.collect(cdk().propertyValidator("values",cdk().requiredValidator)(properties.values)),errors.collect(cdk().propertyValidator("values",cdk().listValidator(cdk().validateString))(properties.values)),errors.wrap('supplied properties not correct for "SsmParameterProperty"')}function convertCfnResponsePlanSsmParameterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanSsmParameterPropertyValidator(properties).assertSuccess(),{Key:cdk().stringToCloudFormation(properties.key),Values:cdk().listMapper(cdk().stringToCloudFormation)(properties.values)}):properties}function CfnResponsePlanSsmParameterPropertyFromCloudFormation(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("key","Key",properties.Key!=null?cfn_parse().FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("values","Values",properties.Values!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Values):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanDynamicSsmParameterValuePropertyValidator(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("variable",cdk().validateString)(properties.variable)),errors.wrap('supplied properties not correct for "DynamicSsmParameterValueProperty"')}function convertCfnResponsePlanDynamicSsmParameterValuePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanDynamicSsmParameterValuePropertyValidator(properties).assertSuccess(),{Variable:cdk().stringToCloudFormation(properties.variable)}):properties}function CfnResponsePlanDynamicSsmParameterValuePropertyFromCloudFormation(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("variable","Variable",properties.Variable!=null?cfn_parse().FromCloudFormation.getString(properties.Variable):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanDynamicSsmParameterPropertyValidator(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("key",cdk().requiredValidator)(properties.key)),errors.collect(cdk().propertyValidator("key",cdk().validateString)(properties.key)),errors.collect(cdk().propertyValidator("value",cdk().requiredValidator)(properties.value)),errors.collect(cdk().propertyValidator("value",CfnResponsePlanDynamicSsmParameterValuePropertyValidator)(properties.value)),errors.wrap('supplied properties not correct for "DynamicSsmParameterProperty"')}function convertCfnResponsePlanDynamicSsmParameterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanDynamicSsmParameterPropertyValidator(properties).assertSuccess(),{Key:cdk().stringToCloudFormation(properties.key),Value:convertCfnResponsePlanDynamicSsmParameterValuePropertyToCloudFormation(properties.value)}):properties}function CfnResponsePlanDynamicSsmParameterPropertyFromCloudFormation(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("key","Key",properties.Key!=null?cfn_parse().FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?CfnResponsePlanDynamicSsmParameterValuePropertyFromCloudFormation(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanSsmAutomationPropertyValidator(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("documentName",cdk().requiredValidator)(properties.documentName)),errors.collect(cdk().propertyValidator("documentName",cdk().validateString)(properties.documentName)),errors.collect(cdk().propertyValidator("documentVersion",cdk().validateString)(properties.documentVersion)),errors.collect(cdk().propertyValidator("dynamicParameters",cdk().listValidator(CfnResponsePlanDynamicSsmParameterPropertyValidator))(properties.dynamicParameters)),errors.collect(cdk().propertyValidator("parameters",cdk().listValidator(CfnResponsePlanSsmParameterPropertyValidator))(properties.parameters)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("targetAccount",cdk().validateString)(properties.targetAccount)),errors.wrap('supplied properties not correct for "SsmAutomationProperty"')}function convertCfnResponsePlanSsmAutomationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanSsmAutomationPropertyValidator(properties).assertSuccess(),{DocumentName:cdk().stringToCloudFormation(properties.documentName),DocumentVersion:cdk().stringToCloudFormation(properties.documentVersion),DynamicParameters:cdk().listMapper(convertCfnResponsePlanDynamicSsmParameterPropertyToCloudFormation)(properties.dynamicParameters),Parameters:cdk().listMapper(convertCfnResponsePlanSsmParameterPropertyToCloudFormation)(properties.parameters),RoleArn:cdk().stringToCloudFormation(properties.roleArn),TargetAccount:cdk().stringToCloudFormation(properties.targetAccount)}):properties}function CfnResponsePlanSsmAutomationPropertyFromCloudFormation(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("documentName","DocumentName",properties.DocumentName!=null?cfn_parse().FromCloudFormation.getString(properties.DocumentName):void 0),ret.addPropertyResult("documentVersion","DocumentVersion",properties.DocumentVersion!=null?cfn_parse().FromCloudFormation.getString(properties.DocumentVersion):void 0),ret.addPropertyResult("dynamicParameters","DynamicParameters",properties.DynamicParameters!=null?cfn_parse().FromCloudFormation.getArray(CfnResponsePlanDynamicSsmParameterPropertyFromCloudFormation)(properties.DynamicParameters):void 0),ret.addPropertyResult("parameters","Parameters",properties.Parameters!=null?cfn_parse().FromCloudFormation.getArray(CfnResponsePlanSsmParameterPropertyFromCloudFormation)(properties.Parameters):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("targetAccount","TargetAccount",properties.TargetAccount!=null?cfn_parse().FromCloudFormation.getString(properties.TargetAccount):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanActionPropertyValidator(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("ssmAutomation",CfnResponsePlanSsmAutomationPropertyValidator)(properties.ssmAutomation)),errors.wrap('supplied properties not correct for "ActionProperty"')}function convertCfnResponsePlanActionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanActionPropertyValidator(properties).assertSuccess(),{SsmAutomation:convertCfnResponsePlanSsmAutomationPropertyToCloudFormation(properties.ssmAutomation)}):properties}function CfnResponsePlanActionPropertyFromCloudFormation(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("ssmAutomation","SsmAutomation",properties.SsmAutomation!=null?CfnResponsePlanSsmAutomationPropertyFromCloudFormation(properties.SsmAutomation):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanNotificationTargetItemPropertyValidator(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("snsTopicArn",cdk().validateString)(properties.snsTopicArn)),errors.wrap('supplied properties not correct for "NotificationTargetItemProperty"')}function convertCfnResponsePlanNotificationTargetItemPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanNotificationTargetItemPropertyValidator(properties).assertSuccess(),{SnsTopicArn:cdk().stringToCloudFormation(properties.snsTopicArn)}):properties}function CfnResponsePlanNotificationTargetItemPropertyFromCloudFormation(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("snsTopicArn","SnsTopicArn",properties.SnsTopicArn!=null?cfn_parse().FromCloudFormation.getString(properties.SnsTopicArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanIncidentTemplatePropertyValidator(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("dedupeString",cdk().validateString)(properties.dedupeString)),errors.collect(cdk().propertyValidator("impact",cdk().requiredValidator)(properties.impact)),errors.collect(cdk().propertyValidator("impact",cdk().validateNumber)(properties.impact)),errors.collect(cdk().propertyValidator("incidentTags",cdk().listValidator(cdk().validateCfnTag))(properties.incidentTags)),errors.collect(cdk().propertyValidator("notificationTargets",cdk().listValidator(CfnResponsePlanNotificationTargetItemPropertyValidator))(properties.notificationTargets)),errors.collect(cdk().propertyValidator("summary",cdk().validateString)(properties.summary)),errors.collect(cdk().propertyValidator("title",cdk().requiredValidator)(properties.title)),errors.collect(cdk().propertyValidator("title",cdk().validateString)(properties.title)),errors.wrap('supplied properties not correct for "IncidentTemplateProperty"')}function convertCfnResponsePlanIncidentTemplatePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanIncidentTemplatePropertyValidator(properties).assertSuccess(),{DedupeString:cdk().stringToCloudFormation(properties.dedupeString),Impact:cdk().numberToCloudFormation(properties.impact),IncidentTags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.incidentTags),NotificationTargets:cdk().listMapper(convertCfnResponsePlanNotificationTargetItemPropertyToCloudFormation)(properties.notificationTargets),Summary:cdk().stringToCloudFormation(properties.summary),Title:cdk().stringToCloudFormation(properties.title)}):properties}function CfnResponsePlanIncidentTemplatePropertyFromCloudFormation(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("dedupeString","DedupeString",properties.DedupeString!=null?cfn_parse().FromCloudFormation.getString(properties.DedupeString):void 0),ret.addPropertyResult("impact","Impact",properties.Impact!=null?cfn_parse().FromCloudFormation.getNumber(properties.Impact):void 0),ret.addPropertyResult("incidentTags","IncidentTags",properties.IncidentTags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.IncidentTags):void 0),ret.addPropertyResult("notificationTargets","NotificationTargets",properties.NotificationTargets!=null?cfn_parse().FromCloudFormation.getArray(CfnResponsePlanNotificationTargetItemPropertyFromCloudFormation)(properties.NotificationTargets):void 0),ret.addPropertyResult("summary","Summary",properties.Summary!=null?cfn_parse().FromCloudFormation.getString(properties.Summary):void 0),ret.addPropertyResult("title","Title",properties.Title!=null?cfn_parse().FromCloudFormation.getString(properties.Title):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResponsePlanPropsValidator(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("actions",cdk().listValidator(CfnResponsePlanActionPropertyValidator))(properties.actions)),errors.collect(cdk().propertyValidator("chatChannel",CfnResponsePlanChatChannelPropertyValidator)(properties.chatChannel)),errors.collect(cdk().propertyValidator("displayName",cdk().validateString)(properties.displayName)),errors.collect(cdk().propertyValidator("engagements",cdk().listValidator(cdk().validateString))(properties.engagements)),errors.collect(cdk().propertyValidator("incidentTemplate",cdk().requiredValidator)(properties.incidentTemplate)),errors.collect(cdk().propertyValidator("incidentTemplate",CfnResponsePlanIncidentTemplatePropertyValidator)(properties.incidentTemplate)),errors.collect(cdk().propertyValidator("integrations",cdk().listValidator(CfnResponsePlanIntegrationPropertyValidator))(properties.integrations)),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 "CfnResponsePlanProps"')}function convertCfnResponsePlanPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResponsePlanPropsValidator(properties).assertSuccess(),{Actions:cdk().listMapper(convertCfnResponsePlanActionPropertyToCloudFormation)(properties.actions),ChatChannel:convertCfnResponsePlanChatChannelPropertyToCloudFormation(properties.chatChannel),DisplayName:cdk().stringToCloudFormation(properties.displayName),Engagements:cdk().listMapper(cdk().stringToCloudFormation)(properties.engagements),IncidentTemplate:convertCfnResponsePlanIncidentTemplatePropertyToCloudFormation(properties.incidentTemplate),Integrations:cdk().listMapper(convertCfnResponsePlanIntegrationPropertyToCloudFormation)(properties.integrations),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnResponsePlanPropsFromCloudFormation(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("actions","Actions",properties.Actions!=null?cfn_parse().FromCloudFormation.getArray(CfnResponsePlanActionPropertyFromCloudFormation)(properties.Actions):void 0),ret.addPropertyResult("chatChannel","ChatChannel",properties.ChatChannel!=null?CfnResponsePlanChatChannelPropertyFromCloudFormation(properties.ChatChannel):void 0),ret.addPropertyResult("displayName","DisplayName",properties.DisplayName!=null?cfn_parse().FromCloudFormation.getString(properties.DisplayName):void 0),ret.addPropertyResult("engagements","Engagements",properties.Engagements!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Engagements):void 0),ret.addPropertyResult("incidentTemplate","IncidentTemplate",properties.IncidentTemplate!=null?CfnResponsePlanIncidentTemplatePropertyFromCloudFormation(properties.IncidentTemplate):void 0),ret.addPropertyResult("integrations","Integrations",properties.Integrations!=null?cfn_parse().FromCloudFormation.getArray(CfnResponsePlanIntegrationPropertyFromCloudFormation)(properties.Integrations):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}