AWS SDK for .NET Documentation
GetPasswordData Method (request)
AmazonAmazon.EC2AmazonEC2ClientGetPasswordData(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#
public 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

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