Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.location.getRouteCalculator
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Retrieve information about a Location Service Route Calculator.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.location.getRouteCalculator({
calculatorName: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.location.get_route_calculator(calculator_name="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/location"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := location.GetRouteCalculator(ctx, &location.GetRouteCalculatorArgs{
CalculatorName: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Location.GetRouteCalculator.Invoke(new()
{
CalculatorName = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.location.LocationFunctions;
import com.pulumi.aws.location.inputs.GetRouteCalculatorArgs;
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) {
final var example = LocationFunctions.getRouteCalculator(GetRouteCalculatorArgs.builder()
.calculatorName("example")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:location:getRouteCalculator
Arguments:
calculatorName: example
Using getRouteCalculator
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRouteCalculator(args: GetRouteCalculatorArgs, opts?: InvokeOptions): Promise<GetRouteCalculatorResult>
function getRouteCalculatorOutput(args: GetRouteCalculatorOutputArgs, opts?: InvokeOptions): Output<GetRouteCalculatorResult>
def get_route_calculator(calculator_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetRouteCalculatorResult
def get_route_calculator_output(calculator_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRouteCalculatorResult]
func GetRouteCalculator(ctx *Context, args *GetRouteCalculatorArgs, opts ...InvokeOption) (*GetRouteCalculatorResult, error)
func GetRouteCalculatorOutput(ctx *Context, args *GetRouteCalculatorOutputArgs, opts ...InvokeOption) GetRouteCalculatorResultOutput
> Note: This function is named GetRouteCalculator
in the Go SDK.
public static class GetRouteCalculator
{
public static Task<GetRouteCalculatorResult> InvokeAsync(GetRouteCalculatorArgs args, InvokeOptions? opts = null)
public static Output<GetRouteCalculatorResult> Invoke(GetRouteCalculatorInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRouteCalculatorResult> getRouteCalculator(GetRouteCalculatorArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:location/getRouteCalculator:getRouteCalculator
arguments:
# arguments dictionary
The following arguments are supported:
- Calculator
Name string - Name of the route calculator resource.
- Dictionary<string, string>
- Key-value map of resource tags for the route calculator.
- Calculator
Name string - Name of the route calculator resource.
- map[string]string
- Key-value map of resource tags for the route calculator.
- calculator
Name String - Name of the route calculator resource.
- Map<String,String>
- Key-value map of resource tags for the route calculator.
- calculator
Name string - Name of the route calculator resource.
- {[key: string]: string}
- Key-value map of resource tags for the route calculator.
- calculator_
name str - Name of the route calculator resource.
- Mapping[str, str]
- Key-value map of resource tags for the route calculator.
- calculator
Name String - Name of the route calculator resource.
- Map<String>
- Key-value map of resource tags for the route calculator.
getRouteCalculator Result
The following output properties are available:
- Calculator
Arn string - ARN for the Route calculator resource. Use the ARN when you specify a resource across AWS.
- Calculator
Name string - Create
Time string - Timestamp for when the route calculator resource was created in ISO 8601 format.
- Data
Source string - Data provider of traffic and road network data.
- Description string
- Optional description of the route calculator resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- Key-value map of resource tags for the route calculator.
- Update
Time string - Timestamp for when the route calculator resource was last updated in ISO 8601 format.
- Calculator
Arn string - ARN for the Route calculator resource. Use the ARN when you specify a resource across AWS.
- Calculator
Name string - Create
Time string - Timestamp for when the route calculator resource was created in ISO 8601 format.
- Data
Source string - Data provider of traffic and road network data.
- Description string
- Optional description of the route calculator resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- Key-value map of resource tags for the route calculator.
- Update
Time string - Timestamp for when the route calculator resource was last updated in ISO 8601 format.
- calculator
Arn String - ARN for the Route calculator resource. Use the ARN when you specify a resource across AWS.
- calculator
Name String - create
Time String - Timestamp for when the route calculator resource was created in ISO 8601 format.
- data
Source String - Data provider of traffic and road network data.
- description String
- Optional description of the route calculator resource.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- Key-value map of resource tags for the route calculator.
- update
Time String - Timestamp for when the route calculator resource was last updated in ISO 8601 format.
- calculator
Arn string - ARN for the Route calculator resource. Use the ARN when you specify a resource across AWS.
- calculator
Name string - create
Time string - Timestamp for when the route calculator resource was created in ISO 8601 format.
- data
Source string - Data provider of traffic and road network data.
- description string
- Optional description of the route calculator resource.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- Key-value map of resource tags for the route calculator.
- update
Time string - Timestamp for when the route calculator resource was last updated in ISO 8601 format.
- calculator_
arn str - ARN for the Route calculator resource. Use the ARN when you specify a resource across AWS.
- calculator_
name str - create_
time str - Timestamp for when the route calculator resource was created in ISO 8601 format.
- data_
source str - Data provider of traffic and road network data.
- description str
- Optional description of the route calculator resource.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- Key-value map of resource tags for the route calculator.
- update_
time str - Timestamp for when the route calculator resource was last updated in ISO 8601 format.
- calculator
Arn String - ARN for the Route calculator resource. Use the ARN when you specify a resource across AWS.
- calculator
Name String - create
Time String - Timestamp for when the route calculator resource was created in ISO 8601 format.
- data
Source String - Data provider of traffic and road network data.
- description String
- Optional description of the route calculator resource.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- Key-value map of resource tags for the route calculator.
- update
Time String - Timestamp for when the route calculator resource was last updated in ISO 8601 format.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi