Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-nimblestudio/lib/nimblestudio.generated.js
2026-05-06 18:55:16 -05:00

2 lines
69 KiB
JavaScript

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnStudioComponent=exports.CfnStudio=exports.CfnStreamingImage=exports.CfnLaunchProfile=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 CfnLaunchProfile extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_nimblestudio.CfnLaunchProfile",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::NimbleStudio::LaunchProfile";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLaunchProfilePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLaunchProfile(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 isCfnLaunchProfile(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLaunchProfile.CFN_RESOURCE_TYPE_NAME}_description;_ec2SubnetIds;_launchProfileProtocolVersions;_name;_streamConfiguration;_studioComponentIds;_studioId;tags;_tagsRaw;cfnPropertyNames={description:"Description",ec2SubnetIds:"Ec2SubnetIds",launchProfileProtocolVersions:"LaunchProfileProtocolVersions",name:"Name",streamConfiguration:"StreamConfiguration",studioComponentIds:"StudioComponentIds",studioId:"StudioId",tags:"Tags"};constructor(scope,id,props){super(scope,id,{type:CfnLaunchProfile.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_nimblestudio_CfnLaunchProfileProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLaunchProfile),error}cdk().requireProperty(props,"ec2SubnetIds",this),cdk().requireProperty(props,"launchProfileProtocolVersions",this),cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"streamConfiguration",this),cdk().requireProperty(props,"studioComponentIds",this),cdk().requireProperty(props,"studioId",this),this._description=props.description,this._ec2SubnetIds=props.ec2SubnetIds,this._launchProfileProtocolVersions=props.launchProfileProtocolVersions,this._name=props.name,this._streamConfiguration=props.streamConfiguration,this._studioComponentIds=props.studioComponentIds,this._studioId=props.studioId,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::NimbleStudio::LaunchProfile",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get launchProfileRef(){return{}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get ec2SubnetIds(){return this._ec2SubnetIds}set ec2SubnetIds(value){cdk().traceProperty(this.node,"Ec2SubnetIds"),this._ec2SubnetIds=value}get launchProfileProtocolVersions(){return this._launchProfileProtocolVersions}set launchProfileProtocolVersions(value){cdk().traceProperty(this.node,"LaunchProfileProtocolVersions"),this._launchProfileProtocolVersions=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get streamConfiguration(){return this._streamConfiguration}set streamConfiguration(value){cdk().traceProperty(this.node,"StreamConfiguration"),this._streamConfiguration=value}get studioComponentIds(){return this._studioComponentIds}set studioComponentIds(value){cdk().traceProperty(this.node,"StudioComponentIds"),this._studioComponentIds=value}get studioId(){return this._studioId}set studioId(value){cdk().traceProperty(this.node,"StudioId"),this._studioId=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrLaunchProfileId(){return cdk().Token.asString(this.getAtt("LaunchProfileId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{description:this._description,ec2SubnetIds:this._ec2SubnetIds,launchProfileProtocolVersions:this._launchProfileProtocolVersions,name:this._name,streamConfiguration:this._streamConfiguration,studioComponentIds:this._studioComponentIds,studioId:this._studioId,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",CfnLaunchProfile.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLaunchProfilePropsToCloudFormation(props)}}exports.CfnLaunchProfile=CfnLaunchProfile;function CfnLaunchProfileStreamConfigurationSessionBackupPropertyValidator(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("maxBackupsToRetain",cdk().validateNumber)(properties.maxBackupsToRetain)),errors.collect(cdk().propertyValidator("mode",cdk().validateString)(properties.mode)),errors.wrap('supplied properties not correct for "StreamConfigurationSessionBackupProperty"')}function convertCfnLaunchProfileStreamConfigurationSessionBackupPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLaunchProfileStreamConfigurationSessionBackupPropertyValidator(properties).assertSuccess(),{MaxBackupsToRetain:cdk().numberToCloudFormation(properties.maxBackupsToRetain),Mode:cdk().stringToCloudFormation(properties.mode)}):properties}function CfnLaunchProfileStreamConfigurationSessionBackupPropertyFromCloudFormation(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("maxBackupsToRetain","MaxBackupsToRetain",properties.MaxBackupsToRetain!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxBackupsToRetain):void 0),ret.addPropertyResult("mode","Mode",properties.Mode!=null?cfn_parse().FromCloudFormation.getString(properties.Mode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchProfileStreamingSessionStorageRootPropertyValidator(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("linux",cdk().validateString)(properties.linux)),errors.collect(cdk().propertyValidator("windows",cdk().validateString)(properties.windows)),errors.wrap('supplied properties not correct for "StreamingSessionStorageRootProperty"')}function convertCfnLaunchProfileStreamingSessionStorageRootPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLaunchProfileStreamingSessionStorageRootPropertyValidator(properties).assertSuccess(),{Linux:cdk().stringToCloudFormation(properties.linux),Windows:cdk().stringToCloudFormation(properties.windows)}):properties}function CfnLaunchProfileStreamingSessionStorageRootPropertyFromCloudFormation(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("linux","Linux",properties.Linux!=null?cfn_parse().FromCloudFormation.getString(properties.Linux):void 0),ret.addPropertyResult("windows","Windows",properties.Windows!=null?cfn_parse().FromCloudFormation.getString(properties.Windows):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchProfileStreamConfigurationSessionStoragePropertyValidator(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("mode",cdk().requiredValidator)(properties.mode)),errors.collect(cdk().propertyValidator("mode",cdk().listValidator(cdk().validateString))(properties.mode)),errors.collect(cdk().propertyValidator("root",CfnLaunchProfileStreamingSessionStorageRootPropertyValidator)(properties.root)),errors.wrap('supplied properties not correct for "StreamConfigurationSessionStorageProperty"')}function convertCfnLaunchProfileStreamConfigurationSessionStoragePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLaunchProfileStreamConfigurationSessionStoragePropertyValidator(properties).assertSuccess(),{Mode:cdk().listMapper(cdk().stringToCloudFormation)(properties.mode),Root:convertCfnLaunchProfileStreamingSessionStorageRootPropertyToCloudFormation(properties.root)}):properties}function CfnLaunchProfileStreamConfigurationSessionStoragePropertyFromCloudFormation(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("mode","Mode",properties.Mode!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Mode):void 0),ret.addPropertyResult("root","Root",properties.Root!=null?CfnLaunchProfileStreamingSessionStorageRootPropertyFromCloudFormation(properties.Root):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchProfileVolumeConfigurationPropertyValidator(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("iops",cdk().validateNumber)(properties.iops)),errors.collect(cdk().propertyValidator("size",cdk().validateNumber)(properties.size)),errors.collect(cdk().propertyValidator("throughput",cdk().validateNumber)(properties.throughput)),errors.wrap('supplied properties not correct for "VolumeConfigurationProperty"')}function convertCfnLaunchProfileVolumeConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLaunchProfileVolumeConfigurationPropertyValidator(properties).assertSuccess(),{Iops:cdk().numberToCloudFormation(properties.iops),Size:cdk().numberToCloudFormation(properties.size),Throughput:cdk().numberToCloudFormation(properties.throughput)}):properties}function CfnLaunchProfileVolumeConfigurationPropertyFromCloudFormation(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("iops","Iops",properties.Iops!=null?cfn_parse().FromCloudFormation.getNumber(properties.Iops):void 0),ret.addPropertyResult("size","Size",properties.Size!=null?cfn_parse().FromCloudFormation.getNumber(properties.Size):void 0),ret.addPropertyResult("throughput","Throughput",properties.Throughput!=null?cfn_parse().FromCloudFormation.getNumber(properties.Throughput):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchProfileStreamConfigurationPropertyValidator(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("automaticTerminationMode",cdk().validateString)(properties.automaticTerminationMode)),errors.collect(cdk().propertyValidator("clipboardMode",cdk().requiredValidator)(properties.clipboardMode)),errors.collect(cdk().propertyValidator("clipboardMode",cdk().validateString)(properties.clipboardMode)),errors.collect(cdk().propertyValidator("ec2InstanceTypes",cdk().requiredValidator)(properties.ec2InstanceTypes)),errors.collect(cdk().propertyValidator("ec2InstanceTypes",cdk().listValidator(cdk().validateString))(properties.ec2InstanceTypes)),errors.collect(cdk().propertyValidator("maxSessionLengthInMinutes",cdk().validateNumber)(properties.maxSessionLengthInMinutes)),errors.collect(cdk().propertyValidator("maxStoppedSessionLengthInMinutes",cdk().validateNumber)(properties.maxStoppedSessionLengthInMinutes)),errors.collect(cdk().propertyValidator("sessionBackup",CfnLaunchProfileStreamConfigurationSessionBackupPropertyValidator)(properties.sessionBackup)),errors.collect(cdk().propertyValidator("sessionPersistenceMode",cdk().validateString)(properties.sessionPersistenceMode)),errors.collect(cdk().propertyValidator("sessionStorage",CfnLaunchProfileStreamConfigurationSessionStoragePropertyValidator)(properties.sessionStorage)),errors.collect(cdk().propertyValidator("streamingImageIds",cdk().requiredValidator)(properties.streamingImageIds)),errors.collect(cdk().propertyValidator("streamingImageIds",cdk().listValidator(cdk().validateString))(properties.streamingImageIds)),errors.collect(cdk().propertyValidator("volumeConfiguration",CfnLaunchProfileVolumeConfigurationPropertyValidator)(properties.volumeConfiguration)),errors.wrap('supplied properties not correct for "StreamConfigurationProperty"')}function convertCfnLaunchProfileStreamConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLaunchProfileStreamConfigurationPropertyValidator(properties).assertSuccess(),{AutomaticTerminationMode:cdk().stringToCloudFormation(properties.automaticTerminationMode),ClipboardMode:cdk().stringToCloudFormation(properties.clipboardMode),Ec2InstanceTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.ec2InstanceTypes),MaxSessionLengthInMinutes:cdk().numberToCloudFormation(properties.maxSessionLengthInMinutes),MaxStoppedSessionLengthInMinutes:cdk().numberToCloudFormation(properties.maxStoppedSessionLengthInMinutes),SessionBackup:convertCfnLaunchProfileStreamConfigurationSessionBackupPropertyToCloudFormation(properties.sessionBackup),SessionPersistenceMode:cdk().stringToCloudFormation(properties.sessionPersistenceMode),SessionStorage:convertCfnLaunchProfileStreamConfigurationSessionStoragePropertyToCloudFormation(properties.sessionStorage),StreamingImageIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.streamingImageIds),VolumeConfiguration:convertCfnLaunchProfileVolumeConfigurationPropertyToCloudFormation(properties.volumeConfiguration)}):properties}function CfnLaunchProfileStreamConfigurationPropertyFromCloudFormation(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("automaticTerminationMode","AutomaticTerminationMode",properties.AutomaticTerminationMode!=null?cfn_parse().FromCloudFormation.getString(properties.AutomaticTerminationMode):void 0),ret.addPropertyResult("clipboardMode","ClipboardMode",properties.ClipboardMode!=null?cfn_parse().FromCloudFormation.getString(properties.ClipboardMode):void 0),ret.addPropertyResult("ec2InstanceTypes","Ec2InstanceTypes",properties.Ec2InstanceTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Ec2InstanceTypes):void 0),ret.addPropertyResult("maxSessionLengthInMinutes","MaxSessionLengthInMinutes",properties.MaxSessionLengthInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxSessionLengthInMinutes):void 0),ret.addPropertyResult("maxStoppedSessionLengthInMinutes","MaxStoppedSessionLengthInMinutes",properties.MaxStoppedSessionLengthInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxStoppedSessionLengthInMinutes):void 0),ret.addPropertyResult("sessionBackup","SessionBackup",properties.SessionBackup!=null?CfnLaunchProfileStreamConfigurationSessionBackupPropertyFromCloudFormation(properties.SessionBackup):void 0),ret.addPropertyResult("sessionPersistenceMode","SessionPersistenceMode",properties.SessionPersistenceMode!=null?cfn_parse().FromCloudFormation.getString(properties.SessionPersistenceMode):void 0),ret.addPropertyResult("sessionStorage","SessionStorage",properties.SessionStorage!=null?CfnLaunchProfileStreamConfigurationSessionStoragePropertyFromCloudFormation(properties.SessionStorage):void 0),ret.addPropertyResult("streamingImageIds","StreamingImageIds",properties.StreamingImageIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.StreamingImageIds):void 0),ret.addPropertyResult("volumeConfiguration","VolumeConfiguration",properties.VolumeConfiguration!=null?CfnLaunchProfileVolumeConfigurationPropertyFromCloudFormation(properties.VolumeConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchProfilePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("ec2SubnetIds",cdk().requiredValidator)(properties.ec2SubnetIds)),errors.collect(cdk().propertyValidator("ec2SubnetIds",cdk().listValidator(cdk().validateString))(properties.ec2SubnetIds)),errors.collect(cdk().propertyValidator("launchProfileProtocolVersions",cdk().requiredValidator)(properties.launchProfileProtocolVersions)),errors.collect(cdk().propertyValidator("launchProfileProtocolVersions",cdk().listValidator(cdk().validateString))(properties.launchProfileProtocolVersions)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("streamConfiguration",cdk().requiredValidator)(properties.streamConfiguration)),errors.collect(cdk().propertyValidator("streamConfiguration",CfnLaunchProfileStreamConfigurationPropertyValidator)(properties.streamConfiguration)),errors.collect(cdk().propertyValidator("studioComponentIds",cdk().requiredValidator)(properties.studioComponentIds)),errors.collect(cdk().propertyValidator("studioComponentIds",cdk().listValidator(cdk().validateString))(properties.studioComponentIds)),errors.collect(cdk().propertyValidator("studioId",cdk().requiredValidator)(properties.studioId)),errors.collect(cdk().propertyValidator("studioId",cdk().validateString)(properties.studioId)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnLaunchProfileProps"')}function convertCfnLaunchProfilePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLaunchProfilePropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Ec2SubnetIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.ec2SubnetIds),LaunchProfileProtocolVersions:cdk().listMapper(cdk().stringToCloudFormation)(properties.launchProfileProtocolVersions),Name:cdk().stringToCloudFormation(properties.name),StreamConfiguration:convertCfnLaunchProfileStreamConfigurationPropertyToCloudFormation(properties.streamConfiguration),StudioComponentIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.studioComponentIds),StudioId:cdk().stringToCloudFormation(properties.studioId),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnLaunchProfilePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("ec2SubnetIds","Ec2SubnetIds",properties.Ec2SubnetIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Ec2SubnetIds):void 0),ret.addPropertyResult("launchProfileProtocolVersions","LaunchProfileProtocolVersions",properties.LaunchProfileProtocolVersions!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.LaunchProfileProtocolVersions):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("streamConfiguration","StreamConfiguration",properties.StreamConfiguration!=null?CfnLaunchProfileStreamConfigurationPropertyFromCloudFormation(properties.StreamConfiguration):void 0),ret.addPropertyResult("studioComponentIds","StudioComponentIds",properties.StudioComponentIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.StudioComponentIds):void 0),ret.addPropertyResult("studioId","StudioId",properties.StudioId!=null?cfn_parse().FromCloudFormation.getString(properties.StudioId):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnStreamingImage extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_nimblestudio.CfnStreamingImage",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::NimbleStudio::StreamingImage";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStreamingImagePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnStreamingImage(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 isCfnStreamingImage(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnStreamingImage.CFN_RESOURCE_TYPE_NAME}_description;_ec2ImageId;_name;_studioId;tags;_tagsRaw;cfnPropertyNames={description:"Description",ec2ImageId:"Ec2ImageId",name:"Name",studioId:"StudioId",tags:"Tags"};constructor(scope,id,props){super(scope,id,{type:CfnStreamingImage.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_nimblestudio_CfnStreamingImageProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnStreamingImage),error}cdk().requireProperty(props,"ec2ImageId",this),cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"studioId",this),this._description=props.description,this._ec2ImageId=props.ec2ImageId,this._name=props.name,this._studioId=props.studioId,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::NimbleStudio::StreamingImage",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get streamingImageRef(){return{}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get ec2ImageId(){return this._ec2ImageId}set ec2ImageId(value){cdk().traceProperty(this.node,"Ec2ImageId"),this._ec2ImageId=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get studioId(){return this._studioId}set studioId(value){cdk().traceProperty(this.node,"StudioId"),this._studioId=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrEncryptionConfiguration(){return this.getAtt("EncryptionConfiguration")}get attrEncryptionConfigurationKeyArn(){return cdk().Token.asString(this.getAtt("EncryptionConfiguration.KeyArn",cdk().ResolutionTypeHint.STRING))}get attrEncryptionConfigurationKeyType(){return cdk().Token.asString(this.getAtt("EncryptionConfiguration.KeyType",cdk().ResolutionTypeHint.STRING))}get attrEulaIds(){return cdk().Token.asList(this.getAtt("EulaIds",cdk().ResolutionTypeHint.STRING_LIST))}get attrOwner(){return cdk().Token.asString(this.getAtt("Owner",cdk().ResolutionTypeHint.STRING))}get attrPlatform(){return cdk().Token.asString(this.getAtt("Platform",cdk().ResolutionTypeHint.STRING))}get attrStreamingImageId(){return cdk().Token.asString(this.getAtt("StreamingImageId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{description:this._description,ec2ImageId:this._ec2ImageId,name:this._name,studioId:this._studioId,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",CfnStreamingImage.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnStreamingImagePropsToCloudFormation(props)}}exports.CfnStreamingImage=CfnStreamingImage;function CfnStreamingImageStreamingImageEncryptionConfigurationPropertyValidator(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("keyArn",cdk().validateString)(properties.keyArn)),errors.collect(cdk().propertyValidator("keyType",cdk().requiredValidator)(properties.keyType)),errors.collect(cdk().propertyValidator("keyType",cdk().validateString)(properties.keyType)),errors.wrap('supplied properties not correct for "StreamingImageEncryptionConfigurationProperty"')}function convertCfnStreamingImageStreamingImageEncryptionConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStreamingImageStreamingImageEncryptionConfigurationPropertyValidator(properties).assertSuccess(),{KeyArn:cdk().stringToCloudFormation(properties.keyArn),KeyType:cdk().stringToCloudFormation(properties.keyType)}):properties}function CfnStreamingImageStreamingImageEncryptionConfigurationPropertyFromCloudFormation(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("keyArn","KeyArn",properties.KeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KeyArn):void 0),ret.addPropertyResult("keyType","KeyType",properties.KeyType!=null?cfn_parse().FromCloudFormation.getString(properties.KeyType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamingImagePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("ec2ImageId",cdk().requiredValidator)(properties.ec2ImageId)),errors.collect(cdk().propertyValidator("ec2ImageId",cdk().validateString)(properties.ec2ImageId)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("studioId",cdk().requiredValidator)(properties.studioId)),errors.collect(cdk().propertyValidator("studioId",cdk().validateString)(properties.studioId)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnStreamingImageProps"')}function convertCfnStreamingImagePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStreamingImagePropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Ec2ImageId:cdk().stringToCloudFormation(properties.ec2ImageId),Name:cdk().stringToCloudFormation(properties.name),StudioId:cdk().stringToCloudFormation(properties.studioId),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnStreamingImagePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("ec2ImageId","Ec2ImageId",properties.Ec2ImageId!=null?cfn_parse().FromCloudFormation.getString(properties.Ec2ImageId):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("studioId","StudioId",properties.StudioId!=null?cfn_parse().FromCloudFormation.getString(properties.StudioId):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnStudio extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_nimblestudio.CfnStudio",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::NimbleStudio::Studio";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStudioPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnStudio(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 isCfnStudio(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnStudio.CFN_RESOURCE_TYPE_NAME}static fromStudioId(scope,id,studioId){class Import extends cdk().Resource{studioRef;constructor(scope2,id2,studioId2){super(scope2,id2),this.studioRef={studioId:studioId2}}}return new Import(scope,id,studioId)}static arnForStudio(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_nimblestudio_IStudioRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForStudio),error}return new(cfn_parse()).TemplateString("arn:${Partition}:nimble:${Region}:${Account}:studio/${StudioId}").interpolate({Partition:cdk().Stack.of(resource).partition,Region:resource.env.region,Account:resource.env.account,StudioId:resource.studioRef.studioId})}_adminRoleArn;_displayName;_studioEncryptionConfiguration;_studioName;tags;_tagsRaw;_userRoleArn;cfnPropertyNames={adminRoleArn:"AdminRoleArn",displayName:"DisplayName",studioEncryptionConfiguration:"StudioEncryptionConfiguration",studioName:"StudioName",tags:"Tags",userRoleArn:"UserRoleArn"};constructor(scope,id,props){super(scope,id,{type:CfnStudio.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_nimblestudio_CfnStudioProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnStudio),error}cdk().requireProperty(props,"adminRoleArn",this),cdk().requireProperty(props,"displayName",this),cdk().requireProperty(props,"studioName",this),cdk().requireProperty(props,"userRoleArn",this),this._adminRoleArn=cdk().getRefProperty(props.adminRoleArn?.roleRef,"roleArn")??cdk().ensureStringOrUndefined(props.adminRoleArn,"adminRoleArn","iam.IRoleRef | string"),this._displayName=props.displayName,this._studioEncryptionConfiguration=props.studioEncryptionConfiguration,this._studioName=props.studioName,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::NimbleStudio::Studio",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._userRoleArn=cdk().getRefProperty(props.userRoleArn?.roleRef,"roleArn")??cdk().ensureStringOrUndefined(props.userRoleArn,"userRoleArn","iam.IRoleRef | string")}get studioRef(){return{studioId:this.ref}}get adminRoleArn(){return this._adminRoleArn}set adminRoleArn(value){cdk().traceProperty(this.node,"AdminRoleArn"),this._adminRoleArn=value}get displayName(){return this._displayName}set displayName(value){cdk().traceProperty(this.node,"DisplayName"),this._displayName=value}get studioEncryptionConfiguration(){return this._studioEncryptionConfiguration}set studioEncryptionConfiguration(value){cdk().traceProperty(this.node,"StudioEncryptionConfiguration"),this._studioEncryptionConfiguration=value}get studioName(){return this._studioName}set studioName(value){cdk().traceProperty(this.node,"StudioName"),this._studioName=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get userRoleArn(){return this._userRoleArn}set userRoleArn(value){cdk().traceProperty(this.node,"UserRoleArn"),this._userRoleArn=value}get attrHomeRegion(){return cdk().Token.asString(this.getAtt("HomeRegion",cdk().ResolutionTypeHint.STRING))}get attrSsoClientId(){return cdk().Token.asString(this.getAtt("SsoClientId",cdk().ResolutionTypeHint.STRING))}get attrStudioId(){return cdk().Token.asString(this.getAtt("StudioId",cdk().ResolutionTypeHint.STRING))}get attrStudioUrl(){return cdk().Token.asString(this.getAtt("StudioUrl",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{adminRoleArn:this._adminRoleArn,displayName:this._displayName,studioEncryptionConfiguration:this._studioEncryptionConfiguration,studioName:this._studioName,tags:this.tags.renderTags(),userRoleArn:this._userRoleArn}}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",CfnStudio.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnStudioPropsToCloudFormation(props)}}exports.CfnStudio=CfnStudio;function CfnStudioStudioEncryptionConfigurationPropertyValidator(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("keyArn",cdk().validateString)(properties.keyArn)),errors.collect(cdk().propertyValidator("keyType",cdk().requiredValidator)(properties.keyType)),errors.collect(cdk().propertyValidator("keyType",cdk().validateString)(properties.keyType)),errors.wrap('supplied properties not correct for "StudioEncryptionConfigurationProperty"')}function convertCfnStudioStudioEncryptionConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioStudioEncryptionConfigurationPropertyValidator(properties).assertSuccess(),{KeyArn:cdk().stringToCloudFormation(properties.keyArn),KeyType:cdk().stringToCloudFormation(properties.keyType)}):properties}function CfnStudioStudioEncryptionConfigurationPropertyFromCloudFormation(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("keyArn","KeyArn",properties.KeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KeyArn):void 0),ret.addPropertyResult("keyType","KeyType",properties.KeyType!=null?cfn_parse().FromCloudFormation.getString(properties.KeyType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioPropsValidator(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("adminRoleArn",cdk().requiredValidator)(properties.adminRoleArn)),errors.collect(cdk().propertyValidator("adminRoleArn",cdk().validateString)(properties.adminRoleArn)),errors.collect(cdk().propertyValidator("displayName",cdk().requiredValidator)(properties.displayName)),errors.collect(cdk().propertyValidator("displayName",cdk().validateString)(properties.displayName)),errors.collect(cdk().propertyValidator("studioEncryptionConfiguration",CfnStudioStudioEncryptionConfigurationPropertyValidator)(properties.studioEncryptionConfiguration)),errors.collect(cdk().propertyValidator("studioName",cdk().requiredValidator)(properties.studioName)),errors.collect(cdk().propertyValidator("studioName",cdk().validateString)(properties.studioName)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.collect(cdk().propertyValidator("userRoleArn",cdk().requiredValidator)(properties.userRoleArn)),errors.collect(cdk().propertyValidator("userRoleArn",cdk().validateString)(properties.userRoleArn)),errors.wrap('supplied properties not correct for "CfnStudioProps"')}function convertCfnStudioPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioPropsValidator(properties).assertSuccess(),{AdminRoleArn:cdk().stringToCloudFormation(properties.adminRoleArn),DisplayName:cdk().stringToCloudFormation(properties.displayName),StudioEncryptionConfiguration:convertCfnStudioStudioEncryptionConfigurationPropertyToCloudFormation(properties.studioEncryptionConfiguration),StudioName:cdk().stringToCloudFormation(properties.studioName),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags),UserRoleArn:cdk().stringToCloudFormation(properties.userRoleArn)}):properties}function CfnStudioPropsFromCloudFormation(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("adminRoleArn","AdminRoleArn",properties.AdminRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.AdminRoleArn):void 0),ret.addPropertyResult("displayName","DisplayName",properties.DisplayName!=null?cfn_parse().FromCloudFormation.getString(properties.DisplayName):void 0),ret.addPropertyResult("studioEncryptionConfiguration","StudioEncryptionConfiguration",properties.StudioEncryptionConfiguration!=null?CfnStudioStudioEncryptionConfigurationPropertyFromCloudFormation(properties.StudioEncryptionConfiguration):void 0),ret.addPropertyResult("studioName","StudioName",properties.StudioName!=null?cfn_parse().FromCloudFormation.getString(properties.StudioName):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addPropertyResult("userRoleArn","UserRoleArn",properties.UserRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.UserRoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnStudioComponent extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_nimblestudio.CfnStudioComponent",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::NimbleStudio::StudioComponent";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStudioComponentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnStudioComponent(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 isCfnStudioComponent(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnStudioComponent.CFN_RESOURCE_TYPE_NAME}_configuration;_description;_ec2SecurityGroupIds;_initializationScripts;_name;_scriptParameters;_studioId;_subtype;tags;_tagsRaw;_type;cfnPropertyNames={configuration:"Configuration",description:"Description",ec2SecurityGroupIds:"Ec2SecurityGroupIds",initializationScripts:"InitializationScripts",name:"Name",scriptParameters:"ScriptParameters",studioId:"StudioId",subtype:"Subtype",tags:"Tags",type:"Type"};constructor(scope,id,props){super(scope,id,{type:CfnStudioComponent.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_nimblestudio_CfnStudioComponentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnStudioComponent),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"studioId",this),cdk().requireProperty(props,"type",this),this._configuration=props.configuration,this._description=props.description,this._ec2SecurityGroupIds=props.ec2SecurityGroupIds,this._initializationScripts=props.initializationScripts,this._name=props.name,this._scriptParameters=props.scriptParameters,this._studioId=props.studioId,this._subtype=props.subtype,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::NimbleStudio::StudioComponent",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._type=props.type}get studioComponentRef(){return{}}get configuration(){return this._configuration}set configuration(value){cdk().traceProperty(this.node,"Configuration"),this._configuration=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get ec2SecurityGroupIds(){return this._ec2SecurityGroupIds}set ec2SecurityGroupIds(value){cdk().traceProperty(this.node,"Ec2SecurityGroupIds"),this._ec2SecurityGroupIds=value}get initializationScripts(){return this._initializationScripts}set initializationScripts(value){cdk().traceProperty(this.node,"InitializationScripts"),this._initializationScripts=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get scriptParameters(){return this._scriptParameters}set scriptParameters(value){cdk().traceProperty(this.node,"ScriptParameters"),this._scriptParameters=value}get studioId(){return this._studioId}set studioId(value){cdk().traceProperty(this.node,"StudioId"),this._studioId=value}get subtype(){return this._subtype}set subtype(value){cdk().traceProperty(this.node,"Subtype"),this._subtype=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get type(){return this._type}set type(value){cdk().traceProperty(this.node,"Type"),this._type=value}get attrStudioComponentId(){return cdk().Token.asString(this.getAtt("StudioComponentId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{configuration:this._configuration,description:this._description,ec2SecurityGroupIds:this._ec2SecurityGroupIds,initializationScripts:this._initializationScripts,name:this._name,scriptParameters:this._scriptParameters,studioId:this._studioId,subtype:this._subtype,tags:this.tags.renderTags(),type:this._type}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnStudioComponent.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnStudioComponentPropsToCloudFormation(props)}}exports.CfnStudioComponent=CfnStudioComponent;function CfnStudioComponentLicenseServiceConfigurationPropertyValidator(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("endpoint",cdk().validateString)(properties.endpoint)),errors.wrap('supplied properties not correct for "LicenseServiceConfigurationProperty"')}function convertCfnStudioComponentLicenseServiceConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentLicenseServiceConfigurationPropertyValidator(properties).assertSuccess(),{Endpoint:cdk().stringToCloudFormation(properties.endpoint)}):properties}function CfnStudioComponentLicenseServiceConfigurationPropertyFromCloudFormation(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("endpoint","Endpoint",properties.Endpoint!=null?cfn_parse().FromCloudFormation.getString(properties.Endpoint):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentComputeFarmConfigurationPropertyValidator(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("activeDirectoryUser",cdk().validateString)(properties.activeDirectoryUser)),errors.collect(cdk().propertyValidator("endpoint",cdk().validateString)(properties.endpoint)),errors.wrap('supplied properties not correct for "ComputeFarmConfigurationProperty"')}function convertCfnStudioComponentComputeFarmConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentComputeFarmConfigurationPropertyValidator(properties).assertSuccess(),{ActiveDirectoryUser:cdk().stringToCloudFormation(properties.activeDirectoryUser),Endpoint:cdk().stringToCloudFormation(properties.endpoint)}):properties}function CfnStudioComponentComputeFarmConfigurationPropertyFromCloudFormation(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("activeDirectoryUser","ActiveDirectoryUser",properties.ActiveDirectoryUser!=null?cfn_parse().FromCloudFormation.getString(properties.ActiveDirectoryUser):void 0),ret.addPropertyResult("endpoint","Endpoint",properties.Endpoint!=null?cfn_parse().FromCloudFormation.getString(properties.Endpoint):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentActiveDirectoryComputerAttributePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "ActiveDirectoryComputerAttributeProperty"')}function convertCfnStudioComponentActiveDirectoryComputerAttributePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentActiveDirectoryComputerAttributePropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnStudioComponentActiveDirectoryComputerAttributePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentActiveDirectoryConfigurationPropertyValidator(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("computerAttributes",cdk().listValidator(CfnStudioComponentActiveDirectoryComputerAttributePropertyValidator))(properties.computerAttributes)),errors.collect(cdk().propertyValidator("directoryId",cdk().validateString)(properties.directoryId)),errors.collect(cdk().propertyValidator("organizationalUnitDistinguishedName",cdk().validateString)(properties.organizationalUnitDistinguishedName)),errors.wrap('supplied properties not correct for "ActiveDirectoryConfigurationProperty"')}function convertCfnStudioComponentActiveDirectoryConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentActiveDirectoryConfigurationPropertyValidator(properties).assertSuccess(),{ComputerAttributes:cdk().listMapper(convertCfnStudioComponentActiveDirectoryComputerAttributePropertyToCloudFormation)(properties.computerAttributes),DirectoryId:cdk().stringToCloudFormation(properties.directoryId),OrganizationalUnitDistinguishedName:cdk().stringToCloudFormation(properties.organizationalUnitDistinguishedName)}):properties}function CfnStudioComponentActiveDirectoryConfigurationPropertyFromCloudFormation(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("computerAttributes","ComputerAttributes",properties.ComputerAttributes!=null?cfn_parse().FromCloudFormation.getArray(CfnStudioComponentActiveDirectoryComputerAttributePropertyFromCloudFormation)(properties.ComputerAttributes):void 0),ret.addPropertyResult("directoryId","DirectoryId",properties.DirectoryId!=null?cfn_parse().FromCloudFormation.getString(properties.DirectoryId):void 0),ret.addPropertyResult("organizationalUnitDistinguishedName","OrganizationalUnitDistinguishedName",properties.OrganizationalUnitDistinguishedName!=null?cfn_parse().FromCloudFormation.getString(properties.OrganizationalUnitDistinguishedName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentSharedFileSystemConfigurationPropertyValidator(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("endpoint",cdk().validateString)(properties.endpoint)),errors.collect(cdk().propertyValidator("fileSystemId",cdk().validateString)(properties.fileSystemId)),errors.collect(cdk().propertyValidator("linuxMountPoint",cdk().validateString)(properties.linuxMountPoint)),errors.collect(cdk().propertyValidator("shareName",cdk().validateString)(properties.shareName)),errors.collect(cdk().propertyValidator("windowsMountDrive",cdk().validateString)(properties.windowsMountDrive)),errors.wrap('supplied properties not correct for "SharedFileSystemConfigurationProperty"')}function convertCfnStudioComponentSharedFileSystemConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentSharedFileSystemConfigurationPropertyValidator(properties).assertSuccess(),{Endpoint:cdk().stringToCloudFormation(properties.endpoint),FileSystemId:cdk().stringToCloudFormation(properties.fileSystemId),LinuxMountPoint:cdk().stringToCloudFormation(properties.linuxMountPoint),ShareName:cdk().stringToCloudFormation(properties.shareName),WindowsMountDrive:cdk().stringToCloudFormation(properties.windowsMountDrive)}):properties}function CfnStudioComponentSharedFileSystemConfigurationPropertyFromCloudFormation(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("endpoint","Endpoint",properties.Endpoint!=null?cfn_parse().FromCloudFormation.getString(properties.Endpoint):void 0),ret.addPropertyResult("fileSystemId","FileSystemId",properties.FileSystemId!=null?cfn_parse().FromCloudFormation.getString(properties.FileSystemId):void 0),ret.addPropertyResult("linuxMountPoint","LinuxMountPoint",properties.LinuxMountPoint!=null?cfn_parse().FromCloudFormation.getString(properties.LinuxMountPoint):void 0),ret.addPropertyResult("shareName","ShareName",properties.ShareName!=null?cfn_parse().FromCloudFormation.getString(properties.ShareName):void 0),ret.addPropertyResult("windowsMountDrive","WindowsMountDrive",properties.WindowsMountDrive!=null?cfn_parse().FromCloudFormation.getString(properties.WindowsMountDrive):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentStudioComponentConfigurationPropertyValidator(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("activeDirectoryConfiguration",CfnStudioComponentActiveDirectoryConfigurationPropertyValidator)(properties.activeDirectoryConfiguration)),errors.collect(cdk().propertyValidator("computeFarmConfiguration",CfnStudioComponentComputeFarmConfigurationPropertyValidator)(properties.computeFarmConfiguration)),errors.collect(cdk().propertyValidator("licenseServiceConfiguration",CfnStudioComponentLicenseServiceConfigurationPropertyValidator)(properties.licenseServiceConfiguration)),errors.collect(cdk().propertyValidator("sharedFileSystemConfiguration",CfnStudioComponentSharedFileSystemConfigurationPropertyValidator)(properties.sharedFileSystemConfiguration)),errors.wrap('supplied properties not correct for "StudioComponentConfigurationProperty"')}function convertCfnStudioComponentStudioComponentConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentStudioComponentConfigurationPropertyValidator(properties).assertSuccess(),{ActiveDirectoryConfiguration:convertCfnStudioComponentActiveDirectoryConfigurationPropertyToCloudFormation(properties.activeDirectoryConfiguration),ComputeFarmConfiguration:convertCfnStudioComponentComputeFarmConfigurationPropertyToCloudFormation(properties.computeFarmConfiguration),LicenseServiceConfiguration:convertCfnStudioComponentLicenseServiceConfigurationPropertyToCloudFormation(properties.licenseServiceConfiguration),SharedFileSystemConfiguration:convertCfnStudioComponentSharedFileSystemConfigurationPropertyToCloudFormation(properties.sharedFileSystemConfiguration)}):properties}function CfnStudioComponentStudioComponentConfigurationPropertyFromCloudFormation(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("activeDirectoryConfiguration","ActiveDirectoryConfiguration",properties.ActiveDirectoryConfiguration!=null?CfnStudioComponentActiveDirectoryConfigurationPropertyFromCloudFormation(properties.ActiveDirectoryConfiguration):void 0),ret.addPropertyResult("computeFarmConfiguration","ComputeFarmConfiguration",properties.ComputeFarmConfiguration!=null?CfnStudioComponentComputeFarmConfigurationPropertyFromCloudFormation(properties.ComputeFarmConfiguration):void 0),ret.addPropertyResult("licenseServiceConfiguration","LicenseServiceConfiguration",properties.LicenseServiceConfiguration!=null?CfnStudioComponentLicenseServiceConfigurationPropertyFromCloudFormation(properties.LicenseServiceConfiguration):void 0),ret.addPropertyResult("sharedFileSystemConfiguration","SharedFileSystemConfiguration",properties.SharedFileSystemConfiguration!=null?CfnStudioComponentSharedFileSystemConfigurationPropertyFromCloudFormation(properties.SharedFileSystemConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentStudioComponentInitializationScriptPropertyValidator(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("launchProfileProtocolVersion",cdk().validateString)(properties.launchProfileProtocolVersion)),errors.collect(cdk().propertyValidator("platform",cdk().validateString)(properties.platform)),errors.collect(cdk().propertyValidator("runContext",cdk().validateString)(properties.runContext)),errors.collect(cdk().propertyValidator("script",cdk().validateString)(properties.script)),errors.wrap('supplied properties not correct for "StudioComponentInitializationScriptProperty"')}function convertCfnStudioComponentStudioComponentInitializationScriptPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentStudioComponentInitializationScriptPropertyValidator(properties).assertSuccess(),{LaunchProfileProtocolVersion:cdk().stringToCloudFormation(properties.launchProfileProtocolVersion),Platform:cdk().stringToCloudFormation(properties.platform),RunContext:cdk().stringToCloudFormation(properties.runContext),Script:cdk().stringToCloudFormation(properties.script)}):properties}function CfnStudioComponentStudioComponentInitializationScriptPropertyFromCloudFormation(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("launchProfileProtocolVersion","LaunchProfileProtocolVersion",properties.LaunchProfileProtocolVersion!=null?cfn_parse().FromCloudFormation.getString(properties.LaunchProfileProtocolVersion):void 0),ret.addPropertyResult("platform","Platform",properties.Platform!=null?cfn_parse().FromCloudFormation.getString(properties.Platform):void 0),ret.addPropertyResult("runContext","RunContext",properties.RunContext!=null?cfn_parse().FromCloudFormation.getString(properties.RunContext):void 0),ret.addPropertyResult("script","Script",properties.Script!=null?cfn_parse().FromCloudFormation.getString(properties.Script):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentScriptParameterKeyValuePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("key",cdk().validateString)(properties.key)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "ScriptParameterKeyValueProperty"')}function convertCfnStudioComponentScriptParameterKeyValuePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentScriptParameterKeyValuePropertyValidator(properties).assertSuccess(),{Key:cdk().stringToCloudFormation(properties.key),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnStudioComponentScriptParameterKeyValuePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",properties.Key!=null?cfn_parse().FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentPropsValidator(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("configuration",CfnStudioComponentStudioComponentConfigurationPropertyValidator)(properties.configuration)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("ec2SecurityGroupIds",cdk().listValidator(cdk().validateString))(properties.ec2SecurityGroupIds)),errors.collect(cdk().propertyValidator("initializationScripts",cdk().listValidator(CfnStudioComponentStudioComponentInitializationScriptPropertyValidator))(properties.initializationScripts)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("scriptParameters",cdk().listValidator(CfnStudioComponentScriptParameterKeyValuePropertyValidator))(properties.scriptParameters)),errors.collect(cdk().propertyValidator("studioId",cdk().requiredValidator)(properties.studioId)),errors.collect(cdk().propertyValidator("studioId",cdk().validateString)(properties.studioId)),errors.collect(cdk().propertyValidator("subtype",cdk().validateString)(properties.subtype)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnStudioComponentProps"')}function convertCfnStudioComponentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStudioComponentPropsValidator(properties).assertSuccess(),{Configuration:convertCfnStudioComponentStudioComponentConfigurationPropertyToCloudFormation(properties.configuration),Description:cdk().stringToCloudFormation(properties.description),Ec2SecurityGroupIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.ec2SecurityGroupIds),InitializationScripts:cdk().listMapper(convertCfnStudioComponentStudioComponentInitializationScriptPropertyToCloudFormation)(properties.initializationScripts),Name:cdk().stringToCloudFormation(properties.name),ScriptParameters:cdk().listMapper(convertCfnStudioComponentScriptParameterKeyValuePropertyToCloudFormation)(properties.scriptParameters),StudioId:cdk().stringToCloudFormation(properties.studioId),Subtype:cdk().stringToCloudFormation(properties.subtype),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnStudioComponentPropsFromCloudFormation(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("configuration","Configuration",properties.Configuration!=null?CfnStudioComponentStudioComponentConfigurationPropertyFromCloudFormation(properties.Configuration):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("ec2SecurityGroupIds","Ec2SecurityGroupIds",properties.Ec2SecurityGroupIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Ec2SecurityGroupIds):void 0),ret.addPropertyResult("initializationScripts","InitializationScripts",properties.InitializationScripts!=null?cfn_parse().FromCloudFormation.getArray(CfnStudioComponentStudioComponentInitializationScriptPropertyFromCloudFormation)(properties.InitializationScripts):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("scriptParameters","ScriptParameters",properties.ScriptParameters!=null?cfn_parse().FromCloudFormation.getArray(CfnStudioComponentScriptParameterKeyValuePropertyFromCloudFormation)(properties.ScriptParameters):void 0),ret.addPropertyResult("studioId","StudioId",properties.StudioId!=null?cfn_parse().FromCloudFormation.getString(properties.StudioId):void 0),ret.addPropertyResult("subtype","Subtype",properties.Subtype!=null?cfn_parse().FromCloudFormation.getString(properties.Subtype):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}