Class CfnTracker

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:59.797Z") @Stability(Stable) public class CfnTracker extends CfnResource implements IInspectable
A CloudFormation AWS::Location::Tracker.

Specifies a tracker resource in your AWS account , which lets you receive current and historical location of devices.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.location.*;
 CfnTracker cfnTracker = CfnTracker.Builder.create(this, "MyCfnTracker")
         .trackerName("trackerName")
         // the properties below are optional
         .description("description")
         .kmsKeyId("kmsKeyId")
         .positionFiltering("positionFiltering")
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnTracker

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

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

      @Stability(Stable) public CfnTracker(@NotNull Construct scope, @NotNull String id, @NotNull CfnTrackerProps props)
      Create a new AWS::Location::Tracker.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) for the tracker resource.

      Used when you need to specify a resource across all AWS .

      • Format example: arn:aws:geo:region:account-id:tracker/ExampleTracker
    • getAttrCreateTime

      @Stability(Stable) @NotNull public String getAttrCreateTime()
      The timestamp for when the tracker resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ .
    • getAttrTrackerArn

      @Stability(Stable) @NotNull public String getAttrTrackerArn()
      Synonym for Arn .

      The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS .

      • Format example: arn:aws:geo:region:account-id:tracker/ExampleTracker
    • getAttrUpdateTime

      @Stability(Stable) @NotNull public String getAttrUpdateTime()
      The timestamp for when the tracker resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ .
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTrackerName

      @Stability(Stable) @NotNull public String getTrackerName()
      The name for the tracker resource.

      Requirements:

      • Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-), periods (.), and underscores (_).
      • Must be a unique tracker resource name.
      • No spaces allowed. For example, ExampleTracker .
    • setTrackerName

      @Stability(Stable) public void setTrackerName(@NotNull String value)
      The name for the tracker resource.

      Requirements:

      • Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-), periods (.), and underscores (_).
      • Must be a unique tracker resource name.
      • No spaces allowed. For example, ExampleTracker .
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      An optional description for the tracker resource.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      An optional description for the tracker resource.
    • getKmsKeyId

      @Stability(Stable) @Nullable public String getKmsKeyId()
      A key identifier for an AWS KMS customer managed key . Enter a key ID, key ARN, alias name, or alias ARN.
    • setKmsKeyId

      @Stability(Stable) public void setKmsKeyId(@Nullable String value)
      A key identifier for an AWS KMS customer managed key . Enter a key ID, key ARN, alias name, or alias ARN.
    • getPositionFiltering

      @Stability(Stable) @Nullable public String getPositionFiltering()
      Specifies the position filtering for the tracker resource.

      Valid values:

      • TimeBased - Location updates are evaluated against linked geofence collections, but not every location update is stored. If your update frequency is more often than 30 seconds, only one update per 30 seconds is stored for each unique device ID.
      • DistanceBased - If the device has moved less than 30 m (98.4 ft), location updates are ignored. Location updates within this area are neither evaluated against linked geofence collections, nor stored. This helps control costs by reducing the number of geofence evaluations and historical device positions to paginate through. Distance-based filtering can also reduce the effects of GPS noise when displaying device trajectories on a map.
      • AccuracyBased - If the device has moved less than the measured accuracy, location updates are ignored. For example, if two consecutive updates from a device have a horizontal accuracy of 5 m and 10 m, the second update is ignored if the device has moved less than 15 m. Ignored location updates are neither evaluated against linked geofence collections, nor stored. This can reduce the effects of GPS noise when displaying device trajectories on a map, and can help control your costs by reducing the number of geofence evaluations.

      This field is optional. If not specified, the default value is TimeBased .

    • setPositionFiltering

      @Stability(Stable) public void setPositionFiltering(@Nullable String value)
      Specifies the position filtering for the tracker resource.

      Valid values:

      • TimeBased - Location updates are evaluated against linked geofence collections, but not every location update is stored. If your update frequency is more often than 30 seconds, only one update per 30 seconds is stored for each unique device ID.
      • DistanceBased - If the device has moved less than 30 m (98.4 ft), location updates are ignored. Location updates within this area are neither evaluated against linked geofence collections, nor stored. This helps control costs by reducing the number of geofence evaluations and historical device positions to paginate through. Distance-based filtering can also reduce the effects of GPS noise when displaying device trajectories on a map.
      • AccuracyBased - If the device has moved less than the measured accuracy, location updates are ignored. For example, if two consecutive updates from a device have a horizontal accuracy of 5 m and 10 m, the second update is ignored if the device has moved less than 15 m. Ignored location updates are neither evaluated against linked geofence collections, nor stored. This can reduce the effects of GPS noise when displaying device trajectories on a map, and can help control your costs by reducing the number of geofence evaluations.

      This field is optional. If not specified, the default value is TimeBased .