Class CfnTrackerConsumer

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.798Z") @Stability(Stable) public class CfnTrackerConsumer extends CfnResource implements IInspectable
A CloudFormation AWS::Location::TrackerConsumer.

The AWS::Location::TrackerConsumer resource specifies an association between a geofence collection and a tracker resource. The geofence collection is referred to as the consumer of the tracker. This allows the tracker resource to communicate location data to the linked geofence collection.

Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.

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.*;
 CfnTrackerConsumer cfnTrackerConsumer = CfnTrackerConsumer.Builder.create(this, "MyCfnTrackerConsumer")
         .consumerArn("consumerArn")
         .trackerName("trackerName")
         .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

    • CfnTrackerConsumer

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

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

      @Stability(Stable) public CfnTrackerConsumer(@NotNull Construct scope, @NotNull String id, @NotNull CfnTrackerConsumerProps props)
      Create a new AWS::Location::TrackerConsumer.

      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.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public String getConsumerArn()
      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
    • setConsumerArn

      @Stability(Stable) public void setConsumerArn(@NotNull String value)
      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
    • 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 .