

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Kelola sumber daya pengumpulan geofence Anda
<a name="managing-geofence-collections"></a>

Kelola koleksi geofence Anda menggunakan konsol Lokasi Amazon, Lokasi Amazon AWS CLI, atau Lokasi Amazon. APIs

## Buat daftar sumber daya koleksi geofence Anda
<a name="viewing-geofence-collections"></a>

Anda dapat melihat daftar koleksi geofence menggunakan konsol Lokasi Amazon, lokasi Amazon AWS CLI, atau Lokasi Amazon: APIs

------
#### [ Console ]

**Untuk melihat daftar koleksi geofence menggunakan konsol Lokasi Amazon**

1. Buka konsol Lokasi Amazon di [https://console.aws.amazon.com/location/](https://console.aws.amazon.com/location/home).

1. Pilih **koleksi Geofence** dari panel navigasi kiri.

1. Lihat daftar koleksi geofence Anda di bawah Koleksi geofence **saya**.

------
#### [ API ]

Gunakan `[ListGeofenceCollections](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_ListGeofenceCollections.html)` operasi dari Amazon Location Geofences APIs. 

Contoh berikut adalah permintaan API untuk mendapatkan daftar koleksi geofence di akun. AWS 

```
POST /geofencing/v0/list-collections
```

Berikut ini adalah contoh respons untuk`ListGeofenceCollections`:

```
{
    "Entries": [ 
    { 
        "CollectionName": "ExampleCollection",
        "CreateTime": 2020-09-30T22:59:34.142Z,
        "Description": "string",
        "UpdateTime": 2020-09-30T23:59:34.142Z
    },
    "NextToken": "1234-5678-9012"
}
```

------
#### [ CLI ]

Gunakan perintah `[list-geofence-collections](https://docs.aws.amazon.com/cli/latest/reference/location/list-geofence-collections.html)`.

Contoh berikut adalah AWS CLI untuk mendapatkan daftar koleksi geofence di akun. AWS 

```
aws location list-geofence-collections
```

------

## Dapatkan detail koleksi geofence
<a name="get-geofence-collection-details"></a>

Anda bisa mendapatkan detail tentang sumber daya pengumpulan geofence apa pun di AWS akun Anda menggunakan konsol Lokasi Amazon, AWS CLI, atau Lokasi Amazon: APIs

------
#### [ Console ]

**Untuk melihat detail koleksi geofence menggunakan konsol Lokasi Amazon**

1. Buka konsol Lokasi Amazon di [https://console.aws.amazon.com/location/](https://console.aws.amazon.com/location/home).

1. Pilih **koleksi Geofence** dari panel navigasi kiri.

1. Di bawah **Koleksi geofence saya**, pilih tautan nama koleksi geofence target. 

------
#### [ API ]

Gunakan `[DescribeGeofenceCollection](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_DescribeGeofenceCollection.html)` operasi dari Amazon Location Geofences APIs. 

Contoh berikut adalah permintaan API untuk mendapatkan detail koleksi geofence. *ExampleCollection*

```
GET /geofencing/v0/collections/ExampleCollection
```

Berikut ini adalah contoh respons untuk`DescribeGeofenceCollection`:

```
{
    "CollectionArn": "arn:aws:geo:us-west-2:123456789012:geofence-collection/GeofenceCollection",
    "CollectionName": "ExampleCollection",
    "CreateTime": 2020-09-30T22:59:34.142Z,
    "Description": "string",
    "KmsKeyId": "1234abcd-12ab-34cd-56ef-1234567890ab",
    "Tags": { 
        "Tag1" : "Value1"
    },
    "UpdateTime": 2020-09-30T23:59:34.142Z
}
```

------
#### [ CLI ]

Gunakan perintah `[describe-geofence-collection](https://docs.aws.amazon.com/cli/latest/reference/location/describe-geofence-collection.html)`.

Contoh berikut adalah AWS CLI untuk mendapatkan detail koleksi geofence untuk. *ExampleCollection*

```
aws location describe-geofence-collection \
    --collection-name "ExampleCollection"
```

------

## Hapus koleksi geofence
<a name="delete-geofence-collection"></a>

Anda dapat menghapus koleksi geofence dari AWS akun menggunakan konsol Lokasi Amazon, lokasi Amazon AWS CLI, atau Lokasi Amazon. APIs

------
#### [ Console ]

**Untuk menghapus koleksi geofence menggunakan konsol Lokasi Amazon**

**Awas**  
Operasi ini menghapus sumber daya secara permanen.

 

1. Buka konsol Lokasi Amazon di [https://console.aws.amazon.com/location/](https://console.aws.amazon.com/location/home).

1. Pilih **koleksi Geofence** dari panel navigasi kiri.

1. Di bawah Koleksi **geofence saya, pilih koleksi** geofence target.

1. Pilih **Hapus koleksi geofence.**

------
#### [ API ]

Gunakan `[DeleteGeofenceCollection](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_DeleteGeofenceCollection.html)` operasi dari Lokasi Amazon APIs. 

Contoh berikut adalah permintaan API untuk menghapus koleksi geofence. *ExampleCollection*

```
DELETE /geofencing/v0/collections/ExampleCollection
```

Berikut ini adalah contoh respons untuk`DeleteGeofenceCollection`:

```
HTTP/1.1 200
```

------
#### [ CLI ]

Gunakan perintah `[delete-geofence-collection](https://docs.aws.amazon.com/cli/latest/reference/location/delete-geofence-collection.html)`.

Contoh berikut adalah AWS CLI perintah untuk menghapus koleksi geofence. *ExampleCollection*

```
aws location delete-geofence-collection \
    --collection-name "ExampleCollection"
```

------

## Daftar geofences yang disimpan
<a name="viewing-geofences"></a>

Anda dapat mencantumkan geofences yang disimpan dalam koleksi geofence tertentu menggunakan konsol Lokasi Amazon, AWS CLI atau Lokasi Amazon. APIs

------
#### [ Console ]

**Untuk melihat daftar geofences menggunakan konsol Lokasi Amazon**

1. Buka konsol Lokasi Amazon di [https://console.aws.amazon.com/location/](https://console.aws.amazon.com/location/home).

1. Pilih **koleksi Geofence** dari panel navigasi kiri.

1. Di bawah **Koleksi geofence saya**, pilih tautan nama koleksi geofence target.

1. **Lihat geofences dalam koleksi geofence di bawah Geofences**

------
#### [ API ]

Gunakan `[ListGeofences](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_ListGeofences.html)` operasi dari Amazon Location Geofences APIs. 

Contoh berikut adalah permintaan API untuk mendapatkan daftar geofences yang disimpan dalam koleksi geofence. *ExampleCollection* 

```
POST /geofencing/v0/collections/ExampleCollection/list-geofences
```

Berikut ini adalah contoh respons untuk`ListGeofences`:

```
{
   "Entries": [ 
      { 
         "CreateTime": 2020-09-30T22:59:34.142Z,
         "GeofenceId": "geofence-1",
         "Geometry": { 
             "Polygon": [            
                 [-5.716667, -15.933333,
                 [-14.416667, -7.933333],
                 [-12.316667, -37.066667],
                 [-5.716667, -15.933333]
             ]
         },
         "Status": "ACTIVE",
         "UpdateTime": 2020-09-30T23:59:34.142Z
      }
   ],
   "NextToken": "1234-5678-9012"
}
```

------
#### [ CLI ]

Gunakan perintah `[list-geofences](https://docs.aws.amazon.com/cli/latest/reference/location/list-geofences.html)`.

Contoh berikut adalah AWS CLI untuk mendapatkan daftar geofences yang disimpan dalam koleksi geofence. *ExampleCollection* 

```
aws location list-geofences \
    --collection-name "ExampleCollection"
```

------

## Dapatkan detail geofence
<a name="get-geofence-details"></a>

Anda bisa mendapatkan detail geofence tertentu, seperti waktu pembuatan, waktu pembaruan, geometri, dan status, dari koleksi geofence menggunakan konsol Lokasi Amazon, AWS CLI atau Lokasi Amazon. APIs

------
#### [ Console ]

**Untuk melihat status geofence menggunakan konsol Lokasi Amazon**

1. Buka konsol Lokasi Amazon di [https://console.aws.amazon.com/location/](https://console.aws.amazon.com/location/home).

1. Pilih **koleksi Geofence** dari panel navigasi kiri.

1. Di bawah **Koleksi geofence saya**, pilih tautan nama koleksi geofence target.

1. Di bawah **Geofences**, Anda akan dapat melihat status geofences Anda.

------
#### [ API ]

Gunakan `[GetGeofence](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_GetGeofence.html)` operasi dari Amazon Location Geofences APIs. 

Contoh berikut adalah permintaan API untuk mendapatkan detail geofence dari koleksi geofence. *ExampleCollection*

```
GET /geofencing/v0/collections/ExampleCollection/geofences/ExampleGeofence1
```

Berikut ini adalah contoh respons untuk`GetGeofence`:

```
{
   "CreateTime": 2020-09-30T22:59:34.142Z,
   "GeofenceId": "ExampleGeofence1",
   "Geometry": { 
      "Polygon": [            
          [-1,-1],
          [1,-1],
          [0,1],
          [-1,-1] 
      ]
   },
   "Status": "ACTIVE",
   "UpdateTime": 2020-09-30T23:59:34.142Z
}
```

------
#### [ CLI ]

Gunakan perintah `[get-geofence](https://docs.aws.amazon.com/cli/latest/reference/location/get-geofence.html)`.

Contoh berikut adalah AWS CLI untuk mendapatkan detail koleksi geofence untuk. *ExampleCollection*

```
aws location get-geofence \
    --collection-name "ExampleCollection" \
    --geofence-id "ExampleGeofence1"
```

------

## Hapus geofences
<a name="delete-geofence"></a>

Anda dapat menghapus geofences dari koleksi geofence menggunakan konsol Lokasi Amazon, lokasi, AWS CLI atau Amazon Location. APIs

------
#### [ Console ]

**Untuk menghapus geofence menggunakan konsol Lokasi Amazon**

**Awas**  
Operasi ini menghapus sumber daya secara permanen. 

 

1. Buka konsol Lokasi Amazon di [https://console.aws.amazon.com/location/](https://console.aws.amazon.com/location/home).

1. Pilih **koleksi Geofence** dari panel navigasi kiri.

1. Di bawah **Koleksi geofence saya**, pilih tautan nama koleksi geofence target.

1. Di bawah **Geofences**, pilih geofence target.

1. Pilih **Hapus geofence**.

------
#### [ API ]

Gunakan `[BatchDeleteGeofence](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_BatchDeleteGeofence.html)` operasi dari Amazon Location Geofences APIs. 

Contoh berikut adalah permintaan API untuk menghapus geofences dari koleksi geofence. *ExampleCollection*

```
POST /geofencing/v0/collections/ExampleCollection/delete-geofences
Content-type: application/json

{
   "GeofenceIds": [ "ExampleGeofence11" ]
}
```

Berikut ini adalah contoh respon sukses untuk`[BatchDeleteGeofence](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_BatchDeleteGeofence.html)`. 

```
HTTP/1.1 200
```

------
#### [ CLI ]

Gunakan perintah `[batch-delete-geofence](https://docs.aws.amazon.com/cli/latest/reference/location/batch-delete-geofence.html)`.

Contoh berikut adalah AWS CLI perintah untuk menghapus geofences dari koleksi geofence. *ExampleCollection*

```
aws location batch-delete-geofence \
    --collection-name "ExampleCollection" \
    --geofence-ids "ExampleGeofence11"
```

------