Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreatePlaceIndex = CreatePlaceIndex' {}
- newCreatePlaceIndex :: Text -> Text -> CreatePlaceIndex
- createPlaceIndex_dataSourceConfiguration :: Lens' CreatePlaceIndex (Maybe DataSourceConfiguration)
- createPlaceIndex_description :: Lens' CreatePlaceIndex (Maybe Text)
- createPlaceIndex_pricingPlan :: Lens' CreatePlaceIndex (Maybe PricingPlan)
- createPlaceIndex_tags :: Lens' CreatePlaceIndex (Maybe (HashMap Text Text))
- createPlaceIndex_dataSource :: Lens' CreatePlaceIndex Text
- createPlaceIndex_indexName :: Lens' CreatePlaceIndex Text
- data CreatePlaceIndexResponse = CreatePlaceIndexResponse' {
- httpStatus :: Int
- createTime :: ISO8601
- indexArn :: Text
- indexName :: Text
- newCreatePlaceIndexResponse :: Int -> UTCTime -> Text -> Text -> CreatePlaceIndexResponse
- createPlaceIndexResponse_httpStatus :: Lens' CreatePlaceIndexResponse Int
- createPlaceIndexResponse_createTime :: Lens' CreatePlaceIndexResponse UTCTime
- createPlaceIndexResponse_indexArn :: Lens' CreatePlaceIndexResponse Text
- createPlaceIndexResponse_indexName :: Lens' CreatePlaceIndexResponse Text
Creating a Request
data CreatePlaceIndex Source #
See: newCreatePlaceIndex
smart constructor.
CreatePlaceIndex' | |
|
Instances
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:
Esri
– For additional information about Esri's coverage in your region of interest, see Esri details on geocoding coverage.Here
– For additional information about HERE Technologies' coverage in your region of interest, see HERE details on goecoding coverage.If you specify HERE Technologies (
Here
) as the data provider, you may not store results for locations in Japan. For more information, see the AWS Service Terms for Amazon Location Service.
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_dataSourceConfiguration :: Lens' CreatePlaceIndex (Maybe DataSourceConfiguration) Source #
Specifies the data storage option requesting Places.
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:
Esri
– For additional information about Esri's coverage in your region of interest, see Esri details on geocoding coverage.Here
– For additional information about HERE Technologies' coverage in your region of interest, see HERE details on goecoding coverage.If you specify HERE Technologies (
Here
) as the data provider, you may not store results for locations in Japan. For more information, see the AWS Service Terms for Amazon Location Service.
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.
CreatePlaceIndexResponse' | |
|
Instances
newCreatePlaceIndexResponse Source #
:: Int | |
-> UTCTime | |
-> Text | |
-> Text | |
-> CreatePlaceIndexResponse |
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_httpStatus :: Lens' CreatePlaceIndexResponse Int Source #
The response's http status code.
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
createPlaceIndexResponse_indexName :: Lens' CreatePlaceIndexResponse Text Source #
The name for the place index resource.