

Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh [SDK AWS Doc](https://github.com/awsdocs/aws-doc-sdk-examples). GitHub 

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

# Gunakan `ResetNetworkInterfaceAttribute` dengan CLI
<a name="ec2_example_ec2_ResetNetworkInterfaceAttribute_section"></a>

Contoh kode berikut menunjukkan cara menggunakan`ResetNetworkInterfaceAttribute`.

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

**AWS CLI**  
**Untuk mengatur ulang atribut antarmuka jaringan**  
`reset-network-interface-attribute`Contoh berikut me-reset nilai atribut source/destination pemeriksaan ke`true`.  

```
aws ec2 reset-network-interface-attribute \
    --network-interface-id eni-686ea200 \
    --source-dest-check
```
Perintah ini tidak menghasilkan output.  
+  Untuk detail API, lihat [ResetNetworkInterfaceAttribute](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/reset-network-interface-attribute.html)di *Referensi AWS CLI Perintah*. 

------
#### [ PowerShell ]

**Alat untuk PowerShell V4**  
**Contoh 1: Contoh ini mengatur ulang source/destination pemeriksaan antarmuka jaringan yang ditentukan.**  

```
Reset-EC2NetworkInterfaceAttribute -NetworkInterfaceId eni-1a2b3c4d -SourceDestCheck
```
+  Untuk detail API, lihat [ResetNetworkInterfaceAttribute](https://docs.aws.amazon.com/powershell/v4/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V4)*. 

**Alat untuk PowerShell V5**  
**Contoh 1: Contoh ini mengatur ulang source/destination pemeriksaan antarmuka jaringan yang ditentukan.**  

```
Reset-EC2NetworkInterfaceAttribute -NetworkInterfaceId eni-1a2b3c4d -SourceDestCheck
```
+  Untuk detail API, lihat [ResetNetworkInterfaceAttribute](https://docs.aws.amazon.com/powershell/v5/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V5)*. 

------