1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "time" 7) 8 9// Contains error details for each geofence that failed to delete from the geofence 10// collection. 11type BatchDeleteGeofenceError struct { 12 13 // Contains details associated to the batch error. 14 // 15 // This member is required. 16 Error *BatchItemError 17 18 // The geofence associated with the error message. 19 // 20 // This member is required. 21 GeofenceId *string 22} 23 24// Contains error details for each device that failed to evaluate its position 25// against the geofences in a given geofence collection. 26type BatchEvaluateGeofencesError struct { 27 28 // The device associated with the position evaluation error. 29 // 30 // This member is required. 31 DeviceId *string 32 33 // Contains details associated to the batch error. 34 // 35 // This member is required. 36 Error *BatchItemError 37 38 // Specifies a timestamp for when the error occurred in ISO 8601 39 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 40 // YYYY-MM-DDThh:mm:ss.sssZ 41 // 42 // This member is required. 43 SampleTime *time.Time 44} 45 46// Contains error details for each device that didn't return a position. 47type BatchGetDevicePositionError struct { 48 49 // The ID of the device that didn't return a position. 50 // 51 // This member is required. 52 DeviceId *string 53 54 // Contains details related to the error code. 55 // 56 // This member is required. 57 Error *BatchItemError 58} 59 60// Contains the batch request error details associated with the request. 61type BatchItemError struct { 62 63 // The error code associated with the batch request error. 64 Code BatchItemErrorCode 65 66 // A message with the reason for the batch request error. 67 Message *string 68} 69 70// Contains error details for each geofence that failed to be stored in a given 71// geofence collection. 72type BatchPutGeofenceError struct { 73 74 // Contains details associated to the batch error. 75 // 76 // This member is required. 77 Error *BatchItemError 78 79 // The geofence associated with the error message. 80 // 81 // This member is required. 82 GeofenceId *string 83} 84 85// Contains geofence geometry details. 86type BatchPutGeofenceRequestEntry struct { 87 88 // The identifier for the geofence to be stored in a given geofence collection. 89 // 90 // This member is required. 91 GeofenceId *string 92 93 // Contains the polygon details to specify the position of the geofence. Each 94 // geofence polygon 95 // (https://docs.aws.amazon.com/location-geofences/latest/APIReference/API_GeofenceGeometry.html) 96 // can have a maximum of 1,000 vertices. 97 // 98 // This member is required. 99 Geometry *GeofenceGeometry 100} 101 102// Contains a summary of each geofence that was successfully stored in a given 103// geofence collection. 104type BatchPutGeofenceSuccess struct { 105 106 // The timestamp for when the geofence was stored in a geofence collection in ISO 107 // 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format: 108 // YYYY-MM-DDThh:mm:ss.sssZ 109 // 110 // This member is required. 111 CreateTime *time.Time 112 113 // The geofence successfully stored in a geofence collection. 114 // 115 // This member is required. 116 GeofenceId *string 117 118 // The timestamp for when the geofence was last updated in ISO 8601 119 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 120 // YYYY-MM-DDThh:mm:ss.sssZ 121 // 122 // This member is required. 123 UpdateTime *time.Time 124} 125 126// Contains error details for each device that failed to update its position. 127type BatchUpdateDevicePositionError struct { 128 129 // The device associated with the failed location update. 130 // 131 // This member is required. 132 DeviceId *string 133 134 // Contains details related to the error code such as the error code and error 135 // message. 136 // 137 // This member is required. 138 Error *BatchItemError 139 140 // The timestamp at which the device position was determined. Uses ISO 8601 141 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 142 // YYYY-MM-DDThh:mm:ss.sssZ. 143 // 144 // This member is required. 145 SampleTime *time.Time 146} 147 148// Specifies the data storage option chosen for requesting Places. By using Places, 149// you agree that AWS may transmit your API queries to your selected third party 150// provider for processing, which may be outside the AWS region you are currently 151// using. Also, when using HERE as your data provider, you may not (a) use HERE 152// Places for Asset Management, or (b) select the Storage option for the 153// IntendedUse parameter when requesting Places in Japan. For more information, see 154// the AWS Service Terms (https://aws.amazon.com/service-terms/) for Amazon 155// Location Service. 156type DataSourceConfiguration struct { 157 158 // Specifies how the results of an operation will be stored by the caller. Valid 159 // values include: 160 // 161 // * SingleUse specifies that the results won't be stored. 162 // 163 // * 164 // Storage specifies that the result can be cached or stored in a 165 // database. 166 // 167 // Default value: SingleUse 168 IntendedUse IntendedUse 169} 170 171// Contains the device position details. 172type DevicePosition struct { 173 174 // The last known device position. 175 // 176 // This member is required. 177 Position []float64 178 179 // The timestamp for when the tracker resource received the device position in ISO 180 // 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format: 181 // YYYY-MM-DDThh:mm:ss.sssZ. 182 // 183 // This member is required. 184 ReceivedTime *time.Time 185 186 // The timestamp at which the device's position was determined. Uses ISO 8601 187 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 188 // YYYY-MM-DDThh:mm:ss.sssZ. 189 // 190 // This member is required. 191 SampleTime *time.Time 192 193 // The device whose position you retrieved. 194 DeviceId *string 195} 196 197// Contains the position update details for a device. 198type DevicePositionUpdate struct { 199 200 // The device associated to the position update. 201 // 202 // This member is required. 203 DeviceId *string 204 205 // The latest device position defined in WGS 84 206 // (https://earth-info.nga.mil/GandG/wgs84/index.html) format: [X or longitude, Y 207 // or latitude]. 208 // 209 // This member is required. 210 Position []float64 211 212 // The timestamp at which the device's position was determined. Uses ISO 8601 213 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 214 // YYYY-MM-DDThh:mm:ss.sssZ 215 // 216 // This member is required. 217 SampleTime *time.Time 218} 219 220// Contains the geofence geometry details. Amazon Location does not currently 221// support polygons with holes, multipolygons, polygons that are wound clockwise, 222// or that cross the antimeridian. 223type GeofenceGeometry struct { 224 225 // An array of 1 or more linear rings. A linear ring is an array of 4 or more 226 // vertices, where the first and last vertex are the same to form a closed 227 // boundary. Each vertex is a 2-dimensional point of the form: [longitude, 228 // latitude]. The first linear ring is an outer ring, describing the polygon's 229 // boundary. Subsequent linear rings may be inner or outer rings to describe holes 230 // and islands. Outer rings must list their vertices in counter-clockwise order 231 // around the ring's center, where the left side is the polygon's exterior. Inner 232 // rings must list their vertices in clockwise order, where the left side is the 233 // polygon's interior. 234 Polygon [][][]float64 235} 236 237// Contains the geofence collection details. 238type ListGeofenceCollectionsResponseEntry struct { 239 240 // The name of the geofence collection. 241 // 242 // This member is required. 243 CollectionName *string 244 245 // The timestamp for when the geofence collection was created in ISO 8601 246 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 247 // YYYY-MM-DDThh:mm:ss.sssZ 248 // 249 // This member is required. 250 CreateTime *time.Time 251 252 // The description for the geofence collection 253 // 254 // This member is required. 255 Description *string 256 257 // The pricing plan for the specified geofence collection. For additional details 258 // and restrictions on each pricing plan option, see the Amazon Location Service 259 // pricing page (https://aws.amazon.com/location/pricing/). 260 // 261 // This member is required. 262 PricingPlan PricingPlan 263 264 // Specifies a timestamp for when the resource was last updated in ISO 8601 265 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 266 // YYYY-MM-DDThh:mm:ss.sssZ 267 // 268 // This member is required. 269 UpdateTime *time.Time 270 271 // The data source selected for the geofence collection and associated pricing 272 // plan. 273 PricingPlanDataSource *string 274} 275 276// Contains a list of geofences stored in a given geofence collection. 277type ListGeofenceResponseEntry struct { 278 279 // The timestamp for when the geofence was stored in a geofence collection in ISO 280 // 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format: 281 // YYYY-MM-DDThh:mm:ss.sssZ 282 // 283 // This member is required. 284 CreateTime *time.Time 285 286 // The geofence identifier. 287 // 288 // This member is required. 289 GeofenceId *string 290 291 // Contains the geofence geometry details describing a polygon. 292 // 293 // This member is required. 294 Geometry *GeofenceGeometry 295 296 // Identifies the state of the geofence. A geofence will hold one of the following 297 // states: 298 // 299 // * ACTIVE — The geofence has been indexed by the system. 300 // 301 // * PENDING — 302 // The geofence is being processed by the system. 303 // 304 // * FAILED — The geofence failed 305 // to be indexed by the system. 306 // 307 // * DELETED — The geofence has been deleted from the 308 // system index. 309 // 310 // * DELETING — The geofence is being deleted from the system index. 311 // 312 // This member is required. 313 Status *string 314 315 // The timestamp for when the geofence was last updated in ISO 8601 316 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 317 // YYYY-MM-DDThh:mm:ss.sssZ 318 // 319 // This member is required. 320 UpdateTime *time.Time 321} 322 323// Contains details of an existing map resource in your AWS account. 324type ListMapsResponseEntry struct { 325 326 // The timestamp for when the map resource was created in ISO 8601 327 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 328 // YYYY-MM-DDThh:mm:ss.sssZ. 329 // 330 // This member is required. 331 CreateTime *time.Time 332 333 // Specifies the data provider for the associated map tiles. 334 // 335 // This member is required. 336 DataSource *string 337 338 // The description for the map resource. 339 // 340 // This member is required. 341 Description *string 342 343 // The name of the associated map resource. 344 // 345 // This member is required. 346 MapName *string 347 348 // The pricing plan for the specified map resource. For additional details and 349 // restrictions on each pricing plan option, see the Amazon Location Service 350 // pricing page (https://aws.amazon.com/location/pricing/). 351 // 352 // This member is required. 353 PricingPlan PricingPlan 354 355 // The timestamp for when the map resource was last updated in ISO 8601 356 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 357 // YYYY-MM-DDThh:mm:ss.sssZ. 358 // 359 // This member is required. 360 UpdateTime *time.Time 361} 362 363// A Place index resource listed in your AWS account. 364type ListPlaceIndexesResponseEntry struct { 365 366 // The timestamp for when the Place index resource was created in ISO 8601 367 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 368 // YYYY-MM-DDThh:mm:ss.sssZ. 369 // 370 // This member is required. 371 CreateTime *time.Time 372 373 // The data provider of geospatial data. Indicates one of the available 374 // providers: 375 // 376 // * Esri 377 // 378 // * HERE 379 // 380 // For additional details on data providers, see the 381 // Amazon Location Service data providers page 382 // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html). 383 // 384 // This member is required. 385 DataSource *string 386 387 // The optional description for the Place index resource. 388 // 389 // This member is required. 390 Description *string 391 392 // The name of the Place index resource. 393 // 394 // This member is required. 395 IndexName *string 396 397 // The pricing plan for the specified Place index resource. For additional details 398 // and restrictions on each pricing plan option, see the Amazon Location Service 399 // pricing page (https://aws.amazon.com/location/pricing/). 400 // 401 // This member is required. 402 PricingPlan PricingPlan 403 404 // The timestamp for when the Place index resource was last updated in ISO 8601 405 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 406 // YYYY-MM-DDThh:mm:ss.sssZ. 407 // 408 // This member is required. 409 UpdateTime *time.Time 410} 411 412// Contains the tracker resource details. 413type ListTrackersResponseEntry struct { 414 415 // The timestamp for when the tracker resource was created in ISO 8601 416 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 417 // YYYY-MM-DDThh:mm:ss.sssZ. 418 // 419 // This member is required. 420 CreateTime *time.Time 421 422 // The description for the tracker resource. 423 // 424 // This member is required. 425 Description *string 426 427 // The pricing plan for the specified tracker resource. For additional details and 428 // restrictions on each pricing plan option, see the Amazon Location Service 429 // pricing page (https://aws.amazon.com/location/pricing/). 430 // 431 // This member is required. 432 PricingPlan PricingPlan 433 434 // The name of the tracker resource. 435 // 436 // This member is required. 437 TrackerName *string 438 439 // The timestamp at which the device's position was determined. Uses ISO 8601 440 // (https://www.iso.org/iso-8601-date-and-time-format.html) format: 441 // YYYY-MM-DDThh:mm:ss.sssZ. 442 // 443 // This member is required. 444 UpdateTime *time.Time 445 446 // The data source selected for the tracker resource and associated pricing plan. 447 PricingPlanDataSource *string 448} 449 450// Specifies the map tile style selected from an available provider. 451type MapConfiguration struct { 452 453 // Specifies the map style selected from an available data provider. Valid styles: 454 // VectorEsriStreets, VectorEsriTopographic, VectorEsriNavigation, 455 // VectorEsriDarkGrayCanvas, VectorEsriLightGrayCanvas, VectorHereBerlin. When 456 // using HERE as your data provider, and selecting the Style VectorHereBerlin, you 457 // may not use HERE Maps for Asset Management. See the AWS Service Terms 458 // (https://aws.amazon.com/service-terms/) for Amazon Location Service. 459 // 460 // This member is required. 461 Style *string 462} 463 464// Contains details about addresses or points of interest that match the search 465// criteria. 466type Place struct { 467 468 // Places uses a point geometry to specify a location or a Place. 469 // 470 // This member is required. 471 Geometry *PlaceGeometry 472 473 // The numerical portion of an address, such as a building number. 474 AddressNumber *string 475 476 // A country/region specified using ISO 3166 477 // (https://www.iso.org/iso-3166-country-codes.html) 3-digit country/region code. 478 // For example, CAN. 479 Country *string 480 481 // The full name and address of the point of interest such as a city, region, or 482 // country. For example, 123 Any Street, Any Town, USA. 483 Label *string 484 485 // A name for a local area, such as a city or town name. For example, Toronto. 486 Municipality *string 487 488 // The name of a community district. For example, Downtown. 489 Neighborhood *string 490 491 // A group of numbers and letters in a country-specific format, which accompanies 492 // the address for the purpose of identifying a location. 493 PostalCode *string 494 495 // A name for an area or geographical division, such as a province or state name. 496 // For example, British Columbia. 497 Region *string 498 499 // The name for a street or a road to identify a location. For example, Main 500 // Street. 501 Street *string 502 503 // A country, or an area that's part of a larger region . For example, Metro 504 // Vancouver. 505 SubRegion *string 506} 507 508// Places uses a point geometry to specify a location or a Place. 509type PlaceGeometry struct { 510 511 // A single point geometry specifies a location for a Place using WGS 84 512 // (https://gisgeography.com/wgs84-world-geodetic-system/) coordinates: 513 // 514 // * x — 515 // Specifies the x coordinate or longitude. 516 // 517 // * y — Specifies the y coordinate or 518 // latitude. 519 Point []float64 520} 521 522// Specifies a single point of interest, or Place as a result of a search query 523// obtained from a dataset configured in the Place index Resource. 524type SearchForPositionResult struct { 525 526 // Contains details about the relevant point of interest. 527 // 528 // This member is required. 529 Place *Place 530} 531 532// Contains relevant Places returned by calling SearchPlaceIndexForText. 533type SearchForTextResult struct { 534 535 // Contains details about the relevant point of interest. 536 // 537 // This member is required. 538 Place *Place 539} 540 541// A summary of the reverse geocoding request sent using 542// SearchPlaceIndexForPosition. 543type SearchPlaceIndexForPositionSummary struct { 544 545 // The data provider of geospatial data. Indicates one of the available 546 // providers: 547 // 548 // * Esri 549 // 550 // * HERE 551 // 552 // For additional details on data providers, see the 553 // Amazon Location Service data providers page 554 // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html). 555 // 556 // This member is required. 557 DataSource *string 558 559 // The position given in the reverse geocoding request. 560 // 561 // This member is required. 562 Position []float64 563 564 // An optional parameter. The maximum number of results returned per request. 565 // Default value: 50 566 MaxResults int32 567} 568 569// A summary of the geocoding request sent using SearchPlaceIndexForText. 570type SearchPlaceIndexForTextSummary struct { 571 572 // The data provider of geospatial data. Indicates one of the available 573 // providers: 574 // 575 // * Esri 576 // 577 // * HERE 578 // 579 // For additional details on data providers, see the 580 // Amazon Location Service data providers page 581 // (https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html). 582 // 583 // This member is required. 584 DataSource *string 585 586 // The address, name, city or region to be used in the geocoding request. In 587 // free-form text format. For example, Vancouver. 588 // 589 // This member is required. 590 Text *string 591 592 // Contains the coordinates for the bias position entered in the geocoding request. 593 BiasPosition []float64 594 595 // Contains the coordinates for the optional bounding box coordinated entered in 596 // the geocoding request. 597 FilterBBox []float64 598 599 // Contains the country filter entered in the geocoding request. 600 FilterCountries []string 601 602 // Contains the maximum number of results indicated for the request. 603 MaxResults int32 604 605 // A bounding box that contains the search results within the specified area 606 // indicated by FilterBBox. A subset of bounding box specified using FilterBBox. 607 ResultBBox []float64 608} 609 610// The input failed to meet the constraints specified by the AWS service in a 611// specified field. 612type ValidationExceptionField struct { 613 614 // A message with the reason for the validation exception error. 615 // 616 // This member is required. 617 Message *string 618 619 // The field name where the invalid entry was detected. 620 // 621 // This member is required. 622 Name *string 623} 624