| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Location.CreatePlaceIndex
Description
Creates a place index resource in your AWS account, which supports functions with geospatial data sourced from your chosen data provider.
Synopsis
- data CreatePlaceIndex = CreatePlaceIndex' {}
- newCreatePlaceIndex :: Text -> Text -> PricingPlan -> CreatePlaceIndex
- createPlaceIndex_dataSourceConfiguration :: Lens' CreatePlaceIndex (Maybe DataSourceConfiguration)
- createPlaceIndex_description :: Lens' CreatePlaceIndex (Maybe Text)
- createPlaceIndex_tags :: Lens' CreatePlaceIndex (Maybe (HashMap Text Text))
- createPlaceIndex_dataSource :: Lens' CreatePlaceIndex Text
- createPlaceIndex_indexName :: Lens' CreatePlaceIndex Text
- createPlaceIndex_pricingPlan :: Lens' CreatePlaceIndex PricingPlan
- data CreatePlaceIndexResponse = CreatePlaceIndexResponse' {
- httpStatus :: Int
- createTime :: POSIX
- 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.
Constructors
| CreatePlaceIndex' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> PricingPlan | |
| -> CreatePlaceIndex |
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.
$sel:description:CreatePlaceIndex', createPlaceIndex_description - The optional description for the place index resource.
$sel:tags:CreatePlaceIndex', createPlaceIndex_tags - Applies one or more tags to the place index resource. A tag is a
key-value pair helps manage, identify, search, and filter your resources
by labelling them.
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:dataSource:CreatePlaceIndex', createPlaceIndex_dataSource - Specifies the data provider of geospatial data.
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.Place index resources using HERE Technologies as a data provider can't 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.
$sel:indexName: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.
$sel:pricingPlan:CreatePlaceIndex', createPlaceIndex_pricingPlan - Specifies the pricing plan for your place index resource.
For additional details and restrictions on each pricing plan option, see Amazon Location Service pricing.
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_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 helps manage, identify, search, and filter your resources by labelling them.
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: + - = . _ : / @.
createPlaceIndex_dataSource :: Lens' CreatePlaceIndex Text Source #
Specifies the data provider of geospatial data.
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.Place index resources using HERE Technologies as a data provider can't 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.
createPlaceIndex_pricingPlan :: Lens' CreatePlaceIndex PricingPlan Source #
Specifies the pricing plan for your place index resource.
For additional details and restrictions on each pricing plan option, see Amazon Location Service pricing.
Destructuring the Response
data CreatePlaceIndexResponse Source #
See: newCreatePlaceIndexResponse smart constructor.
Constructors
| CreatePlaceIndexResponse' | |
Fields
| |
Instances
newCreatePlaceIndexResponse Source #
Arguments
| :: 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.
$sel:createTime: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
$sel:indexName: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.