Class CfnRouteCalculator
- All Implemented Interfaces:
IInspectable,ITaggableV2,IRouteCalculatorRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.location.IRouteCalculatorRef
IRouteCalculatorRef.Jsii$Default, IRouteCalculatorRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnRouteCalculator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRouteCalculator(software.amazon.jsii.JsiiObjectRef objRef) CfnRouteCalculator(software.constructs.Construct scope, String id, CfnRouteCalculatorProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IRouteCalculatorReffromCalculatorName(software.constructs.Construct scope, String id, String calculatorName) Creates a new IRouteCalculatorRef from a calculatorName.static IRouteCalculatorReffromRouteCalculatorArn(software.constructs.Construct scope, String id, String arn) Creates a new IRouteCalculatorRef from an ARN.The 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.Tag Manager which manages the tags for this resource.Specifies the data provider of traffic and road network data.The optional description for the route calculator resource.No longer used.A reference to a RouteCalculator resource.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCalculatorName(String value) The name of the route calculator resource.voidsetDataSource(String value) Specifies the data provider of traffic and road network data.voidsetDescription(String value) The optional description for the route calculator resource.voidsetPricingPlan(String value) No longer used.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnRouteCalculatorProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromCalculatorName
@Stability(Stable) @NotNull public static IRouteCalculatorRef fromCalculatorName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String calculatorName) Creates a new IRouteCalculatorRef from a calculatorName.- Parameters:
scope- This parameter is required.id- This parameter is required.calculatorName- This parameter is required.
-
fromRouteCalculatorArn
@Stability(Stable) @NotNull public static IRouteCalculatorRef fromRouteCalculatorArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IRouteCalculatorRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin 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. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRouteCalculatorRef
A reference to a RouteCalculator resource.- Specified by:
getRouteCalculatorRefin interfaceIRouteCalculatorRef
-
getCalculatorName
The name of the route calculator resource. -
setCalculatorName
The name of the route calculator resource. -
getDataSource
Specifies the data provider of traffic and road network data. -
setDataSource
Specifies the data provider of traffic and road network data. -
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 is
RequestBasedUsage. -
setPricingPlan
No longer used.If included, the only allowed value is
RequestBasedUsage. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-