@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:11.817Z") @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")
.pricingPlan("pricingPlan")
// the properties below are optional
.description("description")
.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$ProxyIConstruct.Jsii$Default| 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(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() |
String |
getAttrCalculatorArn() |
String |
getAttrCreateTime() |
String |
getAttrUpdateTime() |
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()
Specifies the pricing plan for your route calculator resource.
|
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)
Specifies the pricing plan for your route calculator resource.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, 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
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()
@Stability(value=Stable) @NotNull public String getAttrCalculatorArn()
@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) @NotNull public String getPricingPlan()
For additional details and restrictions on each pricing plan option, see the Amazon Location Service pricing page .
@Stability(value=Stable)
public void setPricingPlan(@NotNull
String value)
For additional details and restrictions on each pricing plan option, see the Amazon Location Service pricing page .
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.