Skip to content
v2.278.0

CfnRouteCalculatorProps Struct ​

Properties for defining a CfnRouteCalculator.

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 .
dataSourcestringdata_sourcestrdataSourceStringDataSourcestringDataSource*string required #
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 HERE returns an error.

Valid values include:

Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.

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

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.