UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 58.3 kB
"use strict";var _a,_b,_c,_d;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnStudioComponent=exports.CfnStudio=exports.CfnStreamingImage=exports.CfnLaunchProfile=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnLaunchProfilePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("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",CfnLaunchProfile_StreamConfigurationPropertyValidator)(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 cfnLaunchProfilePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchProfilePropsValidator(properties).assertSuccess(),{Ec2SubnetIds:cdk.listMapper(cdk.stringToCloudFormation)(properties.ec2SubnetIds),LaunchProfileProtocolVersions:cdk.listMapper(cdk.stringToCloudFormation)(properties.launchProfileProtocolVersions),Name:cdk.stringToCloudFormation(properties.name),StreamConfiguration:cfnLaunchProfileStreamConfigurationPropertyToCloudFormation(properties.streamConfiguration),StudioComponentIds:cdk.listMapper(cdk.stringToCloudFormation)(properties.studioComponentIds),StudioId:cdk.stringToCloudFormation(properties.studioId),Description:cdk.stringToCloudFormation(properties.description),Tags:cdk.hashMapper(cdk.stringToCloudFormation)(properties.tags)}):properties}function CfnLaunchProfilePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("ec2SubnetIds","Ec2SubnetIds",cfn_parse.FromCloudFormation.getStringArray(properties.Ec2SubnetIds)),ret.addPropertyResult("launchProfileProtocolVersions","LaunchProfileProtocolVersions",cfn_parse.FromCloudFormation.getStringArray(properties.LaunchProfileProtocolVersions)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("streamConfiguration","StreamConfiguration",CfnLaunchProfileStreamConfigurationPropertyFromCloudFormation(properties.StreamConfiguration)),ret.addPropertyResult("studioComponentIds","StudioComponentIds",cfn_parse.FromCloudFormation.getStringArray(properties.StudioComponentIds)),ret.addPropertyResult("studioId","StudioId",cfn_parse.FromCloudFormation.getString(properties.StudioId)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLaunchProfile extends cdk.CfnResource{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.attrLaunchProfileId=cdk.Token.asString(this.getAtt("LaunchProfileId",cdk.ResolutionTypeHint.STRING)),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.description=props.description,this.tags=new cdk.TagManager(cdk.TagType.MAP,"AWS::NimbleStudio::LaunchProfile",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLaunchProfilePropsFromCloudFormation(resourceProperties),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}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:props",this.cfnProperties)}get cfnProperties(){return{ec2SubnetIds:this.ec2SubnetIds,launchProfileProtocolVersions:this.launchProfileProtocolVersions,name:this.name,streamConfiguration:this.streamConfiguration,studioComponentIds:this.studioComponentIds,studioId:this.studioId,description:this.description,tags:this.tags.renderTags()}}renderProperties(props){return cfnLaunchProfilePropsToCloudFormation(props)}}exports.CfnLaunchProfile=CfnLaunchProfile,_a=JSII_RTTI_SYMBOL_1,CfnLaunchProfile[_a]={fqn:"aws-cdk-lib.aws_nimblestudio.CfnLaunchProfile",version:"2.70.0"},CfnLaunchProfile.CFN_RESOURCE_TYPE_NAME="AWS::NimbleStudio::LaunchProfile";function CfnLaunchProfile_StreamConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("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",CfnLaunchProfile_StreamConfigurationSessionBackupPropertyValidator)(properties.sessionBackup)),errors.collect(cdk.propertyValidator("sessionPersistenceMode",cdk.validateString)(properties.sessionPersistenceMode)),errors.collect(cdk.propertyValidator("sessionStorage",CfnLaunchProfile_StreamConfigurationSessionStoragePropertyValidator)(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",CfnLaunchProfile_VolumeConfigurationPropertyValidator)(properties.volumeConfiguration)),errors.wrap('supplied properties not correct for "StreamConfigurationProperty"')}function cfnLaunchProfileStreamConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchProfile_StreamConfigurationPropertyValidator(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:cfnLaunchProfileStreamConfigurationSessionBackupPropertyToCloudFormation(properties.sessionBackup),SessionPersistenceMode:cdk.stringToCloudFormation(properties.sessionPersistenceMode),SessionStorage:cfnLaunchProfileStreamConfigurationSessionStoragePropertyToCloudFormation(properties.sessionStorage),StreamingImageIds:cdk.listMapper(cdk.stringToCloudFormation)(properties.streamingImageIds),VolumeConfiguration:cfnLaunchProfileVolumeConfigurationPropertyToCloudFormation(properties.volumeConfiguration)}):properties}function CfnLaunchProfileStreamConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("automaticTerminationMode","AutomaticTerminationMode",properties.AutomaticTerminationMode!=null?cfn_parse.FromCloudFormation.getString(properties.AutomaticTerminationMode):void 0),ret.addPropertyResult("clipboardMode","ClipboardMode",cfn_parse.FromCloudFormation.getString(properties.ClipboardMode)),ret.addPropertyResult("ec2InstanceTypes","Ec2InstanceTypes",cfn_parse.FromCloudFormation.getStringArray(properties.Ec2InstanceTypes)),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",cfn_parse.FromCloudFormation.getStringArray(properties.StreamingImageIds)),ret.addPropertyResult("volumeConfiguration","VolumeConfiguration",properties.VolumeConfiguration!=null?CfnLaunchProfileVolumeConfigurationPropertyFromCloudFormation(properties.VolumeConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchProfile_StreamConfigurationSessionBackupPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("maxBackupsToRetain",cdk.validateNumber)(properties.maxBackupsToRetain)),errors.collect(cdk.propertyValidator("mode",cdk.validateString)(properties.mode)),errors.wrap('supplied properties not correct for "StreamConfigurationSessionBackupProperty"')}function cfnLaunchProfileStreamConfigurationSessionBackupPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchProfile_StreamConfigurationSessionBackupPropertyValidator(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??{},typeof properties!="object")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 CfnLaunchProfile_StreamConfigurationSessionStoragePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("mode",cdk.requiredValidator)(properties.mode)),errors.collect(cdk.propertyValidator("mode",cdk.listValidator(cdk.validateString))(properties.mode)),errors.collect(cdk.propertyValidator("root",CfnLaunchProfile_StreamingSessionStorageRootPropertyValidator)(properties.root)),errors.wrap('supplied properties not correct for "StreamConfigurationSessionStorageProperty"')}function cfnLaunchProfileStreamConfigurationSessionStoragePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchProfile_StreamConfigurationSessionStoragePropertyValidator(properties).assertSuccess(),{Mode:cdk.listMapper(cdk.stringToCloudFormation)(properties.mode),Root:cfnLaunchProfileStreamingSessionStorageRootPropertyToCloudFormation(properties.root)}):properties}function CfnLaunchProfileStreamConfigurationSessionStoragePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("mode","Mode",cfn_parse.FromCloudFormation.getStringArray(properties.Mode)),ret.addPropertyResult("root","Root",properties.Root!=null?CfnLaunchProfileStreamingSessionStorageRootPropertyFromCloudFormation(properties.Root):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLaunchProfile_StreamingSessionStorageRootPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("linux",cdk.validateString)(properties.linux)),errors.collect(cdk.propertyValidator("windows",cdk.validateString)(properties.windows)),errors.wrap('supplied properties not correct for "StreamingSessionStorageRootProperty"')}function cfnLaunchProfileStreamingSessionStorageRootPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchProfile_StreamingSessionStorageRootPropertyValidator(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??{},typeof properties!="object")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 CfnLaunchProfile_VolumeConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("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 cfnLaunchProfileVolumeConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLaunchProfile_VolumeConfigurationPropertyValidator(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??{},typeof properties!="object")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 CfnStreamingImagePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("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 cfnStreamingImagePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamingImagePropsValidator(properties).assertSuccess(),{Ec2ImageId:cdk.stringToCloudFormation(properties.ec2ImageId),Name:cdk.stringToCloudFormation(properties.name),StudioId:cdk.stringToCloudFormation(properties.studioId),Description:cdk.stringToCloudFormation(properties.description),Tags:cdk.hashMapper(cdk.stringToCloudFormation)(properties.tags)}):properties}function CfnStreamingImagePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("ec2ImageId","Ec2ImageId",cfn_parse.FromCloudFormation.getString(properties.Ec2ImageId)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("studioId","StudioId",cfn_parse.FromCloudFormation.getString(properties.StudioId)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnStreamingImage extends cdk.CfnResource{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.attrEncryptionConfigurationKeyArn=cdk.Token.asString(this.getAtt("EncryptionConfiguration.KeyArn",cdk.ResolutionTypeHint.STRING)),this.attrEncryptionConfigurationKeyType=cdk.Token.asString(this.getAtt("EncryptionConfiguration.KeyType",cdk.ResolutionTypeHint.STRING)),this.attrEulaIds=cdk.Token.asList(this.getAtt("EulaIds",cdk.ResolutionTypeHint.STRING_LIST)),this.attrOwner=cdk.Token.asString(this.getAtt("Owner",cdk.ResolutionTypeHint.STRING)),this.attrPlatform=cdk.Token.asString(this.getAtt("Platform",cdk.ResolutionTypeHint.STRING)),this.attrStreamingImageId=cdk.Token.asString(this.getAtt("StreamingImageId",cdk.ResolutionTypeHint.STRING)),this.ec2ImageId=props.ec2ImageId,this.name=props.name,this.studioId=props.studioId,this.description=props.description,this.tags=new cdk.TagManager(cdk.TagType.MAP,"AWS::NimbleStudio::StreamingImage",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStreamingImagePropsFromCloudFormation(resourceProperties),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}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:props",this.cfnProperties)}get cfnProperties(){return{ec2ImageId:this.ec2ImageId,name:this.name,studioId:this.studioId,description:this.description,tags:this.tags.renderTags()}}renderProperties(props){return cfnStreamingImagePropsToCloudFormation(props)}}exports.CfnStreamingImage=CfnStreamingImage,_b=JSII_RTTI_SYMBOL_1,CfnStreamingImage[_b]={fqn:"aws-cdk-lib.aws_nimblestudio.CfnStreamingImage",version:"2.70.0"},CfnStreamingImage.CFN_RESOURCE_TYPE_NAME="AWS::NimbleStudio::StreamingImage";function CfnStreamingImage_StreamingImageEncryptionConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("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 cfnStreamingImageStreamingImageEncryptionConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamingImage_StreamingImageEncryptionConfigurationPropertyValidator(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??{},typeof properties!="object")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",cfn_parse.FromCloudFormation.getString(properties.KeyType)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("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",CfnStudio_StudioEncryptionConfigurationPropertyValidator)(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 cfnStudioPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStudioPropsValidator(properties).assertSuccess(),{AdminRoleArn:cdk.stringToCloudFormation(properties.adminRoleArn),DisplayName:cdk.stringToCloudFormation(properties.displayName),StudioName:cdk.stringToCloudFormation(properties.studioName),UserRoleArn:cdk.stringToCloudFormation(properties.userRoleArn),StudioEncryptionConfiguration:cfnStudioStudioEncryptionConfigurationPropertyToCloudFormation(properties.studioEncryptionConfiguration),Tags:cdk.hashMapper(cdk.stringToCloudFormation)(properties.tags)}):properties}function CfnStudioPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("adminRoleArn","AdminRoleArn",cfn_parse.FromCloudFormation.getString(properties.AdminRoleArn)),ret.addPropertyResult("displayName","DisplayName",cfn_parse.FromCloudFormation.getString(properties.DisplayName)),ret.addPropertyResult("studioName","StudioName",cfn_parse.FromCloudFormation.getString(properties.StudioName)),ret.addPropertyResult("userRoleArn","UserRoleArn",cfn_parse.FromCloudFormation.getString(properties.UserRoleArn)),ret.addPropertyResult("studioEncryptionConfiguration","StudioEncryptionConfiguration",properties.StudioEncryptionConfiguration!=null?CfnStudioStudioEncryptionConfigurationPropertyFromCloudFormation(properties.StudioEncryptionConfiguration):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{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.attrHomeRegion=cdk.Token.asString(this.getAtt("HomeRegion",cdk.ResolutionTypeHint.STRING)),this.attrSsoClientId=cdk.Token.asString(this.getAtt("SsoClientId",cdk.ResolutionTypeHint.STRING)),this.attrStudioId=cdk.Token.asString(this.getAtt("StudioId",cdk.ResolutionTypeHint.STRING)),this.attrStudioUrl=cdk.Token.asString(this.getAtt("StudioUrl",cdk.ResolutionTypeHint.STRING)),this.adminRoleArn=props.adminRoleArn,this.displayName=props.displayName,this.studioName=props.studioName,this.userRoleArn=props.userRoleArn,this.studioEncryptionConfiguration=props.studioEncryptionConfiguration,this.tags=new cdk.TagManager(cdk.TagType.MAP,"AWS::NimbleStudio::Studio",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStudioPropsFromCloudFormation(resourceProperties),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}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:props",this.cfnProperties)}get cfnProperties(){return{adminRoleArn:this.adminRoleArn,displayName:this.displayName,studioName:this.studioName,userRoleArn:this.userRoleArn,studioEncryptionConfiguration:this.studioEncryptionConfiguration,tags:this.tags.renderTags()}}renderProperties(props){return cfnStudioPropsToCloudFormation(props)}}exports.CfnStudio=CfnStudio,_c=JSII_RTTI_SYMBOL_1,CfnStudio[_c]={fqn:"aws-cdk-lib.aws_nimblestudio.CfnStudio",version:"2.70.0"},CfnStudio.CFN_RESOURCE_TYPE_NAME="AWS::NimbleStudio::Studio";function CfnStudio_StudioEncryptionConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("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 cfnStudioStudioEncryptionConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStudio_StudioEncryptionConfigurationPropertyValidator(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??{},typeof properties!="object")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",cfn_parse.FromCloudFormation.getString(properties.KeyType)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponentPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("configuration",CfnStudioComponent_StudioComponentConfigurationPropertyValidator)(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(CfnStudioComponent_StudioComponentInitializationScriptPropertyValidator))(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(CfnStudioComponent_ScriptParameterKeyValuePropertyValidator))(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 cfnStudioComponentPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStudioComponentPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),StudioId:cdk.stringToCloudFormation(properties.studioId),Type:cdk.stringToCloudFormation(properties.type),Configuration:cfnStudioComponentStudioComponentConfigurationPropertyToCloudFormation(properties.configuration),Description:cdk.stringToCloudFormation(properties.description),Ec2SecurityGroupIds:cdk.listMapper(cdk.stringToCloudFormation)(properties.ec2SecurityGroupIds),InitializationScripts:cdk.listMapper(cfnStudioComponentStudioComponentInitializationScriptPropertyToCloudFormation)(properties.initializationScripts),ScriptParameters:cdk.listMapper(cfnStudioComponentScriptParameterKeyValuePropertyToCloudFormation)(properties.scriptParameters),Subtype:cdk.stringToCloudFormation(properties.subtype),Tags:cdk.hashMapper(cdk.stringToCloudFormation)(properties.tags)}):properties}function CfnStudioComponentPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("studioId","StudioId",cfn_parse.FromCloudFormation.getString(properties.StudioId)),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),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.getStringArray(properties.Ec2SecurityGroupIds):void 0),ret.addPropertyResult("initializationScripts","InitializationScripts",properties.InitializationScripts!=null?cfn_parse.FromCloudFormation.getArray(CfnStudioComponentStudioComponentInitializationScriptPropertyFromCloudFormation)(properties.InitializationScripts):void 0),ret.addPropertyResult("scriptParameters","ScriptParameters",properties.ScriptParameters!=null?cfn_parse.FromCloudFormation.getArray(CfnStudioComponentScriptParameterKeyValuePropertyFromCloudFormation)(properties.ScriptParameters):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.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnStudioComponent extends cdk.CfnResource{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.attrStudioComponentId=cdk.Token.asString(this.getAtt("StudioComponentId",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.studioId=props.studioId,this.type=props.type,this.configuration=props.configuration,this.description=props.description,this.ec2SecurityGroupIds=props.ec2SecurityGroupIds,this.initializationScripts=props.initializationScripts,this.scriptParameters=props.scriptParameters,this.subtype=props.subtype,this.tags=new cdk.TagManager(cdk.TagType.MAP,"AWS::NimbleStudio::StudioComponent",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStudioComponentPropsFromCloudFormation(resourceProperties),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}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:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,studioId:this.studioId,type:this.type,configuration:this.configuration,description:this.description,ec2SecurityGroupIds:this.ec2SecurityGroupIds,initializationScripts:this.initializationScripts,scriptParameters:this.scriptParameters,subtype:this.subtype,tags:this.tags.renderTags()}}renderProperties(props){return cfnStudioComponentPropsToCloudFormation(props)}}exports.CfnStudioComponent=CfnStudioComponent,_d=JSII_RTTI_SYMBOL_1,CfnStudioComponent[_d]={fqn:"aws-cdk-lib.aws_nimblestudio.CfnStudioComponent",version:"2.70.0"},CfnStudioComponent.CFN_RESOURCE_TYPE_NAME="AWS::NimbleStudio::StudioComponent";function CfnStudioComponent_ActiveDirectoryComputerAttributePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "ActiveDirectoryComputerAttributeProperty"')}function cfnStudioComponentActiveDirectoryComputerAttributePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStudioComponent_ActiveDirectoryComputerAttributePropertyValidator(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??{},typeof properties!="object")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 CfnStudioComponent_ActiveDirectoryConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("computerAttributes",cdk.listValidator(CfnStudioComponent_ActiveDirectoryComputerAttributePropertyValidator))(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 cfnStudioComponentActiveDirectoryConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStudioComponent_ActiveDirectoryConfigurationPropertyValidator(properties).assertSuccess(),{ComputerAttributes:cdk.listMapper(cfnStudioComponentActiveDirectoryComputerAttributePropertyToCloudFormation)(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??{},typeof properties!="object")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 CfnStudioComponent_ComputeFarmConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("activeDirectoryUser",cdk.validateString)(properties.activeDirectoryUser)),errors.collect(cdk.propertyValidator("endpoint",cdk.validateString)(properties.endpoint)),errors.wrap('supplied properties not correct for "ComputeFarmConfigurationProperty"')}function cfnStudioComponentComputeFarmConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStudioComponent_ComputeFarmConfigurationPropertyValidator(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??{},typeof properties!="object")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 CfnStudioComponent_LicenseServiceConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("endpoint",cdk.validateString)(properties.endpoint)),errors.wrap('supplied properties not correct for "LicenseServiceConfigurationProperty"')}function cfnStudioComponentLicenseServiceConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStudioComponent_LicenseServiceConfigurationPropertyValidator(properties).assertSuccess(),{Endpoint:cdk.stringToCloudFormation(properties.endpoint)}):properties}function CfnStudioComponentLicenseServiceConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("endpoint","Endpoint",properties.Endpoint!=null?cfn_parse.FromCloudFormation.getString(properties.Endpoint):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponent_ScriptParameterKeyValuePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "ScriptParameterKeyValueProperty"')}function cfnStudioComponentScriptParameterKeyValuePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStudioComponent_ScriptParameterKeyValuePropertyValidator(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??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",properties.Key!=null?cfn_parse.FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStudioComponent_SharedFileSystemConfigurationPropertyValidator(properties){if(!cdk.canInspect(p