libZSservicesZSamazonka-locationZSamazonka-location
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Location.CreateRouteCalculator

Description

Creates 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.

Synopsis

Creating a Request

data CreateRouteCalculator Source #

See: newCreateRouteCalculator smart constructor.

Constructors

CreateRouteCalculator' 

Fields

  • description :: Maybe Text

    The optional description for the route calculator resource.

  • tags :: Maybe (HashMap Text Text)

    Applies one or more tags to the route calculator resource. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them.

    • For example: { "tag1" : "value1", "tag2" : "value2"}

    Format: "key" : "value"

    Restrictions:

    • Maximum 50 tags per resource
    • Each resource tag must be unique with a maximum of one value.
    • Maximum key length: 128 Unicode characters in UTF-8
    • Maximum value length: 256 Unicode characters in UTF-8
    • Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.
  • calculatorName :: Text

    The name of the route calculator resource.

    Requirements:

    • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
    • Must be a unique Route calculator resource name.
    • No spaces allowed. For example, ExampleRouteCalculator.
  • dataSource :: Text

    Specifies the data provider of traffic and road network data.

    This field is case-sensitive. Enter the valid values as shown. For example, entering HERE returns an error. Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.

    Valid values include:

    For additional information , see Data providers on the Amazon Location Service Developer Guide.

  • pricingPlan :: PricingPlan

    Specifies the pricing plan for your route calculator resource.

    For additional details and restrictions on each pricing plan option, see Amazon Location Service pricing.

Instances

Instances details
Eq CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Read CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Show CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Generic CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Associated Types

type Rep CreateRouteCalculator :: Type -> Type #

NFData CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Methods

rnf :: CreateRouteCalculator -> () #

Hashable CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

ToJSON CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

AWSRequest CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Associated Types

type AWSResponse CreateRouteCalculator #

ToHeaders CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

ToPath CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

ToQuery CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

type Rep CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

type Rep CreateRouteCalculator = D1 ('MetaData "CreateRouteCalculator" "Amazonka.Location.CreateRouteCalculator" "libZSservicesZSamazonka-locationZSamazonka-location" 'False) (C1 ('MetaCons "CreateRouteCalculator'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "calculatorName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "dataSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "pricingPlan") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PricingPlan)))))
type AWSResponse CreateRouteCalculator Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

newCreateRouteCalculator Source #

Create a value of CreateRouteCalculator with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:description:CreateRouteCalculator', createRouteCalculator_description - The optional description for the route calculator resource.

$sel:tags:CreateRouteCalculator', createRouteCalculator_tags - Applies one or more tags to the route calculator resource. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them.

  • For example: { "tag1" : "value1", "tag2" : "value2"}

Format: "key" : "value"

Restrictions:

  • Maximum 50 tags per resource
  • Each resource tag must be unique with a maximum of one value.
  • Maximum key length: 128 Unicode characters in UTF-8
  • Maximum value length: 256 Unicode characters in UTF-8
  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.

$sel:calculatorName:CreateRouteCalculator', createRouteCalculator_calculatorName - The name of the route calculator resource.

Requirements:

  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
  • Must be a unique Route calculator resource name.
  • No spaces allowed. For example, ExampleRouteCalculator.

$sel:dataSource:CreateRouteCalculator', createRouteCalculator_dataSource - Specifies the data provider of traffic and road network data.

This field is case-sensitive. Enter the valid values as shown. For example, entering HERE returns an error. Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.

Valid values include:

For additional information , see Data providers on the Amazon Location Service Developer Guide.

$sel:pricingPlan:CreateRouteCalculator', createRouteCalculator_pricingPlan - Specifies the pricing plan for your route calculator resource.

For additional details and restrictions on each pricing plan option, see Amazon Location Service pricing.

Request Lenses

createRouteCalculator_description :: Lens' CreateRouteCalculator (Maybe Text) Source #

The optional description for the route calculator resource.

createRouteCalculator_tags :: Lens' CreateRouteCalculator (Maybe (HashMap Text Text)) Source #

