Class CfnRouteCalculator

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:04.818Z") @Stability(Stable) public class CfnRouteCalculator extends CfnResource implements IInspectable, ITaggableV2
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")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String 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
    • getAttrCalculatorArn

      @Stability(Stable) @NotNull public String getAttrCalculatorArn()
      Synonym for Arn .

      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
    • getAttrCreateTime

      @Stability(Stable) @NotNull public String getAttrCreateTime()
      The timestamp for when the route calculator resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ .
    • getAttrUpdateTime

      @Stability(Stable) @NotNull public String getAttrUpdateTime()
      The timestamp for when the route calculator resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ .
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCalculatorName

      @Stability(Stable) @NotNull public String getCalculatorName()
      The name of the route calculator resource.
    • setCalculatorName

      @Stability(Stable) public void setCalculatorName(@NotNull String value)
      The name of the route calculator resource.
    • getDataSource

      @Stability(Stable) @NotNull public String getDataSource()
      Specifies the data provider of traffic and road network data.
    • setDataSource

      @Stability(Stable) public void setDataSource(@NotNull String value)
      Specifies the data provider of traffic and road network data.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The optional description for the route calculator resource.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The optional description for the route calculator resource.
    • getPricingPlan

      @Stability(Stable) @Nullable public String getPricingPlan()
      No longer used.

      If included, the only allowed value is RequestBasedUsage .

    • setPricingPlan

      @Stability(Stable) public void setPricingPlan(@Nullable String value)
      No longer used.

      If included, the only allowed value is RequestBasedUsage .

    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource.