Removes the association between a tracker resource and a geofence collection.
Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.
Parameters:
-
tracker_name
(ResourceName)
–
The name of the tracker resource to be dissociated from the consumer.
-
consumer_arn
(Arn)
–
The Amazon Resource Name (ARN) for the geofence collection to be disassociated from the tracker resource. Used when you need to specify a resource across all Amazon Web Services.
Raises:
Source code in docs_src/capo_location/_services/async_location.py
| async def disassociate_tracker_consumer(
self,
tracker_name: "capo_location.types.resource_name.ResourceName",
consumer_arn: "capo_location.types.arn.Arn",
*,
config_overrides: Optional[AsyncLocationClientConfig] = None,
) -> "capo_location.types.disassociate_tracker_consumer_response.DisassociateTrackerConsumerResponse":
"""<p>Removes the association between a tracker resource and a geofence collection.</p> <note> <p>Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.</p> </note>
Args:
tracker_name: <p>The name of the tracker resource to be dissociated from the consumer.</p>
consumer_arn: <p>The Amazon Resource Name (ARN) for the geofence collection to be disassociated from the tracker resource. Used when you need to specify a resource across all Amazon Web Services. </p> <ul> <li> <p>Format example: <code>arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer</code> </p> </li> </ul>
Raises:
capo_location.errors.access_denied_exception.AccessDeniedException: <p>The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.</p>
capo_location.errors.internal_server_exception.InternalServerException: <p>The request has failed to process because of an unknown server error, exception, or failure.</p>
capo_location.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource that you've entered was not found in your AWS account.</p>
capo_location.errors.throttling_exception.ThrottlingException: <p>The request was denied because of request throttling.</p>
capo_location.errors.validation_exception.ValidationException: <p>The input failed to meet the constraints specified by the AWS service. </p>
capo_location.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_location.types.disassociate_tracker_consumer_request.DisassociateTrackerConsumerRequest]",
) -> AsyncOperationResponse[
"capo_location.types.disassociate_tracker_consumer_response.DisassociateTrackerConsumerResponse"
]:
import capo_location._operations.location_service.disassociate_tracker_consumer
(
output,
http_response,
) = await capo_location._operations.location_service.disassociate_tracker_consumer.async_disassociate_tracker_consumer(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateTrackerConsumer")
)
input_: capo_location.types.disassociate_tracker_consumer_request.DisassociateTrackerConsumerRequest = {
"tracker_name": tracker_name,
"consumer_arn": consumer_arn,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|