aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 128 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWebApp=exports.CfnWorkflow=exports.CfnUser=exports.CfnServer=exports.CfnProfile=exports.CfnConnector=exports.CfnCertificate=exports.CfnAgreement=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 CfnAgreement extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_transfer.CfnAgreement",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Transfer::Agreement";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAgreementPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnAgreement(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 isCfnAgreement(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAgreement.CFN_RESOURCE_TYPE_NAME}static arnForAgreement(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_transfer_IAgreementRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForAgreement),error}return resource.agreementRef.agreementArn}attrAgreementId;attrArn;accessRole;baseDirectory;customDirectories;description;enforceMessageSigning;localProfileId;partnerProfileId;preserveFilename;serverId;status;tags;tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnAgreement.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_transfer_CfnAgreementProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAgreement),error}cdk().requireProperty(props,"accessRole",this),cdk().requireProperty(props,"localProfileId",this),cdk().requireProperty(props,"partnerProfileId",this),cdk().requireProperty(props,"serverId",this),this.attrAgreementId=cdk().Token.asString(this.getAtt("AgreementId",cdk().ResolutionTypeHint.STRING)),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.accessRole=props.accessRole,this.baseDirectory=props.baseDirectory,this.customDirectories=props.customDirectories,this.description=props.description,this.enforceMessageSigning=props.enforceMessageSigning,this.localProfileId=props.localProfileId,this.partnerProfileId=props.partnerProfileId,this.preserveFilename=props.preserveFilename,this.serverId=props.serverId,this.status=props.status,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Transfer::Agreement",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get agreementRef(){return{agreementId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),serverId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref)),agreementArn:this.attrArn}}get cfnProperties(){return{accessRole:this.accessRole,baseDirectory:this.baseDirectory,customDirectories:this.customDirectories,description:this.description,enforceMessageSigning:this.enforceMessageSigning,localProfileId:this.localProfileId,partnerProfileId:this.partnerProfileId,preserveFilename:this.preserveFilename,serverId:this.serverId,status:this.status,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",CfnAgreement.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAgreementPropsToCloudFormation(props)}}exports.CfnAgreement=CfnAgreement;function CfnAgreementCustomDirectoriesPropertyValidator(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("failedFilesDirectory",cdk().requiredValidator)(properties.failedFilesDirectory)),errors.collect(cdk().propertyValidator("failedFilesDirectory",cdk().validateString)(properties.failedFilesDirectory)),errors.collect(cdk().propertyValidator("mdnFilesDirectory",cdk().requiredValidator)(properties.mdnFilesDirectory)),errors.collect(cdk().propertyValidator("mdnFilesDirectory",cdk().validateString)(properties.mdnFilesDirectory)),errors.collect(cdk().propertyValidator("payloadFilesDirectory",cdk().requiredValidator)(properties.payloadFilesDirectory)),errors.collect(cdk().propertyValidator("payloadFilesDirectory",cdk().validateString)(properties.payloadFilesDirectory)),errors.collect(cdk().propertyValidator("statusFilesDirectory",cdk().requiredValidator)(properties.statusFilesDirectory)),errors.collect(cdk().propertyValidator("statusFilesDirectory",cdk().validateString)(properties.statusFilesDirectory)),errors.collect(cdk().propertyValidator("temporaryFilesDirectory",cdk().requiredValidator)(properties.temporaryFilesDirectory)),errors.collect(cdk().propertyValidator("temporaryFilesDirectory",cdk().validateString)(properties.temporaryFilesDirectory)),errors.wrap('supplied properties not correct for "CustomDirectoriesProperty"')}function convertCfnAgreementCustomDirectoriesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAgreementCustomDirectoriesPropertyValidator(properties).assertSuccess(),{FailedFilesDirectory:cdk().stringToCloudFormation(properties.failedFilesDirectory),MdnFilesDirectory:cdk().stringToCloudFormation(properties.mdnFilesDirectory),PayloadFilesDirectory:cdk().stringToCloudFormation(properties.payloadFilesDirectory),StatusFilesDirectory:cdk().stringToCloudFormation(properties.statusFilesDirectory),TemporaryFilesDirectory:cdk().stringToCloudFormation(properties.temporaryFilesDirectory)}):properties}function CfnAgreementCustomDirectoriesPropertyFromCloudFormation(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("failedFilesDirectory","FailedFilesDirectory",properties.FailedFilesDirectory!=null?cfn_parse().FromCloudFormation.getString(properties.FailedFilesDirectory):void 0),ret.addPropertyResult("mdnFilesDirectory","MdnFilesDirectory",properties.MdnFilesDirectory!=null?cfn_parse().FromCloudFormation.getString(properties.MdnFilesDirectory):void 0),ret.addPropertyResult("payloadFilesDirectory","PayloadFilesDirectory",properties.PayloadFilesDirectory!=null?cfn_parse().FromCloudFormation.getString(properties.PayloadFilesDirectory):void 0),ret.addPropertyResult("statusFilesDirectory","StatusFilesDirectory",properties.StatusFilesDirectory!=null?cfn_parse().FromCloudFormation.getString(properties.StatusFilesDirectory):void 0),ret.addPropertyResult("temporaryFilesDirectory","TemporaryFilesDirectory",properties.TemporaryFilesDirectory!=null?cfn_parse().FromCloudFormation.getString(properties.TemporaryFilesDirectory):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAgreementPropsValidator(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("accessRole",cdk().requiredValidator)(properties.accessRole)),errors.collect(cdk().propertyValidator("accessRole",cdk().validateString)(properties.accessRole)),errors.collect(cdk().propertyValidator("baseDirectory",cdk().validateString)(properties.baseDirectory)),errors.collect(cdk().propertyValidator("customDirectories",CfnAgreementCustomDirectoriesPropertyValidator)(properties.customDirectories)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("enforceMessageSigning",cdk().validateString)(properties.enforceMessageSigning)),errors.collect(cdk().propertyValidator("localProfileId",cdk().requiredValidator)(properties.localProfileId)),errors.collect(cdk().propertyValidator("localProfileId",cdk().validateString)(properties.localProfileId)),errors.collect(cdk().propertyValidator("partnerProfileId",cdk().requiredValidator)(properties.partnerProfileId)),errors.collect(cdk().propertyValidator("partnerProfileId",cdk().validateString)(properties.partnerProfileId)),errors.collect(cdk().propertyValidator("preserveFilename",cdk().validateString)(properties.preserveFilename)),errors.collect(cdk().propertyValidator("serverId",cdk().requiredValidator)(properties.serverId)),errors.collect(cdk().propertyValidator("serverId",cdk().validateString)(properties.serverId)),errors.collect(cdk().propertyValidator("status",cdk().validateString)(properties.status)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnAgreementProps"')}function convertCfnAgreementPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAgreementPropsValidator(properties).assertSuccess(),{AccessRole:cdk().stringToCloudFormation(properties.accessRole),BaseDirectory:cdk().stringToCloudFormation(properties.baseDirectory),CustomDirectories:convertCfnAgreementCustomDirectoriesPropertyToCloudFormation(properties.customDirectories),Description:cdk().stringToCloudFormation(properties.description),EnforceMessageSigning:cdk().stringToCloudFormation(properties.enforceMessageSigning),LocalProfileId:cdk().stringToCloudFormation(properties.localProfileId),PartnerProfileId:cdk().stringToCloudFormation(properties.partnerProfileId),PreserveFilename:cdk().stringToCloudFormation(properties.preserveFilename),ServerId:cdk().stringToCloudFormation(properties.serverId),Status:cdk().stringToCloudFormation(properties.status),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnAgreementPropsFromCloudFormation(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("accessRole","AccessRole",properties.AccessRole!=null?cfn_parse().FromCloudFormation.getString(properties.AccessRole):void 0),ret.addPropertyResult("baseDirectory","BaseDirectory",properties.BaseDirectory!=null?cfn_parse().FromCloudFormation.getString(properties.BaseDirectory):void 0),ret.addPropertyResult("customDirectories","CustomDirectories",properties.CustomDirectories!=null?CfnAgreementCustomDirectoriesPropertyFromCloudFormation(properties.CustomDirectories):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("enforceMessageSigning","EnforceMessageSigning",properties.EnforceMessageSigning!=null?cfn_parse().FromCloudFormation.getString(properties.EnforceMessageSigning):void 0),ret.addPropertyResult("localProfileId","LocalProfileId",properties.LocalProfileId!=null?cfn_parse().FromCloudFormation.getString(properties.LocalProfileId):void 0),ret.addPropertyResult("partnerProfileId","PartnerProfileId",properties.PartnerProfileId!=null?cfn_parse().FromCloudFormation.getString(properties.PartnerProfileId):void 0),ret.addPropertyResult("preserveFilename","PreserveFilename",properties.PreserveFilename!=null?cfn_parse().FromCloudFormation.getString(properties.PreserveFilename):void 0),ret.addPropertyResult("serverId","ServerId",properties.ServerId!=null?cfn_parse().FromCloudFormation.getString(properties.ServerId):void 0),ret.addPropertyResult("status","Status",properties.Status!=null?cfn_parse().FromCloudFormation.getString(properties.Status):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCertificate extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_transfer.CfnCertificate",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Transfer::Certificate";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCertificatePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnCertificate(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 isCfnCertificate(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCertificate.CFN_RESOURCE_TYPE_NAME}static fromCertificateArn(scope,id,arn){class Import extends cdk().Resource{certificateRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:transfer:${Region}:${Account}:certificate/${CertificateId}").parse(arn2);this.certificateRef={certificateId:variables.CertificateId,certificateArn:arn2}}}return new Import(scope,id,arn)}static fromCertificateId(scope,id,certificateId){class Import extends cdk().Resource{certificateRef;constructor(scope2,id2,certificateId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:transfer:${Region}:${Account}:certificate/${CertificateId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,CertificateId:certificateId2});super(scope2,id2,{environmentFromArn:arn}),this.certificateRef={certificateId:certificateId2,certificateArn:arn}}}return new Import(scope,id,certificateId)}static arnForCertificate(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_transfer_ICertificateRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForCertificate),error}return resource.certificateRef.certificateArn}attrArn;attrCertificateId;attrNotAfterDate;attrNotBeforeDate;attrSerial;attrStatus;attrType;activeDate;certificate;certificateChain;description;inactiveDate;privateKey;tags;tagsRaw;usage;constructor(scope,id,props){super(scope,id,{type:CfnCertificate.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_transfer_CfnCertificateProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCertificate),error}cdk().requireProperty(props,"certificate",this),cdk().requireProperty(props,"usage",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCertificateId=cdk().Token.asString(this.getAtt("CertificateId",cdk().ResolutionTypeHint.STRING)),this.attrNotAfterDate=cdk().Token.asString(this.getAtt("NotAfterDate",cdk().ResolutionTypeHint.STRING)),this.attrNotBeforeDate=cdk().Token.asString(this.getAtt("NotBeforeDate",cdk().ResolutionTypeHint.STRING)),this.attrSerial=cdk().Token.asString(this.getAtt("Serial",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.attrType=cdk().Token.asString(this.getAtt("Type",cdk().ResolutionTypeHint.STRING)),this.activeDate=props.activeDate,this.certificate=props.certificate,this.certificateChain=props.certificateChain,this.description=props.description,this.inactiveDate=props.inactiveDate,this.privateKey=props.privateKey,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Transfer::Certificate",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.usage=props.usage}get certificateRef(){return{certificateId:this.ref,certificateArn:this.attrArn}}get cfnProperties(){return{activeDate:this.activeDate,certificate:this.certificate,certificateChain:this.certificateChain,description:this.description,inactiveDate:this.inactiveDate,privateKey:this.privateKey,tags:this.tags.renderTags(),usage:this.usage}}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",CfnCertificate.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCertificatePropsToCloudFormation(props)}}exports.CfnCertificate=CfnCertificate;function CfnCertificatePropsValidator(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("activeDate",cdk().validateString)(properties.activeDate)),errors.collect(cdk().propertyValidator("certificate",cdk().requiredValidator)(properties.certificate)),errors.collect(cdk().propertyValidator("certificate",cdk().validateString)(properties.certificate)),errors.collect(cdk().propertyValidator("certificateChain",cdk().validateString)(properties.certificateChain)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("inactiveDate",cdk().validateString)(properties.inactiveDate)),errors.collect(cdk().propertyValidator("privateKey",cdk().validateString)(properties.privateKey)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("usage",cdk().requiredValidator)(properties.usage)),errors.collect(cdk().propertyValidator("usage",cdk().validateString)(properties.usage)),errors.wrap('supplied properties not correct for "CfnCertificateProps"')}function convertCfnCertificatePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCertificatePropsValidator(properties).assertSuccess(),{ActiveDate:cdk().stringToCloudFormation(properties.activeDate),Certificate:cdk().stringToCloudFormation(properties.certificate),CertificateChain:cdk().stringToCloudFormation(properties.certificateChain),Description:cdk().stringToCloudFormation(properties.description),InactiveDate:cdk().stringToCloudFormation(properties.inactiveDate),PrivateKey:cdk().stringToCloudFormation(properties.privateKey),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Usage:cdk().stringToCloudFormation(properties.usage)}):properties}function CfnCertificatePropsFromCloudFormation(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("activeDate","ActiveDate",properties.ActiveDate!=null?cfn_parse().FromCloudFormation.getString(properties.ActiveDate):void 0),ret.addPropertyResult("certificate","Certificate",properties.Certificate!=null?cfn_parse().FromCloudFormation.getString(properties.Certificate):void 0),ret.addPropertyResult("certificateChain","CertificateChain",properties.CertificateChain!=null?cfn_parse().FromCloudFormation.getString(properties.CertificateChain):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("inactiveDate","InactiveDate",properties.InactiveDate!=null?cfn_parse().FromCloudFormation.getString(properties.InactiveDate):void 0),ret.addPropertyResult("privateKey","PrivateKey",properties.PrivateKey!=null?cfn_parse().FromCloudFormation.getString(properties.PrivateKey):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("usage","Usage",properties.Usage!=null?cfn_parse().FromCloudFormation.getString(properties.Usage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConnector extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_transfer.CfnConnector",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Transfer::Connector";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectorPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnConnector(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 isCfnConnector(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnConnector.CFN_RESOURCE_TYPE_NAME}static fromConnectorArn(scope,id,arn){class Import extends cdk().Resource{connectorRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:transfer:${Region}:${Account}:connector/${ConnectorId}").parse(arn2);this.connectorRef={connectorId:variables.ConnectorId,connectorArn:arn2}}}return new Import(scope,id,arn)}static fromConnectorId(scope,id,connectorId){class Import extends cdk().Resource{connectorRef;constructor(scope2,id2,connectorId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:transfer:${Region}:${Account}:connector/${ConnectorId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,ConnectorId:connectorId2});super(scope2,id2,{environmentFromArn:arn}),this.connectorRef={connectorId:connectorId2,connectorArn:arn}}}return new Import(scope,id,connectorId)}static arnForConnector(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_transfer_IConnectorRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForConnector),error}return resource.connectorRef.connectorArn}attrArn;attrConnectorId;attrErrorMessage;attrServiceManagedEgressIpAddresses;attrStatus;accessRole;as2Config;egressConfig;egressType;loggingRole;securityPolicyName;sftpConfig;tags;tagsRaw;url;constructor(scope,id,props){super(scope,id,{type:CfnConnector.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_transfer_CfnConnectorProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConnector),error}cdk().requireProperty(props,"accessRole",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrConnectorId=cdk().Token.asString(this.getAtt("ConnectorId",cdk().ResolutionTypeHint.STRING)),this.attrErrorMessage=cdk().Token.asString(this.getAtt("ErrorMessage",cdk().ResolutionTypeHint.STRING)),this.attrServiceManagedEgressIpAddresses=cdk().Token.asList(this.getAtt("ServiceManagedEgressIpAddresses",cdk().ResolutionTypeHint.STRING_LIST)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.accessRole=props.accessRole,this.as2Config=props.as2Config,this.egressConfig=props.egressConfig,this.egressType=props.egressType,this.loggingRole=props.loggingRole,this.securityPolicyName=props.securityPolicyName,this.sftpConfig=props.sftpConfig,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Transfer::Connector",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.url=props.url}get connectorRef(){return{connectorId:this.ref,connectorArn:this.attrArn}}get cfnProperties(){return{accessRole:this.accessRole,as2Config:this.as2Config,egressConfig:this.egressConfig,egressType:this.egressType,loggingRole:this.loggingRole,securityPolicyName:this.securityPolicyName,sftpConfig:this.sftpConfig,tags:this.tags.renderTags(),url:this.url}}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",CfnConnector.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnConnectorPropsToCloudFormation(props)}}exports.CfnConnector=CfnConnector;function CfnConnectorAs2ConfigPropertyValidator(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("basicAuthSecretId",cdk().validateString)(properties.basicAuthSecretId)),errors.collect(cdk().propertyValidator("compression",cdk().validateString)(properties.compression)),errors.collect(cdk().propertyValidator("encryptionAlgorithm",cdk().validateString)(properties.encryptionAlgorithm)),errors.collect(cdk().propertyValidator("localProfileId",cdk().validateString)(properties.localProfileId)),errors.collect(cdk().propertyValidator("mdnResponse",cdk().validateString)(properties.mdnResponse)),errors.collect(cdk().propertyValidator("mdnSigningAlgorithm",cdk().validateString)(properties.mdnSigningAlgorithm)),errors.collect(cdk().propertyValidator("messageSubject",cdk().validateString)(properties.messageSubject)),errors.collect(cdk().propertyValidator("partnerProfileId",cdk().validateString)(properties.partnerProfileId)),errors.collect(cdk().propertyValidator("preserveContentType",cdk().validateString)(properties.preserveContentType)),errors.collect(cdk().propertyValidator("signingAlgorithm",cdk().validateString)(properties.signingAlgorithm)),errors.wrap('supplied properties not correct for "As2ConfigProperty"')}function convertCfnConnectorAs2ConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectorAs2ConfigPropertyValidator(properties).assertSuccess(),{BasicAuthSecretId:cdk().stringToCloudFormation(properties.basicAuthSecretId),Compression:cdk().stringToCloudFormation(properties.compression),EncryptionAlgorithm:cdk().stringToCloudFormation(properties.encryptionAlgorithm),LocalProfileId:cdk().stringToCloudFormation(properties.localProfileId),MdnResponse:cdk().stringToCloudFormation(properties.mdnResponse),MdnSigningAlgorithm:cdk().stringToCloudFormation(properties.mdnSigningAlgorithm),MessageSubject:cdk().stringToCloudFormation(properties.messageSubject),PartnerProfileId:cdk().stringToCloudFormation(properties.partnerProfileId),PreserveContentType:cdk().stringToCloudFormation(properties.preserveContentType),SigningAlgorithm:cdk().stringToCloudFormation(properties.signingAlgorithm)}):properties}function CfnConnectorAs2ConfigPropertyFromCloudFormation(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("basicAuthSecretId","BasicAuthSecretId",properties.BasicAuthSecretId!=null?cfn_parse().FromCloudFormation.getString(properties.BasicAuthSecretId):void 0),ret.addPropertyResult("compression","Compression",properties.Compression!=null?cfn_parse().FromCloudFormation.getString(properties.Compression):void 0),ret.addPropertyResult("encryptionAlgorithm","EncryptionAlgorithm",properties.EncryptionAlgorithm!=null?cfn_parse().FromCloudFormation.getString(properties.EncryptionAlgorithm):void 0),ret.addPropertyResult("localProfileId","LocalProfileId",properties.LocalProfileId!=null?cfn_parse().FromCloudFormation.getString(properties.LocalProfileId):void 0),ret.addPropertyResult("mdnResponse","MdnResponse",properties.MdnResponse!=null?cfn_parse().FromCloudFormation.getString(properties.MdnResponse):void 0),ret.addPropertyResult("mdnSigningAlgorithm","MdnSigningAlgorithm",properties.MdnSigningAlgorithm!=null?cfn_parse().FromCloudFormation.getString(properties.MdnSigningAlgorithm):void 0),ret.addPropertyResult("messageSubject","MessageSubject",properties.MessageSubject!=null?cfn_parse().FromCloudFormation.getString(properties.MessageSubject):void 0),ret.addPropertyResult("partnerProfileId","PartnerProfileId",properties.PartnerProfileId!=null?cfn_parse().FromCloudFormation.getString(properties.PartnerProfileId):void 0),ret.addPropertyResult("preserveContentType","PreserveContentType",properties.PreserveContentType!=null?cfn_parse().FromCloudFormation.getString(properties.PreserveContentType):void 0),ret.addPropertyResult("signingAlgorithm","SigningAlgorithm",properties.SigningAlgorithm!=null?cfn_parse().FromCloudFormation.getString(properties.SigningAlgorithm):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorSftpConfigPropertyValidator(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("maxConcurrentConnections",cdk().validateNumber)(properties.maxConcurrentConnections)),errors.collect(cdk().propertyValidator("trustedHostKeys",cdk().listValidator(cdk().validateString))(properties.trustedHostKeys)),errors.collect(cdk().propertyValidator("userSecretId",cdk().validateString)(properties.userSecretId)),errors.wrap('supplied properties not correct for "SftpConfigProperty"')}function convertCfnConnectorSftpConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectorSftpConfigPropertyValidator(properties).assertSuccess(),{MaxConcurrentConnections:cdk().numberToCloudFormation(properties.maxConcurrentConnections),TrustedHostKeys:cdk().listMapper(cdk().stringToCloudFormation)(properties.trustedHostKeys),UserSecretId:cdk().stringToCloudFormation(properties.userSecretId)}):properties}function CfnConnectorSftpConfigPropertyFromCloudFormation(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("maxConcurrentConnections","MaxConcurrentConnections",properties.MaxConcurrentConnections!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxConcurrentConnections):void 0),ret.addPropertyResult("trustedHostKeys","TrustedHostKeys",properties.TrustedHostKeys!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.TrustedHostKeys):void 0),ret.addPropertyResult("userSecretId","UserSecretId",properties.UserSecretId!=null?cfn_parse().FromCloudFormation.getString(properties.UserSecretId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorConnectorVpcLatticeEgressConfigPropertyValidator(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("portNumber",cdk().validateNumber)(properties.portNumber)),errors.collect(cdk().propertyValidator("resourceConfigurationArn",cdk().requiredValidator)(properties.resourceConfigurationArn)),errors.collect(cdk().propertyValidator("resourceConfigurationArn",cdk().validateString)(properties.resourceConfigurationArn)),errors.wrap('supplied properties not correct for "ConnectorVpcLatticeEgressConfigProperty"')}function convertCfnConnectorConnectorVpcLatticeEgressConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectorConnectorVpcLatticeEgressConfigPropertyValidator(properties).assertSuccess(),{PortNumber:cdk().numberToCloudFormation(properties.portNumber),ResourceConfigurationArn:cdk().stringToCloudFormation(properties.resourceConfigurationArn)}):properties}function CfnConnectorConnectorVpcLatticeEgressConfigPropertyFromCloudFormation(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("portNumber","PortNumber",properties.PortNumber!=null?cfn_parse().FromCloudFormation.getNumber(properties.PortNumber):void 0),ret.addPropertyResult("resourceConfigurationArn","ResourceConfigurationArn",properties.ResourceConfigurationArn!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceConfigurationArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorConnectorEgressConfigPropertyValidator(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("vpcLattice",cdk().requiredValidator)(properties.vpcLattice)),errors.collect(cdk().propertyValidator("vpcLattice",CfnConnectorConnectorVpcLatticeEgressConfigPropertyValidator)(properties.vpcLattice)),errors.wrap('supplied properties not correct for "ConnectorEgressConfigProperty"')}function convertCfnConnectorConnectorEgressConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectorConnectorEgressConfigPropertyValidator(properties).assertSuccess(),{VpcLattice:convertCfnConnectorConnectorVpcLatticeEgressConfigPropertyToCloudFormation(properties.vpcLattice)}):properties}function CfnConnectorConnectorEgressConfigPropertyFromCloudFormation(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("vpcLattice","VpcLattice",properties.VpcLattice!=null?CfnConnectorConnectorVpcLatticeEgressConfigPropertyFromCloudFormation(properties.VpcLattice):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorPropsValidator(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("accessRole",cdk().requiredValidator)(properties.accessRole)),errors.collect(cdk().propertyValidator("accessRole",cdk().validateString)(properties.accessRole)),errors.collect(cdk().propertyValidator("as2Config",cdk().validateObject)(properties.as2Config)),errors.collect(cdk().propertyValidator("egressConfig",CfnConnectorConnectorEgressConfigPropertyValidator)(properties.egressConfig)),errors.collect(cdk().propertyValidator("egressType",cdk().validateString)(properties.egressType)),errors.collect(cdk().propertyValidator("loggingRole",cdk().validateString)(properties.loggingRole)),errors.collect(cdk().propertyValidator("securityPolicyName",cdk().validateString)(properties.securityPolicyName)),errors.collect(cdk().propertyValidator("sftpConfig",CfnConnectorSftpConfigPropertyValidator)(properties.sftpConfig)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "CfnConnectorProps"')}function convertCfnConnectorPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectorPropsValidator(properties).assertSuccess(),{AccessRole:cdk().stringToCloudFormation(properties.accessRole),As2Config:cdk().objectToCloudFormation(properties.as2Config),EgressConfig:convertCfnConnectorConnectorEgressConfigPropertyToCloudFormation(properties.egressConfig),EgressType:cdk().stringToCloudFormation(properties.egressType),LoggingRole:cdk().stringToCloudFormation(properties.loggingRole),SecurityPolicyName:cdk().stringToCloudFormation(properties.securityPolicyName),SftpConfig:convertCfnConnectorSftpConfigPropertyToCloudFormation(properties.sftpConfig),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnConnectorPropsFromCloudFormation(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("accessRole","AccessRole",properties.AccessRole!=null?cfn_parse().FromCloudFormation.getString(properties.AccessRole):void 0),ret.addPropertyResult("as2Config","As2Config",properties.As2Config!=null?cfn_parse().FromCloudFormation.getAny(properties.As2Config):void 0),ret.addPropertyResult("egressConfig","EgressConfig",properties.EgressConfig!=null?CfnConnectorConnectorEgressConfigPropertyFromCloudFormation(properties.EgressConfig):void 0),ret.addPropertyResult("egressType","EgressType",properties.EgressType!=null?cfn_parse().FromCloudFormation.getString(properties.EgressType):void 0),ret.addPropertyResult("loggingRole","LoggingRole",properties.LoggingRole!=null?cfn_parse().FromCloudFormation.getString(properties.LoggingRole):void 0),ret.addPropertyResult("securityPolicyName","SecurityPolicyName",properties.SecurityPolicyName!=null?cfn_parse().FromCloudFormation.getString(properties.SecurityPolicyName):void 0),ret.addPropertyResult("sftpConfig","SftpConfig",properties.SftpConfig!=null?CfnConnectorSftpConfigPropertyFromCloudFormation(properties.SftpConfig):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnProfile extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_transfer.CfnProfile",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Transfer::Profile";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnProfilePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnProfile(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 isCfnProfile(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnProfile.CFN_RESOURCE_TYPE_NAME}static fromProfileArn(scope,id,arn){class Import extends cdk().Resource{profileRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:transfer:${Region}:${Account}:profile/${ProfileId}").parse(arn2);this.profileRef={profileId:variables.ProfileId,profileArn:arn2}}}return new Import(scope,id,arn)}static fromProfileId(scope,id,profileId){class Import extends cdk().Resource{profileRef;constructor(scope2,id2,profileId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:transfer:${Region}:${Account}:profile/${ProfileId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,ProfileId:profileId2});super(scope2,id2,{environmentFromArn:arn}),this.profileRef={profileId:profileId2,profileArn:arn}}}return new Import(scope,id,profileId)}static arnForProfile(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_transfer_IProfileRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForProfile),error}return resource.profileRef.profileArn}attrArn;attrProfileId;as2Id;certificateIds;profileType;tags;tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnProfile.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_transfer_CfnProfileProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnProfile),error}cdk().requireProperty(props,"as2Id",this),cdk().requireProperty(props,"profileType",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrProfileId=cdk().Token.asString(this.getAtt("ProfileId",cdk().ResolutionTypeHint.STRING)),this.as2Id=props.as2Id,this.certificateIds=props.certificateIds,this.profileType=props.profileType,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Transfer::Profile",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get profileRef(){return{profileId:this.ref,profileArn:this.attrArn}}get cfnProperties(){return{as2Id:this.as2Id,certificateIds:this.certificateIds,profileType:this.profileType,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",CfnProfile.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnProfilePropsToCloudFormation(props)}}exports.CfnProfile=CfnProfile;function CfnProfilePropsValidator(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("as2Id",cdk().requiredValidator)(properties.as2Id)),errors.collect(cdk().propertyValidator("as2Id",cdk().validateString)(properties.as2Id)),errors.collect(cdk().propertyValidator("certificateIds",cdk().listValidator(cdk().validateString))(properties.certificateIds)),errors.collect(cdk().propertyValidator("profileType",cdk().requiredValidator)(properties.profileType)),errors.collect(cdk().propertyValidator("profileType",cdk().validateString)(properties.profileType)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnProfileProps"')}function convertCfnProfilePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnProfilePropsValidator(properties).assertSuccess(),{As2Id:cdk().stringToCloudFormation(properties.as2Id),CertificateIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.certificateIds),ProfileType:cdk().stringToCloudFormation(properties.profileType),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnProfilePropsFromCloudFormation(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("as2Id","As2Id",properties.As2Id!=null?cfn_parse().FromCloudFormation.getString(properties.As2Id):void 0),ret.addPropertyResult("certificateIds","CertificateIds",properties.CertificateIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CertificateIds):void 0),ret.addPropertyResult("profileType","ProfileType",properties.ProfileType!=null?cfn_parse().FromCloudFormation.getString(properties.ProfileType):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnServer extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_transfer.CfnServer",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Transfer::Server";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnServerPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnServer(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 isCfnServer(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnServer.CFN_RESOURCE_TYPE_NAME}static arnForServer(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_transfer_IServerRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForServer),error}return resource.serverRef.serverArn}attrArn;attrAs2ServiceManagedEgressIpAddresses;attrServerId;attrState;certificate;domain;endpointDetails;endpointType;identityProviderDetails;identityProviderType;ipAddressType;loggingRole;postAuthenticationLoginBanner;preAuthenticationLoginBanner;protocolDetails;protocols;s3StorageOptions;securityPolicyName;structuredLogDestinations;tags;tagsRaw;workflowDetails;constructor(scope,id,props={}){super(scope,id,{type:CfnServer.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_transfer_CfnServerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnServer),error}this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrAs2ServiceManagedEgressIpAddresses=cdk().Token.asList(this.getAtt("As2ServiceManagedEgressIpAddresses",cdk().ResolutionTypeHint.STRING_LIST)),this.attrServerId=cdk().Token.asString(this.getAtt("ServerId",cdk().ResolutionTypeHint.STRING)),this.attrState=cdk().Token.asString(this.getAtt("State",cdk().ResolutionTypeHint.STRING)),this.certificate=props.certificate,this.domain=props.domain,this.endpointDetails=props.endpointDetails,this.endpointType=props.endpointType,this.identityProviderDetails=props.identityProviderDetails,this.identityProviderType=props.identityProviderType,this.ipAddressType=props.ipAddressType,this.loggingRole=props.loggingRole,this.postAuthenticationLoginBanner=props.postAuthenticationLoginBanner,this.preAuthenticationLoginBanner=props.preAuthenticationLoginBanner,this.protocolDetails=props.protocolDetails,this.protocols=props.protocol