Class CfnRouteCalculator
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Location::RouteCalculator
.
Specifies a route calculator resource in your AWS account.
You can send requests to a route calculator resource to estimate travel time, distance, and get directions. A route calculator sources traffic and road network data from your chosen data provider.
If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you must not use Esri as your geolocation provider. See section 82 of the AWS service terms for more details.
Example:
// 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.*; CfnRouteCalculator cfnRouteCalculator = CfnRouteCalculator.Builder.create(this, "MyCfnRouteCalculator") .calculatorName("calculatorName") .dataSource("dataSource") // the properties below are optional .description("description") .pricingPlan("pricingPlan") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnRouteCalculator
(Construct scope, String id, CfnRouteCalculatorProps props) Create a newAWS::Location::RouteCalculator
.protected
CfnRouteCalculator
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnRouteCalculator
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) for the route calculator resource.Synonym forArn
.The timestamp for when the route calculator resource was created in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ
.The timestamp for when the route calculator resource was last updated in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ
.The name of the route calculator resource.Specifies the data provider of traffic and road network data.The optional description for the route calculator resource.No longer used.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCalculatorName
(String value) The name of the route calculator resource.void
setDataSource
(String value) Specifies the data provider of traffic and road network data.void
setDescription
(String value) The optional description for the route calculator resource.void
setPricingPlan
(String value) No longer used.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnRouteCalculator
protected CfnRouteCalculator(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRouteCalculator
protected CfnRouteCalculator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRouteCalculator
@Stability(Stable) public CfnRouteCalculator(@NotNull Construct scope, @NotNull String id, @NotNull CfnRouteCalculatorProps props) Create a newAWS::Location::RouteCalculator
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) for the route calculator resource.Use the ARN when you specify a resource across all AWS .
- Format example:
arn:aws:geo:region:account-id:route-calculator/ExampleCalculator
- Format example:
-
getAttrCalculatorArn
Synonym forArn
.The Amazon Resource Name (ARN) for the route calculator resource. Use the ARN when you specify a resource across all AWS .
- Format example:
arn:aws:geo:region:account-id:route-calculator/ExampleCalculator
- Format example:
-
getAttrCreateTime
The timestamp for when the route calculator resource was created in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ
. -
getAttrUpdateTime
The timestamp for when the route calculator resource was last updated in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ
. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getCalculatorName
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
.
-
setCalculatorName
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
.
-
getDataSource
Specifies the data provider of traffic and road network data.This field is case-sensitive. Enter the valid values as shown. For example, entering
HERE
returns 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 .
-
setDataSource
Specifies the data provider of traffic and road network data.This field is case-sensitive. Enter the valid values as shown. For example, entering
HERE
returns 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 .
-
getDescription
The optional description for the route calculator resource. -
setDescription
The optional description for the route calculator resource. -
getPricingPlan
No longer used. If included, the only allowed value isRequestBasedUsage
.Allowed Values :
RequestBasedUsage
-
setPricingPlan
No longer used. If included, the only allowed value isRequestBasedUsage
.Allowed Values :
RequestBasedUsage
-