UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 43.5 kB
"use strict";var _a,_b,_c,_d,_e,_f;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnHostedConfigurationVersion=exports.CfnEnvironment=exports.CfnDeploymentStrategy=exports.CfnDeployment=exports.CfnConfigurationProfile=exports.CfnApplication=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnApplicationPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnApplication_TagsPropertyValidator))(properties.tags)),errors.wrap('supplied properties not correct for "CfnApplicationProps"')}function cfnApplicationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnApplicationPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Description:cdk.stringToCloudFormation(properties.description),Tags:cdk.listMapper(cfnApplicationTagsPropertyToCloudFormation)(properties.tags)}):properties}function CfnApplicationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnApplicationTagsPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnApplication extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnApplication.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_appconfig_CfnApplicationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnApplication),error}cdk.requireProperty(props,"name",this),this.name=props.name,this.description=props.description,this.tags=props.tags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnApplicationPropsFromCloudFormation(resourceProperties),ret=new CfnApplication(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}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",CfnApplication.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,description:this.description,tags:this.tags}}renderProperties(props){return cfnApplicationPropsToCloudFormation(props)}}exports.CfnApplication=CfnApplication,_a=JSII_RTTI_SYMBOL_1,CfnApplication[_a]={fqn:"aws-cdk-lib.aws_appconfig.CfnApplication",version:"2.70.0"},CfnApplication.CFN_RESOURCE_TYPE_NAME="AWS::AppConfig::Application";function CfnApplication_TagsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsProperty"')}function cfnApplicationTagsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnApplication_TagsPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnApplicationTagsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")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?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConfigurationProfilePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("applicationId",cdk.requiredValidator)(properties.applicationId)),errors.collect(cdk.propertyValidator("applicationId",cdk.validateString)(properties.applicationId)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("locationUri",cdk.requiredValidator)(properties.locationUri)),errors.collect(cdk.propertyValidator("locationUri",cdk.validateString)(properties.locationUri)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("retrievalRoleArn",cdk.validateString)(properties.retrievalRoleArn)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnConfigurationProfile_TagsPropertyValidator))(properties.tags)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.collect(cdk.propertyValidator("validators",cdk.listValidator(CfnConfigurationProfile_ValidatorsPropertyValidator))(properties.validators)),errors.wrap('supplied properties not correct for "CfnConfigurationProfileProps"')}function cfnConfigurationProfilePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigurationProfilePropsValidator(properties).assertSuccess(),{ApplicationId:cdk.stringToCloudFormation(properties.applicationId),LocationUri:cdk.stringToCloudFormation(properties.locationUri),Name:cdk.stringToCloudFormation(properties.name),Description:cdk.stringToCloudFormation(properties.description),RetrievalRoleArn:cdk.stringToCloudFormation(properties.retrievalRoleArn),Tags:cdk.listMapper(cfnConfigurationProfileTagsPropertyToCloudFormation)(properties.tags),Type:cdk.stringToCloudFormation(properties.type),Validators:cdk.listMapper(cfnConfigurationProfileValidatorsPropertyToCloudFormation)(properties.validators)}):properties}function CfnConfigurationProfilePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("applicationId","ApplicationId",cfn_parse.FromCloudFormation.getString(properties.ApplicationId)),ret.addPropertyResult("locationUri","LocationUri",cfn_parse.FromCloudFormation.getString(properties.LocationUri)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("retrievalRoleArn","RetrievalRoleArn",properties.RetrievalRoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.RetrievalRoleArn):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnConfigurationProfileTagsPropertyFromCloudFormation)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("validators","Validators",properties.Validators!=null?cfn_parse.FromCloudFormation.getArray(CfnConfigurationProfileValidatorsPropertyFromCloudFormation)(properties.Validators):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConfigurationProfile extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnConfigurationProfile.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_appconfig_CfnConfigurationProfileProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConfigurationProfile),error}cdk.requireProperty(props,"applicationId",this),cdk.requireProperty(props,"locationUri",this),cdk.requireProperty(props,"name",this),this.applicationId=props.applicationId,this.locationUri=props.locationUri,this.name=props.name,this.description=props.description,this.retrievalRoleArn=props.retrievalRoleArn,this.tags=props.tags,this.type=props.type,this.validators=props.validators}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConfigurationProfilePropsFromCloudFormation(resourceProperties),ret=new CfnConfigurationProfile(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}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",CfnConfigurationProfile.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{applicationId:this.applicationId,locationUri:this.locationUri,name:this.name,description:this.description,retrievalRoleArn:this.retrievalRoleArn,tags:this.tags,type:this.type,validators:this.validators}}renderProperties(props){return cfnConfigurationProfilePropsToCloudFormation(props)}}exports.CfnConfigurationProfile=CfnConfigurationProfile,_b=JSII_RTTI_SYMBOL_1,CfnConfigurationProfile[_b]={fqn:"aws-cdk-lib.aws_appconfig.CfnConfigurationProfile",version:"2.70.0"},CfnConfigurationProfile.CFN_RESOURCE_TYPE_NAME="AWS::AppConfig::ConfigurationProfile";function CfnConfigurationProfile_TagsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsProperty"')}function cfnConfigurationProfileTagsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigurationProfile_TagsPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnConfigurationProfileTagsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")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?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConfigurationProfile_ValidatorsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("content",cdk.validateString)(properties.content)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "ValidatorsProperty"')}function cfnConfigurationProfileValidatorsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConfigurationProfile_ValidatorsPropertyValidator(properties).assertSuccess(),{Content:cdk.stringToCloudFormation(properties.content),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnConfigurationProfileValidatorsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("content","Content",properties.Content!=null?cfn_parse.FromCloudFormation.getString(properties.Content):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("applicationId",cdk.requiredValidator)(properties.applicationId)),errors.collect(cdk.propertyValidator("applicationId",cdk.validateString)(properties.applicationId)),errors.collect(cdk.propertyValidator("configurationProfileId",cdk.requiredValidator)(properties.configurationProfileId)),errors.collect(cdk.propertyValidator("configurationProfileId",cdk.validateString)(properties.configurationProfileId)),errors.collect(cdk.propertyValidator("configurationVersion",cdk.requiredValidator)(properties.configurationVersion)),errors.collect(cdk.propertyValidator("configurationVersion",cdk.validateString)(properties.configurationVersion)),errors.collect(cdk.propertyValidator("deploymentStrategyId",cdk.requiredValidator)(properties.deploymentStrategyId)),errors.collect(cdk.propertyValidator("deploymentStrategyId",cdk.validateString)(properties.deploymentStrategyId)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("environmentId",cdk.requiredValidator)(properties.environmentId)),errors.collect(cdk.propertyValidator("environmentId",cdk.validateString)(properties.environmentId)),errors.collect(cdk.propertyValidator("kmsKeyIdentifier",cdk.validateString)(properties.kmsKeyIdentifier)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnDeployment_TagsPropertyValidator))(properties.tags)),errors.wrap('supplied properties not correct for "CfnDeploymentProps"')}function cfnDeploymentPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentPropsValidator(properties).assertSuccess(),{ApplicationId:cdk.stringToCloudFormation(properties.applicationId),ConfigurationProfileId:cdk.stringToCloudFormation(properties.configurationProfileId),ConfigurationVersion:cdk.stringToCloudFormation(properties.configurationVersion),DeploymentStrategyId:cdk.stringToCloudFormation(properties.deploymentStrategyId),EnvironmentId:cdk.stringToCloudFormation(properties.environmentId),Description:cdk.stringToCloudFormation(properties.description),KmsKeyIdentifier:cdk.stringToCloudFormation(properties.kmsKeyIdentifier),Tags:cdk.listMapper(cfnDeploymentTagsPropertyToCloudFormation)(properties.tags)}):properties}function CfnDeploymentPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("applicationId","ApplicationId",cfn_parse.FromCloudFormation.getString(properties.ApplicationId)),ret.addPropertyResult("configurationProfileId","ConfigurationProfileId",cfn_parse.FromCloudFormation.getString(properties.ConfigurationProfileId)),ret.addPropertyResult("configurationVersion","ConfigurationVersion",cfn_parse.FromCloudFormation.getString(properties.ConfigurationVersion)),ret.addPropertyResult("deploymentStrategyId","DeploymentStrategyId",cfn_parse.FromCloudFormation.getString(properties.DeploymentStrategyId)),ret.addPropertyResult("environmentId","EnvironmentId",cfn_parse.FromCloudFormation.getString(properties.EnvironmentId)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("kmsKeyIdentifier","KmsKeyIdentifier",properties.KmsKeyIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyIdentifier):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentTagsPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDeployment extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDeployment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_appconfig_CfnDeploymentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDeployment),error}cdk.requireProperty(props,"applicationId",this),cdk.requireProperty(props,"configurationProfileId",this),cdk.requireProperty(props,"configurationVersion",this),cdk.requireProperty(props,"deploymentStrategyId",this),cdk.requireProperty(props,"environmentId",this),this.applicationId=props.applicationId,this.configurationProfileId=props.configurationProfileId,this.configurationVersion=props.configurationVersion,this.deploymentStrategyId=props.deploymentStrategyId,this.environmentId=props.environmentId,this.description=props.description,this.kmsKeyIdentifier=props.kmsKeyIdentifier,this.tags=props.tags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeploymentPropsFromCloudFormation(resourceProperties),ret=new CfnDeployment(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}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",CfnDeployment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{applicationId:this.applicationId,configurationProfileId:this.configurationProfileId,configurationVersion:this.configurationVersion,deploymentStrategyId:this.deploymentStrategyId,environmentId:this.environmentId,description:this.description,kmsKeyIdentifier:this.kmsKeyIdentifier,tags:this.tags}}renderProperties(props){return cfnDeploymentPropsToCloudFormation(props)}}exports.CfnDeployment=CfnDeployment,_c=JSII_RTTI_SYMBOL_1,CfnDeployment[_c]={fqn:"aws-cdk-lib.aws_appconfig.CfnDeployment",version:"2.70.0"},CfnDeployment.CFN_RESOURCE_TYPE_NAME="AWS::AppConfig::Deployment";function CfnDeployment_TagsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsProperty"')}function cfnDeploymentTagsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeployment_TagsPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnDeploymentTagsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")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?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeploymentStrategyPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("deploymentDurationInMinutes",cdk.requiredValidator)(properties.deploymentDurationInMinutes)),errors.collect(cdk.propertyValidator("deploymentDurationInMinutes",cdk.validateNumber)(properties.deploymentDurationInMinutes)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("finalBakeTimeInMinutes",cdk.validateNumber)(properties.finalBakeTimeInMinutes)),errors.collect(cdk.propertyValidator("growthFactor",cdk.requiredValidator)(properties.growthFactor)),errors.collect(cdk.propertyValidator("growthFactor",cdk.validateNumber)(properties.growthFactor)),errors.collect(cdk.propertyValidator("growthType",cdk.validateString)(properties.growthType)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("replicateTo",cdk.requiredValidator)(properties.replicateTo)),errors.collect(cdk.propertyValidator("replicateTo",cdk.validateString)(properties.replicateTo)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnDeploymentStrategy_TagsPropertyValidator))(properties.tags)),errors.wrap('supplied properties not correct for "CfnDeploymentStrategyProps"')}function cfnDeploymentStrategyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentStrategyPropsValidator(properties).assertSuccess(),{DeploymentDurationInMinutes:cdk.numberToCloudFormation(properties.deploymentDurationInMinutes),GrowthFactor:cdk.numberToCloudFormation(properties.growthFactor),Name:cdk.stringToCloudFormation(properties.name),ReplicateTo:cdk.stringToCloudFormation(properties.replicateTo),Description:cdk.stringToCloudFormation(properties.description),FinalBakeTimeInMinutes:cdk.numberToCloudFormation(properties.finalBakeTimeInMinutes),GrowthType:cdk.stringToCloudFormation(properties.growthType),Tags:cdk.listMapper(cfnDeploymentStrategyTagsPropertyToCloudFormation)(properties.tags)}):properties}function CfnDeploymentStrategyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("deploymentDurationInMinutes","DeploymentDurationInMinutes",cfn_parse.FromCloudFormation.getNumber(properties.DeploymentDurationInMinutes)),ret.addPropertyResult("growthFactor","GrowthFactor",cfn_parse.FromCloudFormation.getNumber(properties.GrowthFactor)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("replicateTo","ReplicateTo",cfn_parse.FromCloudFormation.getString(properties.ReplicateTo)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("finalBakeTimeInMinutes","FinalBakeTimeInMinutes",properties.FinalBakeTimeInMinutes!=null?cfn_parse.FromCloudFormation.getNumber(properties.FinalBakeTimeInMinutes):void 0),ret.addPropertyResult("growthType","GrowthType",properties.GrowthType!=null?cfn_parse.FromCloudFormation.getString(properties.GrowthType):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentStrategyTagsPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDeploymentStrategy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDeploymentStrategy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_appconfig_CfnDeploymentStrategyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDeploymentStrategy),error}cdk.requireProperty(props,"deploymentDurationInMinutes",this),cdk.requireProperty(props,"growthFactor",this),cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"replicateTo",this),this.deploymentDurationInMinutes=props.deploymentDurationInMinutes,this.growthFactor=props.growthFactor,this.name=props.name,this.replicateTo=props.replicateTo,this.description=props.description,this.finalBakeTimeInMinutes=props.finalBakeTimeInMinutes,this.growthType=props.growthType,this.tags=props.tags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeploymentStrategyPropsFromCloudFormation(resourceProperties),ret=new CfnDeploymentStrategy(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}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",CfnDeploymentStrategy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{deploymentDurationInMinutes:this.deploymentDurationInMinutes,growthFactor:this.growthFactor,name:this.name,replicateTo:this.replicateTo,description:this.description,finalBakeTimeInMinutes:this.finalBakeTimeInMinutes,growthType:this.growthType,tags:this.tags}}renderProperties(props){return cfnDeploymentStrategyPropsToCloudFormation(props)}}exports.CfnDeploymentStrategy=CfnDeploymentStrategy,_d=JSII_RTTI_SYMBOL_1,CfnDeploymentStrategy[_d]={fqn:"aws-cdk-lib.aws_appconfig.CfnDeploymentStrategy",version:"2.70.0"},CfnDeploymentStrategy.CFN_RESOURCE_TYPE_NAME="AWS::AppConfig::DeploymentStrategy";function CfnDeploymentStrategy_TagsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsProperty"')}function cfnDeploymentStrategyTagsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentStrategy_TagsPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnDeploymentStrategyTagsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")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?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEnvironmentPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("applicationId",cdk.requiredValidator)(properties.applicationId)),errors.collect(cdk.propertyValidator("applicationId",cdk.validateString)(properties.applicationId)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("monitors",cdk.listValidator(CfnEnvironment_MonitorsPropertyValidator))(properties.monitors)),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(CfnEnvironment_TagsPropertyValidator))(properties.tags)),errors.wrap('supplied properties not correct for "CfnEnvironmentProps"')}function cfnEnvironmentPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnEnvironmentPropsValidator(properties).assertSuccess(),{ApplicationId:cdk.stringToCloudFormation(properties.applicationId),Name:cdk.stringToCloudFormation(properties.name),Description:cdk.stringToCloudFormation(properties.description),Monitors:cdk.listMapper(cfnEnvironmentMonitorsPropertyToCloudFormation)(properties.monitors),Tags:cdk.listMapper(cfnEnvironmentTagsPropertyToCloudFormation)(properties.tags)}):properties}function CfnEnvironmentPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("applicationId","ApplicationId",cfn_parse.FromCloudFormation.getString(properties.ApplicationId)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("monitors","Monitors",properties.Monitors!=null?cfn_parse.FromCloudFormation.getArray(CfnEnvironmentMonitorsPropertyFromCloudFormation)(properties.Monitors):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnEnvironmentTagsPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnEnvironment extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnEnvironment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_appconfig_CfnEnvironmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnEnvironment),error}cdk.requireProperty(props,"applicationId",this),cdk.requireProperty(props,"name",this),this.applicationId=props.applicationId,this.name=props.name,this.description=props.description,this.monitors=props.monitors,this.tags=props.tags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnEnvironmentPropsFromCloudFormation(resourceProperties),ret=new CfnEnvironment(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}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",CfnEnvironment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{applicationId:this.applicationId,name:this.name,description:this.description,monitors:this.monitors,tags:this.tags}}renderProperties(props){return cfnEnvironmentPropsToCloudFormation(props)}}exports.CfnEnvironment=CfnEnvironment,_e=JSII_RTTI_SYMBOL_1,CfnEnvironment[_e]={fqn:"aws-cdk-lib.aws_appconfig.CfnEnvironment",version:"2.70.0"},CfnEnvironment.CFN_RESOURCE_TYPE_NAME="AWS::AppConfig::Environment";function CfnEnvironment_MonitorsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("alarmArn",cdk.validateString)(properties.alarmArn)),errors.collect(cdk.propertyValidator("alarmRoleArn",cdk.validateString)(properties.alarmRoleArn)),errors.wrap('supplied properties not correct for "MonitorsProperty"')}function cfnEnvironmentMonitorsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnEnvironment_MonitorsPropertyValidator(properties).assertSuccess(),{AlarmArn:cdk.stringToCloudFormation(properties.alarmArn),AlarmRoleArn:cdk.stringToCloudFormation(properties.alarmRoleArn)}):properties}function CfnEnvironmentMonitorsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("alarmArn","AlarmArn",properties.AlarmArn!=null?cfn_parse.FromCloudFormation.getString(properties.AlarmArn):void 0),ret.addPropertyResult("alarmRoleArn","AlarmRoleArn",properties.AlarmRoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.AlarmRoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEnvironment_TagsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsProperty"')}function cfnEnvironmentTagsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnEnvironment_TagsPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnEnvironmentTagsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")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?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnHostedConfigurationVersionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("applicationId",cdk.requiredValidator)(properties.applicationId)),errors.collect(cdk.propertyValidator("applicationId",cdk.validateString)(properties.applicationId)),errors.collect(cdk.propertyValidator("configurationProfileId",cdk.requiredValidator)(properties.configurationProfileId)),errors.collect(cdk.propertyValidator("configurationProfileId",cdk.validateString)(properties.configurationProfileId)),errors.collect(cdk.propertyValidator("content",cdk.requiredValidator)(properties.content)),errors.collect(cdk.propertyValidator("content",cdk.validateString)(properties.content)),errors.collect(cdk.propertyValidator("contentType",cdk.requiredValidator)(properties.contentType)),errors.collect(cdk.propertyValidator("contentType",cdk.validateString)(properties.contentType)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("latestVersionNumber",cdk.validateNumber)(properties.latestVersionNumber)),errors.collect(cdk.propertyValidator("versionLabel",cdk.validateString)(properties.versionLabel)),errors.wrap('supplied properties not correct for "CfnHostedConfigurationVersionProps"')}function cfnHostedConfigurationVersionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHostedConfigurationVersionPropsValidator(properties).assertSuccess(),{ApplicationId:cdk.stringToCloudFormation(properties.applicationId),ConfigurationProfileId:cdk.stringToCloudFormation(properties.configurationProfileId),Content:cdk.stringToCloudFormation(properties.content),ContentType:cdk.stringToCloudFormation(properties.contentType),Description:cdk.stringToCloudFormation(properties.description),LatestVersionNumber:cdk.numberToCloudFormation(properties.latestVersionNumber),VersionLabel:cdk.stringToCloudFormation(properties.versionLabel)}):properties}function CfnHostedConfigurationVersionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("applicationId","ApplicationId",cfn_parse.FromCloudFormation.getString(properties.ApplicationId)),ret.addPropertyResult("configurationProfileId","ConfigurationProfileId",cfn_parse.FromCloudFormation.getString(properties.ConfigurationProfileId)),ret.addPropertyResult("content","Content",cfn_parse.FromCloudFormation.getString(properties.Content)),ret.addPropertyResult("contentType","ContentType",cfn_parse.FromCloudFormation.getString(properties.ContentType)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("latestVersionNumber","LatestVersionNumber",properties.LatestVersionNumber!=null?cfn_parse.FromCloudFormation.getNumber(properties.LatestVersionNumber):void 0),ret.addPropertyResult("versionLabel","VersionLabel",properties.VersionLabel!=null?cfn_parse.FromCloudFormation.getString(properties.VersionLabel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnHostedConfigurationVersion extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnHostedConfigurationVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_appconfig_CfnHostedConfigurationVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnHostedConfigurationVersion),error}cdk.requireProperty(props,"applicationId",this),cdk.requireProperty(props,"configurationProfileId",this),cdk.requireProperty(props,"content",this),cdk.requireProperty(props,"contentType",this),this.applicationId=props.applicationId,this.configurationProfileId=props.configurationProfileId,this.content=props.content,this.contentType=props.contentType,this.description=props.description,this.latestVersionNumber=props.latestVersionNumber,this.versionLabel=props.versionLabel}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHostedConfigurationVersionPropsFromCloudFormation(resourceProperties),ret=new CfnHostedConfigurationVersion(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}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",CfnHostedConfigurationVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{applicationId:this.applicationId,configurationProfileId:this.configurationProfileId,content:this.content,contentType:this.contentType,description:this.description,latestVersionNumber:this.latestVersionNumber,versionLabel:this.versionLabel}}renderProperties(props){return cfnHostedConfigurationVersionPropsToCloudFormation(props)}}exports.CfnHostedConfigurationVersion=CfnHostedConfigurationVersion,_f=JSII_RTTI_SYMBOL_1,CfnHostedConfigurationVersion[_f]={fqn:"aws-cdk-lib.aws_appconfig.CfnHostedConfigurationVersion",version:"2.70.0"},CfnHostedConfigurationVersion.CFN_RESOURCE_TYPE_NAME="AWS::AppConfig::HostedConfigurationVersion";