aws logo
AWS Classic v5.29.0, Feb 1 23

aws.location.RouteCalculation

Provides a Location Service Route Calculator.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Location.RouteCalculation("example", new()
    {
        CalculatorName = "example",
        DataSource = "Here",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/location"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := location.NewRouteCalculation(ctx, "example", &location.RouteCalculationArgs{
			CalculatorName: pulumi.String("example"),
			DataSource:     pulumi.String("Here"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.location.RouteCalculation;
import com.pulumi.aws.location.RouteCalculationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new RouteCalculation("example", RouteCalculationArgs.builder()        
            .calculatorName("example")
            .dataSource("Here")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.location.RouteCalculation("example",
    calculator_name="example",
    data_source="Here")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.location.RouteCalculation("example", {
    calculatorName: "example",
    dataSource: "Here",
});
resources:
  example:
    type: aws:location:RouteCalculation
    properties:
      calculatorName: example
      dataSource: Here

Create RouteCalculation Resource

new RouteCalculation(name: string, args: RouteCalculationArgs, opts?: CustomResourceOptions);
@overload
def RouteCalculation(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     calculator_name: Optional[str] = None,
                     data_source: Optional[str] = None,
                     description: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
@overload
def RouteCalculation(resource_name: str,
                     args: RouteCalculationArgs,
                     opts: Optional[ResourceOptions] = None)
func NewRouteCalculation(ctx *Context, name string, args RouteCalculationArgs, opts ...ResourceOption) (*RouteCalculation, error)
public RouteCalculation(string name, RouteCalculationArgs args, CustomResourceOptions? opts = null)
public RouteCalculation(String name, RouteCalculationArgs args)
public RouteCalculation(String name, RouteCalculationArgs args, CustomResourceOptions options)
type: aws:location:RouteCalculation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args RouteCalculationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args RouteCalculationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args RouteCalculationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RouteCalculationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args RouteCalculationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

RouteCalculation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The RouteCalculation resource accepts the following input properties:

CalculatorName string

The name of the route calculator resource.

DataSource string

Specifies the data provider of traffic and road network data.

Description string

The optional description for the route calculator resource.

Tags Dictionary<string, string>

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

CalculatorName string

The name of the route calculator resource.

DataSource string

Specifies the data provider of traffic and road network data.

Description string

The optional description for the route calculator resource.

Tags map[string]string

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

calculatorName String

The name of the route calculator resource.

dataSource String

Specifies the data provider of traffic and road network data.

description String

The optional description for the route calculator resource.

tags Map<String,String>

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

calculatorName string

The name of the route calculator resource.

dataSource string

Specifies the data provider of traffic and road network data.

description string

The optional description for the route calculator resource.

tags {[key: string]: string}

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

calculator_name str

The name of the route calculator resource.

data_source str

Specifies the data provider of traffic and road network data.

description str

The optional description for the route calculator resource.

tags Mapping[str, str]

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

calculatorName String

The name of the route calculator resource.

dataSource String

Specifies the data provider of traffic and road network data.

description String

The optional description for the route calculator resource.

tags Map<String>

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

All input properties are implicitly available as output properties. Additionally, the RouteCalculation resource produces the following output properties:

CalculatorArn string

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

CreateTime string

The timestamp for when the route calculator resource was created in ISO 8601 format.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdateTime string

The timestamp for when the route calculator resource was last update in ISO 8601.

CalculatorArn string

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

CreateTime string

The timestamp for when the route calculator resource was created in ISO 8601 format.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdateTime string

The timestamp for when the route calculator resource was last update in ISO 8601.

calculatorArn String

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

createTime String

The timestamp for when the route calculator resource was created in ISO 8601 format.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime String

The timestamp for when the route calculator resource was last update in ISO 8601.

calculatorArn string

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

createTime string

The timestamp for when the route calculator resource was created in ISO 8601 format.

id string

The provider-assigned unique ID for this managed resource.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime string

The timestamp for when the route calculator resource was last update in ISO 8601.

calculator_arn str

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

create_time str

The timestamp for when the route calculator resource was created in ISO 8601 format.

id str

The provider-assigned unique ID for this managed resource.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

update_time str

The timestamp for when the route calculator resource was last update in ISO 8601.

calculatorArn String

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

createTime String

The timestamp for when the route calculator resource was created in ISO 8601 format.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime String

The timestamp for when the route calculator resource was last update in ISO 8601.

Look up Existing RouteCalculation Resource

Get an existing RouteCalculation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RouteCalculationState, opts?: CustomResourceOptions): RouteCalculation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        calculator_arn: Optional[str] = None,
        calculator_name: Optional[str] = None,
        create_time: Optional[str] = None,
        data_source: Optional[str] = None,
        description: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        update_time: Optional[str] = None) -> RouteCalculation
func GetRouteCalculation(ctx *Context, name string, id IDInput, state *RouteCalculationState, opts ...ResourceOption) (*RouteCalculation, error)
public static RouteCalculation Get(string name, Input<string> id, RouteCalculationState? state, CustomResourceOptions? opts = null)
public static RouteCalculation get(String name, Output<String> id, RouteCalculationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CalculatorArn string

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

CalculatorName string

The name of the route calculator resource.

CreateTime string

The timestamp for when the route calculator resource was created in ISO 8601 format.

DataSource string

Specifies the data provider of traffic and road network data.

Description string

The optional description for the route calculator resource.

Tags Dictionary<string, string>

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdateTime string

The timestamp for when the route calculator resource was last update in ISO 8601.

CalculatorArn string

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

CalculatorName string

The name of the route calculator resource.

CreateTime string

The timestamp for when the route calculator resource was created in ISO 8601 format.

DataSource string

Specifies the data provider of traffic and road network data.

Description string

The optional description for the route calculator resource.

Tags map[string]string

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdateTime string

The timestamp for when the route calculator resource was last update in ISO 8601.

calculatorArn String

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

calculatorName String

The name of the route calculator resource.

createTime String

The timestamp for when the route calculator resource was created in ISO 8601 format.

dataSource String

Specifies the data provider of traffic and road network data.

description String

The optional description for the route calculator resource.

tags Map<String,String>

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime String

The timestamp for when the route calculator resource was last update in ISO 8601.

calculatorArn string

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

calculatorName string

The name of the route calculator resource.

createTime string

The timestamp for when the route calculator resource was created in ISO 8601 format.

dataSource string

Specifies the data provider of traffic and road network data.

description string

The optional description for the route calculator resource.

tags {[key: string]: string}

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime string

The timestamp for when the route calculator resource was last update in ISO 8601.

calculator_arn str

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

calculator_name str

The name of the route calculator resource.

create_time str

The timestamp for when the route calculator resource was created in ISO 8601 format.

data_source str

Specifies the data provider of traffic and road network data.

description str

The optional description for the route calculator resource.

tags Mapping[str, str]

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

update_time str

The timestamp for when the route calculator resource was last update in ISO 8601.

calculatorArn String

The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across AWS.

calculatorName String

The name of the route calculator resource.

createTime String

The timestamp for when the route calculator resource was created in ISO 8601 format.

dataSource String

Specifies the data provider of traffic and road network data.

description String

The optional description for the route calculator resource.

tags Map<String>

Key-value tags for the route calculator. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime String

The timestamp for when the route calculator resource was last update in ISO 8601.

Import

aws_location_route_calculator can be imported using the route calculator name, e.g.,

 $ pulumi import aws:location/routeCalculation:RouteCalculation example example

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.