CfnRouteCalculatorProps Struct
Properties for defining a CfnRouteCalculator.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_location as location } from 'aws-cdk-lib';
const cfnRouteCalculatorProps: location.CfnRouteCalculatorProps = {
calculatorName: 'calculatorName',
dataSource: 'dataSource',
// the properties below are optional
description: 'description',
pricingPlan: 'pricingPlan',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_location as location
cfn_route_calculator_props = location.CfnRouteCalculatorProps(
calculator_name="calculatorName",
data_source="dataSource",
# the properties below are optional
description="description",
pricing_plan="pricingPlan",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.location.*;
CfnRouteCalculatorProps cfnRouteCalculatorProps = CfnRouteCalculatorProps.builder()
.calculatorName("calculatorName")
.dataSource("dataSource")
// the properties below are optional
.description("description")
.pricingPlan("pricingPlan")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Location;
var cfnRouteCalculatorProps = new CfnRouteCalculatorProps {
CalculatorName = "calculatorName",
DataSource = "dataSource",
// the properties below are optional
Description = "description",
PricingPlan = "pricingPlan",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnRouteCalculatorProps := &CfnRouteCalculatorProps{
CalculatorName: jsii.String("calculatorName"),
DataSource: jsii.String("dataSource"),
// the properties below are optional
Description: jsii.String("description"),
PricingPlan: jsii.String("pricingPlan"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
calculatorNamestringcalculator_namestrcalculatorNameStringCalculatorNamestringCalculatorName*string required #The name of the route calculator resource.
Requirements:
- Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
- Must be a unique Route calculator resource name.
- No spaces allowed. For example,
ExampleRouteCalculator.
Specifies the data provider of traffic and road network data.
notes
This field is case-sensitive. Enter the valid values as shown. For example, entering
HEREreturns an error.
Valid values include:
Esri– For additional information about Esri 's coverage in your region of interest, see Esri details on street networks and traffic coverage .
Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.
Grab– Grab provides routing functionality for Southeast Asia. For additional information about GrabMaps ' coverage, see GrabMaps countries and areas covered .Here– For additional information about HERE Technologies ' coverage in your region of interest, see HERE car routing coverage and HERE truck routing coverage .
For additional information , see Data providers on the Amazon Location Service Developer Guide .
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The optional description for the route calculator resource.
pricingPlanoptionalstringpricing_planoptionalstrpricingPlanoptionalStringPricingPlanoptionalstringPricingPlanoptional*string #No longer used. If included, the only allowed value is `RequestBasedUsage` .
Allowed Values : RequestBasedUsage