UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 77.8 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnSecurityConfiguration=exports.CfnEndpoint=exports.CfnVirtualCluster=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnVirtualCluster extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_emrcontainers.CfnVirtualCluster",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::EMRContainers::VirtualCluster";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnVirtualClusterPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnVirtualCluster(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnVirtualCluster(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnVirtualCluster.CFN_RESOURCE_TYPE_NAME}static fromVirtualClusterArn(scope,id,arn){class Import extends cdk().Resource{virtualClusterRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:emr-containers:${Region}:${Account}:/virtualclusters/${VirtualClusterId}").parse(arn2);this.virtualClusterRef={virtualClusterId:variables.VirtualClusterId,virtualClusterArn:arn2}}}return new Import(scope,id,arn)}static fromVirtualClusterId(scope,id,virtualClusterId){class Import extends cdk().Resource{virtualClusterRef;constructor(scope2,id2,virtualClusterId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:emr-containers:${Region}:${Account}:/virtualclusters/${VirtualClusterId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,VirtualClusterId:virtualClusterId2});super(scope2,id2,{environmentFromArn:arn}),this.virtualClusterRef={virtualClusterId:virtualClusterId2,virtualClusterArn:arn}}}return new Import(scope,id,virtualClusterId)}static arnForVirtualCluster(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_emrcontainers_IVirtualClusterRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForVirtualCluster),error}return resource.virtualClusterRef.virtualClusterArn}_containerProvider;_name;_securityConfigurationId;tags;_tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnVirtualCluster.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_emrcontainers_CfnVirtualClusterProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnVirtualCluster),error}cdk().requireProperty(props,"containerProvider",this),cdk().requireProperty(props,"name",this),this._containerProvider=props.containerProvider,this._name=props.name,this._securityConfigurationId=props.securityConfigurationId,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::EMRContainers::VirtualCluster",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get virtualClusterRef(){return{virtualClusterId:this.ref,virtualClusterArn:this.attrArn}}get containerProvider(){return this._containerProvider}set containerProvider(value){cdk().traceProperty(this.node,"ContainerProvider"),this._containerProvider=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get securityConfigurationId(){return this._securityConfigurationId}set securityConfigurationId(value){cdk().traceProperty(this.node,"SecurityConfigurationId"),this._securityConfigurationId=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{containerProvider:this._containerProvider,name:this._name,securityConfigurationId:this._securityConfigurationId,tags:this.tags.renderTags()}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnVirtualCluster.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnVirtualClusterPropsToCloudFormation(props)}}exports.CfnVirtualCluster=CfnVirtualCluster;function CfnVirtualClusterEksInfoPropertyValidator(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("namespace",cdk().requiredValidator)(properties.namespace)),errors.collect(cdk().propertyValidator("namespace",cdk().validateString)(properties.namespace)),errors.wrap('supplied properties not correct for "EksInfoProperty"')}function convertCfnVirtualClusterEksInfoPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVirtualClusterEksInfoPropertyValidator(properties).assertSuccess(),{Namespace:cdk().stringToCloudFormation(properties.namespace)}):properties}function CfnVirtualClusterEksInfoPropertyFromCloudFormation(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("namespace","Namespace",properties.Namespace!=null?cfn_parse().FromCloudFormation.getString(properties.Namespace):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnVirtualClusterContainerInfoPropertyValidator(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("eksInfo",cdk().requiredValidator)(properties.eksInfo)),errors.collect(cdk().propertyValidator("eksInfo",CfnVirtualClusterEksInfoPropertyValidator)(properties.eksInfo)),errors.wrap('supplied properties not correct for "ContainerInfoProperty"')}function convertCfnVirtualClusterContainerInfoPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVirtualClusterContainerInfoPropertyValidator(properties).assertSuccess(),{EksInfo:convertCfnVirtualClusterEksInfoPropertyToCloudFormation(properties.eksInfo)}):properties}function CfnVirtualClusterContainerInfoPropertyFromCloudFormation(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("eksInfo","EksInfo",properties.EksInfo!=null?CfnVirtualClusterEksInfoPropertyFromCloudFormation(properties.EksInfo):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnVirtualClusterContainerProviderPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("id",cdk().requiredValidator)(properties.id)),errors.collect(cdk().propertyValidator("id",cdk().validateString)(properties.id)),errors.collect(cdk().propertyValidator("info",cdk().requiredValidator)(properties.info)),errors.collect(cdk().propertyValidator("info",CfnVirtualClusterContainerInfoPropertyValidator)(properties.info)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "ContainerProviderProperty"')}function convertCfnVirtualClusterContainerProviderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVirtualClusterContainerProviderPropertyValidator(properties).assertSuccess(),{Id:cdk().stringToCloudFormation(properties.id),Info:convertCfnVirtualClusterContainerInfoPropertyToCloudFormation(properties.info),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnVirtualClusterContainerProviderPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("id","Id",properties.Id!=null?cfn_parse().FromCloudFormation.getString(properties.Id):void 0),ret.addPropertyResult("info","Info",properties.Info!=null?CfnVirtualClusterContainerInfoPropertyFromCloudFormation(properties.Info):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnVirtualClusterPropsValidator(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("containerProvider",cdk().requiredValidator)(properties.containerProvider)),errors.collect(cdk().propertyValidator("containerProvider",CfnVirtualClusterContainerProviderPropertyValidator)(properties.containerProvider)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("securityConfigurationId",cdk().validateString)(properties.securityConfigurationId)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnVirtualClusterProps"')}function convertCfnVirtualClusterPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVirtualClusterPropsValidator(properties).assertSuccess(),{ContainerProvider:convertCfnVirtualClusterContainerProviderPropertyToCloudFormation(properties.containerProvider),Name:cdk().stringToCloudFormation(properties.name),SecurityConfigurationId:cdk().stringToCloudFormation(properties.securityConfigurationId),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnVirtualClusterPropsFromCloudFormation(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("containerProvider","ContainerProvider",properties.ContainerProvider!=null?CfnVirtualClusterContainerProviderPropertyFromCloudFormation(properties.ContainerProvider):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("securityConfigurationId","SecurityConfigurationId",properties.SecurityConfigurationId!=null?cfn_parse().FromCloudFormation.getString(properties.SecurityConfigurationId):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnEndpoint extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_emrcontainers.CfnEndpoint",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::EMRContainers::Endpoint";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnEndpointPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnEndpoint(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnEndpoint(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnEndpoint.CFN_RESOURCE_TYPE_NAME}static arnForEndpoint(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_emrcontainers_IEndpointRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForEndpoint),error}return resource.endpointRef.endpointArn}cdkTagManager;_configurationOverrides;_executionRoleArn;_name;_releaseLabel;_tags;_type;_virtualClusterId;constructor(scope,id,props){super(scope,id,{type:CfnEndpoint.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_emrcontainers_CfnEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnEndpoint),error}cdk().requireProperty(props,"executionRoleArn",this),cdk().requireProperty(props,"releaseLabel",this),cdk().requireProperty(props,"type",this),cdk().requireProperty(props,"virtualClusterId",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::EMRContainers::Endpoint",void 0,{tagPropertyName:"tags"}),this._configurationOverrides=props.configurationOverrides,this._executionRoleArn=props.executionRoleArn,this._name=props.name,this._releaseLabel=props.releaseLabel,this._tags=props.tags,this._type=props.type,this._virtualClusterId=props.virtualClusterId}get endpointRef(){return{endpointArn:this.ref}}get configurationOverrides(){return this._configurationOverrides}set configurationOverrides(value){cdk().traceProperty(this.node,"ConfigurationOverrides"),this._configurationOverrides=value}get executionRoleArn(){return this._executionRoleArn}set executionRoleArn(value){cdk().traceProperty(this.node,"ExecutionRoleArn"),this._executionRoleArn=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get releaseLabel(){return this._releaseLabel}set releaseLabel(value){cdk().traceProperty(this.node,"ReleaseLabel"),this._releaseLabel=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get type(){return this._type}set type(value){cdk().traceProperty(this.node,"Type"),this._type=value}get virtualClusterId(){return this._virtualClusterId}set virtualClusterId(value){cdk().traceProperty(this.node,"VirtualClusterId"),this._virtualClusterId=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrCertificateAuthority(){return this.getAtt("CertificateAuthority")}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrFailureReason(){return cdk().Token.asString(this.getAtt("FailureReason",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get attrSecurityGroup(){return cdk().Token.asString(this.getAtt("SecurityGroup",cdk().ResolutionTypeHint.STRING))}get attrServerUrl(){return cdk().Token.asString(this.getAtt("ServerUrl",cdk().ResolutionTypeHint.STRING))}get attrState(){return cdk().Token.asString(this.getAtt("State",cdk().ResolutionTypeHint.STRING))}get attrStateDetails(){return cdk().Token.asString(this.getAtt("StateDetails",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),configurationOverrides:this._configurationOverrides,executionRoleArn:this._executionRoleArn,name:this._name,releaseLabel:this._releaseLabel,type:this._type,virtualClusterId:this._virtualClusterId}}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",CfnEndpoint.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnEndpointPropsToCloudFormation(props)}}exports.CfnEndpoint=CfnEndpoint;function CfnEndpointEMREKSConfigurationPropertyValidator(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("classification",cdk().requiredValidator)(properties.classification)),errors.collect(cdk().propertyValidator("classification",cdk().validateString)(properties.classification)),errors.collect(cdk().propertyValidator("configurations",cdk().listValidator(CfnEndpointEMREKSConfigurationPropertyValidator))(properties.configurations)),errors.collect(cdk().propertyValidator("properties",cdk().hashValidator(cdk().validateString))(properties.properties)),errors.wrap('supplied properties not correct for "EMREKSConfigurationProperty"')}function convertCfnEndpointEMREKSConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEndpointEMREKSConfigurationPropertyValidator(properties).assertSuccess(),{Classification:cdk().stringToCloudFormation(properties.classification),Configurations:cdk().listMapper(convertCfnEndpointEMREKSConfigurationPropertyToCloudFormation)(properties.configurations),Properties:cdk().hashMapper(cdk().stringToCloudFormation)(properties.properties)}):properties}function CfnEndpointEMREKSConfigurationPropertyFromCloudFormation(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("classification","Classification",properties.Classification!=null?cfn_parse().FromCloudFormation.getString(properties.Classification):void 0),ret.addPropertyResult("configurations","Configurations",properties.Configurations!=null?cfn_parse().FromCloudFormation.getArray(CfnEndpointEMREKSConfigurationPropertyFromCloudFormation)(properties.Configurations):void 0),ret.addPropertyResult("properties","Properties",properties.Properties!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Properties):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEndpointContainerLogRotationConfigurationPropertyValidator(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("maxFilesToKeep",cdk().requiredValidator)(properties.maxFilesToKeep)),errors.collect(cdk().propertyValidator("maxFilesToKeep",cdk().validateNumber)(properties.maxFilesToKeep)),errors.collect(cdk().propertyValidator("rotationSize",cdk().requiredValidator)(properties.rotationSize)),errors.collect(cdk().propertyValidator("rotationSize",cdk().validateString)(properties.rotationSize)),errors.wrap('supplied properties not correct for "ContainerLogRotationConfigurationProperty"')}function convertCfnEndpointContainerLogRotationConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEndpointContainerLogRotationConfigurationPropertyValidator(properties).assertSuccess(),{MaxFilesToKeep:cdk().numberToCloudFormation(properties.maxFilesToKeep),RotationSize:cdk().stringToCloudFormation(properties.rotationSize)}):properties}function CfnEndpointContainerLogRotationConfigurationPropertyFromCloudFormation(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("maxFilesToKeep","MaxFilesToKeep",properties.MaxFilesToKeep!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxFilesToKeep):void 0),ret.addPropertyResult("rotationSize","RotationSize",properties.RotationSize!=null?cfn_parse().FromCloudFormation.getString(properties.RotationSize):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEndpointCloudWatchMonitoringConfigurationPropertyValidator(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("logGroupName",cdk().requiredValidator)(properties.logGroupName)),errors.collect(cdk().propertyValidator("logGroupName",cdk().validateString)(properties.logGroupName)),errors.collect(cdk().propertyValidator("logStreamNamePrefix",cdk().validateString)(properties.logStreamNamePrefix)),errors.wrap('supplied properties not correct for "CloudWatchMonitoringConfigurationProperty"')}function convertCfnEndpointCloudWatchMonitoringConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEndpointCloudWatchMonitoringConfigurationPropertyValidator(properties).assertSuccess(),{LogGroupName:cdk().stringToCloudFormation(properties.logGroupName),LogStreamNamePrefix:cdk().stringToCloudFormation(properties.logStreamNamePrefix)}):properties}function CfnEndpointCloudWatchMonitoringConfigurationPropertyFromCloudFormation(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("logGroupName","LogGroupName",properties.LogGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.LogGroupName):void 0),ret.addPropertyResult("logStreamNamePrefix","LogStreamNamePrefix",properties.LogStreamNamePrefix!=null?cfn_parse().FromCloudFormation.getString(properties.LogStreamNamePrefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEndpointS3MonitoringConfigurationPropertyValidator(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("logUri",cdk().requiredValidator)(properties.logUri)),errors.collect(cdk().propertyValidator("logUri",cdk().validateString)(properties.logUri)),errors.wrap('supplied properties not correct for "S3MonitoringConfigurationProperty"')}function convertCfnEndpointS3MonitoringConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEndpointS3MonitoringConfigurationPropertyValidator(properties).assertSuccess(),{LogUri:cdk().stringToCloudFormation(properties.logUri)}):properties}function CfnEndpointS3MonitoringConfigurationPropertyFromCloudFormation(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("logUri","LogUri",properties.LogUri!=null?cfn_parse().FromCloudFormation.getString(properties.LogUri):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEndpointMonitoringConfigurationPropertyValidator(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("cloudWatchMonitoringConfiguration",CfnEndpointCloudWatchMonitoringConfigurationPropertyValidator)(properties.cloudWatchMonitoringConfiguration)),errors.collect(cdk().propertyValidator("containerLogRotationConfiguration",CfnEndpointContainerLogRotationConfigurationPropertyValidator)(properties.containerLogRotationConfiguration)),errors.collect(cdk().propertyValidator("persistentAppUi",cdk().validateString)(properties.persistentAppUi)),errors.collect(cdk().propertyValidator("s3MonitoringConfiguration",CfnEndpointS3MonitoringConfigurationPropertyValidator)(properties.s3MonitoringConfiguration)),errors.wrap('supplied properties not correct for "MonitoringConfigurationProperty"')}function convertCfnEndpointMonitoringConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEndpointMonitoringConfigurationPropertyValidator(properties).assertSuccess(),{CloudWatchMonitoringConfiguration:convertCfnEndpointCloudWatchMonitoringConfigurationPropertyToCloudFormation(properties.cloudWatchMonitoringConfiguration),ContainerLogRotationConfiguration:convertCfnEndpointContainerLogRotationConfigurationPropertyToCloudFormation(properties.containerLogRotationConfiguration),PersistentAppUI:cdk().stringToCloudFormation(properties.persistentAppUi),S3MonitoringConfiguration:convertCfnEndpointS3MonitoringConfigurationPropertyToCloudFormation(properties.s3MonitoringConfiguration)}):properties}function CfnEndpointMonitoringConfigurationPropertyFromCloudFormation(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("cloudWatchMonitoringConfiguration","CloudWatchMonitoringConfiguration",properties.CloudWatchMonitoringConfiguration!=null?CfnEndpointCloudWatchMonitoringConfigurationPropertyFromCloudFormation(properties.CloudWatchMonitoringConfiguration):void 0),ret.addPropertyResult("containerLogRotationConfiguration","ContainerLogRotationConfiguration",properties.ContainerLogRotationConfiguration!=null?CfnEndpointContainerLogRotationConfigurationPropertyFromCloudFormation(properties.ContainerLogRotationConfiguration):void 0),ret.addPropertyResult("persistentAppUi","PersistentAppUI",properties.PersistentAppUI!=null?cfn_parse().FromCloudFormation.getString(properties.PersistentAppUI):void 0),ret.addPropertyResult("s3MonitoringConfiguration","S3MonitoringConfiguration",properties.S3MonitoringConfiguration!=null?CfnEndpointS3MonitoringConfigurationPropertyFromCloudFormation(properties.S3MonitoringConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEndpointConfigurationOverridesPropertyValidator(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("applicationConfiguration",cdk().listValidator(CfnEndpointEMREKSConfigurationPropertyValidator))(properties.applicationConfiguration)),errors.collect(cdk().propertyValidator("monitoringConfiguration",CfnEndpointMonitoringConfigurationPropertyValidator)(properties.monitoringConfiguration)),errors.wrap('supplied properties not correct for "ConfigurationOverridesProperty"')}function convertCfnEndpointConfigurationOverridesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEndpointConfigurationOverridesPropertyValidator(properties).assertSuccess(),{ApplicationConfiguration:cdk().listMapper(convertCfnEndpointEMREKSConfigurationPropertyToCloudFormation)(properties.applicationConfiguration),MonitoringConfiguration:convertCfnEndpointMonitoringConfigurationPropertyToCloudFormation(properties.monitoringConfiguration)}):properties}function CfnEndpointConfigurationOverridesPropertyFromCloudFormation(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("applicationConfiguration","ApplicationConfiguration",properties.ApplicationConfiguration!=null?cfn_parse().FromCloudFormation.getArray(CfnEndpointEMREKSConfigurationPropertyFromCloudFormation)(properties.ApplicationConfiguration):void 0),ret.addPropertyResult("monitoringConfiguration","MonitoringConfiguration",properties.MonitoringConfiguration!=null?CfnEndpointMonitoringConfigurationPropertyFromCloudFormation(properties.MonitoringConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEndpointCertificatePropertyValidator(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("certificateArn",cdk().validateString)(properties.certificateArn)),errors.collect(cdk().propertyValidator("certificateData",cdk().validateString)(properties.certificateData)),errors.wrap('supplied properties not correct for "CertificateProperty"')}function convertCfnEndpointCertificatePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEndpointCertificatePropertyValidator(properties).assertSuccess(),{CertificateArn:cdk().stringToCloudFormation(properties.certificateArn),CertificateData:cdk().stringToCloudFormation(properties.certificateData)}):properties}function CfnEndpointCertificatePropertyFromCloudFormation(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("certificateArn","CertificateArn",properties.CertificateArn!=null?cfn_parse().FromCloudFormation.getString(properties.CertificateArn):void 0),ret.addPropertyResult("certificateData","CertificateData",properties.CertificateData!=null?cfn_parse().FromCloudFormation.getString(properties.CertificateData):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEndpointPropsValidator(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("configurationOverrides",CfnEndpointConfigurationOverridesPropertyValidator)(properties.configurationOverrides)),errors.collect(cdk().propertyValidator("executionRoleArn",cdk().requiredValidator)(properties.executionRoleArn)),errors.collect(cdk().propertyValidator("executionRoleArn",cdk().validateString)(properties.executionRoleArn)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("releaseLabel",cdk().requiredValidator)(properties.releaseLabel)),errors.collect(cdk().propertyValidator("releaseLabel",cdk().validateString)(properties.releaseLabel)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.collect(cdk().propertyValidator("virtualClusterId",cdk().requiredValidator)(properties.virtualClusterId)),errors.collect(cdk().propertyValidator("virtualClusterId",cdk().validateString)(properties.virtualClusterId)),errors.wrap('supplied properties not correct for "CfnEndpointProps"')}function convertCfnEndpointPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEndpointPropsValidator(properties).assertSuccess(),{ConfigurationOverrides:convertCfnEndpointConfigurationOverridesPropertyToCloudFormation(properties.configurationOverrides),ExecutionRoleArn:cdk().stringToCloudFormation(properties.executionRoleArn),Name:cdk().stringToCloudFormation(properties.name),ReleaseLabel:cdk().stringToCloudFormation(properties.releaseLabel),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Type:cdk().stringToCloudFormation(properties.type),VirtualClusterId:cdk().stringToCloudFormation(properties.virtualClusterId)}):properties}function CfnEndpointPropsFromCloudFormation(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("configurationOverrides","ConfigurationOverrides",properties.ConfigurationOverrides!=null?CfnEndpointConfigurationOverridesPropertyFromCloudFormation(properties.ConfigurationOverrides):void 0),ret.addPropertyResult("executionRoleArn","ExecutionRoleArn",properties.ExecutionRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.ExecutionRoleArn):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("releaseLabel","ReleaseLabel",properties.ReleaseLabel!=null?cfn_parse().FromCloudFormation.getString(properties.ReleaseLabel):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("virtualClusterId","VirtualClusterId",properties.VirtualClusterId!=null?cfn_parse().FromCloudFormation.getString(properties.VirtualClusterId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSecurityConfiguration extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_emrcontainers.CfnSecurityConfiguration",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::EMRContainers::SecurityConfiguration";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSecurityConfigurationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnSecurityConfiguration(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnSecurityConfiguration(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnSecurityConfiguration.CFN_RESOURCE_TYPE_NAME}static arnForSecurityConfiguration(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_emrcontainers_ISecurityConfigurationRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForSecurityConfiguration),error}return resource.securityConfigurationRef.securityConfigurationArn}cdkTagManager;_containerProvider;_name;_securityConfigurationData;_tags;constructor(scope,id,props){super(scope,id,{type:CfnSecurityConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_emrcontainers_CfnSecurityConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSecurityConfiguration),error}cdk().requireProperty(props,"securityConfigurationData",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::EMRContainers::SecurityConfiguration",void 0,{tagPropertyName:"tags"}),this._containerProvider=props.containerProvider,this._name=props.name,this._securityConfigurationData=props.securityConfigurationData,this._tags=props.tags}get securityConfigurationRef(){return{securityConfigurationArn:this.ref}}get containerProvider(){return this._containerProvider}set containerProvider(value){cdk().traceProperty(this.node,"ContainerProvider"),this._containerProvider=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get securityConfigurationData(){return this._securityConfigurationData}set securityConfigurationData(value){cdk().traceProperty(this.node,"SecurityConfigurationData"),this._securityConfigurationData=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),containerProvider:this._containerProvider,name:this._name,securityConfigurationData:this._securityConfigurationData}}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",CfnSecurityConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnSecurityConfigurationPropsToCloudFormation(props)}}exports.CfnSecurityConfiguration=CfnSecurityConfiguration;function CfnSecurityConfigurationEksInfoPropertyValidator(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("namespace",cdk().validateString)(properties.namespace)),errors.wrap('supplied properties not correct for "EksInfoProperty"')}function convertCfnSecurityConfigurationEksInfoPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigurationEksInfoPropertyValidator(properties).assertSuccess(),{Namespace:cdk().stringToCloudFormation(properties.namespace)}):properties}function CfnSecurityConfigurationEksInfoPropertyFromCloudFormation(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("namespace","Namespace",properties.Namespace!=null?cfn_parse().FromCloudFormation.getString(properties.Namespace):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSecurityConfigurationContainerInfoPropertyValidator(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("eksInfo",CfnSecurityConfigurationEksInfoPropertyValidator)(properties.eksInfo)),errors.wrap('supplied properties not correct for "ContainerInfoProperty"')}function convertCfnSecurityConfigurationContainerInfoPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigurationContainerInfoPropertyValidator(properties).assertSuccess(),{EksInfo:convertCfnSecurityConfigurationEksInfoPropertyToCloudFormation(properties.eksInfo)}):properties}function CfnSecurityConfigurationContainerInfoPropertyFromCloudFormation(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("eksInfo","EksInfo",properties.EksInfo!=null?CfnSecurityConfigurationEksInfoPropertyFromCloudFormation(properties.EksInfo):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSecurityConfigurationContainerProviderPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("id",cdk().requiredValidator)(properties.id)),errors.collect(cdk().propertyValidator("id",cdk().validateString)(properties.id)),errors.collect(cdk().propertyValidator("info",CfnSecurityConfigurationContainerInfoPropertyValidator)(properties.info)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "ContainerProviderProperty"')}function convertCfnSecurityConfigurationContainerProviderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigurationContainerProviderPropertyValidator(properties).assertSuccess(),{Id:cdk().stringToCloudFormation(properties.id),Info:convertCfnSecurityConfigurationContainerInfoPropertyToCloudFormation(properties.info),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnSecurityConfigurationContainerProviderPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("id","Id",properties.Id!=null?cfn_parse().FromCloudFormation.getString(properties.Id):void 0),ret.addPropertyResult("info","Info",properties.Info!=null?CfnSecurityConfigurationContainerInfoPropertyFromCloudFormation(properties.Info):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSecurityConfigurationSecureNamespaceInfoPropertyValidator(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("clusterId",cdk().validateString)(properties.clusterId)),errors.collect(cdk().propertyValidator("namespace",cdk().validateString)(properties.namespace)),errors.wrap('supplied properties not correct for "SecureNamespaceInfoProperty"')}function convertCfnSecurityConfigurationSecureNamespaceInfoPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigurationSecureNamespaceInfoPropertyValidator(properties).assertSuccess(),{ClusterId:cdk().stringToCloudFormation(properties.clusterId),Namespace:cdk().stringToCloudFormation(properties.namespace)}):properties}function CfnSecurityConfigurationSecureNamespaceInfoPropertyFromCloudFormation(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("clusterId","ClusterId",properties.ClusterId!=null?cfn_parse().FromCloudFormation.getString(properties.ClusterId):void 0),ret.addPropertyResult("namespace","Namespace",properties.Namespace!=null?cfn_parse().FromCloudFormation.getString(properties.Namespace):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSecurityConfigurationLakeFormationConfigurationPropertyValidator(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("authorizedSessionTagValue",cdk().validateString)(properties.authorizedSessionTagValue)),errors.collect(cdk().propertyValidator("queryAccessControlEnabled",cdk().validateBoolean)(properties.queryAccessControlEnabled)),errors.collect(cdk().propertyValidator("queryEngineRoleArn",cdk().validateString)(properties.queryEngineRoleArn)),errors.collect(cdk().propertyValidator("secureNamespaceInfo",CfnSecurityConfigurationSecureNamespaceInfoPropertyValidator)(properties.secureNamespaceInfo)),errors.wrap('supplied properties not correct for "LakeFormationConfigurationProperty"')}function convertCfnSecurityConfigurationLakeFormationConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigurationLakeFormationConfigurationPropertyValidator(properties).assertSuccess(),{AuthorizedSessionTagValue:cdk().stringToCloudFormation(properties.authorizedSessionTagValue),QueryAccessControlEnabled:cdk().booleanToCloudFormation(properties.queryAccessControlEnabled),QueryEngineRoleArn:cdk().stringToCloudFormation(properties.queryEngineRoleArn),SecureNamespaceInfo:convertCfnSecurityConfigurationSecureNamespaceInfoPropertyToCloudFormation(properties.secureNamespaceInfo)}):properties}function CfnSecurityConfigurationLakeFormationConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(proper