Applies one or more tags to the route calculator resource. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them.

  • For example: { "tag1" : "value1", "tag2" : "value2"}

Format: "key" : "value"

Restrictions:

  • Maximum 50 tags per resource
  • Each resource tag must be unique with a maximum of one value.
  • Maximum key length: 128 Unicode characters in UTF-8
  • Maximum value length: 256 Unicode characters in UTF-8
  • Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.

createRouteCalculator_calculatorName :: Lens' CreateRouteCalculator Text Source #

The name of the route calculator resource.

Requirements:

  • Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
  • Must be a unique Route calculator resource name.
  • No spaces allowed. For example, ExampleRouteCalculator.

createRouteCalculator_dataSource :: Lens' CreateRouteCalculator Text Source #

Specifies the data provider of traffic and road network data.

This field is case-sensitive. Enter the valid values as shown. For example, entering HERE returns an error. Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.

Valid values include:

For additional information , see Data providers on the Amazon Location Service Developer Guide.

createRouteCalculator_pricingPlan :: Lens' CreateRouteCalculator PricingPlan Source #

Specifies the pricing plan for your route calculator resource.

For additional details and restrictions on each pricing plan option, see Amazon Location Service pricing.

Destructuring the Response

data CreateRouteCalculatorResponse Source #

See: newCreateRouteCalculatorResponse smart constructor.

Constructors

CreateRouteCalculatorResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • calculatorArn :: Text

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

    • Format example: arn:aws:geo:region:account-id:route-calculator/ExampleCalculator
  • calculatorName :: Text

    The name of the route calculator resource.

    • For example, ExampleRouteCalculator.
  • createTime :: POSIX

    The timestamp when the route calculator resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

    • For example, 2020–07-2T12:15:20.000Z+01:00

Instances

Instances details
Eq CreateRouteCalculatorResponse Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Read CreateRouteCalculatorResponse Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Show CreateRouteCalculatorResponse Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Generic CreateRouteCalculatorResponse Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

Associated Types

type Rep CreateRouteCalculatorResponse :: Type -> Type #

NFData CreateRouteCalculatorResponse Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

type Rep CreateRouteCalculatorResponse Source # 
Instance details

Defined in Amazonka.Location.CreateRouteCalculator

type Rep CreateRouteCalculatorResponse = D1 ('MetaData "CreateRouteCalculatorResponse" "Amazonka.Location.CreateRouteCalculator" "libZSservicesZSamazonka-locationZSamazonka-location" 'False) (C1 ('MetaCons "CreateRouteCalculatorResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "calculatorArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "calculatorName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX))))

newCreateRouteCalculatorResponse Source #

Create a value of CreateRouteCalculatorResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateRouteCalculatorResponse', createRouteCalculatorResponse_httpStatus - The response's http status code.

$sel:calculatorArn:CreateRouteCalculatorResponse', createRouteCalculatorResponse_calculatorArn - The Amazon Resource Name (ARN) for the route calculator resource. Use the ARN when you specify a resource across all AWS.

  • Format example: arn:aws:geo:region:account-id:route-calculator/ExampleCalculator

$sel:calculatorName:CreateRouteCalculator', createRouteCalculatorResponse_calculatorName - The name of the route calculator resource.

  • For example, ExampleRouteCalculator.

$sel:createTime:CreateRouteCalculatorResponse', createRouteCalculatorResponse_createTime - The timestamp when the route calculator resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

  • For example, 2020–07-2T12:15:20.000Z+01:00

Response Lenses

createRouteCalculatorResponse_calculatorArn :: Lens' CreateRouteCalculatorResponse Text Source #

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

  • Format example: arn:aws:geo:region:account-id:route-calculator/ExampleCalculator

createRouteCalculatorResponse_calculatorName :: Lens' CreateRouteCalculatorResponse Text Source #

The name of the route calculator resource.

  • For example, ExampleRouteCalculator.

createRouteCalculatorResponse_createTime :: Lens' CreateRouteCalculatorResponse UTCTime Source #

The timestamp when the route calculator resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

  • For example, 2020–07-2T12:15:20.000Z+01:00