Sono disponibili altri esempi AWS SDK nel repository AWS Doc SDK
Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.
Utilizzare ResetInstanceAttribute
con una CLI
Gli esempi di codice seguenti mostrano come utilizzare ResetInstanceAttribute
.
- AWS CLI
-
Per reimpostare l'attributo sourceDestCheck
Questo esempio reimposta l'
sourceDestCheck
attributo dell'istanza specificata. L'istanza deve trovarsi in un VPC. Se il comando va a buon fine, non viene restituito alcun output.Comando:
aws ec2 reset-instance-attribute --instance-id
i-1234567890abcdef0
--attributesourceDestCheck
Per reimpostare l'attributo del kernel
Questo esempio reimposta l'
kernel
attributo dell'istanza specificata. L'istanza deve essere nello statostopped
. Se il comando va a buon fine, non viene restituito alcun output.Comando:
aws ec2 reset-instance-attribute --instance-id
i-1234567890abcdef0
--attributekernel
Per reimpostare l'attributo ramdisk
Questo esempio reimposta l'
ramdisk
attributo dell'istanza specificata. L'istanza deve essere nello statostopped
. Se il comando va a buon fine, non viene restituito alcun output.Comando:
aws ec2 reset-instance-attribute --instance-id
i-1234567890abcdef0
--attributeramdisk
-
Per i dettagli sull'API, vedere ResetInstanceAttribute
in AWS CLI Command Reference.
-