AWS SDK for .NET Documentation
GetPasswordData Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2 ► GetPasswordData(GetPasswordDataRequest)
Did this page help you? Yes No Tell us about it...
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 |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)