@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.688Z") @Stability(value=Stable) public class CfnRouteCalculator extends CfnResource implements IInspectable
The AWS::Location::RouteCalculator resource 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.
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnRouteCalculator.Builder
A fluent builder for
CfnRouteCalculator. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnRouteCalculator(software.constructs.Construct scope,
String id,
CfnRouteCalculatorProps props)
Create a new `AWS::Location::RouteCalculator`.
|
protected |
CfnRouteCalculator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnRouteCalculator(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) for the route calculator resource.
|
String |
getAttrCalculatorArn()
Synonym for `Arn` .
|
String |
getAttrCreateTime()
The timestamp for when the route calculator resource was created in [ISO 8601](https://docs.aws.amazon.com/https://www.iso.org/iso-8601-date-and-time-format.html) format: `YYYY-MM-DDThh:mm:ss.sssZ` .
|
String |
getAttrUpdateTime()
The timestamp for when the route calculator resource was last updated in [ISO 8601](https://docs.aws.amazon.com/https://www.iso.org/iso-8601-date-and-time-format.html) format: `YYYY-MM-DDThh:mm:ss.sssZ` .
|
String |
getCalculatorName()
The name of the route calculator resource.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDataSource()
Specifies the data provider of traffic and road network data.
|
String |
getDescription()
The optional description for the route calculator resource.
|
String |
getPricingPlan()
No longer used.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnRouteCalculator(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnRouteCalculator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnRouteCalculator(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnRouteCalculatorProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
Use the ARN when you specify a resource across all AWS .
arn:aws:geo:region:account-id:route-calculator/ExampleCalculator@Stability(value=Stable) @NotNull public String getAttrCalculatorArn()
The Amazon Resource Name (ARN) for the route calculator resource. Use the ARN when you specify a resource across all AWS .
arn:aws:geo:region:account-id:route-calculator/ExampleCalculator@Stability(value=Stable) @NotNull public String getAttrCreateTime()
@Stability(value=Stable) @NotNull public String getAttrUpdateTime()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getCalculatorName()
Requirements:
ExampleRouteCalculator .@Stability(value=Stable)
public void setCalculatorName(@NotNull
String value)
Requirements:
ExampleRouteCalculator .@Stability(value=Stable) @NotNull public String getDataSource()
This field is case-sensitive. Enter the valid values as shown. For example, entering
HEREreturns an error.
Valid values include:
EsriHereFor more information about data providers, see the Amazon Location Service data providers page .
@Stability(value=Stable)
public void setDataSource(@NotNull
String value)
This field is case-sensitive. Enter the valid values as shown. For example, entering
HEREreturns an error.
Valid values include:
EsriHereFor more information about data providers, see the Amazon Location Service data providers page .
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getPricingPlan()
Allowed Values : RequestBasedUsage
@Stability(value=Stable)
public void setPricingPlan(@Nullable
String value)
Allowed Values : RequestBasedUsage
Copyright © 2022. All rights reserved.