The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::LocationService::PutGeofence - Arguments for method PutGeofence on Paws::LocationService

DESCRIPTION

This class represents the parameters used for calling the method PutGeofence on the Amazon Location Service service. Use the attributes of this class as arguments to method PutGeofence.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutGeofence.

SYNOPSIS

my $geo = Paws->service('LocationService');
my $PutGeofenceResponse = $geo->PutGeofence(
  CollectionName => 'MyResourceName',
  GeofenceId     => 'MyId',
  Geometry       => {
    Polygon => [
      [
        [ 1, ... ], ...    # min: 2, max: 2
      ],
      ...                  # min: 4
    ],    # min: 1; OPTIONAL
  },

);

# Results:
my $CreateTime = $PutGeofenceResponse->CreateTime;
my $GeofenceId = $PutGeofenceResponse->GeofenceId;
my $UpdateTime = $PutGeofenceResponse->UpdateTime;

# Returns a L<Paws::LocationService::PutGeofenceResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/geo/PutGeofence

ATTRIBUTES

REQUIRED CollectionName => Str

The geofence collection to store the geofence in.

REQUIRED GeofenceId => Str

An identifier for the geofence. For example, ExampleGeofence-1.

REQUIRED Geometry => Paws::LocationService::GeofenceGeometry

Contains the polygon details to specify the position of the geofence.

Each geofence polygon (https://docs.aws.amazon.com/location-geofences/latest/APIReference/API_GeofenceGeometry.html) can have a maximum of 1,000 vertices.

SEE ALSO

This class forms part of Paws, documenting arguments for method PutGeofence in Paws::LocationService

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues