aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 61.5 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnAPIKey=exports.CfnTrackerConsumer=exports.CfnTracker=exports.CfnRouteCalculator=exports.CfnPlaceIndex=exports.CfnMap=exports.CfnGeofenceCollection=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 CfnGeofenceCollection extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_location.CfnGeofenceCollection",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Location::GeofenceCollection";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGeofenceCollectionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnGeofenceCollection(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 isCfnGeofenceCollection(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnGeofenceCollection.CFN_RESOURCE_TYPE_NAME}static fromGeofenceCollectionArn(scope,id,arn){class Import extends cdk().Resource{geofenceCollectionRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:geofence-collection/${CollectionName}").parse(arn2);this.geofenceCollectionRef={collectionName:variables.CollectionName,geofenceCollectionArn:arn2}}}return new Import(scope,id,arn)}static fromCollectionName(scope,id,collectionName){class Import extends cdk().Resource{geofenceCollectionRef;constructor(scope2,id2,collectionName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:geofence-collection/${CollectionName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,CollectionName:collectionName2});super(scope2,id2,{environmentFromArn:arn}),this.geofenceCollectionRef={collectionName:collectionName2,geofenceCollectionArn:arn}}}return new Import(scope,id,collectionName)}static arnForGeofenceCollection(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_location_IGeofenceCollectionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForGeofenceCollection),error}return resource.geofenceCollectionRef.geofenceCollectionArn}attrArn;attrCollectionArn;attrCreateTime;attrUpdateTime;cdkTagManager;collectionName;description;kmsKeyId;pricingPlan;pricingPlanDataSource;tags;constructor(scope,id,props){super(scope,id,{type:CfnGeofenceCollection.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_location_CfnGeofenceCollectionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGeofenceCollection),error}cdk().requireProperty(props,"collectionName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCollectionArn=cdk().Token.asString(this.getAtt("CollectionArn",cdk().ResolutionTypeHint.STRING)),this.attrCreateTime=cdk().Token.asString(this.getAtt("CreateTime",cdk().ResolutionTypeHint.STRING)),this.attrUpdateTime=cdk().Token.asString(this.getAtt("UpdateTime",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Location::GeofenceCollection",void 0,{tagPropertyName:"tags"}),this.collectionName=props.collectionName,this.description=props.description,this.kmsKeyId=props.kmsKeyId,this.pricingPlan=props.pricingPlan,this.pricingPlanDataSource=props.pricingPlanDataSource,this.tags=props.tags}get geofenceCollectionRef(){return{collectionName:this.ref,geofenceCollectionArn:this.attrArn}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),collectionName:this.collectionName,description:this.description,kmsKeyId:this.kmsKeyId,pricingPlan:this.pricingPlan,pricingPlanDataSource:this.pricingPlanDataSource}}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",CfnGeofenceCollection.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnGeofenceCollectionPropsToCloudFormation(props)}}exports.CfnGeofenceCollection=CfnGeofenceCollection;function CfnGeofenceCollectionPropsValidator(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("collectionName",cdk().requiredValidator)(properties.collectionName)),errors.collect(cdk().propertyValidator("collectionName",cdk().validateString)(properties.collectionName)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("kmsKeyId",cdk().validateString)(properties.kmsKeyId)),errors.collect(cdk().propertyValidator("pricingPlan",cdk().validateString)(properties.pricingPlan)),errors.collect(cdk().propertyValidator("pricingPlanDataSource",cdk().validateString)(properties.pricingPlanDataSource)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnGeofenceCollectionProps"')}function convertCfnGeofenceCollectionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGeofenceCollectionPropsValidator(properties).assertSuccess(),{CollectionName:cdk().stringToCloudFormation(properties.collectionName),Description:cdk().stringToCloudFormation(properties.description),KmsKeyId:cdk().stringToCloudFormation(properties.kmsKeyId),PricingPlan:cdk().stringToCloudFormation(properties.pricingPlan),PricingPlanDataSource:cdk().stringToCloudFormation(properties.pricingPlanDataSource),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnGeofenceCollectionPropsFromCloudFormation(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("collectionName","CollectionName",properties.CollectionName!=null?cfn_parse().FromCloudFormation.getString(properties.CollectionName):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addPropertyResult("pricingPlan","PricingPlan",properties.PricingPlan!=null?cfn_parse().FromCloudFormation.getString(properties.PricingPlan):void 0),ret.addPropertyResult("pricingPlanDataSource","PricingPlanDataSource",properties.PricingPlanDataSource!=null?cfn_parse().FromCloudFormation.getString(properties.PricingPlanDataSource):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 CfnMap extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_location.CfnMap",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Location::Map";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnMapPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnMap(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 isCfnMap(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnMap.CFN_RESOURCE_TYPE_NAME}static fromMapArn(scope,id,arn){class Import extends cdk().Resource{mapRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:map/${MapName}").parse(arn2);this.mapRef={mapName:variables.MapName,mapArn:arn2}}}return new Import(scope,id,arn)}static fromMapName(scope,id,mapName){class Import extends cdk().Resource{mapRef;constructor(scope2,id2,mapName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:map/${MapName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,MapName:mapName2});super(scope2,id2,{environmentFromArn:arn}),this.mapRef={mapName:mapName2,mapArn:arn}}}return new Import(scope,id,mapName)}static arnForMap(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_location_IMapRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForMap),error}return resource.mapRef.mapArn}attrArn;attrCreateTime;attrDataSource;attrMapArn;attrUpdateTime;cdkTagManager;configuration;description;mapName;pricingPlan;tags;constructor(scope,id,props){super(scope,id,{type:CfnMap.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_location_CfnMapProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnMap),error}cdk().requireProperty(props,"configuration",this),cdk().requireProperty(props,"mapName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreateTime=cdk().Token.asString(this.getAtt("CreateTime",cdk().ResolutionTypeHint.STRING)),this.attrDataSource=cdk().Token.asString(this.getAtt("DataSource",cdk().ResolutionTypeHint.STRING)),this.attrMapArn=cdk().Token.asString(this.getAtt("MapArn",cdk().ResolutionTypeHint.STRING)),this.attrUpdateTime=cdk().Token.asString(this.getAtt("UpdateTime",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Location::Map",void 0,{tagPropertyName:"tags"}),this.configuration=props.configuration,this.description=props.description,this.mapName=props.mapName,this.pricingPlan=props.pricingPlan,this.tags=props.tags}get mapRef(){return{mapName:this.ref,mapArn:this.attrArn}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),configuration:this.configuration,description:this.description,mapName:this.mapName,pricingPlan:this.pricingPlan}}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",CfnMap.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnMapPropsToCloudFormation(props)}}exports.CfnMap=CfnMap;function CfnMapMapConfigurationPropertyValidator(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("customLayers",cdk().listValidator(cdk().validateString))(properties.customLayers)),errors.collect(cdk().propertyValidator("politicalView",cdk().validateString)(properties.politicalView)),errors.collect(cdk().propertyValidator("style",cdk().requiredValidator)(properties.style)),errors.collect(cdk().propertyValidator("style",cdk().validateString)(properties.style)),errors.wrap('supplied properties not correct for "MapConfigurationProperty"')}function convertCfnMapMapConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnMapMapConfigurationPropertyValidator(properties).assertSuccess(),{CustomLayers:cdk().listMapper(cdk().stringToCloudFormation)(properties.customLayers),PoliticalView:cdk().stringToCloudFormation(properties.politicalView),Style:cdk().stringToCloudFormation(properties.style)}):properties}function CfnMapMapConfigurationPropertyFromCloudFormation(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("customLayers","CustomLayers",properties.CustomLayers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CustomLayers):void 0),ret.addPropertyResult("politicalView","PoliticalView",properties.PoliticalView!=null?cfn_parse().FromCloudFormation.getString(properties.PoliticalView):void 0),ret.addPropertyResult("style","Style",properties.Style!=null?cfn_parse().FromCloudFormation.getString(properties.Style):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnMapPropsValidator(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("configuration",cdk().requiredValidator)(properties.configuration)),errors.collect(cdk().propertyValidator("configuration",CfnMapMapConfigurationPropertyValidator)(properties.configuration)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("mapName",cdk().requiredValidator)(properties.mapName)),errors.collect(cdk().propertyValidator("mapName",cdk().validateString)(properties.mapName)),errors.collect(cdk().propertyValidator("pricingPlan",cdk().validateString)(properties.pricingPlan)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnMapProps"')}function convertCfnMapPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnMapPropsValidator(properties).assertSuccess(),{Configuration:convertCfnMapMapConfigurationPropertyToCloudFormation(properties.configuration),Description:cdk().stringToCloudFormation(properties.description),MapName:cdk().stringToCloudFormation(properties.mapName),PricingPlan:cdk().stringToCloudFormation(properties.pricingPlan),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnMapPropsFromCloudFormation(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("configuration","Configuration",properties.Configuration!=null?CfnMapMapConfigurationPropertyFromCloudFormation(properties.Configuration):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("mapName","MapName",properties.MapName!=null?cfn_parse().FromCloudFormation.getString(properties.MapName):void 0),ret.addPropertyResult("pricingPlan","PricingPlan",properties.PricingPlan!=null?cfn_parse().FromCloudFormation.getString(properties.PricingPlan):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 CfnPlaceIndex extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_location.CfnPlaceIndex",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Location::PlaceIndex";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPlaceIndexPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnPlaceIndex(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 isCfnPlaceIndex(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPlaceIndex.CFN_RESOURCE_TYPE_NAME}static fromPlaceIndexArn(scope,id,arn){class Import extends cdk().Resource{placeIndexRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:place-index/${IndexName}").parse(arn2);this.placeIndexRef={indexName:variables.IndexName,placeIndexArn:arn2}}}return new Import(scope,id,arn)}static fromIndexName(scope,id,indexName){class Import extends cdk().Resource{placeIndexRef;constructor(scope2,id2,indexName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:place-index/${IndexName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,IndexName:indexName2});super(scope2,id2,{environmentFromArn:arn}),this.placeIndexRef={indexName:indexName2,placeIndexArn:arn}}}return new Import(scope,id,indexName)}static arnForPlaceIndex(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_location_IPlaceIndexRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForPlaceIndex),error}return resource.placeIndexRef.placeIndexArn}attrArn;attrCreateTime;attrIndexArn;attrUpdateTime;cdkTagManager;dataSource;dataSourceConfiguration;description;indexName;pricingPlan;tags;constructor(scope,id,props){super(scope,id,{type:CfnPlaceIndex.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_location_CfnPlaceIndexProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPlaceIndex),error}cdk().requireProperty(props,"dataSource",this),cdk().requireProperty(props,"indexName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreateTime=cdk().Token.asString(this.getAtt("CreateTime",cdk().ResolutionTypeHint.STRING)),this.attrIndexArn=cdk().Token.asString(this.getAtt("IndexArn",cdk().ResolutionTypeHint.STRING)),this.attrUpdateTime=cdk().Token.asString(this.getAtt("UpdateTime",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Location::PlaceIndex",void 0,{tagPropertyName:"tags"}),this.dataSource=props.dataSource,this.dataSourceConfiguration=props.dataSourceConfiguration,this.description=props.description,this.indexName=props.indexName,this.pricingPlan=props.pricingPlan,this.tags=props.tags}get placeIndexRef(){return{indexName:this.ref,placeIndexArn:this.attrArn}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),dataSource:this.dataSource,dataSourceConfiguration:this.dataSourceConfiguration,description:this.description,indexName:this.indexName,pricingPlan:this.pricingPlan}}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",CfnPlaceIndex.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPlaceIndexPropsToCloudFormation(props)}}exports.CfnPlaceIndex=CfnPlaceIndex;function CfnPlaceIndexDataSourceConfigurationPropertyValidator(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("intendedUse",cdk().validateString)(properties.intendedUse)),errors.wrap('supplied properties not correct for "DataSourceConfigurationProperty"')}function convertCfnPlaceIndexDataSourceConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaceIndexDataSourceConfigurationPropertyValidator(properties).assertSuccess(),{IntendedUse:cdk().stringToCloudFormation(properties.intendedUse)}):properties}function CfnPlaceIndexDataSourceConfigurationPropertyFromCloudFormation(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("intendedUse","IntendedUse",properties.IntendedUse!=null?cfn_parse().FromCloudFormation.getString(properties.IntendedUse):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPlaceIndexPropsValidator(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("dataSource",cdk().requiredValidator)(properties.dataSource)),errors.collect(cdk().propertyValidator("dataSource",cdk().validateString)(properties.dataSource)),errors.collect(cdk().propertyValidator("dataSourceConfiguration",CfnPlaceIndexDataSourceConfigurationPropertyValidator)(properties.dataSourceConfiguration)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("indexName",cdk().requiredValidator)(properties.indexName)),errors.collect(cdk().propertyValidator("indexName",cdk().validateString)(properties.indexName)),errors.collect(cdk().propertyValidator("pricingPlan",cdk().validateString)(properties.pricingPlan)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnPlaceIndexProps"')}function convertCfnPlaceIndexPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPlaceIndexPropsValidator(properties).assertSuccess(),{DataSource:cdk().stringToCloudFormation(properties.dataSource),DataSourceConfiguration:convertCfnPlaceIndexDataSourceConfigurationPropertyToCloudFormation(properties.dataSourceConfiguration),Description:cdk().stringToCloudFormation(properties.description),IndexName:cdk().stringToCloudFormation(properties.indexName),PricingPlan:cdk().stringToCloudFormation(properties.pricingPlan),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnPlaceIndexPropsFromCloudFormation(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("dataSource","DataSource",properties.DataSource!=null?cfn_parse().FromCloudFormation.getString(properties.DataSource):void 0),ret.addPropertyResult("dataSourceConfiguration","DataSourceConfiguration",properties.DataSourceConfiguration!=null?CfnPlaceIndexDataSourceConfigurationPropertyFromCloudFormation(properties.DataSourceConfiguration):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("indexName","IndexName",properties.IndexName!=null?cfn_parse().FromCloudFormation.getString(properties.IndexName):void 0),ret.addPropertyResult("pricingPlan","PricingPlan",properties.PricingPlan!=null?cfn_parse().FromCloudFormation.getString(properties.PricingPlan):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 CfnRouteCalculator extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_location.CfnRouteCalculator",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Location::RouteCalculator";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRouteCalculatorPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnRouteCalculator(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 isCfnRouteCalculator(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnRouteCalculator.CFN_RESOURCE_TYPE_NAME}static fromRouteCalculatorArn(scope,id,arn){class Import extends cdk().Resource{routeCalculatorRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:route-calculator/${CalculatorName}").parse(arn2);this.routeCalculatorRef={calculatorName:variables.CalculatorName,routeCalculatorArn:arn2}}}return new Import(scope,id,arn)}static fromCalculatorName(scope,id,calculatorName){class Import extends cdk().Resource{routeCalculatorRef;constructor(scope2,id2,calculatorName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:route-calculator/${CalculatorName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,CalculatorName:calculatorName2});super(scope2,id2,{environmentFromArn:arn}),this.routeCalculatorRef={calculatorName:calculatorName2,routeCalculatorArn:arn}}}return new Import(scope,id,calculatorName)}static arnForRouteCalculator(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_location_IRouteCalculatorRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForRouteCalculator),error}return resource.routeCalculatorRef.routeCalculatorArn}attrArn;attrCalculatorArn;attrCreateTime;attrUpdateTime;calculatorName;cdkTagManager;dataSource;description;pricingPlan;tags;constructor(scope,id,props){super(scope,id,{type:CfnRouteCalculator.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_location_CfnRouteCalculatorProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRouteCalculator),error}cdk().requireProperty(props,"calculatorName",this),cdk().requireProperty(props,"dataSource",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCalculatorArn=cdk().Token.asString(this.getAtt("CalculatorArn",cdk().ResolutionTypeHint.STRING)),this.attrCreateTime=cdk().Token.asString(this.getAtt("CreateTime",cdk().ResolutionTypeHint.STRING)),this.attrUpdateTime=cdk().Token.asString(this.getAtt("UpdateTime",cdk().ResolutionTypeHint.STRING)),this.calculatorName=props.calculatorName,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Location::RouteCalculator",void 0,{tagPropertyName:"tags"}),this.dataSource=props.dataSource,this.description=props.description,this.pricingPlan=props.pricingPlan,this.tags=props.tags}get routeCalculatorRef(){return{calculatorName:this.ref,routeCalculatorArn:this.attrArn}}get cfnProperties(){return{calculatorName:this.calculatorName,tags:this.cdkTagManager.renderTags(this.tags),dataSource:this.dataSource,description:this.description,pricingPlan:this.pricingPlan}}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",CfnRouteCalculator.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnRouteCalculatorPropsToCloudFormation(props)}}exports.CfnRouteCalculator=CfnRouteCalculator;function CfnRouteCalculatorPropsValidator(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("calculatorName",cdk().requiredValidator)(properties.calculatorName)),errors.collect(cdk().propertyValidator("calculatorName",cdk().validateString)(properties.calculatorName)),errors.collect(cdk().propertyValidator("dataSource",cdk().requiredValidator)(properties.dataSource)),errors.collect(cdk().propertyValidator("dataSource",cdk().validateString)(properties.dataSource)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("pricingPlan",cdk().validateString)(properties.pricingPlan)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnRouteCalculatorProps"')}function convertCfnRouteCalculatorPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRouteCalculatorPropsValidator(properties).assertSuccess(),{CalculatorName:cdk().stringToCloudFormation(properties.calculatorName),DataSource:cdk().stringToCloudFormation(properties.dataSource),Description:cdk().stringToCloudFormation(properties.description),PricingPlan:cdk().stringToCloudFormation(properties.pricingPlan),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnRouteCalculatorPropsFromCloudFormation(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("calculatorName","CalculatorName",properties.CalculatorName!=null?cfn_parse().FromCloudFormation.getString(properties.CalculatorName):void 0),ret.addPropertyResult("dataSource","DataSource",properties.DataSource!=null?cfn_parse().FromCloudFormation.getString(properties.DataSource):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("pricingPlan","PricingPlan",properties.PricingPlan!=null?cfn_parse().FromCloudFormation.getString(properties.PricingPlan):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 CfnTracker extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_location.CfnTracker",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Location::Tracker";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnTrackerPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnTracker(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 isCfnTracker(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnTracker.CFN_RESOURCE_TYPE_NAME}static fromTrackerArn(scope,id,arn){class Import extends cdk().Resource{trackerRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:tracker/${TrackerName}").parse(arn2);this.trackerRef={trackerName:variables.TrackerName,trackerArn:arn2}}}return new Import(scope,id,arn)}static fromTrackerName(scope,id,trackerName){class Import extends cdk().Resource{trackerRef;constructor(scope2,id2,trackerName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:tracker/${TrackerName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,TrackerName:trackerName2});super(scope2,id2,{environmentFromArn:arn}),this.trackerRef={trackerName:trackerName2,trackerArn:arn}}}return new Import(scope,id,trackerName)}static arnForTracker(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_location_ITrackerRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForTracker),error}return resource.trackerRef.trackerArn}attrArn;attrCreateTime;attrTrackerArn;attrUpdateTime;cdkTagManager;description;eventBridgeEnabled;kmsKeyEnableGeospatialQueries;kmsKeyId;positionFiltering;pricingPlan;pricingPlanDataSource;tags;trackerName;constructor(scope,id,props){super(scope,id,{type:CfnTracker.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_location_CfnTrackerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnTracker),error}cdk().requireProperty(props,"trackerName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreateTime=cdk().Token.asString(this.getAtt("CreateTime",cdk().ResolutionTypeHint.STRING)),this.attrTrackerArn=cdk().Token.asString(this.getAtt("TrackerArn",cdk().ResolutionTypeHint.STRING)),this.attrUpdateTime=cdk().Token.asString(this.getAtt("UpdateTime",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Location::Tracker",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.eventBridgeEnabled=props.eventBridgeEnabled,this.kmsKeyEnableGeospatialQueries=props.kmsKeyEnableGeospatialQueries,this.kmsKeyId=props.kmsKeyId,this.positionFiltering=props.positionFiltering,this.pricingPlan=props.pricingPlan,this.pricingPlanDataSource=props.pricingPlanDataSource,this.tags=props.tags,this.trackerName=props.trackerName}get trackerRef(){return{trackerName:this.ref,trackerArn:this.attrArn}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),description:this.description,eventBridgeEnabled:this.eventBridgeEnabled,kmsKeyEnableGeospatialQueries:this.kmsKeyEnableGeospatialQueries,kmsKeyId:this.kmsKeyId,positionFiltering:this.positionFiltering,pricingPlan:this.pricingPlan,pricingPlanDataSource:this.pricingPlanDataSource,trackerName:this.trackerName}}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",CfnTracker.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnTrackerPropsToCloudFormation(props)}}exports.CfnTracker=CfnTracker;function CfnTrackerPropsValidator(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("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("eventBridgeEnabled",cdk().validateBoolean)(properties.eventBridgeEnabled)),errors.collect(cdk().propertyValidator("kmsKeyEnableGeospatialQueries",cdk().validateBoolean)(properties.kmsKeyEnableGeospatialQueries)),errors.collect(cdk().propertyValidator("kmsKeyId",cdk().validateString)(properties.kmsKeyId)),errors.collect(cdk().propertyValidator("positionFiltering",cdk().validateString)(properties.positionFiltering)),errors.collect(cdk().propertyValidator("pricingPlan",cdk().validateString)(properties.pricingPlan)),errors.collect(cdk().propertyValidator("pricingPlanDataSource",cdk().validateString)(properties.pricingPlanDataSource)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("trackerName",cdk().requiredValidator)(properties.trackerName)),errors.collect(cdk().propertyValidator("trackerName",cdk().validateString)(properties.trackerName)),errors.wrap('supplied properties not correct for "CfnTrackerProps"')}function convertCfnTrackerPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTrackerPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),EventBridgeEnabled:cdk().booleanToCloudFormation(properties.eventBridgeEnabled),KmsKeyEnableGeospatialQueries:cdk().booleanToCloudFormation(properties.kmsKeyEnableGeospatialQueries),KmsKeyId:cdk().stringToCloudFormation(properties.kmsKeyId),PositionFiltering:cdk().stringToCloudFormation(properties.positionFiltering),PricingPlan:cdk().stringToCloudFormation(properties.pricingPlan),PricingPlanDataSource:cdk().stringToCloudFormation(properties.pricingPlanDataSource),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),TrackerName:cdk().stringToCloudFormation(properties.trackerName)}):properties}function CfnTrackerPropsFromCloudFormation(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("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("eventBridgeEnabled","EventBridgeEnabled",properties.EventBridgeEnabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.EventBridgeEnabled):void 0),ret.addPropertyResult("kmsKeyEnableGeospatialQueries","KmsKeyEnableGeospatialQueries",properties.KmsKeyEnableGeospatialQueries!=null?cfn_parse().FromCloudFormation.getBoolean(properties.KmsKeyEnableGeospatialQueries):void 0),ret.addPropertyResult("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addPropertyResult("positionFiltering","PositionFiltering",properties.PositionFiltering!=null?cfn_parse().FromCloudFormation.getString(properties.PositionFiltering):void 0),ret.addPropertyResult("pricingPlan","PricingPlan",properties.PricingPlan!=null?cfn_parse().FromCloudFormation.getString(properties.PricingPlan):void 0),ret.addPropertyResult("pricingPlanDataSource","PricingPlanDataSource",properties.PricingPlanDataSource!=null?cfn_parse().FromCloudFormation.getString(properties.PricingPlanDataSource):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("trackerName","TrackerName",properties.TrackerName!=null?cfn_parse().FromCloudFormation.getString(properties.TrackerName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnTrackerConsumer extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_location.CfnTrackerConsumer",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Location::TrackerConsumer";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnTrackerConsumerPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnTrackerConsumer(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 isCfnTrackerConsumer(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnTrackerConsumer.CFN_RESOURCE_TYPE_NAME}consumerArn;trackerName;constructor(scope,id,props){super(scope,id,{type:CfnTrackerConsumer.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_location_CfnTrackerConsumerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnTrackerConsumer),error}cdk().requireProperty(props,"consumerArn",this),cdk().requireProperty(props,"trackerName",this),this.consumerArn=props.consumerArn,this.trackerName=props.trackerName}get trackerConsumerRef(){return{trackerName:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),consumerArn:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{consumerArn:this.consumerArn,trackerName:this.trackerName}}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",CfnTrackerConsumer.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnTrackerConsumerPropsToCloudFormation(props)}}exports.CfnTrackerConsumer=CfnTrackerConsumer;function CfnTrackerConsumerPropsValidator(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("consumerArn",cdk().requiredValidator)(properties.consumerArn)),errors.collect(cdk().propertyValidator("consumerArn",cdk().validateString)(properties.consumerArn)),errors.collect(cdk().propertyValidator("trackerName",cdk().requiredValidator)(properties.trackerName)),errors.collect(cdk().propertyValidator("trackerName",cdk().validateString)(properties.trackerName)),errors.wrap('supplied properties not correct for "CfnTrackerConsumerProps"')}function convertCfnTrackerConsumerPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTrackerConsumerPropsValidator(properties).assertSuccess(),{ConsumerArn:cdk().stringToCloudFormation(properties.consumerArn),TrackerName:cdk().stringToCloudFormation(properties.trackerName)}):properties}function CfnTrackerConsumerPropsFromCloudFormation(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("consumerArn","ConsumerArn",properties.ConsumerArn!=null?cfn_parse().FromCloudFormation.getString(properties.ConsumerArn):void 0),ret.addPropertyResult("trackerName","TrackerName",properties.TrackerName!=null?cfn_parse().FromCloudFormation.getString(properties.TrackerName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAPIKey extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_location.CfnAPIKey",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Location::APIKey";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAPIKeyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}static isCfnAPIKey(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAPIKey.CFN_RESOURCE_TYPE_NAME}static fromAPIKeyArn(scope,id,arn){class Import extends cdk().Resource{apiKeyRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:api-key/${KeyName}").parse(arn2);this.apiKeyRef={keyName:variables.KeyName,apiKeyArn:arn2}}}return new Import(scope,id,arn)}static fromKeyName(scope,id,keyName){class Import extends cdk().Resource{apiKeyRef;constructor(scope2,id2,keyName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:geo:${Region}:${Account}:api-key/${KeyName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,KeyName:keyName2});super(scope2,id2,{environmentFromArn:arn}),this.apiKeyRef={keyName:keyName2,apiKeyArn:arn}}}return new Import(scope,id,keyName)}static arnForAPIKey(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_location_IAPIKeyRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForAPIKey),error}return resource.apiKeyRef.apiKeyArn}attrArn;attrCreateTime;attrKeyArn;attrUpdateTime;cdkTagManager;description;expireTime;forceDelete;forceUpdate;keyName;noExpiry;restrictions;tags;constructor(scope,id,props){super(scope,id,{type:CfnAPIKey.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_location_CfnAPIKeyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAPIKey),error}cdk().requireProperty(props,"keyName",this),cdk().requireProperty(props,"restrictions",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreateTime=cdk().Token.asString(this.getAtt("CreateTime",cdk().ResolutionTypeHint.STRING)),this.attrKeyArn=cdk().Token.asString(this.getAtt("KeyArn",cdk().ResolutionTypeHint.STRING)),this.attrUpdateTime=cdk().Token.asString(this.getAtt("UpdateTime",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Location::APIKey",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.expireTime=props.expireTime,this.forceDelete=props.forceDelete,this.forceUpdate=props.forceUpdate,this.keyName=props.keyName,this.noExpiry=props.noExpiry,this.restrictions=props.re