Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
Gunakan DeleteLaunchConfiguration dengan CLI
Contoh kode berikut menunjukkan cara menggunakanDeleteLaunchConfiguration.
- CLI
-
- AWS CLI
-
Untuk menghapus konfigurasi peluncuran
Contoh ini menghapus konfigurasi peluncuran yang ditentukan.
aws autoscaling delete-launch-configuration \ --launch-configuration-namemy-launch-configPerintah ini tidak menghasilkan output.
Untuk informasi selengkapnya, lihat Menghapus infrastruktur Auto Scaling di Panduan Pengguna Amazon Auto EC2 Scaling.
-
Untuk detail API, lihat DeleteLaunchConfiguration
di Referensi AWS CLI Perintah.
-
- PowerShell
-
- Alat untuk PowerShell V4
-
Contoh 1: Contoh ini menghapus konfigurasi peluncuran yang ditentukan jika tidak dilampirkan ke grup Auto Scaling. Anda diminta untuk konfirmasi sebelum operasi berlangsung.
Remove-ASLaunchConfiguration -LaunchConfigurationName my-lcOutput:
Confirm Are you sure you want to perform this action? Performing operation "Remove-ASLaunchConfiguration (DeleteLaunchConfiguration)" on Target "my-lc". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):Contoh 2: Jika Anda menentukan parameter Force, Anda tidak diminta untuk konfirmasi sebelum operasi berlangsung.
Remove-ASLaunchConfiguration -LaunchConfigurationName my-lc -Force-
Untuk detail API, lihat DeleteLaunchConfigurationdi Referensi Alat AWS untuk PowerShell Cmdlet (V4).
-
- Alat untuk PowerShell V5
-
Contoh 1: Contoh ini menghapus konfigurasi peluncuran yang ditentukan jika tidak dilampirkan ke grup Auto Scaling. Anda diminta untuk konfirmasi sebelum operasi berlangsung.
Remove-ASLaunchConfiguration -LaunchConfigurationName my-lcOutput:
Confirm Are you sure you want to perform this action? Performing operation "Remove-ASLaunchConfiguration (DeleteLaunchConfiguration)" on Target "my-lc". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):Contoh 2: Jika Anda menentukan parameter Force, Anda tidak diminta untuk konfirmasi sebelum operasi berlangsung.
Remove-ASLaunchConfiguration -LaunchConfigurationName my-lc -Force-
Untuk detail API, lihat DeleteLaunchConfigurationdi Referensi Alat AWS untuk PowerShell Cmdlet (V5).
-
Untuk daftar lengkap panduan pengembang AWS SDK dan contoh kode, lihatMenggunakan layanan ini dengan AWS SDK. Topik ini juga mencakup informasi tentang memulai dan detail tentang versi SDK sebelumnya.