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.AssociateTrackerConsumer
Description
Creates an association between a geofence collection and a tracker resource. This allows the tracker resource to communicate location data to the linked geofence collection.
You can associate up to five geofence collections to each tracker resource.
Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.
Synopsis
- data AssociateTrackerConsumer = AssociateTrackerConsumer' {
- consumerArn :: Text
- trackerName :: Text
- newAssociateTrackerConsumer :: Text -> Text -> AssociateTrackerConsumer
- associateTrackerConsumer_consumerArn :: Lens' AssociateTrackerConsumer Text
- associateTrackerConsumer_trackerName :: Lens' AssociateTrackerConsumer Text
- data AssociateTrackerConsumerResponse = AssociateTrackerConsumerResponse' {
- httpStatus :: Int
- newAssociateTrackerConsumerResponse :: Int -> AssociateTrackerConsumerResponse
- associateTrackerConsumerResponse_httpStatus :: Lens' AssociateTrackerConsumerResponse Int
Creating a Request
data AssociateTrackerConsumer Source #
See: newAssociateTrackerConsumer
smart constructor.
Constructors
AssociateTrackerConsumer' | |
Fields
|
Instances
newAssociateTrackerConsumer Source #
Arguments
:: Text | |
-> Text | |
-> AssociateTrackerConsumer |
Create a value of AssociateTrackerConsumer
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:consumerArn:AssociateTrackerConsumer'
, associateTrackerConsumer_consumerArn
- The Amazon Resource Name (ARN) for the geofence collection to be
associated to tracker resource. Used when you need to specify a resource
across all AWS.
- Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer
$sel:trackerName:AssociateTrackerConsumer'
, associateTrackerConsumer_trackerName
- The name of the tracker resource to be associated with a geofence
collection.
Request Lenses
associateTrackerConsumer_consumerArn :: Lens' AssociateTrackerConsumer Text Source #
The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource. Used when you need to specify a resource across all AWS.
- Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer
associateTrackerConsumer_trackerName :: Lens' AssociateTrackerConsumer Text Source #
The name of the tracker resource to be associated with a geofence collection.
Destructuring the Response
data AssociateTrackerConsumerResponse Source #
See: newAssociateTrackerConsumerResponse
smart constructor.
Constructors
AssociateTrackerConsumerResponse' | |
Fields
|
Instances
newAssociateTrackerConsumerResponse Source #
Create a value of AssociateTrackerConsumerResponse
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:AssociateTrackerConsumerResponse'
, associateTrackerConsumerResponse_httpStatus
- The response's http status code.
Response Lenses
associateTrackerConsumerResponse_httpStatus :: Lens' AssociateTrackerConsumerResponse Int Source #
The response's http status code.