UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 186 kB
"use strict";var _a,_b,_c,_d,_e,_f;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWarmPool=exports.CfnScheduledAction=exports.CfnScalingPolicy=exports.CfnLifecycleHook=exports.CfnLaunchConfiguration=exports.CfnAutoScalingGroup=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 CfnAutoScalingGroup extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAutoScalingGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnAutoScalingGroup(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:CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_autoscaling_CfnAutoScalingGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAutoScalingGroup),error}cdk().requireProperty(props,"maxSize",this),cdk().requireProperty(props,"minSize",this),this.autoScalingGroupName=props.autoScalingGroupName,this.availabilityZoneDistribution=props.availabilityZoneDistribution,this.availabilityZoneImpairmentPolicy=props.availabilityZoneImpairmentPolicy,this.availabilityZones=props.availabilityZones,this.capacityRebalance=props.capacityRebalance,this.capacityReservationSpecification=props.capacityReservationSpecification,this.context=props.context,this.cooldown=props.cooldown,this.defaultInstanceWarmup=props.defaultInstanceWarmup,this.desiredCapacity=props.desiredCapacity,this.desiredCapacityType=props.desiredCapacityType,this.healthCheckGracePeriod=props.healthCheckGracePeriod,this.healthCheckType=props.healthCheckType,this.instanceId=props.instanceId,this.instanceMaintenancePolicy=props.instanceMaintenancePolicy,this.launchConfigurationName=props.launchConfigurationName,this.launchTemplate=props.launchTemplate,this.lifecycleHookSpecificationList=props.lifecycleHookSpecificationList,this.loadBalancerNames=props.loadBalancerNames,this.maxInstanceLifetime=props.maxInstanceLifetime,this.maxSize=props.maxSize,this.metricsCollection=props.metricsCollection,this.minSize=props.minSize,this.mixedInstancesPolicy=props.mixedInstancesPolicy,this.newInstancesProtectedFromScaleIn=props.newInstancesProtectedFromScaleIn,this.notificationConfiguration=props.notificationConfiguration,this.notificationConfigurations=props.notificationConfigurations,this.placementGroup=props.placementGroup,this.serviceLinkedRoleArn=props.serviceLinkedRoleArn,this.skipZonalShiftValidation=props.skipZonalShiftValidation,this.tags=new(cdk()).TagManager(cdk().TagType.AUTOSCALING_GROUP,"AWS::AutoScaling::AutoScalingGroup",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.targetGroupArns=props.targetGroupArns,this.terminationPolicies=props.terminationPolicies,this.trafficSources=props.trafficSources,this.vpcZoneIdentifier=props.vpcZoneIdentifier}get cfnProperties(){return{autoScalingGroupName:this.autoScalingGroupName,availabilityZoneDistribution:this.availabilityZoneDistribution,availabilityZoneImpairmentPolicy:this.availabilityZoneImpairmentPolicy,availabilityZones:this.availabilityZones,capacityRebalance:this.capacityRebalance,capacityReservationSpecification:this.capacityReservationSpecification,context:this.context,cooldown:this.cooldown,defaultInstanceWarmup:this.defaultInstanceWarmup,desiredCapacity:this.desiredCapacity,desiredCapacityType:this.desiredCapacityType,healthCheckGracePeriod:this.healthCheckGracePeriod,healthCheckType:this.healthCheckType,instanceId:this.instanceId,instanceMaintenancePolicy:this.instanceMaintenancePolicy,launchConfigurationName:this.launchConfigurationName,launchTemplate:this.launchTemplate,lifecycleHookSpecificationList:this.lifecycleHookSpecificationList,loadBalancerNames:this.loadBalancerNames,maxInstanceLifetime:this.maxInstanceLifetime,maxSize:this.maxSize,metricsCollection:this.metricsCollection,minSize:this.minSize,mixedInstancesPolicy:this.mixedInstancesPolicy,newInstancesProtectedFromScaleIn:this.newInstancesProtectedFromScaleIn,notificationConfiguration:this.notificationConfiguration,notificationConfigurations:this.notificationConfigurations,placementGroup:this.placementGroup,serviceLinkedRoleArn:this.serviceLinkedRoleArn,skipZonalShiftValidation:this.skipZonalShiftValidation,tags:this.tags.renderTags(),targetGroupArns:this.targetGroupArns,terminationPolicies:this.terminationPolicies,trafficSources:this.trafficSources,vpcZoneIdentifier:this.vpcZoneIdentifier}}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",CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAutoScalingGroupPropsToCloudFormation(props)}}exports.CfnAutoScalingGroup=CfnAutoScalingGroup,_a=JSII_RTTI_SYMBOL_1,CfnAutoScalingGroup[_a]={fqn:"aws-cdk-lib.aws_autoscaling.CfnAutoScalingGroup",version:"2.185.0"},CfnAutoScalingGroup.CFN_RESOURCE_TYPE_NAME="AWS::AutoScaling::AutoScalingGroup";function CfnAutoScalingGroupLaunchTemplateSpecificationPropertyValidator(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("launchTemplateId",cdk().validateString)(properties.launchTemplateId)),errors.collect(cdk().propertyValidator("launchTemplateName",cdk().validateString)(properties.launchTemplateName)),errors.collect(cdk().propertyValidator("version",cdk().requiredValidator)(properties.version)),errors.collect(cdk().propertyValidator("version",cdk().validateString)(properties.version)),errors.wrap('supplied properties not correct for "LaunchTemplateSpecificationProperty"')}function convertCfnAutoScalingGroupLaunchTemplateSpecificationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupLaunchTemplateSpecificationPropertyValidator(properties).assertSuccess(),{LaunchTemplateId:cdk().stringToCloudFormation(properties.launchTemplateId),LaunchTemplateName:cdk().stringToCloudFormation(properties.launchTemplateName),Version:cdk().stringToCloudFormation(properties.version)}):properties}function CfnAutoScalingGroupLaunchTemplateSpecificationPropertyFromCloudFormation(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("launchTemplateId","LaunchTemplateId",properties.LaunchTemplateId!=null?cfn_parse().FromCloudFormation.getString(properties.LaunchTemplateId):void 0),ret.addPropertyResult("launchTemplateName","LaunchTemplateName",properties.LaunchTemplateName!=null?cfn_parse().FromCloudFormation.getString(properties.LaunchTemplateName):void 0),ret.addPropertyResult("version","Version",properties.Version!=null?cfn_parse().FromCloudFormation.getString(properties.Version):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupLifecycleHookSpecificationPropertyValidator(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("defaultResult",cdk().validateString)(properties.defaultResult)),errors.collect(cdk().propertyValidator("heartbeatTimeout",cdk().validateNumber)(properties.heartbeatTimeout)),errors.collect(cdk().propertyValidator("lifecycleHookName",cdk().requiredValidator)(properties.lifecycleHookName)),errors.collect(cdk().propertyValidator("lifecycleHookName",cdk().validateString)(properties.lifecycleHookName)),errors.collect(cdk().propertyValidator("lifecycleTransition",cdk().requiredValidator)(properties.lifecycleTransition)),errors.collect(cdk().propertyValidator("lifecycleTransition",cdk().validateString)(properties.lifecycleTransition)),errors.collect(cdk().propertyValidator("notificationMetadata",cdk().validateString)(properties.notificationMetadata)),errors.collect(cdk().propertyValidator("notificationTargetArn",cdk().validateString)(properties.notificationTargetArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "LifecycleHookSpecificationProperty"')}function convertCfnAutoScalingGroupLifecycleHookSpecificationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupLifecycleHookSpecificationPropertyValidator(properties).assertSuccess(),{DefaultResult:cdk().stringToCloudFormation(properties.defaultResult),HeartbeatTimeout:cdk().numberToCloudFormation(properties.heartbeatTimeout),LifecycleHookName:cdk().stringToCloudFormation(properties.lifecycleHookName),LifecycleTransition:cdk().stringToCloudFormation(properties.lifecycleTransition),NotificationMetadata:cdk().stringToCloudFormation(properties.notificationMetadata),NotificationTargetARN:cdk().stringToCloudFormation(properties.notificationTargetArn),RoleARN:cdk().stringToCloudFormation(properties.roleArn)}):properties}function CfnAutoScalingGroupLifecycleHookSpecificationPropertyFromCloudFormation(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("defaultResult","DefaultResult",properties.DefaultResult!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultResult):void 0),ret.addPropertyResult("heartbeatTimeout","HeartbeatTimeout",properties.HeartbeatTimeout!=null?cfn_parse().FromCloudFormation.getNumber(properties.HeartbeatTimeout):void 0),ret.addPropertyResult("lifecycleHookName","LifecycleHookName",properties.LifecycleHookName!=null?cfn_parse().FromCloudFormation.getString(properties.LifecycleHookName):void 0),ret.addPropertyResult("lifecycleTransition","LifecycleTransition",properties.LifecycleTransition!=null?cfn_parse().FromCloudFormation.getString(properties.LifecycleTransition):void 0),ret.addPropertyResult("notificationMetadata","NotificationMetadata",properties.NotificationMetadata!=null?cfn_parse().FromCloudFormation.getString(properties.NotificationMetadata):void 0),ret.addPropertyResult("notificationTargetArn","NotificationTargetARN",properties.NotificationTargetARN!=null?cfn_parse().FromCloudFormation.getString(properties.NotificationTargetARN):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse().FromCloudFormation.getString(properties.RoleARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupMetricsCollectionPropertyValidator(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("granularity",cdk().requiredValidator)(properties.granularity)),errors.collect(cdk().propertyValidator("granularity",cdk().validateString)(properties.granularity)),errors.collect(cdk().propertyValidator("metrics",cdk().listValidator(cdk().validateString))(properties.metrics)),errors.wrap('supplied properties not correct for "MetricsCollectionProperty"')}function convertCfnAutoScalingGroupMetricsCollectionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupMetricsCollectionPropertyValidator(properties).assertSuccess(),{Granularity:cdk().stringToCloudFormation(properties.granularity),Metrics:cdk().listMapper(cdk().stringToCloudFormation)(properties.metrics)}):properties}function CfnAutoScalingGroupMetricsCollectionPropertyFromCloudFormation(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("granularity","Granularity",properties.Granularity!=null?cfn_parse().FromCloudFormation.getString(properties.Granularity):void 0),ret.addPropertyResult("metrics","Metrics",properties.Metrics!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Metrics):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupInstancesDistributionPropertyValidator(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("onDemandAllocationStrategy",cdk().validateString)(properties.onDemandAllocationStrategy)),errors.collect(cdk().propertyValidator("onDemandBaseCapacity",cdk().validateNumber)(properties.onDemandBaseCapacity)),errors.collect(cdk().propertyValidator("onDemandPercentageAboveBaseCapacity",cdk().validateNumber)(properties.onDemandPercentageAboveBaseCapacity)),errors.collect(cdk().propertyValidator("spotAllocationStrategy",cdk().validateString)(properties.spotAllocationStrategy)),errors.collect(cdk().propertyValidator("spotInstancePools",cdk().validateNumber)(properties.spotInstancePools)),errors.collect(cdk().propertyValidator("spotMaxPrice",cdk().validateString)(properties.spotMaxPrice)),errors.wrap('supplied properties not correct for "InstancesDistributionProperty"')}function convertCfnAutoScalingGroupInstancesDistributionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupInstancesDistributionPropertyValidator(properties).assertSuccess(),{OnDemandAllocationStrategy:cdk().stringToCloudFormation(properties.onDemandAllocationStrategy),OnDemandBaseCapacity:cdk().numberToCloudFormation(properties.onDemandBaseCapacity),OnDemandPercentageAboveBaseCapacity:cdk().numberToCloudFormation(properties.onDemandPercentageAboveBaseCapacity),SpotAllocationStrategy:cdk().stringToCloudFormation(properties.spotAllocationStrategy),SpotInstancePools:cdk().numberToCloudFormation(properties.spotInstancePools),SpotMaxPrice:cdk().stringToCloudFormation(properties.spotMaxPrice)}):properties}function CfnAutoScalingGroupInstancesDistributionPropertyFromCloudFormation(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("onDemandAllocationStrategy","OnDemandAllocationStrategy",properties.OnDemandAllocationStrategy!=null?cfn_parse().FromCloudFormation.getString(properties.OnDemandAllocationStrategy):void 0),ret.addPropertyResult("onDemandBaseCapacity","OnDemandBaseCapacity",properties.OnDemandBaseCapacity!=null?cfn_parse().FromCloudFormation.getNumber(properties.OnDemandBaseCapacity):void 0),ret.addPropertyResult("onDemandPercentageAboveBaseCapacity","OnDemandPercentageAboveBaseCapacity",properties.OnDemandPercentageAboveBaseCapacity!=null?cfn_parse().FromCloudFormation.getNumber(properties.OnDemandPercentageAboveBaseCapacity):void 0),ret.addPropertyResult("spotAllocationStrategy","SpotAllocationStrategy",properties.SpotAllocationStrategy!=null?cfn_parse().FromCloudFormation.getString(properties.SpotAllocationStrategy):void 0),ret.addPropertyResult("spotInstancePools","SpotInstancePools",properties.SpotInstancePools!=null?cfn_parse().FromCloudFormation.getNumber(properties.SpotInstancePools):void 0),ret.addPropertyResult("spotMaxPrice","SpotMaxPrice",properties.SpotMaxPrice!=null?cfn_parse().FromCloudFormation.getString(properties.SpotMaxPrice):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupAcceleratorCountRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "AcceleratorCountRequestProperty"')}function convertCfnAutoScalingGroupAcceleratorCountRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupAcceleratorCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupAcceleratorCountRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "AcceleratorTotalMemoryMiBRequestProperty"')}function convertCfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "BaselineEbsBandwidthMbpsRequestProperty"')}function convertCfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "MemoryGiBPerVCpuRequestProperty"')}function convertCfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupMemoryMiBRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "MemoryMiBRequestProperty"')}function convertCfnAutoScalingGroupMemoryMiBRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupMemoryMiBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupMemoryMiBRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupNetworkBandwidthGbpsRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "NetworkBandwidthGbpsRequestProperty"')}function convertCfnAutoScalingGroupNetworkBandwidthGbpsRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupNetworkBandwidthGbpsRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupNetworkBandwidthGbpsRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "NetworkInterfaceCountRequestProperty"')}function convertCfnAutoScalingGroupNetworkInterfaceCountRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupTotalLocalStorageGBRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "TotalLocalStorageGBRequestProperty"')}function convertCfnAutoScalingGroupTotalLocalStorageGBRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupTotalLocalStorageGBRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupTotalLocalStorageGBRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupVCpuCountRequestPropertyValidator(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("max",cdk().validateNumber)(properties.max)),errors.collect(cdk().propertyValidator("min",cdk().validateNumber)(properties.min)),errors.wrap('supplied properties not correct for "VCpuCountRequestProperty"')}function convertCfnAutoScalingGroupVCpuCountRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupVCpuCountRequestPropertyValidator(properties).assertSuccess(),{Max:cdk().numberToCloudFormation(properties.max),Min:cdk().numberToCloudFormation(properties.min)}):properties}function CfnAutoScalingGroupVCpuCountRequestPropertyFromCloudFormation(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("max","Max",properties.Max!=null?cfn_parse().FromCloudFormation.getNumber(properties.Max):void 0),ret.addPropertyResult("min","Min",properties.Min!=null?cfn_parse().FromCloudFormation.getNumber(properties.Min):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupPerformanceFactorReferenceRequestPropertyValidator(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("instanceFamily",cdk().validateString)(properties.instanceFamily)),errors.wrap('supplied properties not correct for "PerformanceFactorReferenceRequestProperty"')}function convertCfnAutoScalingGroupPerformanceFactorReferenceRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupPerformanceFactorReferenceRequestPropertyValidator(properties).assertSuccess(),{InstanceFamily:cdk().stringToCloudFormation(properties.instanceFamily)}):properties}function CfnAutoScalingGroupPerformanceFactorReferenceRequestPropertyFromCloudFormation(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("instanceFamily","InstanceFamily",properties.InstanceFamily!=null?cfn_parse().FromCloudFormation.getString(properties.InstanceFamily):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupCpuPerformanceFactorRequestPropertyValidator(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("references",cdk().listValidator(CfnAutoScalingGroupPerformanceFactorReferenceRequestPropertyValidator))(properties.references)),errors.wrap('supplied properties not correct for "CpuPerformanceFactorRequestProperty"')}function convertCfnAutoScalingGroupCpuPerformanceFactorRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupCpuPerformanceFactorRequestPropertyValidator(properties).assertSuccess(),{References:cdk().listMapper(convertCfnAutoScalingGroupPerformanceFactorReferenceRequestPropertyToCloudFormation)(properties.references)}):properties}function CfnAutoScalingGroupCpuPerformanceFactorRequestPropertyFromCloudFormation(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("references","References",properties.References!=null?cfn_parse().FromCloudFormation.getArray(CfnAutoScalingGroupPerformanceFactorReferenceRequestPropertyFromCloudFormation)(properties.References):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupBaselinePerformanceFactorsRequestPropertyValidator(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("cpu",CfnAutoScalingGroupCpuPerformanceFactorRequestPropertyValidator)(properties.cpu)),errors.wrap('supplied properties not correct for "BaselinePerformanceFactorsRequestProperty"')}function convertCfnAutoScalingGroupBaselinePerformanceFactorsRequestPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupBaselinePerformanceFactorsRequestPropertyValidator(properties).assertSuccess(),{Cpu:convertCfnAutoScalingGroupCpuPerformanceFactorRequestPropertyToCloudFormation(properties.cpu)}):properties}function CfnAutoScalingGroupBaselinePerformanceFactorsRequestPropertyFromCloudFormation(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("cpu","Cpu",properties.Cpu!=null?CfnAutoScalingGroupCpuPerformanceFactorRequestPropertyFromCloudFormation(properties.Cpu):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAutoScalingGroupInstanceRequirementsPropertyValidator(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("acceleratorCount",CfnAutoScalingGroupAcceleratorCountRequestPropertyValidator)(properties.acceleratorCount)),errors.collect(cdk().propertyValidator("acceleratorManufacturers",cdk().listValidator(cdk().validateString))(properties.acceleratorManufacturers)),errors.collect(cdk().propertyValidator("acceleratorNames",cdk().listValidator(cdk().validateString))(properties.acceleratorNames)),errors.collect(cdk().propertyValidator("acceleratorTotalMemoryMiB",CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyValidator)(properties.acceleratorTotalMemoryMiB)),errors.collect(cdk().propertyValidator("acceleratorTypes",cdk().listValidator(cdk().validateString))(properties.acceleratorTypes)),errors.collect(cdk().propertyValidator("allowedInstanceTypes",cdk().listValidator(cdk().validateString))(properties.allowedInstanceTypes)),errors.collect(cdk().propertyValidator("bareMetal",cdk().validateString)(properties.bareMetal)),errors.collect(cdk().propertyValidator("baselineEbsBandwidthMbps",CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyValidator)(properties.baselineEbsBandwidthMbps)),errors.collect(cdk().propertyValidator("baselinePerformanceFactors",CfnAutoScalingGroupBaselinePerformanceFactorsRequestPropertyValidator)(properties.baselinePerformanceFactors)),errors.collect(cdk().propertyValidator("burstablePerformance",cdk().validateString)(properties.burstablePerformance)),errors.collect(cdk().propertyValidator("cpuManufacturers",cdk().listValidator(cdk().validateString))(properties.cpuManufacturers)),errors.collect(cdk().propertyValidator("excludedInstanceTypes",cdk().listValidator(cdk().validateString))(properties.excludedInstanceTypes)),errors.collect(cdk().propertyValidator("instanceGenerations",cdk().listValidator(cdk().validateString))(properties.instanceGenerations)),errors.collect(cdk().propertyValidator("localStorage",cdk().validateString)(properties.localStorage)),errors.collect(cdk().propertyValidator("localStorageTypes",cdk().listValidator(cdk().validateString))(properties.localStorageTypes)),errors.collect(cdk().propertyValidator("maxSpotPriceAsPercentageOfOptimalOnDemandPrice",cdk().validateNumber)(properties.maxSpotPriceAsPercentageOfOptimalOnDemandPrice)),errors.collect(cdk().propertyValidator("memoryGiBPerVCpu",CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyValidator)(properties.memoryGiBPerVCpu)),errors.collect(cdk().propertyValidator("memoryMiB",cdk().requiredValidator)(properties.memoryMiB)),errors.collect(cdk().propertyValidator("memoryMiB",CfnAutoScalingGroupMemoryMiBRequestPropertyValidator)(properties.memoryMiB)),errors.collect(cdk().propertyValidator("networkBandwidthGbps",CfnAutoScalingGroupNetworkBandwidthGbpsRequestPropertyValidator)(properties.networkBandwidthGbps)),errors.collect(cdk().propertyValidator("networkInterfaceCount",CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyValidator)(properties.networkInterfaceCount)),errors.collect(cdk().propertyValidator("onDemandMaxPricePercentageOverLowestPrice",cdk().validateNumber)(properties.onDemandMaxPricePercentageOverLowestPrice)),errors.collect(cdk().propertyValidator("requireHibernateSupport",cdk().validateBoolean)(properties.requireHibernateSupport)),errors.collect(cdk().propertyValidator("spotMaxPricePercentageOverLowestPrice",cdk().validateNumber)(properties.spotMaxPricePercentageOverLowestPrice)),errors.collect(cdk().propertyValidator("totalLocalStorageGb",CfnAutoScalingGroupTotalLocalStorageGBRequestPropertyValidator)(properties.totalLocalStorageGb)),errors.collect(cdk().propertyValidator("vCpuCount",cdk().requiredValidator)(properties.vCpuCount)),errors.collect(cdk().propertyValidator("vCpuCount",CfnAutoScalingGroupVCpuCountRequestPropertyValidator)(properties.vCpuCount)),errors.wrap('supplied properties not correct for "InstanceRequirementsProperty"')}function convertCfnAutoScalingGroupInstanceRequirementsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAutoScalingGroupInstanceRequirementsPropertyValidator(properties).assertSuccess(),{AcceleratorCount:convertCfnAutoScalingGroupAcceleratorCountRequestPropertyToCloudFormation(properties.acceleratorCount),AcceleratorManufacturers:cdk().listMapper(cdk().stringToCloudFormation)(properties.acceleratorManufacturers),AcceleratorNames:cdk().listMapper(cdk().stringToCloudFormation)(properties.acceleratorNames),AcceleratorTotalMemoryMiB:convertCfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyToCloudFormation(properties.acceleratorTotalMemoryMiB),AcceleratorTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.acceleratorTypes),AllowedInstanceTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedInstanceTypes),BareMetal:cdk().stringToCloudFormation(properties.bareMetal),BaselineEbsBandwidthMbps:convertCfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyToCloudFormation(properties.baselineEbsBandwidthMbps),BaselinePerformanceFactors:convertCfnAutoScalingGroupBaselinePerformanceFactorsRequestPropertyToCloudFormation(properties.baselinePerformanceFactors),BurstablePerformance:cdk().stringToCloudFormation(properties.burstablePerformance),CpuManufacturers:cdk().listMapper(cdk().stringToCloudFormation)(properties.cpuManufacturers),ExcludedInstanceTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.excludedInstanceTypes),InstanceGenerations:cdk().listMapper(cdk().stringToCloudFormation)(properties.instanceGenerations),LocalStorage:cdk().stringToCloudFormation(properties.localStorage),LocalStorageTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.localStorageTypes),MaxSpotPriceAsPercentageOfOptimalOnDemandPrice:cdk().numberToCloudFormation(properties.maxSpotPriceAsPercentageOfOptimalOnDemandPrice),MemoryGiBPerVCpu:convertCfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyToCloudFormation(properties.memoryGiBPerVCpu),MemoryMiB:convertCfnAutoScalingGroupMemoryMiBRequestPropertyToCloudFormation(properties.memoryMiB),NetworkBandwidthGbps:convertCfnAutoScalingGroupNetworkBandwidthGbpsRequestPropertyToCloudFormation(properties.networkBandwidthGbps),NetworkInterfaceCount:convertCfnAutoScalingGroupNetworkInterfaceCountRequestPropertyToCloudFormation(properties.networkInterfaceCount),OnDemandMaxPricePercentageOverLowestPrice:cdk().numberToCloudFormation(properties.onDemandMaxPricePercentageOverLowestPrice),RequireHibernateSupport:cdk().booleanToCloudFormation(properties.requireHibernateSupport),SpotMaxPricePercentageOverLowestPrice:cdk().numberToCloudFormation(properties.spotMaxPricePercentageOverLowestPrice),TotalLocalStorageGB:convertCfnAutoScalingGroupTotalLocalStorageGBRequestPropertyToCloudFormation(properties.totalLocalStorageGb),VCpuCount:convertCfnAutoScalingGroupVCpuCountRequestPropertyToCloudFormation(properties.vCpuCount)}):properties}function CfnAutoScalingGroupInstanceRequirementsPropertyFromCloudFormation(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("acceleratorCount","AcceleratorCount",properties.AcceleratorCount!=null?CfnAutoScalingGroupAcceleratorCountRequestPropertyFromCloudFormation(properties.AcceleratorCount):void 0),ret.addPropertyResult("acceleratorManufacturers","AcceleratorManufacturers",properties.AcceleratorManufacturers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AcceleratorManufacturers):void 0),ret.addPropertyResult("acceleratorNames","AcceleratorNames",properties.AcceleratorNames!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AcceleratorNames):void 0),ret.addPropertyResult("acceleratorTotalMemoryMiB","AcceleratorTotalMemoryMiB",properties.AcceleratorTotalMemoryMiB!=null?CfnAutoScalingGroupAcceleratorTotalMemoryMiBRequestPropertyFromCloudFormation(properties.AcceleratorTotalMemoryMiB):void 0),ret.addPropertyResult("acceleratorTypes","AcceleratorTypes",properties.AcceleratorTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AcceleratorTypes):void 0),ret.addPropertyResult("allowedInstanceTypes","AllowedInstanceTypes",properties.AllowedInstanceTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedInstanceTypes):void 0),ret.addPropertyResult("bareMetal","BareMetal",properties.BareMetal!=null?cfn_parse().FromCloudFormation.getString(properties.BareMetal):void 0),ret.addPropertyResult("baselineEbsBandwidthMbps","BaselineEbsBandwidthMbps",properties.BaselineEbsBandwidthMbps!=null?CfnAutoScalingGroupBaselineEbsBandwidthMbpsRequestPropertyFromCloudFormation(properties.BaselineEbsBandwidthMbps):void 0),ret.addPropertyResult("baselinePerformanceFactors","BaselinePerformanceFactors",properties.BaselinePerformanceFactors!=null?CfnAutoScalingGroupBaselinePerformanceFactorsRequestPropertyFromCloudFormation(properties.BaselinePerformanceFactors):void 0),ret.addPropertyResult("burstablePerformance","BurstablePerformance",properties.BurstablePerformance!=null?cfn_parse().FromCloudFormation.getString(properties.BurstablePerformance):void 0),ret.addPropertyResult("cpuManufacturers","CpuManufacturers",properties.CpuManufacturers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CpuManufacturers):void 0),ret.addPropertyResult("excludedInstanceTypes","ExcludedInstanceTypes",properties.ExcludedInstanceTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ExcludedInstanceTypes):void 0),ret.addPropertyResult("instanceGenerations","InstanceGenerations",properties.InstanceGenerations!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.InstanceGenerations):void 0),ret.addPropertyResult("localStorage","LocalStorage",properties.LocalStorage!=null?cfn_parse().FromCloudFormation.getString(properties.LocalStorage):void 0),ret.addPropertyResult("localStorageTypes","LocalStorageTypes",properties.LocalStorageTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.LocalStorageTypes):void 0),ret.addPropertyResult("maxSpotPriceAsPercentageOfOptimalOnDemandPrice","MaxSpotPriceAsPercentageOfOptimalOnDemandPrice",properties.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice):void 0),ret.addPropertyResult("memoryGiBPerVCpu","MemoryGiBPerVCpu",properties.MemoryGiBPerVCpu!=null?CfnAutoScalingGroupMemoryGiBPerVCpuRequestPropertyFromCloudFormation(properties.MemoryGiBPerVCpu):void 0),ret.addPropertyResult("memoryMiB","MemoryMiB",properties.MemoryMiB!=null?CfnAutoScalingGroupMemoryMiBRequestPropertyFromCloudFormation(properties.MemoryMiB):void 0),ret.addPropertyResult("networkBandwidthGbps","NetworkBandwidthGbps",properties.NetworkBandwidthGbps!=null?CfnAutoScalingGroupNetworkBandwidthGbpsRequestPropertyFromCloudFormation(properties.NetworkBandwidthGbps):void 0),ret.addPropertyResult("networkInterfaceCount","NetworkInterfaceCount",properties.NetworkInterfaceCount!=null?CfnAutoScalingGroupNetworkInterfaceCountRequestPropertyFromCloudFormation(properties.NetworkInterfaceCount):void 0),ret.addPropertyResult("onDemandMaxPricePercentageOverLowestPrice","OnDemandMaxPricePercentageOverLowestPrice",properties.OnDemandMaxPricePercentageOverLowestPrice!=null?cfn_parse().FromCloudFormation.getNumber(properties.OnDemandMaxPricePercentageOverLowestPrice):void 0),ret.addPropertyResult("requireHibernateSupport","RequireHibernateSupport",properties.RequireHibernateSupport!=null?cfn_parse()