amazonka-location-2.0: Amazon Location Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Location.CreatePlaceIndex

Description

Creates a place index resource in your AWS account. Use a place index resource to geocode addresses and other text queries by using the SearchPlaceIndexForText operation, and reverse geocode coordinates by using the SearchPlaceIndexForPosition operation, and enable autosuggestions by using the SearchPlaceIndexForSuggestions operation.

If your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you may only use HERE as your geolocation provider. See section 82 of the AWS service terms for more details.

Synopsis

Creating a Request

data CreatePlaceIndex Source #

See: newCreatePlaceIndex smart constructor.

Constructors

CreatePlaceIndex' 

Fields

  • dataSourceConfiguration :: Maybe DataSourceConfiguration

    Specifies the data storage option requesting Places.

  • description :: Maybe Text

    The optional description for the place index resource.

  • pricingPlan :: Maybe PricingPlan

    No longer used. If included, the only allowed value is RequestBasedUsage.

  • tags :: Maybe (HashMap Text Text)

    Applies one or more tags to the place index resource. A tag is a key-value pair that helps you manage, identify, search, and filter your resources.

    Format: "key" : "value"

    Restrictions:

    • Maximum 50 tags per resource.
    • Each tag key must be unique and must have exactly one associated 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: + - = . _ : / @
    • Cannot use "aws:" as a prefix for a key.
  • dataSource :: Text

    Specifies the geospatial data provider for the new place index.

    This field is case-sensitive. Enter the valid values as shown. For example, entering HERE returns an error.

    Valid values include:

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

  • indexName :: Text

    The name of the place index resource.

    Requirements:

    • Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
    • Must be a unique place index resource name.
    • No spaces allowed. For example, ExamplePlaceIndex.

Instances

Instances details
ToJSON CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

ToHeaders CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

ToPath CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

ToQuery CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

AWSRequest CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

Associated Types

type AWSResponse CreatePlaceIndex #

Generic CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

Associated Types

type Rep CreatePlaceIndex :: Type -> Type #

Read CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

Show CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

NFData CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

Methods

rnf :: CreatePlaceIndex -> () #

Eq CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

Hashable CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

type AWSResponse CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

type Rep CreatePlaceIndex Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

type Rep CreatePlaceIndex = D1 ('MetaData "CreatePlaceIndex" "Amazonka.Location.CreatePlaceIndex" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "CreatePlaceIndex'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dataSourceConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataSourceConfiguration)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pricingPlan") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PricingPlan)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "dataSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "indexName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreatePlaceIndex Source #

Create a value of CreatePlaceIndex 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:dataSourceConfiguration:CreatePlaceIndex', createPlaceIndex_dataSourceConfiguration - Specifies the data storage option requesting Places.

CreatePlaceIndex, createPlaceIndex_description - The optional description for the place index resource.

CreatePlaceIndex, createPlaceIndex_pricingPlan - No longer used. If included, the only allowed value is RequestBasedUsage.

$sel:tags:CreatePlaceIndex', createPlaceIndex_tags - Applies one or more tags to the place index resource. A tag is a key-value pair that helps you manage, identify, search, and filter your resources.

Format: "key" : "value"

Restrictions:

  • Maximum 50 tags per resource.
  • Each tag key must be unique and must have exactly one associated 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: + - = . _ : / @
  • Cannot use "aws:" as a prefix for a key.

CreatePlaceIndex, createPlaceIndex_dataSource - Specifies the geospatial data provider for the new place index.

This field is case-sensitive. Enter the valid values as shown. For example, entering HERE returns an error.

Valid values include:

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

CreatePlaceIndex, createPlaceIndex_indexName - The name of the place index resource.

Requirements:

  • Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
  • Must be a unique place index resource name.
  • No spaces allowed. For example, ExamplePlaceIndex.

Request Lenses

createPlaceIndex_description :: Lens' CreatePlaceIndex (Maybe Text) Source #

The optional description for the place index resource.

createPlaceIndex_pricingPlan :: Lens' CreatePlaceIndex (Maybe PricingPlan) Source #

No longer used. If included, the only allowed value is RequestBasedUsage.

createPlaceIndex_tags :: Lens' CreatePlaceIndex (Maybe (HashMap Text Text)) Source #

Applies one or more tags to the place index resource. A tag is a key-value pair that helps you manage, identify, search, and filter your resources.

Format: "key" : "value"

Restrictions:

  • Maximum 50 tags per resource.
  • Each tag key must be unique and must have exactly one associated 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: + - = . _ : / @
  • Cannot use "aws:" as a prefix for a key.

createPlaceIndex_dataSource :: Lens' CreatePlaceIndex Text Source #

Specifies the geospatial data provider for the new place index.

This field is case-sensitive. Enter the valid values as shown. For example, entering HERE returns an error.

Valid values include:

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

createPlaceIndex_indexName :: Lens' CreatePlaceIndex Text Source #

The name of the place index resource.

Requirements:

  • Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
  • Must be a unique place index resource name.
  • No spaces allowed. For example, ExamplePlaceIndex.

Destructuring the Response

data CreatePlaceIndexResponse Source #

See: newCreatePlaceIndexResponse smart constructor.

Constructors

CreatePlaceIndexResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • createTime :: ISO8601

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

  • indexArn :: Text

    The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

    • Format example: arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex
  • indexName :: Text

    The name for the place index resource.

Instances

Instances details
Generic CreatePlaceIndexResponse Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

Associated Types

type Rep CreatePlaceIndexResponse :: Type -> Type #

Read CreatePlaceIndexResponse Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

Show CreatePlaceIndexResponse Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

NFData CreatePlaceIndexResponse Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

Eq CreatePlaceIndexResponse Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

type Rep CreatePlaceIndexResponse Source # 
Instance details

Defined in Amazonka.Location.CreatePlaceIndex

type Rep CreatePlaceIndexResponse = D1 ('MetaData "CreatePlaceIndexResponse" "Amazonka.Location.CreatePlaceIndex" "amazonka-location-2.0-4NLaYgEbMXwF6j2j7LAFNb" 'False) (C1 ('MetaCons "CreatePlaceIndexResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601)) :*: (S1 ('MetaSel ('Just "indexArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "indexName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreatePlaceIndexResponse Source #

Create a value of CreatePlaceIndexResponse 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:CreatePlaceIndexResponse', createPlaceIndexResponse_httpStatus - The response's http status code.

CreatePlaceIndexResponse, createPlaceIndexResponse_createTime - The timestamp for when the place index resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

$sel:indexArn:CreatePlaceIndexResponse', createPlaceIndexResponse_indexArn - The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

  • Format example: arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex

CreatePlaceIndex, createPlaceIndexResponse_indexName - The name for the place index resource.

Response Lenses

createPlaceIndexResponse_createTime :: Lens' CreatePlaceIndexResponse UTCTime Source #

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

createPlaceIndexResponse_indexArn :: Lens' CreatePlaceIndexResponse Text Source #

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

  • Format example: arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex