aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 205 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnTask=exports.CfnLocationSMB=exports.CfnLocationS3=exports.CfnLocationObjectStorage=exports.CfnLocationNFS=exports.CfnLocationHDFS=exports.CfnLocationFSxWindows=exports.CfnLocationFSxOpenZFS=exports.CfnLocationFSxONTAP=exports.CfnLocationFSxLustre=exports.CfnLocationEFS=exports.CfnLocationAzureBlob=exports.CfnAgent=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 CfnAgent extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_datasync.CfnAgent",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::DataSync::Agent";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAgentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAgent(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 isCfnAgent(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAgent.CFN_RESOURCE_TYPE_NAME}static arnForAgent(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_datasync_IAgentRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForAgent),error}return resource.agentRef.agentArn}_activationKey;_agentName;_securityGroupArns;_subnetArns;tags;_tagsRaw;_vpcEndpointId;constructor(scope,id,props={}){super(scope,id,{type:CfnAgent.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_datasync_CfnAgentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAgent),error}this._activationKey=props.activationKey,this._agentName=props.agentName,this._securityGroupArns=props.securityGroupArns,this._subnetArns=props.subnetArns,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::DataSync::Agent",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._vpcEndpointId=props.vpcEndpointId}get agentRef(){return{agentArn:this.ref}}get activationKey(){return this._activationKey}set activationKey(value){cdk().traceProperty(this.node,"ActivationKey"),this._activationKey=value}get agentName(){return this._agentName}set agentName(value){cdk().traceProperty(this.node,"AgentName"),this._agentName=value}get securityGroupArns(){return this._securityGroupArns}set securityGroupArns(value){cdk().traceProperty(this.node,"SecurityGroupArns"),this._securityGroupArns=value}get subnetArns(){return this._subnetArns}set subnetArns(value){cdk().traceProperty(this.node,"SubnetArns"),this._subnetArns=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get vpcEndpointId(){return this._vpcEndpointId}set vpcEndpointId(value){cdk().traceProperty(this.node,"VpcEndpointId"),this._vpcEndpointId=value}get attrAgentArn(){return cdk().Token.asString(this.getAtt("AgentArn",cdk().ResolutionTypeHint.STRING))}get attrEndpointType(){return cdk().Token.asString(this.getAtt("EndpointType",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{activationKey:this._activationKey,agentName:this._agentName,securityGroupArns:this._securityGroupArns,subnetArns:this._subnetArns,tags:this.tags.renderTags(),vpcEndpointId:this._vpcEndpointId}}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",CfnAgent.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAgentPropsToCloudFormation(props)}}exports.CfnAgent=CfnAgent;function CfnAgentPropsValidator(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("activationKey",cdk().validateString)(properties.activationKey)),errors.collect(cdk().propertyValidator("agentName",cdk().validateString)(properties.agentName)),errors.collect(cdk().propertyValidator("securityGroupArns",cdk().listValidator(cdk().validateString))(properties.securityGroupArns)),errors.collect(cdk().propertyValidator("subnetArns",cdk().listValidator(cdk().validateString))(properties.subnetArns)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("vpcEndpointId",cdk().validateString)(properties.vpcEndpointId)),errors.wrap('supplied properties not correct for "CfnAgentProps"')}function convertCfnAgentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAgentPropsValidator(properties).assertSuccess(),{ActivationKey:cdk().stringToCloudFormation(properties.activationKey),AgentName:cdk().stringToCloudFormation(properties.agentName),SecurityGroupArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroupArns),SubnetArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.subnetArns),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),VpcEndpointId:cdk().stringToCloudFormation(properties.vpcEndpointId)}):properties}function CfnAgentPropsFromCloudFormation(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("activationKey","ActivationKey",properties.ActivationKey!=null?cfn_parse().FromCloudFormation.getString(properties.ActivationKey):void 0),ret.addPropertyResult("agentName","AgentName",properties.AgentName!=null?cfn_parse().FromCloudFormation.getString(properties.AgentName):void 0),ret.addPropertyResult("securityGroupArns","SecurityGroupArns",properties.SecurityGroupArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroupArns):void 0),ret.addPropertyResult("subnetArns","SubnetArns",properties.SubnetArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SubnetArns):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("vpcEndpointId","VpcEndpointId",properties.VpcEndpointId!=null?cfn_parse().FromCloudFormation.getString(properties.VpcEndpointId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLocationAzureBlob extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_datasync.CfnLocationAzureBlob",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::DataSync::LocationAzureBlob";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLocationAzureBlobPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLocationAzureBlob(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 isCfnLocationAzureBlob(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLocationAzureBlob.CFN_RESOURCE_TYPE_NAME}_agentArns;_azureAccessTier;_azureBlobAuthenticationType;_azureBlobContainerUrl;_azureBlobSasConfiguration;_azureBlobType;cdkTagManager;_cmkSecretConfig;_customSecretConfig;_subdirectory;_tags;constructor(scope,id,props){super(scope,id,{type:CfnLocationAzureBlob.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_datasync_CfnLocationAzureBlobProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLocationAzureBlob),error}cdk().requireProperty(props,"azureBlobAuthenticationType",this),this._agentArns=props.agentArns,this._azureAccessTier=props.azureAccessTier,this._azureBlobAuthenticationType=props.azureBlobAuthenticationType,this._azureBlobContainerUrl=props.azureBlobContainerUrl,this._azureBlobSasConfiguration=props.azureBlobSasConfiguration,this._azureBlobType=props.azureBlobType,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::DataSync::LocationAzureBlob",void 0,{tagPropertyName:"tags"}),this._cmkSecretConfig=props.cmkSecretConfig,this._customSecretConfig=props.customSecretConfig,this._subdirectory=props.subdirectory,this._tags=props.tags}get locationAzureBlobRef(){return{locationArn:this.ref}}get agentArns(){return this._agentArns}set agentArns(value){cdk().traceProperty(this.node,"AgentArns"),this._agentArns=value}get azureAccessTier(){return this._azureAccessTier}set azureAccessTier(value){cdk().traceProperty(this.node,"AzureAccessTier"),this._azureAccessTier=value}get azureBlobAuthenticationType(){return this._azureBlobAuthenticationType}set azureBlobAuthenticationType(value){cdk().traceProperty(this.node,"AzureBlobAuthenticationType"),this._azureBlobAuthenticationType=value}get azureBlobContainerUrl(){return this._azureBlobContainerUrl}set azureBlobContainerUrl(value){cdk().traceProperty(this.node,"AzureBlobContainerUrl"),this._azureBlobContainerUrl=value}get azureBlobSasConfiguration(){return this._azureBlobSasConfiguration}set azureBlobSasConfiguration(value){cdk().traceProperty(this.node,"AzureBlobSasConfiguration"),this._azureBlobSasConfiguration=value}get azureBlobType(){return this._azureBlobType}set azureBlobType(value){cdk().traceProperty(this.node,"AzureBlobType"),this._azureBlobType=value}get cmkSecretConfig(){return this._cmkSecretConfig}set cmkSecretConfig(value){cdk().traceProperty(this.node,"CmkSecretConfig"),this._cmkSecretConfig=value}get customSecretConfig(){return this._customSecretConfig}set customSecretConfig(value){cdk().traceProperty(this.node,"CustomSecretConfig"),this._customSecretConfig=value}get subdirectory(){return this._subdirectory}set subdirectory(value){cdk().traceProperty(this.node,"Subdirectory"),this._subdirectory=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrCmkSecretConfigSecretArn(){return cdk().Token.asString(this.getAtt("CmkSecretConfig.SecretArn",cdk().ResolutionTypeHint.STRING))}get attrLocationArn(){return cdk().Token.asString(this.getAtt("LocationArn",cdk().ResolutionTypeHint.STRING))}get attrLocationUri(){return cdk().Token.asString(this.getAtt("LocationUri",cdk().ResolutionTypeHint.STRING))}get attrManagedSecretConfig(){return this.getAtt("ManagedSecretConfig")}get cfnProperties(){return{agentArns:this._agentArns,azureAccessTier:this._azureAccessTier,azureBlobAuthenticationType:this._azureBlobAuthenticationType,azureBlobContainerUrl:this._azureBlobContainerUrl,azureBlobSasConfiguration:this._azureBlobSasConfiguration,azureBlobType:this._azureBlobType,tags:this.cdkTagManager.renderTags(this._tags),cmkSecretConfig:this._cmkSecretConfig,customSecretConfig:this._customSecretConfig,subdirectory:this._subdirectory}}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",CfnLocationAzureBlob.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLocationAzureBlobPropsToCloudFormation(props)}}exports.CfnLocationAzureBlob=CfnLocationAzureBlob;function CfnLocationAzureBlobAzureBlobSasConfigurationPropertyValidator(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("azureBlobSasToken",cdk().requiredValidator)(properties.azureBlobSasToken)),errors.collect(cdk().propertyValidator("azureBlobSasToken",cdk().validateString)(properties.azureBlobSasToken)),errors.wrap('supplied properties not correct for "AzureBlobSasConfigurationProperty"')}function convertCfnLocationAzureBlobAzureBlobSasConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationAzureBlobAzureBlobSasConfigurationPropertyValidator(properties).assertSuccess(),{AzureBlobSasToken:cdk().stringToCloudFormation(properties.azureBlobSasToken)}):properties}function CfnLocationAzureBlobAzureBlobSasConfigurationPropertyFromCloudFormation(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("azureBlobSasToken","AzureBlobSasToken",properties.AzureBlobSasToken!=null?cfn_parse().FromCloudFormation.getString(properties.AzureBlobSasToken):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLocationAzureBlobCmkSecretConfigPropertyValidator(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("kmsKeyArn",cdk().validateString)(properties.kmsKeyArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().validateString)(properties.secretArn)),errors.wrap('supplied properties not correct for "CmkSecretConfigProperty"')}function convertCfnLocationAzureBlobCmkSecretConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationAzureBlobCmkSecretConfigPropertyValidator(properties).assertSuccess(),{KmsKeyArn:cdk().stringToCloudFormation(properties.kmsKeyArn),SecretArn:cdk().stringToCloudFormation(properties.secretArn)}):properties}function CfnLocationAzureBlobCmkSecretConfigPropertyFromCloudFormation(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("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addPropertyResult("secretArn","SecretArn",properties.SecretArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLocationAzureBlobCustomSecretConfigPropertyValidator(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("secretAccessRoleArn",cdk().requiredValidator)(properties.secretAccessRoleArn)),errors.collect(cdk().propertyValidator("secretAccessRoleArn",cdk().validateString)(properties.secretAccessRoleArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().requiredValidator)(properties.secretArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().validateString)(properties.secretArn)),errors.wrap('supplied properties not correct for "CustomSecretConfigProperty"')}function convertCfnLocationAzureBlobCustomSecretConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationAzureBlobCustomSecretConfigPropertyValidator(properties).assertSuccess(),{SecretAccessRoleArn:cdk().stringToCloudFormation(properties.secretAccessRoleArn),SecretArn:cdk().stringToCloudFormation(properties.secretArn)}):properties}function CfnLocationAzureBlobCustomSecretConfigPropertyFromCloudFormation(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("secretAccessRoleArn","SecretAccessRoleArn",properties.SecretAccessRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretAccessRoleArn):void 0),ret.addPropertyResult("secretArn","SecretArn",properties.SecretArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLocationAzureBlobManagedSecretConfigPropertyValidator(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("secretArn",cdk().requiredValidator)(properties.secretArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().validateString)(properties.secretArn)),errors.wrap('supplied properties not correct for "ManagedSecretConfigProperty"')}function convertCfnLocationAzureBlobManagedSecretConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationAzureBlobManagedSecretConfigPropertyValidator(properties).assertSuccess(),{SecretArn:cdk().stringToCloudFormation(properties.secretArn)}):properties}function CfnLocationAzureBlobManagedSecretConfigPropertyFromCloudFormation(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("secretArn","SecretArn",properties.SecretArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLocationAzureBlobPropsValidator(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("agentArns",cdk().listValidator(cdk().validateString))(properties.agentArns)),errors.collect(cdk().propertyValidator("azureAccessTier",cdk().validateString)(properties.azureAccessTier)),errors.collect(cdk().propertyValidator("azureBlobAuthenticationType",cdk().requiredValidator)(properties.azureBlobAuthenticationType)),errors.collect(cdk().propertyValidator("azureBlobAuthenticationType",cdk().validateString)(properties.azureBlobAuthenticationType)),errors.collect(cdk().propertyValidator("azureBlobContainerUrl",cdk().validateString)(properties.azureBlobContainerUrl)),errors.collect(cdk().propertyValidator("azureBlobSasConfiguration",CfnLocationAzureBlobAzureBlobSasConfigurationPropertyValidator)(properties.azureBlobSasConfiguration)),errors.collect(cdk().propertyValidator("azureBlobType",cdk().validateString)(properties.azureBlobType)),errors.collect(cdk().propertyValidator("cmkSecretConfig",CfnLocationAzureBlobCmkSecretConfigPropertyValidator)(properties.cmkSecretConfig)),errors.collect(cdk().propertyValidator("customSecretConfig",CfnLocationAzureBlobCustomSecretConfigPropertyValidator)(properties.customSecretConfig)),errors.collect(cdk().propertyValidator("subdirectory",cdk().validateString)(properties.subdirectory)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnLocationAzureBlobProps"')}function convertCfnLocationAzureBlobPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationAzureBlobPropsValidator(properties).assertSuccess(),{AgentArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.agentArns),AzureAccessTier:cdk().stringToCloudFormation(properties.azureAccessTier),AzureBlobAuthenticationType:cdk().stringToCloudFormation(properties.azureBlobAuthenticationType),AzureBlobContainerUrl:cdk().stringToCloudFormation(properties.azureBlobContainerUrl),AzureBlobSasConfiguration:convertCfnLocationAzureBlobAzureBlobSasConfigurationPropertyToCloudFormation(properties.azureBlobSasConfiguration),AzureBlobType:cdk().stringToCloudFormation(properties.azureBlobType),CmkSecretConfig:convertCfnLocationAzureBlobCmkSecretConfigPropertyToCloudFormation(properties.cmkSecretConfig),CustomSecretConfig:convertCfnLocationAzureBlobCustomSecretConfigPropertyToCloudFormation(properties.customSecretConfig),Subdirectory:cdk().stringToCloudFormation(properties.subdirectory),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnLocationAzureBlobPropsFromCloudFormation(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("agentArns","AgentArns",properties.AgentArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AgentArns):void 0),ret.addPropertyResult("azureAccessTier","AzureAccessTier",properties.AzureAccessTier!=null?cfn_parse().FromCloudFormation.getString(properties.AzureAccessTier):void 0),ret.addPropertyResult("azureBlobAuthenticationType","AzureBlobAuthenticationType",properties.AzureBlobAuthenticationType!=null?cfn_parse().FromCloudFormation.getString(properties.AzureBlobAuthenticationType):void 0),ret.addPropertyResult("azureBlobContainerUrl","AzureBlobContainerUrl",properties.AzureBlobContainerUrl!=null?cfn_parse().FromCloudFormation.getString(properties.AzureBlobContainerUrl):void 0),ret.addPropertyResult("azureBlobSasConfiguration","AzureBlobSasConfiguration",properties.AzureBlobSasConfiguration!=null?CfnLocationAzureBlobAzureBlobSasConfigurationPropertyFromCloudFormation(properties.AzureBlobSasConfiguration):void 0),ret.addPropertyResult("azureBlobType","AzureBlobType",properties.AzureBlobType!=null?cfn_parse().FromCloudFormation.getString(properties.AzureBlobType):void 0),ret.addPropertyResult("cmkSecretConfig","CmkSecretConfig",properties.CmkSecretConfig!=null?CfnLocationAzureBlobCmkSecretConfigPropertyFromCloudFormation(properties.CmkSecretConfig):void 0),ret.addPropertyResult("customSecretConfig","CustomSecretConfig",properties.CustomSecretConfig!=null?CfnLocationAzureBlobCustomSecretConfigPropertyFromCloudFormation(properties.CustomSecretConfig):void 0),ret.addPropertyResult("subdirectory","Subdirectory",properties.Subdirectory!=null?cfn_parse().FromCloudFormation.getString(properties.Subdirectory):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 CfnLocationEFS extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_datasync.CfnLocationEFS",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::DataSync::LocationEFS";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLocationEFSPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLocationEFS(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 isCfnLocationEFS(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLocationEFS.CFN_RESOURCE_TYPE_NAME}_accessPointArn;_ec2Config;_efsFilesystemArn;_fileSystemAccessRoleArn;_inTransitEncryption;_subdirectory;tags;_tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnLocationEFS.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_datasync_CfnLocationEFSProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLocationEFS),error}cdk().requireProperty(props,"ec2Config",this),this._accessPointArn=props.accessPointArn,this._ec2Config=props.ec2Config,this._efsFilesystemArn=cdk().getRefProperty(props.efsFilesystemArn?.fileSystemRef,"fileSystemArn")??cdk().ensureStringOrUndefined(props.efsFilesystemArn,"efsFilesystemArn","efs.IFileSystemRef | string"),this._fileSystemAccessRoleArn=props.fileSystemAccessRoleArn,this._inTransitEncryption=props.inTransitEncryption,this._subdirectory=props.subdirectory,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::DataSync::LocationEFS",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get locationEfsRef(){return{locationArn:this.ref}}get accessPointArn(){return this._accessPointArn}set accessPointArn(value){cdk().traceProperty(this.node,"AccessPointArn"),this._accessPointArn=value}get ec2Config(){return this._ec2Config}set ec2Config(value){cdk().traceProperty(this.node,"Ec2Config"),this._ec2Config=value}get efsFilesystemArn(){return this._efsFilesystemArn}set efsFilesystemArn(value){cdk().traceProperty(this.node,"EfsFilesystemArn"),this._efsFilesystemArn=value}get fileSystemAccessRoleArn(){return this._fileSystemAccessRoleArn}set fileSystemAccessRoleArn(value){cdk().traceProperty(this.node,"FileSystemAccessRoleArn"),this._fileSystemAccessRoleArn=value}get inTransitEncryption(){return this._inTransitEncryption}set inTransitEncryption(value){cdk().traceProperty(this.node,"InTransitEncryption"),this._inTransitEncryption=value}get subdirectory(){return this._subdirectory}set subdirectory(value){cdk().traceProperty(this.node,"Subdirectory"),this._subdirectory=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrLocationArn(){return cdk().Token.asString(this.getAtt("LocationArn",cdk().ResolutionTypeHint.STRING))}get attrLocationUri(){return cdk().Token.asString(this.getAtt("LocationUri",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{accessPointArn:this._accessPointArn,ec2Config:this._ec2Config,efsFilesystemArn:this._efsFilesystemArn,fileSystemAccessRoleArn:this._fileSystemAccessRoleArn,inTransitEncryption:this._inTransitEncryption,subdirectory:this._subdirectory,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",CfnLocationEFS.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLocationEFSPropsToCloudFormation(props)}}exports.CfnLocationEFS=CfnLocationEFS;function CfnLocationEFSEc2ConfigPropertyValidator(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("securityGroupArns",cdk().requiredValidator)(properties.securityGroupArns)),errors.collect(cdk().propertyValidator("securityGroupArns",cdk().listValidator(cdk().validateString))(properties.securityGroupArns)),errors.collect(cdk().propertyValidator("subnetArn",cdk().requiredValidator)(properties.subnetArn)),errors.collect(cdk().propertyValidator("subnetArn",cdk().validateString)(properties.subnetArn)),errors.wrap('supplied properties not correct for "Ec2ConfigProperty"')}function convertCfnLocationEFSEc2ConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationEFSEc2ConfigPropertyValidator(properties).assertSuccess(),{SecurityGroupArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroupArns),SubnetArn:cdk().stringToCloudFormation(properties.subnetArn)}):properties}function CfnLocationEFSEc2ConfigPropertyFromCloudFormation(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("securityGroupArns","SecurityGroupArns",properties.SecurityGroupArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroupArns):void 0),ret.addPropertyResult("subnetArn","SubnetArn",properties.SubnetArn!=null?cfn_parse().FromCloudFormation.getString(properties.SubnetArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLocationEFSPropsValidator(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("accessPointArn",cdk().validateString)(properties.accessPointArn)),errors.collect(cdk().propertyValidator("ec2Config",cdk().requiredValidator)(properties.ec2Config)),errors.collect(cdk().propertyValidator("ec2Config",CfnLocationEFSEc2ConfigPropertyValidator)(properties.ec2Config)),errors.collect(cdk().propertyValidator("efsFilesystemArn",cdk().validateString)(properties.efsFilesystemArn)),errors.collect(cdk().propertyValidator("fileSystemAccessRoleArn",cdk().validateString)(properties.fileSystemAccessRoleArn)),errors.collect(cdk().propertyValidator("inTransitEncryption",cdk().validateString)(properties.inTransitEncryption)),errors.collect(cdk().propertyValidator("subdirectory",cdk().validateString)(properties.subdirectory)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnLocationEFSProps"')}function convertCfnLocationEFSPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationEFSPropsValidator(properties).assertSuccess(),{AccessPointArn:cdk().stringToCloudFormation(properties.accessPointArn),Ec2Config:convertCfnLocationEFSEc2ConfigPropertyToCloudFormation(properties.ec2Config),EfsFilesystemArn:cdk().stringToCloudFormation(properties.efsFilesystemArn),FileSystemAccessRoleArn:cdk().stringToCloudFormation(properties.fileSystemAccessRoleArn),InTransitEncryption:cdk().stringToCloudFormation(properties.inTransitEncryption),Subdirectory:cdk().stringToCloudFormation(properties.subdirectory),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnLocationEFSPropsFromCloudFormation(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("accessPointArn","AccessPointArn",properties.AccessPointArn!=null?cfn_parse().FromCloudFormation.getString(properties.AccessPointArn):void 0),ret.addPropertyResult("ec2Config","Ec2Config",properties.Ec2Config!=null?CfnLocationEFSEc2ConfigPropertyFromCloudFormation(properties.Ec2Config):void 0),ret.addPropertyResult("efsFilesystemArn","EfsFilesystemArn",properties.EfsFilesystemArn!=null?cfn_parse().FromCloudFormation.getString(properties.EfsFilesystemArn):void 0),ret.addPropertyResult("fileSystemAccessRoleArn","FileSystemAccessRoleArn",properties.FileSystemAccessRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.FileSystemAccessRoleArn):void 0),ret.addPropertyResult("inTransitEncryption","InTransitEncryption",properties.InTransitEncryption!=null?cfn_parse().FromCloudFormation.getString(properties.InTransitEncryption):void 0),ret.addPropertyResult("subdirectory","Subdirectory",properties.Subdirectory!=null?cfn_parse().FromCloudFormation.getString(properties.Subdirectory):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 CfnLocationFSxLustre extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_datasync.CfnLocationFSxLustre",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::DataSync::LocationFSxLustre";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLocationFSxLustrePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLocationFSxLustre(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 isCfnLocationFSxLustre(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLocationFSxLustre.CFN_RESOURCE_TYPE_NAME}_fsxFilesystemArn;_securityGroupArns;_subdirectory;tags;_tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnLocationFSxLustre.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_datasync_CfnLocationFSxLustreProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLocationFSxLustre),error}cdk().requireProperty(props,"securityGroupArns",this),this._fsxFilesystemArn=props.fsxFilesystemArn,this._securityGroupArns=props.securityGroupArns,this._subdirectory=props.subdirectory,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::DataSync::LocationFSxLustre",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get locationFSxLustreRef(){return{locationArn:this.ref}}get fsxFilesystemArn(){return this._fsxFilesystemArn}set fsxFilesystemArn(value){cdk().traceProperty(this.node,"FsxFilesystemArn"),this._fsxFilesystemArn=value}get securityGroupArns(){return this._securityGroupArns}set securityGroupArns(value){cdk().traceProperty(this.node,"SecurityGroupArns"),this._securityGroupArns=value}get subdirectory(){return this._subdirectory}set subdirectory(value){cdk().traceProperty(this.node,"Subdirectory"),this._subdirectory=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrLocationArn(){return cdk().Token.asString(this.getAtt("LocationArn",cdk().ResolutionTypeHint.STRING))}get attrLocationUri(){return cdk().Token.asString(this.getAtt("LocationUri",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{fsxFilesystemArn:this._fsxFilesystemArn,securityGroupArns:this._securityGroupArns,subdirectory:this._subdirectory,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",CfnLocationFSxLustre.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLocationFSxLustrePropsToCloudFormation(props)}}exports.CfnLocationFSxLustre=CfnLocationFSxLustre;function CfnLocationFSxLustrePropsValidator(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("fsxFilesystemArn",cdk().validateString)(properties.fsxFilesystemArn)),errors.collect(cdk().propertyValidator("securityGroupArns",cdk().requiredValidator)(properties.securityGroupArns)),errors.collect(cdk().propertyValidator("securityGroupArns",cdk().listValidator(cdk().validateString))(properties.securityGroupArns)),errors.collect(cdk().propertyValidator("subdirectory",cdk().validateString)(properties.subdirectory)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnLocationFSxLustreProps"')}function convertCfnLocationFSxLustrePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationFSxLustrePropsValidator(properties).assertSuccess(),{FsxFilesystemArn:cdk().stringToCloudFormation(properties.fsxFilesystemArn),SecurityGroupArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroupArns),Subdirectory:cdk().stringToCloudFormation(properties.subdirectory),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnLocationFSxLustrePropsFromCloudFormation(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("fsxFilesystemArn","FsxFilesystemArn",properties.FsxFilesystemArn!=null?cfn_parse().FromCloudFormation.getString(properties.FsxFilesystemArn):void 0),ret.addPropertyResult("securityGroupArns","SecurityGroupArns",properties.SecurityGroupArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroupArns):void 0),ret.addPropertyResult("subdirectory","Subdirectory",properties.Subdirectory!=null?cfn_parse().FromCloudFormation.getString(properties.Subdirectory):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 CfnLocationFSxONTAP extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_datasync.CfnLocationFSxONTAP",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::DataSync::LocationFSxONTAP";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLocationFSxONTAPPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLocationFSxONTAP(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 isCfnLocationFSxONTAP(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLocationFSxONTAP.CFN_RESOURCE_TYPE_NAME}_protocol;_securityGroupArns;_storageVirtualMachineArn;_subdirectory;tags;_tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnLocationFSxONTAP.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_datasync_CfnLocationFSxONTAPProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLocationFSxONTAP),error}cdk().requireProperty(props,"securityGroupArns",this),cdk().requireProperty(props,"storageVirtualMachineArn",this),this._protocol=props.protocol,this._securityGroupArns=props.securityGroupArns,this._storageVirtualMachineArn=props.storageVirtualMachineArn,this._subdirectory=props.subdirectory,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::DataSync::LocationFSxONTAP",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get locationFSxOntapRef(){return{locationArn:this.ref}}get protocol(){return this._protocol}set protocol(value){cdk().traceProperty(this.node,"Protocol"),this._protocol=value}get securityGroupArns(){return this._securityGroupArns}set securityGroupArns(value){cdk().traceProperty(this.node,"SecurityGroupArns"),this._securityGroupArns=value}get storageVirtualMachineArn(){return this._storageVirtualMachineArn}set storageVirtualMachineArn(value){cdk().traceProperty(this.node,"StorageVirtualMachineArn"),this._storageVirtualMachineArn=value}get subdirectory(){return this._subdirectory}set subdirectory(value){cdk().traceProperty(this.node,"Subdirectory"),this._subdirectory=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrFsxFilesystemArn(){return cdk().Token.asString(this.getAtt("FsxFilesystemArn",cdk().ResolutionTypeHint.STRING))}get attrLocationArn(){return cdk().Token.asString(this.getAtt("LocationArn",cdk().ResolutionTypeHint.STRING))}get attrLocationUri(){return cdk().Token.asString(this.getAtt("LocationUri",cdk().ResolutionTypeHint.STRING))}get attrProtocolSmbCmkSecretConfigSecretArn(){return cdk().Token.asString(this.getAtt("Protocol.SMB.CmkSecretConfig.SecretArn",cdk().ResolutionTypeHint.STRING))}get attrProtocolSmbManagedSecretConfig(){return this.getAtt("Protocol.SMB.ManagedSecretConfig")}get cfnProperties(){return{protocol:this._protocol,securityGroupArns:this._securityGroupArns,storageVirtualMachineArn:this._storageVirtualMachineArn,subdirectory:this._subdirectory,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",CfnLocationFSxONTAP.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLocationFSxONTAPPropsToCloudFormation(props)}}exports.CfnLocationFSxONTAP=CfnLocationFSxONTAP;function CfnLocationFSxONTAPSmbMountOptionsPropertyValidator(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("version",cdk().validateString)(properties.version)),errors.wrap('supplied properties not correct for "SmbMountOptionsProperty"')}function convertCfnLocationFSxONTAPSmbMountOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationFSxONTAPSmbMountOptionsPropertyValidator(properties).assertSuccess(),{Version:cdk().stringToCloudFormation(properties.version)}):properties}function CfnLocationFSxONTAPSmbMountOptionsPropertyFromCloudFormation(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("version","Version",properties.Version!=null?cfn_parse().FromCloudFormation.getString(properties.Version):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLocationFSxONTAPCmkSecretConfigPropertyValidator(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("kmsKeyArn",cdk().validateString)(properties.kmsKeyArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().validateString)(properties.secretArn)),errors.wrap('supplied properties not correct for "CmkSecretConfigProperty"')}function convertCfnLocationFSxONTAPCmkSecretConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationFSxONTAPCmkSecretConfigPropertyValidator(properties).assertSuccess(),{KmsKeyArn:cdk().stringToCloudFormation(properties.kmsKeyArn),SecretArn:cdk().stringToCloudFormation(properties.secretArn)}):properties}function CfnLocationFSxONTAPCmkSecretConfigPropertyFromCloudFormation(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("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addPropertyResult("secretArn","SecretArn",properties.SecretArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLocationFSxONTAPCustomSecretConfigPropertyValidator(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("secretAccessRoleArn",cdk().requiredValidator)(properties.secretAccessRoleArn)),errors.collect(cdk().propertyValidator("secretAccessRoleArn",cdk().validateString)(properties.secretAccessRoleArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().requiredValidator)(properties.secretArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().validateString)(properties.secretArn)),errors.wrap('supplied properties not correct for "CustomSecretConfigProperty"')}function convertCfnLocationFSxONTAPCustomSecretConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLocationFSxONTAPCustomSecretConfigPropertyValidator(properties).assertSuccess(),{SecretAccessRoleArn:cdk().stringToCloudFormation(properties.secretAccessRoleArn),SecretArn:cdk().stringToCloudFormation(properties.secretArn)}):properties}function CfnLocationFSxONTAPCustomSecretConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(propert