Retrieves the encrypted administrator password for the instances running Windows.
Declaration Syntax
C# |
GetPasswordDataResponse GetPasswordData( GetPasswordDataRequest request )
Parameters
- request (GetPasswordDataRequest)
- Get Password Data request
Return Value
Get Password Data Response from the service
Remarks
The Windows password is only generated the first time an AMI is launched.
It is not generated for rebundled AMIs or after the password is
changed on an instance.
The password is encrypted using the key pair that you
provided.
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |