UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 152 kB
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnVpcLink=exports.CfnUsagePlanKey=exports.CfnUsagePlan=exports.CfnStage=exports.CfnRestApi=exports.CfnResource=exports.CfnRequestValidator=exports.CfnModel=exports.CfnMethod=exports.CfnGatewayResponse=exports.CfnDomainName=exports.CfnDocumentationVersion=exports.CfnDocumentationPart=exports.CfnDeployment=exports.CfnClientCertificate=exports.CfnBasePathMapping=exports.CfnAuthorizer=exports.CfnApiKey=exports.CfnAccount=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnAccountPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("cloudWatchRoleArn",cdk.validateString)(properties.cloudWatchRoleArn)),errors.wrap('supplied properties not correct for "CfnAccountProps"')}function cfnAccountPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAccountPropsValidator(properties).assertSuccess(),{CloudWatchRoleArn:cdk.stringToCloudFormation(properties.cloudWatchRoleArn)}):properties}function CfnAccountPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("cloudWatchRoleArn","CloudWatchRoleArn",properties.CloudWatchRoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.CloudWatchRoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAccount extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnAccount.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_apigateway_CfnAccountProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAccount),error}this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.cloudWatchRoleArn=props.cloudWatchRoleArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAccountPropsFromCloudFormation(resourceProperties),ret=new CfnAccount(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnAccount.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{cloudWatchRoleArn:this.cloudWatchRoleArn}}renderProperties(props){return cfnAccountPropsToCloudFormation(props)}}exports.CfnAccount=CfnAccount,_a=JSII_RTTI_SYMBOL_1,CfnAccount[_a]={fqn:"aws-cdk-lib.aws_apigateway.CfnAccount",version:"2.70.0"},CfnAccount.CFN_RESOURCE_TYPE_NAME="AWS::ApiGateway::Account";function CfnApiKeyPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("customerId",cdk.validateString)(properties.customerId)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("enabled",cdk.validateBoolean)(properties.enabled)),errors.collect(cdk.propertyValidator("generateDistinctId",cdk.validateBoolean)(properties.generateDistinctId)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("stageKeys",cdk.listValidator(CfnApiKey_StageKeyPropertyValidator))(properties.stageKeys)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "CfnApiKeyProps"')}function cfnApiKeyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnApiKeyPropsValidator(properties).assertSuccess(),{CustomerId:cdk.stringToCloudFormation(properties.customerId),Description:cdk.stringToCloudFormation(properties.description),Enabled:cdk.booleanToCloudFormation(properties.enabled),GenerateDistinctId:cdk.booleanToCloudFormation(properties.generateDistinctId),Name:cdk.stringToCloudFormation(properties.name),StageKeys:cdk.listMapper(cfnApiKeyStageKeyPropertyToCloudFormation)(properties.stageKeys),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnApiKeyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("customerId","CustomerId",properties.CustomerId!=null?cfn_parse.FromCloudFormation.getString(properties.CustomerId):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("generateDistinctId","GenerateDistinctId",properties.GenerateDistinctId!=null?cfn_parse.FromCloudFormation.getBoolean(properties.GenerateDistinctId):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("stageKeys","StageKeys",properties.StageKeys!=null?cfn_parse.FromCloudFormation.getArray(CfnApiKeyStageKeyPropertyFromCloudFormation)(properties.StageKeys):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnApiKey extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnApiKey.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_apigateway_CfnApiKeyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnApiKey),error}this.attrApiKeyId=cdk.Token.asString(this.getAtt("APIKeyId",cdk.ResolutionTypeHint.STRING)),this.customerId=props.customerId,this.description=props.description,this.enabled=props.enabled,this.generateDistinctId=props.generateDistinctId,this.name=props.name,this.stageKeys=props.stageKeys,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::ApiGateway::ApiKey",props.tags,{tagPropertyName:"tags"}),this.value=props.value}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnApiKeyPropsFromCloudFormation(resourceProperties),ret=new CfnApiKey(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnApiKey.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{customerId:this.customerId,description:this.description,enabled:this.enabled,generateDistinctId:this.generateDistinctId,name:this.name,stageKeys:this.stageKeys,tags:this.tags.renderTags(),value:this.value}}renderProperties(props){return cfnApiKeyPropsToCloudFormation(props)}}exports.CfnApiKey=CfnApiKey,_b=JSII_RTTI_SYMBOL_1,CfnApiKey[_b]={fqn:"aws-cdk-lib.aws_apigateway.CfnApiKey",version:"2.70.0"},CfnApiKey.CFN_RESOURCE_TYPE_NAME="AWS::ApiGateway::ApiKey";function CfnApiKey_StageKeyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("restApiId",cdk.validateString)(properties.restApiId)),errors.collect(cdk.propertyValidator("stageName",cdk.validateString)(properties.stageName)),errors.wrap('supplied properties not correct for "StageKeyProperty"')}function cfnApiKeyStageKeyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnApiKey_StageKeyPropertyValidator(properties).assertSuccess(),{RestApiId:cdk.stringToCloudFormation(properties.restApiId),StageName:cdk.stringToCloudFormation(properties.stageName)}):properties}function CfnApiKeyStageKeyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("restApiId","RestApiId",properties.RestApiId!=null?cfn_parse.FromCloudFormation.getString(properties.RestApiId):void 0),ret.addPropertyResult("stageName","StageName",properties.StageName!=null?cfn_parse.FromCloudFormation.getString(properties.StageName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAuthorizerPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("authType",cdk.validateString)(properties.authType)),errors.collect(cdk.propertyValidator("authorizerCredentials",cdk.validateString)(properties.authorizerCredentials)),errors.collect(cdk.propertyValidator("authorizerResultTtlInSeconds",cdk.validateNumber)(properties.authorizerResultTtlInSeconds)),errors.collect(cdk.propertyValidator("authorizerUri",cdk.validateString)(properties.authorizerUri)),errors.collect(cdk.propertyValidator("identitySource",cdk.validateString)(properties.identitySource)),errors.collect(cdk.propertyValidator("identityValidationExpression",cdk.validateString)(properties.identityValidationExpression)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("providerArns",cdk.listValidator(cdk.validateString))(properties.providerArns)),errors.collect(cdk.propertyValidator("restApiId",cdk.requiredValidator)(properties.restApiId)),errors.collect(cdk.propertyValidator("restApiId",cdk.validateString)(properties.restApiId)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnAuthorizerProps"')}function cfnAuthorizerPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAuthorizerPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),RestApiId:cdk.stringToCloudFormation(properties.restApiId),Type:cdk.stringToCloudFormation(properties.type),AuthorizerCredentials:cdk.stringToCloudFormation(properties.authorizerCredentials),AuthorizerResultTtlInSeconds:cdk.numberToCloudFormation(properties.authorizerResultTtlInSeconds),AuthorizerUri:cdk.stringToCloudFormation(properties.authorizerUri),AuthType:cdk.stringToCloudFormation(properties.authType),IdentitySource:cdk.stringToCloudFormation(properties.identitySource),IdentityValidationExpression:cdk.stringToCloudFormation(properties.identityValidationExpression),ProviderARNs:cdk.listMapper(cdk.stringToCloudFormation)(properties.providerArns)}):properties}function CfnAuthorizerPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("restApiId","RestApiId",cfn_parse.FromCloudFormation.getString(properties.RestApiId)),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("authorizerCredentials","AuthorizerCredentials",properties.AuthorizerCredentials!=null?cfn_parse.FromCloudFormation.getString(properties.AuthorizerCredentials):void 0),ret.addPropertyResult("authorizerResultTtlInSeconds","AuthorizerResultTtlInSeconds",properties.AuthorizerResultTtlInSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.AuthorizerResultTtlInSeconds):void 0),ret.addPropertyResult("authorizerUri","AuthorizerUri",properties.AuthorizerUri!=null?cfn_parse.FromCloudFormation.getString(properties.AuthorizerUri):void 0),ret.addPropertyResult("authType","AuthType",properties.AuthType!=null?cfn_parse.FromCloudFormation.getString(properties.AuthType):void 0),ret.addPropertyResult("identitySource","IdentitySource",properties.IdentitySource!=null?cfn_parse.FromCloudFormation.getString(properties.IdentitySource):void 0),ret.addPropertyResult("identityValidationExpression","IdentityValidationExpression",properties.IdentityValidationExpression!=null?cfn_parse.FromCloudFormation.getString(properties.IdentityValidationExpression):void 0),ret.addPropertyResult("providerArns","ProviderARNs",properties.ProviderARNs!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ProviderARNs):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAuthorizer extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAuthorizer.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_apigateway_CfnAuthorizerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAuthorizer),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"restApiId",this),cdk.requireProperty(props,"type",this),this.attrAuthorizerId=cdk.Token.asString(this.getAtt("AuthorizerId",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.restApiId=props.restApiId,this.type=props.type,this.authorizerCredentials=props.authorizerCredentials,this.authorizerResultTtlInSeconds=props.authorizerResultTtlInSeconds,this.authorizerUri=props.authorizerUri,this.authType=props.authType,this.identitySource=props.identitySource,this.identityValidationExpression=props.identityValidationExpression,this.providerArns=props.providerArns}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAuthorizerPropsFromCloudFormation(resourceProperties),ret=new CfnAuthorizer(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnAuthorizer.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,restApiId:this.restApiId,type:this.type,authorizerCredentials:this.authorizerCredentials,authorizerResultTtlInSeconds:this.authorizerResultTtlInSeconds,authorizerUri:this.authorizerUri,authType:this.authType,identitySource:this.identitySource,identityValidationExpression:this.identityValidationExpression,providerArns:this.providerArns}}renderProperties(props){return cfnAuthorizerPropsToCloudFormation(props)}}exports.CfnAuthorizer=CfnAuthorizer,_c=JSII_RTTI_SYMBOL_1,CfnAuthorizer[_c]={fqn:"aws-cdk-lib.aws_apigateway.CfnAuthorizer",version:"2.70.0"},CfnAuthorizer.CFN_RESOURCE_TYPE_NAME="AWS::ApiGateway::Authorizer";function CfnBasePathMappingPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("basePath",cdk.validateString)(properties.basePath)),errors.collect(cdk.propertyValidator("domainName",cdk.requiredValidator)(properties.domainName)),errors.collect(cdk.propertyValidator("domainName",cdk.validateString)(properties.domainName)),errors.collect(cdk.propertyValidator("id",cdk.validateString)(properties.id)),errors.collect(cdk.propertyValidator("restApiId",cdk.validateString)(properties.restApiId)),errors.collect(cdk.propertyValidator("stage",cdk.validateString)(properties.stage)),errors.wrap('supplied properties not correct for "CfnBasePathMappingProps"')}function cfnBasePathMappingPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnBasePathMappingPropsValidator(properties).assertSuccess(),{DomainName:cdk.stringToCloudFormation(properties.domainName),BasePath:cdk.stringToCloudFormation(properties.basePath),Id:cdk.stringToCloudFormation(properties.id),RestApiId:cdk.stringToCloudFormation(properties.restApiId),Stage:cdk.stringToCloudFormation(properties.stage)}):properties}function CfnBasePathMappingPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("domainName","DomainName",cfn_parse.FromCloudFormation.getString(properties.DomainName)),ret.addPropertyResult("basePath","BasePath",properties.BasePath!=null?cfn_parse.FromCloudFormation.getString(properties.BasePath):void 0),ret.addPropertyResult("id","Id",properties.Id!=null?cfn_parse.FromCloudFormation.getString(properties.Id):void 0),ret.addPropertyResult("restApiId","RestApiId",properties.RestApiId!=null?cfn_parse.FromCloudFormation.getString(properties.RestApiId):void 0),ret.addPropertyResult("stage","Stage",properties.Stage!=null?cfn_parse.FromCloudFormation.getString(properties.Stage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnBasePathMapping extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnBasePathMapping.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_apigateway_CfnBasePathMappingProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBasePathMapping),error}cdk.requireProperty(props,"domainName",this),this.domainName=props.domainName,this.basePath=props.basePath,this.id=props.id,this.restApiId=props.restApiId,this.stage=props.stage}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBasePathMappingPropsFromCloudFormation(resourceProperties),ret=new CfnBasePathMapping(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnBasePathMapping.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{domainName:this.domainName,basePath:this.basePath,id:this.id,restApiId:this.restApiId,stage:this.stage}}renderProperties(props){return cfnBasePathMappingPropsToCloudFormation(props)}}exports.CfnBasePathMapping=CfnBasePathMapping,_d=JSII_RTTI_SYMBOL_1,CfnBasePathMapping[_d]={fqn:"aws-cdk-lib.aws_apigateway.CfnBasePathMapping",version:"2.70.0"},CfnBasePathMapping.CFN_RESOURCE_TYPE_NAME="AWS::ApiGateway::BasePathMapping";function CfnClientCertificatePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnClientCertificateProps"')}function cfnClientCertificatePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnClientCertificatePropsValidator(properties).assertSuccess(),{Description:cdk.stringToCloudFormation(properties.description),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnClientCertificatePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnClientCertificate extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnClientCertificate.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_apigateway_CfnClientCertificateProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnClientCertificate),error}this.attrClientCertificateId=cdk.Token.asString(this.getAtt("ClientCertificateId",cdk.ResolutionTypeHint.STRING)),this.description=props.description,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::ApiGateway::ClientCertificate",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnClientCertificatePropsFromCloudFormation(resourceProperties),ret=new CfnClientCertificate(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnClientCertificate.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{description:this.description,tags:this.tags.renderTags()}}renderProperties(props){return cfnClientCertificatePropsToCloudFormation(props)}}exports.CfnClientCertificate=CfnClientCertificate,_e=JSII_RTTI_SYMBOL_1,CfnClientCertificate[_e]={fqn:"aws-cdk-lib.aws_apigateway.CfnClientCertificate",version:"2.70.0"},CfnClientCertificate.CFN_RESOURCE_TYPE_NAME="AWS::ApiGateway::ClientCertificate";function CfnDeploymentPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("deploymentCanarySettings",CfnDeployment_DeploymentCanarySettingsPropertyValidator)(properties.deploymentCanarySettings)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("restApiId",cdk.requiredValidator)(properties.restApiId)),errors.collect(cdk.propertyValidator("restApiId",cdk.validateString)(properties.restApiId)),errors.collect(cdk.propertyValidator("stageDescription",CfnDeployment_StageDescriptionPropertyValidator)(properties.stageDescription)),errors.collect(cdk.propertyValidator("stageName",cdk.validateString)(properties.stageName)),errors.wrap('supplied properties not correct for "CfnDeploymentProps"')}function cfnDeploymentPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeploymentPropsValidator(properties).assertSuccess(),{RestApiId:cdk.stringToCloudFormation(properties.restApiId),DeploymentCanarySettings:cfnDeploymentDeploymentCanarySettingsPropertyToCloudFormation(properties.deploymentCanarySettings),Description:cdk.stringToCloudFormation(properties.description),StageDescription:cfnDeploymentStageDescriptionPropertyToCloudFormation(properties.stageDescription),StageName:cdk.stringToCloudFormation(properties.stageName)}):properties}function CfnDeploymentPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("restApiId","RestApiId",cfn_parse.FromCloudFormation.getString(properties.RestApiId)),ret.addPropertyResult("deploymentCanarySettings","DeploymentCanarySettings",properties.DeploymentCanarySettings!=null?CfnDeploymentDeploymentCanarySettingsPropertyFromCloudFormation(properties.DeploymentCanarySettings):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("stageDescription","StageDescription",properties.StageDescription!=null?CfnDeploymentStageDescriptionPropertyFromCloudFormation(properties.StageDescription):void 0),ret.addPropertyResult("stageName","StageName",properties.StageName!=null?cfn_parse.FromCloudFormation.getString(properties.StageName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDeployment extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDeployment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_apigateway_CfnDeploymentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDeployment),error}cdk.requireProperty(props,"restApiId",this),this.attrDeploymentId=cdk.Token.asString(this.getAtt("DeploymentId",cdk.ResolutionTypeHint.STRING)),this.restApiId=props.restApiId,this.deploymentCanarySettings=props.deploymentCanarySettings,this.description=props.description,this.stageDescription=props.stageDescription,this.stageName=props.stageName}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeploymentPropsFromCloudFormation(resourceProperties),ret=new CfnDeployment(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnDeployment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{restApiId:this.restApiId,deploymentCanarySettings:this.deploymentCanarySettings,description:this.description,stageDescription:this.stageDescription,stageName:this.stageName}}renderProperties(props){return cfnDeploymentPropsToCloudFormation(props)}}exports.CfnDeployment=CfnDeployment,_f=JSII_RTTI_SYMBOL_1,CfnDeployment[_f]={fqn:"aws-cdk-lib.aws_apigateway.CfnDeployment",version:"2.70.0"},CfnDeployment.CFN_RESOURCE_TYPE_NAME="AWS::ApiGateway::Deployment";function CfnDeployment_AccessLogSettingPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("destinationArn",cdk.validateString)(properties.destinationArn)),errors.collect(cdk.propertyValidator("format",cdk.validateString)(properties.format)),errors.wrap('supplied properties not correct for "AccessLogSettingProperty"')}function cfnDeploymentAccessLogSettingPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeployment_AccessLogSettingPropertyValidator(properties).assertSuccess(),{DestinationArn:cdk.stringToCloudFormation(properties.destinationArn),Format:cdk.stringToCloudFormation(properties.format)}):properties}function CfnDeploymentAccessLogSettingPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("destinationArn","DestinationArn",properties.DestinationArn!=null?cfn_parse.FromCloudFormation.getString(properties.DestinationArn):void 0),ret.addPropertyResult("format","Format",properties.Format!=null?cfn_parse.FromCloudFormation.getString(properties.Format):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeployment_CanarySettingPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("percentTraffic",cdk.validateNumber)(properties.percentTraffic)),errors.collect(cdk.propertyValidator("stageVariableOverrides",cdk.hashValidator(cdk.validateString))(properties.stageVariableOverrides)),errors.collect(cdk.propertyValidator("useStageCache",cdk.validateBoolean)(properties.useStageCache)),errors.wrap('supplied properties not correct for "CanarySettingProperty"')}function cfnDeploymentCanarySettingPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeployment_CanarySettingPropertyValidator(properties).assertSuccess(),{PercentTraffic:cdk.numberToCloudFormation(properties.percentTraffic),StageVariableOverrides:cdk.hashMapper(cdk.stringToCloudFormation)(properties.stageVariableOverrides),UseStageCache:cdk.booleanToCloudFormation(properties.useStageCache)}):properties}function CfnDeploymentCanarySettingPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("percentTraffic","PercentTraffic",properties.PercentTraffic!=null?cfn_parse.FromCloudFormation.getNumber(properties.PercentTraffic):void 0),ret.addPropertyResult("stageVariableOverrides","StageVariableOverrides",properties.StageVariableOverrides!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.StageVariableOverrides):void 0),ret.addPropertyResult("useStageCache","UseStageCache",properties.UseStageCache!=null?cfn_parse.FromCloudFormation.getBoolean(properties.UseStageCache):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeployment_DeploymentCanarySettingsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("percentTraffic",cdk.validateNumber)(properties.percentTraffic)),errors.collect(cdk.propertyValidator("stageVariableOverrides",cdk.hashValidator(cdk.validateString))(properties.stageVariableOverrides)),errors.collect(cdk.propertyValidator("useStageCache",cdk.validateBoolean)(properties.useStageCache)),errors.wrap('supplied properties not correct for "DeploymentCanarySettingsProperty"')}function cfnDeploymentDeploymentCanarySettingsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeployment_DeploymentCanarySettingsPropertyValidator(properties).assertSuccess(),{PercentTraffic:cdk.numberToCloudFormation(properties.percentTraffic),StageVariableOverrides:cdk.hashMapper(cdk.stringToCloudFormation)(properties.stageVariableOverrides),UseStageCache:cdk.booleanToCloudFormation(properties.useStageCache)}):properties}function CfnDeploymentDeploymentCanarySettingsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("percentTraffic","PercentTraffic",properties.PercentTraffic!=null?cfn_parse.FromCloudFormation.getNumber(properties.PercentTraffic):void 0),ret.addPropertyResult("stageVariableOverrides","StageVariableOverrides",properties.StageVariableOverrides!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.StageVariableOverrides):void 0),ret.addPropertyResult("useStageCache","UseStageCache",properties.UseStageCache!=null?cfn_parse.FromCloudFormation.getBoolean(properties.UseStageCache):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeployment_MethodSettingPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("cacheDataEncrypted",cdk.validateBoolean)(properties.cacheDataEncrypted)),errors.collect(cdk.propertyValidator("cacheTtlInSeconds",cdk.validateNumber)(properties.cacheTtlInSeconds)),errors.collect(cdk.propertyValidator("cachingEnabled",cdk.validateBoolean)(properties.cachingEnabled)),errors.collect(cdk.propertyValidator("dataTraceEnabled",cdk.validateBoolean)(properties.dataTraceEnabled)),errors.collect(cdk.propertyValidator("httpMethod",cdk.validateString)(properties.httpMethod)),errors.collect(cdk.propertyValidator("loggingLevel",cdk.validateString)(properties.loggingLevel)),errors.collect(cdk.propertyValidator("metricsEnabled",cdk.validateBoolean)(properties.metricsEnabled)),errors.collect(cdk.propertyValidator("resourcePath",cdk.validateString)(properties.resourcePath)),errors.collect(cdk.propertyValidator("throttlingBurstLimit",cdk.validateNumber)(properties.throttlingBurstLimit)),errors.collect(cdk.propertyValidator("throttlingRateLimit",cdk.validateNumber)(properties.throttlingRateLimit)),errors.wrap('supplied properties not correct for "MethodSettingProperty"')}function cfnDeploymentMethodSettingPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeployment_MethodSettingPropertyValidator(properties).assertSuccess(),{CacheDataEncrypted:cdk.booleanToCloudFormation(properties.cacheDataEncrypted),CacheTtlInSeconds:cdk.numberToCloudFormation(properties.cacheTtlInSeconds),CachingEnabled:cdk.booleanToCloudFormation(properties.cachingEnabled),DataTraceEnabled:cdk.booleanToCloudFormation(properties.dataTraceEnabled),HttpMethod:cdk.stringToCloudFormation(properties.httpMethod),LoggingLevel:cdk.stringToCloudFormation(properties.loggingLevel),MetricsEnabled:cdk.booleanToCloudFormation(properties.metricsEnabled),ResourcePath:cdk.stringToCloudFormation(properties.resourcePath),ThrottlingBurstLimit:cdk.numberToCloudFormation(properties.throttlingBurstLimit),ThrottlingRateLimit:cdk.numberToCloudFormation(properties.throttlingRateLimit)}):properties}function CfnDeploymentMethodSettingPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("cacheDataEncrypted","CacheDataEncrypted",properties.CacheDataEncrypted!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CacheDataEncrypted):void 0),ret.addPropertyResult("cacheTtlInSeconds","CacheTtlInSeconds",properties.CacheTtlInSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.CacheTtlInSeconds):void 0),ret.addPropertyResult("cachingEnabled","CachingEnabled",properties.CachingEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CachingEnabled):void 0),ret.addPropertyResult("dataTraceEnabled","DataTraceEnabled",properties.DataTraceEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.DataTraceEnabled):void 0),ret.addPropertyResult("httpMethod","HttpMethod",properties.HttpMethod!=null?cfn_parse.FromCloudFormation.getString(properties.HttpMethod):void 0),ret.addPropertyResult("loggingLevel","LoggingLevel",properties.LoggingLevel!=null?cfn_parse.FromCloudFormation.getString(properties.LoggingLevel):void 0),ret.addPropertyResult("metricsEnabled","MetricsEnabled",properties.MetricsEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.MetricsEnabled):void 0),ret.addPropertyResult("resourcePath","ResourcePath",properties.ResourcePath!=null?cfn_parse.FromCloudFormation.getString(properties.ResourcePath):void 0),ret.addPropertyResult("throttlingBurstLimit","ThrottlingBurstLimit",properties.ThrottlingBurstLimit!=null?cfn_parse.FromCloudFormation.getNumber(properties.ThrottlingBurstLimit):void 0),ret.addPropertyResult("throttlingRateLimit","ThrottlingRateLimit",properties.ThrottlingRateLimit!=null?cfn_parse.FromCloudFormation.getNumber(properties.ThrottlingRateLimit):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeployment_StageDescriptionPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("accessLogSetting",CfnDeployment_AccessLogSettingPropertyValidator)(properties.accessLogSetting)),errors.collect(cdk.propertyValidator("cacheClusterEnabled",cdk.validateBoolean)(properties.cacheClusterEnabled)),errors.collect(cdk.propertyValidator("cacheClusterSize",cdk.validateString)(properties.cacheClusterSize)),errors.collect(cdk.propertyValidator("cacheDataEncrypted",cdk.validateBoolean)(properties.cacheDataEncrypted)),errors.collect(cdk.propertyValidator("cacheTtlInSeconds",cdk.validateNumber)(properties.cacheTtlInSeconds)),errors.collect(cdk.propertyValidator("cachingEnabled",cdk.validateBoolean)(properties.cachingEnabled)),errors.collect(cdk.propertyValidator("canarySetting",CfnDeployment_CanarySettingPropertyValidator)(properties.canarySetting)),errors.collect(cdk.propertyValidator("clientCertificateId",cdk.validateString)(properties.clientCertificateId)),errors.collect(cdk.propertyValidator("dataTraceEnabled",cdk.validateBoolean)(properties.dataTraceEnabled)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("documentationVersion",cdk.validateString)(properties.documentationVersion)),errors.collect(cdk.propertyValidator("loggingLevel",cdk.validateString)(properties.loggingLevel)),errors.collect(cdk.propertyValidator("methodSettings",cdk.listValidator(CfnDeployment_MethodSettingPropertyValidator))(properties.methodSettings)),errors.collect(cdk.propertyValidator("metricsEnabled",cdk.validateBoolean)(properties.metricsEnabled)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("throttlingBurstLimit",cdk.validateNumber)(properties.throttlingBurstLimit)),errors.collect(cdk.propertyValidator("throttlingRateLimit",cdk.validateNumber)(properties.throttlingRateLimit)),errors.collect(cdk.propertyValidator("tracingEnabled",cdk.validateBoolean)(properties.tracingEnabled)),errors.collect(cdk.propertyValidator("variables",cdk.hashValidator(cdk.validateString))(properties.variables)),errors.wrap('supplied properties not correct for "StageDescriptionProperty"')}function cfnDeploymentStageDescriptionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeployment_StageDescriptionPropertyValidator(properties).assertSuccess(),{AccessLogSetting:cfnDeploymentAccessLogSettingPropertyToCloudFormation(properties.accessLogSetting),CacheClusterEnabled:cdk.booleanToCloudFormation(properties.cacheClusterEnabled),CacheClusterSize:cdk.stringToCloudFormation(properties.cacheClusterSize),CacheDataEncrypted:cdk.booleanToCloudFormation(properties.cacheDataEncrypted),CacheTtlInSeconds:cdk.numberToCloudFormation(properties.cacheTtlInSeconds),CachingEnabled:cdk.booleanToCloudFormation(properties.cachingEnabled),CanarySetting:cfnDeploymentCanarySettingPropertyToCloudFormation(properties.canarySetting),ClientCertificateId:cdk.stringToCloudFormation(properties.clientCertificateId),DataTraceEnabled:cdk.booleanToCloudFormation(properties.dataTraceEnabled),Description:cdk.stringToCloudFormation(properties.description),DocumentationVersion:cdk.stringToCloudFormation(properties.documentationVersion),LoggingLevel:cdk.stringToCloudFormation(properties.loggingLevel),MethodSettings:cdk.listMapper(cfnDeploymentMethodSettingPropertyToCloudFormation)(properties.methodSettings),MetricsEnabled:cdk.booleanToCloudFormation(properties.metricsEnabled),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),ThrottlingBurstLimit:cdk.numberToCloudFormation(properties.throttlingBurstLimit),ThrottlingRateLimit:cdk.numberToCloudFormation(properties.throttlingRateLimit),TracingEnabled:cdk.booleanToCloudFormation(properties.tracingEnabled),Variables:cdk.hashMapper(cdk.stringToCloudFormation)(properties.variables)}):properties}function CfnDeploymentStageDescriptionPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("accessLogSetting","AccessLogSetting",properties.AccessLogSetting!=null?CfnDeploymentAccessLogSettingPropertyFromCloudFormation(properties.AccessLogSetting):void 0),ret.addPropertyResult("cacheClusterEnabled","CacheClusterEnabled",properties.CacheClusterEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CacheClusterEnabled):void 0),ret.addPropertyResult("cacheClusterSize","CacheClusterSize",properties.CacheClusterSize!=null?cfn_parse.FromCloudFormation.getString(properties.CacheClusterSize):void 0),ret.addPropertyResult("cacheDataEncrypted","CacheDataEncrypted",properties.CacheDataEncrypted!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CacheDataEncrypted):void 0),ret.addPropertyResult("cacheTtlInSeconds","CacheTtlInSeconds",properties.CacheTtlInSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.CacheTtlInSeconds):void 0),ret.addPropertyResult("cachingEnabled","CachingEnabled",properties.CachingEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CachingEnabled):void 0),ret.addPropertyResult("canarySetting","CanarySetting",properties.CanarySetting!=null?CfnDeploymentCanarySettingPropertyFromCloudFormation(properties.CanarySetting):void 0),ret.addPropertyResult("clientCertificateId","ClientCertificateId",properties.ClientCertificateId!=null?cfn_parse.FromCloudFormation.getString(properties.ClientCertificateId):void 0),ret.addPropertyResult("dataTraceEnabled","DataTraceEnabled",properties.DataTraceEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.DataTraceEnabled):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("documentationVersion","DocumentationVersion",properties.DocumentationVersion!=null?cfn_parse.FromCloudFormation.getString(properties.DocumentationVersion):void 0),ret.addPropertyResult("loggingLevel","LoggingLevel",properties.LoggingLevel!=null?cfn_parse.FromCloudFormation.getString(properties.LoggingLevel):void 0),ret.addPropertyResult("methodSettings","MethodSettings",properties.MethodSettings!=null?cfn_parse.FromCloudFormation.getArray(CfnDeploymentMethodSettingPropertyFromCloudFormation)(properties.MethodSettings):void 0),ret.addPropertyResult("metricsEnabled","MetricsEnabled",properties.MetricsEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.MetricsEnabled):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("throttlingBurstLimit","ThrottlingBurstLimit",properties.ThrottlingBurstLimit!=null?cfn_parse.FromCloudFormation.getNumber(properties.ThrottlingBurstLimit):void 0),ret.addPropertyResult("throttlingRateLimit","ThrottlingRateLimit",properties.ThrottlingRateLimit!=null?cfn_parse.FromCloudFormation.getNumber(properties.ThrottlingRateLimit):void 0),ret.addPropertyResult("tracingEnabled","TracingEnabled",properties.TracingEnabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.TracingEnabled):void 0),ret.addPropertyResult("variables","Variables",properties.Variables!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.Variables):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDocumentationPartPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("location",cdk.requiredValidator)(properties.location)),errors.collect(cdk.propertyValidator("location",CfnDocumentationPart_LocationPropertyValidator)(properties.location)),errors.collect(cdk.propertyValidator("properties",cdk.requiredValidator)(properties.properties)),errors.collect(cdk.propertyValidator("properties",cdk.validateString)(properties.properties)),errors.collect(cdk.propertyValidator("restApiId",cdk.requiredValidator)(properties.restApiId)),errors.collect(cdk.propertyValidator("restApiId",cdk.validateString)(properties.restApiId)),errors.wrap('supplied properties not correct for "CfnDocumentationPartProps"')}function cfnDocumentationPartPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDocumentationPartPropsValidator(properties).assertSuccess(),{Location:cfnDocumentationPartLocationPropertyToCloudFormation(properties.location),Properties:cdk.stringToCloudFormation(properties.properties),RestApiId:cdk.stringToCloudFormation(properties.restApiId)}):properties}function CfnDocumentationPartPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("location","Location",CfnDocumentationPartLocationPropertyFromCloudFormation(properties.Location)),ret.addPropertyResult("properties","Properties",cfn_parse.FromCloudFormation.getString(properties.Properties)),ret.addPropertyResult("restApiId","RestApiId",cfn_parse.FromCloudFormation.getString(properties.RestApiId)),ret.addUnrecognizedPropertiesAsExtra(properti