@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-02T20:25:26.750Z") 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 . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnRouteCalculator(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) for the route calculator resource.
|
java.lang.String |
getAttrCalculatorArn()
Synonym for `Arn` .
|
java.lang.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` .
|
java.lang.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` .
|
java.lang.String |
getCalculatorName()
The name of the route calculator resource.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDataSource()
Specifies the data provider of traffic and road network data.
|
java.lang.String |
getDescription()
The optional description for the route calculator resource.
|
java.lang.String |
getPricingPlan()
No longer used.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCalculatorName(java.lang.String value)
The name of the route calculator resource.
|
void |
setDataSource(java.lang.String value)
Specifies the data provider of traffic and road network data.
|
void |
setDescription(java.lang.String value)
The optional description for the route calculator resource.
|
void |
setPricingPlan(java.lang.String value)
No longer used.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnRouteCalculator(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnRouteCalculator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnRouteCalculator(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
Use the ARN when you specify a resource across all AWS .
arn:aws:geo:region:account-id:route-calculator/ExampleCalculator
public java.lang.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
public java.lang.String getAttrCreateTime()
public java.lang.String getAttrUpdateTime()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getCalculatorName()
Requirements:
ExampleRouteCalculator
.public void setCalculatorName(java.lang.String value)
Requirements:
ExampleRouteCalculator
.public java.lang.String getDataSource()
This field is case-sensitive. Enter the valid values as shown. For example, entering
HERE
returns an error.
Valid values include:
Esri
Here
For more information about data providers, see the Amazon Location Service data providers page .
public void setDataSource(java.lang.String value)
This field is case-sensitive. Enter the valid values as shown. For example, entering
HERE
returns an error.
Valid values include:
Esri
Here
For more information about data providers, see the Amazon Location Service data providers page .
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getPricingPlan()
Allowed Values : RequestBasedUsage
public void setPricingPlan(java.lang.String value)
Allowed Values : RequestBasedUsage