aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 305 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnStateMachine=exports.CfnLayerVersion=exports.CfnSimpleTable=exports.CfnApplication=exports.CfnHttpApi=exports.CfnApi=exports.CfnFunction=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 CfnFunction extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_sam.CfnFunction",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Serverless::Function";static REQUIRED_TRANSFORM="AWS::Serverless-2016-10-31";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFunctionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnFunction(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 isCfnFunction(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnFunction.CFN_RESOURCE_TYPE_NAME}_architectures;_assumeRolePolicyDocument;_autoPublishAlias;_autoPublishCodeSha256;_codeSigningConfigArn;_codeUri;_deadLetterQueue;_deploymentPreference;_description;_environment;_ephemeralStorage;_eventInvokeConfig;_events;_fileSystemConfigs;_functionName;_functionUrlConfig;_handler;_imageConfig;_imageUri;_inlineCode;_kmsKeyArn;_layers;_memorySize;_packageType;_permissionsBoundary;_policies;_provisionedConcurrencyConfig;_reservedConcurrentExecutions;_role;_runtime;tags;_tagsRaw;_timeout;_tracing;_versionDescription;_vpcConfig;constructor(scope,id,props={}){super(scope,id,{type:CfnFunction.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_sam_CfnFunctionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFunction),error}this.stack.addTransform(CfnFunction.REQUIRED_TRANSFORM),this._architectures=props.architectures,this._assumeRolePolicyDocument=props.assumeRolePolicyDocument,this._autoPublishAlias=props.autoPublishAlias,this._autoPublishCodeSha256=props.autoPublishCodeSha256,this._codeSigningConfigArn=props.codeSigningConfigArn,this._codeUri=props.codeUri,this._deadLetterQueue=props.deadLetterQueue,this._deploymentPreference=props.deploymentPreference,this._description=props.description,this._environment=props.environment,this._ephemeralStorage=props.ephemeralStorage,this._eventInvokeConfig=props.eventInvokeConfig,this._events=props.events,this._fileSystemConfigs=props.fileSystemConfigs,this._functionName=props.functionName,this._functionUrlConfig=props.functionUrlConfig,this._handler=props.handler,this._imageConfig=props.imageConfig,this._imageUri=props.imageUri,this._inlineCode=props.inlineCode,this._kmsKeyArn=props.kmsKeyArn,this._layers=props.layers,this._memorySize=props.memorySize,this._packageType=props.packageType,this._permissionsBoundary=props.permissionsBoundary,this._policies=props.policies,this._provisionedConcurrencyConfig=props.provisionedConcurrencyConfig,this._reservedConcurrentExecutions=props.reservedConcurrentExecutions,this._role=props.role,this._runtime=props.runtime,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::Serverless::Function",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._timeout=props.timeout,this._tracing=props.tracing,this._versionDescription=props.versionDescription,this._vpcConfig=props.vpcConfig}get functionRef(){return{}}get architectures(){return this._architectures}set architectures(value){cdk().traceProperty(this.node,"Architectures"),this._architectures=value}get assumeRolePolicyDocument(){return this._assumeRolePolicyDocument}set assumeRolePolicyDocument(value){cdk().traceProperty(this.node,"AssumeRolePolicyDocument"),this._assumeRolePolicyDocument=value}get autoPublishAlias(){return this._autoPublishAlias}set autoPublishAlias(value){cdk().traceProperty(this.node,"AutoPublishAlias"),this._autoPublishAlias=value}get autoPublishCodeSha256(){return this._autoPublishCodeSha256}set autoPublishCodeSha256(value){cdk().traceProperty(this.node,"AutoPublishCodeSha256"),this._autoPublishCodeSha256=value}get codeSigningConfigArn(){return this._codeSigningConfigArn}set codeSigningConfigArn(value){cdk().traceProperty(this.node,"CodeSigningConfigArn"),this._codeSigningConfigArn=value}get codeUri(){return this._codeUri}set codeUri(value){cdk().traceProperty(this.node,"CodeUri"),this._codeUri=value}get deadLetterQueue(){return this._deadLetterQueue}set deadLetterQueue(value){cdk().traceProperty(this.node,"DeadLetterQueue"),this._deadLetterQueue=value}get deploymentPreference(){return this._deploymentPreference}set deploymentPreference(value){cdk().traceProperty(this.node,"DeploymentPreference"),this._deploymentPreference=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get environment(){return this._environment}set environment(value){cdk().traceProperty(this.node,"Environment"),this._environment=value}get ephemeralStorage(){return this._ephemeralStorage}set ephemeralStorage(value){cdk().traceProperty(this.node,"EphemeralStorage"),this._ephemeralStorage=value}get eventInvokeConfig(){return this._eventInvokeConfig}set eventInvokeConfig(value){cdk().traceProperty(this.node,"EventInvokeConfig"),this._eventInvokeConfig=value}get events(){return this._events}set events(value){cdk().traceProperty(this.node,"Events"),this._events=value}get fileSystemConfigs(){return this._fileSystemConfigs}set fileSystemConfigs(value){cdk().traceProperty(this.node,"FileSystemConfigs"),this._fileSystemConfigs=value}get functionName(){return this._functionName}set functionName(value){cdk().traceProperty(this.node,"FunctionName"),this._functionName=value}get functionUrlConfig(){return this._functionUrlConfig}set functionUrlConfig(value){cdk().traceProperty(this.node,"FunctionUrlConfig"),this._functionUrlConfig=value}get handler(){return this._handler}set handler(value){cdk().traceProperty(this.node,"Handler"),this._handler=value}get imageConfig(){return this._imageConfig}set imageConfig(value){cdk().traceProperty(this.node,"ImageConfig"),this._imageConfig=value}get imageUri(){return this._imageUri}set imageUri(value){cdk().traceProperty(this.node,"ImageUri"),this._imageUri=value}get inlineCode(){return this._inlineCode}set inlineCode(value){cdk().traceProperty(this.node,"InlineCode"),this._inlineCode=value}get kmsKeyArn(){return this._kmsKeyArn}set kmsKeyArn(value){cdk().traceProperty(this.node,"KmsKeyArn"),this._kmsKeyArn=value}get layers(){return this._layers}set layers(value){cdk().traceProperty(this.node,"Layers"),this._layers=value}get memorySize(){return this._memorySize}set memorySize(value){cdk().traceProperty(this.node,"MemorySize"),this._memorySize=value}get packageType(){return this._packageType}set packageType(value){cdk().traceProperty(this.node,"PackageType"),this._packageType=value}get permissionsBoundary(){return this._permissionsBoundary}set permissionsBoundary(value){cdk().traceProperty(this.node,"PermissionsBoundary"),this._permissionsBoundary=value}get policies(){return this._policies}set policies(value){cdk().traceProperty(this.node,"Policies"),this._policies=value}get provisionedConcurrencyConfig(){return this._provisionedConcurrencyConfig}set provisionedConcurrencyConfig(value){cdk().traceProperty(this.node,"ProvisionedConcurrencyConfig"),this._provisionedConcurrencyConfig=value}get reservedConcurrentExecutions(){return this._reservedConcurrentExecutions}set reservedConcurrentExecutions(value){cdk().traceProperty(this.node,"ReservedConcurrentExecutions"),this._reservedConcurrentExecutions=value}get role(){return this._role}set role(value){cdk().traceProperty(this.node,"Role"),this._role=value}get runtime(){return this._runtime}set runtime(value){cdk().traceProperty(this.node,"Runtime"),this._runtime=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get timeout(){return this._timeout}set timeout(value){cdk().traceProperty(this.node,"Timeout"),this._timeout=value}get tracing(){return this._tracing}set tracing(value){cdk().traceProperty(this.node,"Tracing"),this._tracing=value}get versionDescription(){return this._versionDescription}set versionDescription(value){cdk().traceProperty(this.node,"VersionDescription"),this._versionDescription=value}get vpcConfig(){return this._vpcConfig}set vpcConfig(value){cdk().traceProperty(this.node,"VpcConfig"),this._vpcConfig=value}get cfnProperties(){return{architectures:this._architectures,assumeRolePolicyDocument:this._assumeRolePolicyDocument,autoPublishAlias:this._autoPublishAlias,autoPublishCodeSha256:this._autoPublishCodeSha256,codeSigningConfigArn:this._codeSigningConfigArn,codeUri:this._codeUri,deadLetterQueue:this._deadLetterQueue,deploymentPreference:this._deploymentPreference,description:this._description,environment:this._environment,ephemeralStorage:this._ephemeralStorage,eventInvokeConfig:this._eventInvokeConfig,events:this._events,fileSystemConfigs:this._fileSystemConfigs,functionName:this._functionName,functionUrlConfig:this._functionUrlConfig,handler:this._handler,imageConfig:this._imageConfig,imageUri:this._imageUri,inlineCode:this._inlineCode,kmsKeyArn:this._kmsKeyArn,layers:this._layers,memorySize:this._memorySize,packageType:this._packageType,permissionsBoundary:this._permissionsBoundary,policies:this._policies,provisionedConcurrencyConfig:this._provisionedConcurrencyConfig,reservedConcurrentExecutions:this._reservedConcurrentExecutions,role:this._role,runtime:this._runtime,tags:this.tags.renderTags(),timeout:this._timeout,tracing:this._tracing,versionDescription:this._versionDescription,vpcConfig:this._vpcConfig}}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",CfnFunction.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnFunctionPropsToCloudFormation(props)}}exports.CfnFunction=CfnFunction;function CfnFunctionS3LocationPropertyValidator(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("bucket",cdk().requiredValidator)(properties.bucket)),errors.collect(cdk().propertyValidator("bucket",cdk().validateString)(properties.bucket)),errors.collect(cdk().propertyValidator("key",cdk().requiredValidator)(properties.key)),errors.collect(cdk().propertyValidator("key",cdk().validateString)(properties.key)),errors.collect(cdk().propertyValidator("version",cdk().validateNumber)(properties.version)),errors.wrap('supplied properties not correct for "S3LocationProperty"')}function convertCfnFunctionS3LocationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionS3LocationPropertyValidator(properties).assertSuccess(),{Bucket:cdk().stringToCloudFormation(properties.bucket),Key:cdk().stringToCloudFormation(properties.key),Version:cdk().numberToCloudFormation(properties.version)}):properties}function CfnFunctionS3LocationPropertyFromCloudFormation(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("bucket","Bucket",properties.Bucket!=null?cfn_parse().FromCloudFormation.getString(properties.Bucket):void 0),ret.addPropertyResult("key","Key",properties.Key!=null?cfn_parse().FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("version","Version",properties.Version!=null?cfn_parse().FromCloudFormation.getNumber(properties.Version):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionFileSystemConfigPropertyValidator(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("arn",cdk().validateString)(properties.arn)),errors.collect(cdk().propertyValidator("localMountPath",cdk().validateString)(properties.localMountPath)),errors.wrap('supplied properties not correct for "FileSystemConfigProperty"')}function convertCfnFunctionFileSystemConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionFileSystemConfigPropertyValidator(properties).assertSuccess(),{Arn:cdk().stringToCloudFormation(properties.arn),LocalMountPath:cdk().stringToCloudFormation(properties.localMountPath)}):properties}function CfnFunctionFileSystemConfigPropertyFromCloudFormation(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("arn","Arn",properties.Arn!=null?cfn_parse().FromCloudFormation.getString(properties.Arn):void 0),ret.addPropertyResult("localMountPath","LocalMountPath",properties.LocalMountPath!=null?cfn_parse().FromCloudFormation.getString(properties.LocalMountPath):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionIAMPolicyDocumentPropertyValidator(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("statement",cdk().requiredValidator)(properties.statement)),errors.collect(cdk().propertyValidator("statement",cdk().validateObject)(properties.statement)),errors.collect(cdk().propertyValidator("version",cdk().validateString)(properties.version)),errors.wrap('supplied properties not correct for "IAMPolicyDocumentProperty"')}function convertCfnFunctionIAMPolicyDocumentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionIAMPolicyDocumentPropertyValidator(properties).assertSuccess(),{Statement:cdk().objectToCloudFormation(properties.statement),Version:cdk().stringToCloudFormation(properties.version)}):properties}function CfnFunctionIAMPolicyDocumentPropertyFromCloudFormation(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("statement","Statement",properties.Statement!=null?cfn_parse().FromCloudFormation.getAny(properties.Statement):void 0),ret.addPropertyResult("version","Version",properties.Version!=null?cfn_parse().FromCloudFormation.getString(properties.Version):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionEmptySAMPTPropertyValidator(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.wrap('supplied properties not correct for "EmptySAMPTProperty"')}function convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionEmptySAMPTPropertyValidator(properties).assertSuccess(),{}):properties}function CfnFunctionEmptySAMPTPropertyFromCloudFormation(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.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionQueueSAMPTPropertyValidator(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("queueName",cdk().requiredValidator)(properties.queueName)),errors.collect(cdk().propertyValidator("queueName",cdk().validateString)(properties.queueName)),errors.wrap('supplied properties not correct for "QueueSAMPTProperty"')}function convertCfnFunctionQueueSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionQueueSAMPTPropertyValidator(properties).assertSuccess(),{QueueName:cdk().stringToCloudFormation(properties.queueName)}):properties}function CfnFunctionQueueSAMPTPropertyFromCloudFormation(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("queueName","QueueName",properties.QueueName!=null?cfn_parse().FromCloudFormation.getString(properties.QueueName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionFunctionSAMPTPropertyValidator(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("functionName",cdk().requiredValidator)(properties.functionName)),errors.collect(cdk().propertyValidator("functionName",cdk().validateString)(properties.functionName)),errors.wrap('supplied properties not correct for "FunctionSAMPTProperty"')}function convertCfnFunctionFunctionSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionFunctionSAMPTPropertyValidator(properties).assertSuccess(),{FunctionName:cdk().stringToCloudFormation(properties.functionName)}):properties}function CfnFunctionFunctionSAMPTPropertyFromCloudFormation(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("functionName","FunctionName",properties.FunctionName!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionTableSAMPTPropertyValidator(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("tableName",cdk().requiredValidator)(properties.tableName)),errors.collect(cdk().propertyValidator("tableName",cdk().validateString)(properties.tableName)),errors.wrap('supplied properties not correct for "TableSAMPTProperty"')}function convertCfnFunctionTableSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionTableSAMPTPropertyValidator(properties).assertSuccess(),{TableName:cdk().stringToCloudFormation(properties.tableName)}):properties}function CfnFunctionTableSAMPTPropertyFromCloudFormation(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("tableName","TableName",properties.TableName!=null?cfn_parse().FromCloudFormation.getString(properties.TableName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionTableStreamSAMPTPropertyValidator(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("streamName",cdk().requiredValidator)(properties.streamName)),errors.collect(cdk().propertyValidator("streamName",cdk().validateString)(properties.streamName)),errors.collect(cdk().propertyValidator("tableName",cdk().requiredValidator)(properties.tableName)),errors.collect(cdk().propertyValidator("tableName",cdk().validateString)(properties.tableName)),errors.wrap('supplied properties not correct for "TableStreamSAMPTProperty"')}function convertCfnFunctionTableStreamSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionTableStreamSAMPTPropertyValidator(properties).assertSuccess(),{StreamName:cdk().stringToCloudFormation(properties.streamName),TableName:cdk().stringToCloudFormation(properties.tableName)}):properties}function CfnFunctionTableStreamSAMPTPropertyFromCloudFormation(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("streamName","StreamName",properties.StreamName!=null?cfn_parse().FromCloudFormation.getString(properties.StreamName):void 0),ret.addPropertyResult("tableName","TableName",properties.TableName!=null?cfn_parse().FromCloudFormation.getString(properties.TableName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionIdentitySAMPTPropertyValidator(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("identityName",cdk().requiredValidator)(properties.identityName)),errors.collect(cdk().propertyValidator("identityName",cdk().validateString)(properties.identityName)),errors.wrap('supplied properties not correct for "IdentitySAMPTProperty"')}function convertCfnFunctionIdentitySAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionIdentitySAMPTPropertyValidator(properties).assertSuccess(),{IdentityName:cdk().stringToCloudFormation(properties.identityName)}):properties}function CfnFunctionIdentitySAMPTPropertyFromCloudFormation(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("identityName","IdentityName",properties.IdentityName!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionDomainSAMPTPropertyValidator(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("domainName",cdk().requiredValidator)(properties.domainName)),errors.collect(cdk().propertyValidator("domainName",cdk().validateString)(properties.domainName)),errors.wrap('supplied properties not correct for "DomainSAMPTProperty"')}function convertCfnFunctionDomainSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionDomainSAMPTPropertyValidator(properties).assertSuccess(),{DomainName:cdk().stringToCloudFormation(properties.domainName)}):properties}function CfnFunctionDomainSAMPTPropertyFromCloudFormation(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("domainName","DomainName",properties.DomainName!=null?cfn_parse().FromCloudFormation.getString(properties.DomainName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionBucketSAMPTPropertyValidator(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("bucketName",cdk().requiredValidator)(properties.bucketName)),errors.collect(cdk().propertyValidator("bucketName",cdk().validateString)(properties.bucketName)),errors.wrap('supplied properties not correct for "BucketSAMPTProperty"')}function convertCfnFunctionBucketSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionBucketSAMPTPropertyValidator(properties).assertSuccess(),{BucketName:cdk().stringToCloudFormation(properties.bucketName)}):properties}function CfnFunctionBucketSAMPTPropertyFromCloudFormation(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("bucketName","BucketName",properties.BucketName!=null?cfn_parse().FromCloudFormation.getString(properties.BucketName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionCollectionSAMPTPropertyValidator(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("collectionId",cdk().requiredValidator)(properties.collectionId)),errors.collect(cdk().propertyValidator("collectionId",cdk().validateString)(properties.collectionId)),errors.wrap('supplied properties not correct for "CollectionSAMPTProperty"')}function convertCfnFunctionCollectionSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionCollectionSAMPTPropertyValidator(properties).assertSuccess(),{CollectionId:cdk().stringToCloudFormation(properties.collectionId)}):properties}function CfnFunctionCollectionSAMPTPropertyFromCloudFormation(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("collectionId","CollectionId",properties.CollectionId!=null?cfn_parse().FromCloudFormation.getString(properties.CollectionId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionTopicSAMPTPropertyValidator(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("topicName",cdk().requiredValidator)(properties.topicName)),errors.collect(cdk().propertyValidator("topicName",cdk().validateString)(properties.topicName)),errors.wrap('supplied properties not correct for "TopicSAMPTProperty"')}function convertCfnFunctionTopicSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionTopicSAMPTPropertyValidator(properties).assertSuccess(),{TopicName:cdk().stringToCloudFormation(properties.topicName)}):properties}function CfnFunctionTopicSAMPTPropertyFromCloudFormation(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("topicName","TopicName",properties.TopicName!=null?cfn_parse().FromCloudFormation.getString(properties.TopicName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionStreamSAMPTPropertyValidator(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("streamName",cdk().requiredValidator)(properties.streamName)),errors.collect(cdk().propertyValidator("streamName",cdk().validateString)(properties.streamName)),errors.wrap('supplied properties not correct for "StreamSAMPTProperty"')}function convertCfnFunctionStreamSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionStreamSAMPTPropertyValidator(properties).assertSuccess(),{StreamName:cdk().stringToCloudFormation(properties.streamName)}):properties}function CfnFunctionStreamSAMPTPropertyFromCloudFormation(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("streamName","StreamName",properties.StreamName!=null?cfn_parse().FromCloudFormation.getString(properties.StreamName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionKeySAMPTPropertyValidator(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("keyId",cdk().requiredValidator)(properties.keyId)),errors.collect(cdk().propertyValidator("keyId",cdk().validateString)(properties.keyId)),errors.wrap('supplied properties not correct for "KeySAMPTProperty"')}function convertCfnFunctionKeySAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionKeySAMPTPropertyValidator(properties).assertSuccess(),{KeyId:cdk().stringToCloudFormation(properties.keyId)}):properties}function CfnFunctionKeySAMPTPropertyFromCloudFormation(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("keyId","KeyId",properties.KeyId!=null?cfn_parse().FromCloudFormation.getString(properties.KeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionLogGroupSAMPTPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("logGroupName",cdk().requiredValidator)(properties.logGroupName)),errors.collect(cdk().propertyValidator("logGroupName",cdk().validateString)(properties.logGroupName)),errors.wrap('supplied properties not correct for "LogGroupSAMPTProperty"')}function convertCfnFunctionLogGroupSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionLogGroupSAMPTPropertyValidator(properties).assertSuccess(),{LogGroupName:cdk().stringToCloudFormation(properties.logGroupName)}):properties}function CfnFunctionLogGroupSAMPTPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("logGroupName","LogGroupName",properties.LogGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.LogGroupName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionStateMachineSAMPTPropertyValidator(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("stateMachineName",cdk().requiredValidator)(properties.stateMachineName)),errors.collect(cdk().propertyValidator("stateMachineName",cdk().validateString)(properties.stateMachineName)),errors.wrap('supplied properties not correct for "StateMachineSAMPTProperty"')}function convertCfnFunctionStateMachineSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionStateMachineSAMPTPropertyValidator(properties).assertSuccess(),{StateMachineName:cdk().stringToCloudFormation(properties.stateMachineName)}):properties}function CfnFunctionStateMachineSAMPTPropertyFromCloudFormation(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("stateMachineName","StateMachineName",properties.StateMachineName!=null?cfn_parse().FromCloudFormation.getString(properties.StateMachineName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionParameterNameSAMPTPropertyValidator(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("parameterName",cdk().requiredValidator)(properties.parameterName)),errors.collect(cdk().propertyValidator("parameterName",cdk().validateString)(properties.parameterName)),errors.wrap('supplied properties not correct for "ParameterNameSAMPTProperty"')}function convertCfnFunctionParameterNameSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionParameterNameSAMPTPropertyValidator(properties).assertSuccess(),{ParameterName:cdk().stringToCloudFormation(properties.parameterName)}):properties}function CfnFunctionParameterNameSAMPTPropertyFromCloudFormation(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("parameterName","ParameterName",properties.ParameterName!=null?cfn_parse().FromCloudFormation.getString(properties.ParameterName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionSecretArnSAMPTPropertyValidator(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 "SecretArnSAMPTProperty"')}function convertCfnFunctionSecretArnSAMPTPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionSecretArnSAMPTPropertyValidator(properties).assertSuccess(),{SecretArn:cdk().stringToCloudFormation(properties.secretArn)}):properties}function CfnFunctionSecretArnSAMPTPropertyFromCloudFormation(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 CfnFunctionSAMPolicyTemplatePropertyValidator(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("amiDescribePolicy",CfnFunctionEmptySAMPTPropertyValidator)(properties.amiDescribePolicy)),errors.collect(cdk().propertyValidator("awsSecretsManagerGetSecretValuePolicy",CfnFunctionSecretArnSAMPTPropertyValidator)(properties.awsSecretsManagerGetSecretValuePolicy)),errors.collect(cdk().propertyValidator("cloudFormationDescribeStacksPolicy",CfnFunctionEmptySAMPTPropertyValidator)(properties.cloudFormationDescribeStacksPolicy)),errors.collect(cdk().propertyValidator("cloudWatchPutMetricPolicy",CfnFunctionEmptySAMPTPropertyValidator)(properties.cloudWatchPutMetricPolicy)),errors.collect(cdk().propertyValidator("dynamoDbCrudPolicy",CfnFunctionTableSAMPTPropertyValidator)(properties.dynamoDbCrudPolicy)),errors.collect(cdk().propertyValidator("dynamoDbReadPolicy",CfnFunctionTableSAMPTPropertyValidator)(properties.dynamoDbReadPolicy)),errors.collect(cdk().propertyValidator("dynamoDbStreamReadPolicy",CfnFunctionTableStreamSAMPTPropertyValidator)(properties.dynamoDbStreamReadPolicy)),errors.collect(cdk().propertyValidator("dynamoDbWritePolicy",CfnFunctionTableSAMPTPropertyValidator)(properties.dynamoDbWritePolicy)),errors.collect(cdk().propertyValidator("ec2DescribePolicy",CfnFunctionEmptySAMPTPropertyValidator)(properties.ec2DescribePolicy)),errors.collect(cdk().propertyValidator("elasticsearchHttpPostPolicy",CfnFunctionDomainSAMPTPropertyValidator)(properties.elasticsearchHttpPostPolicy)),errors.collect(cdk().propertyValidator("filterLogEventsPolicy",CfnFunctionLogGroupSAMPTPropertyValidator)(properties.filterLogEventsPolicy)),errors.collect(cdk().propertyValidator("kmsDecryptPolicy",CfnFunctionKeySAMPTPropertyValidator)(properties.kmsDecryptPolicy)),errors.collect(cdk().propertyValidator("kinesisCrudPolicy",CfnFunctionStreamSAMPTPropertyValidator)(properties.kinesisCrudPolicy)),errors.collect(cdk().propertyValidator("kinesisStreamReadPolicy",CfnFunctionStreamSAMPTPropertyValidator)(properties.kinesisStreamReadPolicy)),errors.collect(cdk().propertyValidator("lambdaInvokePolicy",CfnFunctionFunctionSAMPTPropertyValidator)(properties.lambdaInvokePolicy)),errors.collect(cdk().propertyValidator("rekognitionDetectOnlyPolicy",CfnFunctionEmptySAMPTPropertyValidator)(properties.rekognitionDetectOnlyPolicy)),errors.collect(cdk().propertyValidator("rekognitionLabelsPolicy",CfnFunctionEmptySAMPTPropertyValidator)(properties.rekognitionLabelsPolicy)),errors.collect(cdk().propertyValidator("rekognitionNoDataAccessPolicy",CfnFunctionCollectionSAMPTPropertyValidator)(properties.rekognitionNoDataAccessPolicy)),errors.collect(cdk().propertyValidator("rekognitionReadPolicy",CfnFunctionCollectionSAMPTPropertyValidator)(properties.rekognitionReadPolicy)),errors.collect(cdk().propertyValidator("rekognitionWriteOnlyAccessPolicy",CfnFunctionCollectionSAMPTPropertyValidator)(properties.rekognitionWriteOnlyAccessPolicy)),errors.collect(cdk().propertyValidator("s3CrudPolicy",CfnFunctionBucketSAMPTPropertyValidator)(properties.s3CrudPolicy)),errors.collect(cdk().propertyValidator("s3ReadPolicy",CfnFunctionBucketSAMPTPropertyValidator)(properties.s3ReadPolicy)),errors.collect(cdk().propertyValidator("s3WritePolicy",CfnFunctionBucketSAMPTPropertyValidator)(properties.s3WritePolicy)),errors.collect(cdk().propertyValidator("sesBulkTemplatedCrudPolicy",CfnFunctionIdentitySAMPTPropertyValidator)(properties.sesBulkTemplatedCrudPolicy)),errors.collect(cdk().propertyValidator("sesCrudPolicy",CfnFunctionIdentitySAMPTPropertyValidator)(properties.sesCrudPolicy)),errors.collect(cdk().propertyValidator("sesEmailTemplateCrudPolicy",CfnFunctionEmptySAMPTPropertyValidator)(properties.sesEmailTemplateCrudPolicy)),errors.collect(cdk().propertyValidator("sesSendBouncePolicy",CfnFunctionIdentitySAMPTPropertyValidator)(properties.sesSendBouncePolicy)),errors.collect(cdk().propertyValidator("snsCrudPolicy",CfnFunctionTopicSAMPTPropertyValidator)(properties.snsCrudPolicy)),errors.collect(cdk().propertyValidator("snsPublishMessagePolicy",CfnFunctionTopicSAMPTPropertyValidator)(properties.snsPublishMessagePolicy)),errors.collect(cdk().propertyValidator("sqsPollerPolicy",CfnFunctionQueueSAMPTPropertyValidator)(properties.sqsPollerPolicy)),errors.collect(cdk().propertyValidator("sqsSendMessagePolicy",CfnFunctionQueueSAMPTPropertyValidator)(properties.sqsSendMessagePolicy)),errors.collect(cdk().propertyValidator("ssmParameterReadPolicy",CfnFunctionParameterNameSAMPTPropertyValidator)(properties.ssmParameterReadPolicy)),errors.collect(cdk().propertyValidator("stepFunctionsExecutionPolicy",CfnFunctionStateMachineSAMPTPropertyValidator)(properties.stepFunctionsExecutionPolicy)),errors.collect(cdk().propertyValidator("vpcAccessPolicy",CfnFunctionEmptySAMPTPropertyValidator)(properties.vpcAccessPolicy)),errors.wrap('supplied properties not correct for "SAMPolicyTemplateProperty"')}function convertCfnFunctionSAMPolicyTemplatePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionSAMPolicyTemplatePropertyValidator(properties).assertSuccess(),{AMIDescribePolicy:convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties.amiDescribePolicy),AWSSecretsManagerGetSecretValuePolicy:convertCfnFunctionSecretArnSAMPTPropertyToCloudFormation(properties.awsSecretsManagerGetSecretValuePolicy),CloudFormationDescribeStacksPolicy:convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties.cloudFormationDescribeStacksPolicy),CloudWatchPutMetricPolicy:convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties.cloudWatchPutMetricPolicy),DynamoDBCrudPolicy:convertCfnFunctionTableSAMPTPropertyToCloudFormation(properties.dynamoDbCrudPolicy),DynamoDBReadPolicy:convertCfnFunctionTableSAMPTPropertyToCloudFormation(properties.dynamoDbReadPolicy),DynamoDBStreamReadPolicy:convertCfnFunctionTableStreamSAMPTPropertyToCloudFormation(properties.dynamoDbStreamReadPolicy),DynamoDBWritePolicy:convertCfnFunctionTableSAMPTPropertyToCloudFormation(properties.dynamoDbWritePolicy),EC2DescribePolicy:convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties.ec2DescribePolicy),ElasticsearchHttpPostPolicy:convertCfnFunctionDomainSAMPTPropertyToCloudFormation(properties.elasticsearchHttpPostPolicy),FilterLogEventsPolicy:convertCfnFunctionLogGroupSAMPTPropertyToCloudFormation(properties.filterLogEventsPolicy),KMSDecryptPolicy:convertCfnFunctionKeySAMPTPropertyToCloudFormation(properties.kmsDecryptPolicy),KinesisCrudPolicy:convertCfnFunctionStreamSAMPTPropertyToCloudFormation(properties.kinesisCrudPolicy),KinesisStreamReadPolicy:convertCfnFunctionStreamSAMPTPropertyToCloudFormation(properties.kinesisStreamReadPolicy),LambdaInvokePolicy:convertCfnFunctionFunctionSAMPTPropertyToCloudFormation(properties.lambdaInvokePolicy),RekognitionDetectOnlyPolicy:convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties.rekognitionDetectOnlyPolicy),RekognitionLabelsPolicy:convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties.rekognitionLabelsPolicy),RekognitionNoDataAccessPolicy:convertCfnFunctionCollectionSAMPTPropertyToCloudFormation(properties.rekognitionNoDataAccessPolicy),RekognitionReadPolicy:convertCfnFunctionCollectionSAMPTPropertyToCloudFormation(properties.rekognitionReadPolicy),RekognitionWriteOnlyAccessPolicy:convertCfnFunctionCollectionSAMPTPropertyToCloudFormation(properties.rekognitionWriteOnlyAccessPolicy),S3CrudPolicy:convertCfnFunctionBucketSAMPTPropertyToCloudFormation(properties.s3CrudPolicy),S3ReadPolicy:convertCfnFunctionBucketSAMPTPropertyToCloudFormation(properties.s3ReadPolicy),S3WritePolicy:convertCfnFunctionBucketSAMPTPropertyToCloudFormation(properties.s3WritePolicy),SESBulkTemplatedCrudPolicy:convertCfnFunctionIdentitySAMPTPropertyToCloudFormation(properties.sesBulkTemplatedCrudPolicy),SESCrudPolicy:convertCfnFunctionIdentitySAMPTPropertyToCloudFormation(properties.sesCrudPolicy),SESEmailTemplateCrudPolicy:convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties.sesEmailTemplateCrudPolicy),SESSendBouncePolicy:convertCfnFunctionIdentitySAMPTPropertyToCloudFormation(properties.sesSendBouncePolicy),SNSCrudPolicy:convertCfnFunctionTopicSAMPTPropertyToCloudFormation(properties.snsCrudPolicy),SNSPublishMessagePolicy:convertCfnFunctionTopicSAMPTPropertyToCloudFormation(properties.snsPublishMessagePolicy),SQSPollerPolicy:convertCfnFunctionQueueSAMPTPropertyToCloudFormation(properties.sqsPollerPolicy),SQSSendMessagePolicy:convertCfnFunctionQueueSAMPTPropertyToCloudFormation(properties.sqsSendMessagePolicy),SSMParameterReadPolicy:convertCfnFunctionParameterNameSAMPTPropertyToCloudFormation(properties.ssmParameterReadPolicy),StepFunctionsExecutionPolicy:convertCfnFunctionStateMachineSAMPTPropertyToCloudFormation(properties.stepFunctionsExecutionPolicy),VPCAccessPolicy:convertCfnFunctionEmptySAMPTPropertyToCloudFormation(properties.vpcAccessPolicy)}):properties}function CfnFunctionSAMPolicyTemplatePropertyFromCloudFormation(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()).FromCloudFormation