Class Tracker
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.116.0 (build 0eddcff)",
date="2025-10-29T11:15:51.926Z")
@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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.location.alpha.ITracker
ITracker.Jsii$Default, ITracker.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTracker(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTracker(software.amazon.jsii.JsiiObjectRef objRef) Tracker(software.constructs.Construct scope, String id, TrackerProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGeofenceCollections(IGeofenceCollection... geofenceCollections) (experimental) Add Geofence Collections which are associated to the tracker resource.static ITrackerfromTrackerArn(software.constructs.Construct scope, String id, String trackerArn) (experimental) Use an existing tracker by ARN.static ITrackerfromTrackerName(software.constructs.Construct scope, String id, String trackerName) (experimental) Use an existing tracker by name.(experimental) The Amazon Resource Name (ARN) of the tracker resource.(experimental) The timestamp for when the tracker resource was created in ISO 8601 format.(experimental) The name of the tracker.(experimental) The timestamp for when the tracker resource was last updated in ISO 8601 format.grant(IGrantable grantee, String... actions) (experimental) Grant the given principal identity permissions to perform the actions on this tracker.grantRead(IGrantable grantee) (experimental) Grant the given identity permissions to read device positions from a tracker.grantUpdateDevicePositions(IGrantable grantee) (experimental) Grant the given identity permissions to update device positions for a tracker.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
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 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 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
(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
(experimental) The Amazon Resource Name (ARN) of the tracker resource.- Specified by:
getTrackerArnin interfaceITracker
-
getTrackerCreateTime
(experimental) The timestamp for when the tracker resource was created in ISO 8601 format. -
getTrackerName
(experimental) The name of the tracker.- Specified by:
getTrackerNamein interfaceITracker
-
getTrackerUpdateTime
(experimental) The timestamp for when the tracker resource was last updated in ISO 8601 format.
-