java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.location.alpha.Tracker
All Implemented Interfaces:
IResource, ITracker, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:18.293Z") @Stability(Experimental) public class Tracker extends Resource implements ITracker
(experimental) A Tracker.

Example:

 Role role;
 Tracker tracker = Tracker.Builder.create(this, "Tracker")
         .trackerName("MyTracker")
         .build();
 tracker.grantRead(role);
 

See Also:
  • Constructor Details

    • Tracker

      protected Tracker(software.amazon.jsii.JsiiObjectRef objRef)
    • Tracker

      protected Tracker(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Tracker

      @Stability(Experimental) public Tracker(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable TrackerProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • Tracker

      @Stability(Experimental) public Tracker(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • fromTrackerArn

      @Stability(Experimental) @NotNull public static ITracker fromTrackerArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String trackerArn)
      (experimental) Use an existing tracker by ARN.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      trackerArn - This parameter is required.
    • fromTrackerName

      @Stability(Experimental) @NotNull public static ITracker fromTrackerName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String trackerName)
      (experimental) Use an existing tracker by name.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      trackerName - This parameter is required.
    • addGeofenceCollections

      @Stability(Experimental) public void addGeofenceCollections(@NotNull @NotNull IGeofenceCollection... geofenceCollections)
      (experimental) Add Geofence Collections which are associated to the tracker resource.

      Parameters:
      geofenceCollections - This parameter is required.
    • grant

      @Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions)
      (experimental) Grant the given principal identity permissions to perform the actions on this tracker.

      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • grantRead

      @Stability(Experimental) @NotNull public Grant grantRead(@NotNull IGrantable grantee)
      (experimental) Grant the given identity permissions to read device positions from a tracker.

      Parameters:
      grantee - This parameter is required.
      See Also:
    • grantUpdateDevicePositions

      @Stability(Experimental) @NotNull public Grant grantUpdateDevicePositions(@NotNull IGrantable grantee)
      (experimental) Grant the given identity permissions to update device positions for a tracker.

      Parameters:
      grantee - This parameter is required.
      See Also:
    • getTrackerArn

      @Stability(Experimental) @NotNull public String getTrackerArn()
      (experimental) The Amazon Resource Name (ARN) of the tracker resource.
      Specified by:
      getTrackerArn in interface ITracker
    • getTrackerCreateTime

      @Stability(Experimental) @NotNull public String getTrackerCreateTime()
      (experimental) The timestamp for when the tracker resource was created in ISO 8601 format.
    • getTrackerName

      @Stability(Experimental) @NotNull public String getTrackerName()
      (experimental) The name of the tracker.
      Specified by:
      getTrackerName in interface ITracker
    • getTrackerUpdateTime

      @Stability(Experimental) @NotNull public String getTrackerUpdateTime()
      (experimental) The timestamp for when the tracker resource was last updated in ISO 8601 format.