Retrieves the encrypted administrator password for the instances running Windows.
NOTE: 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.
Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public virtual GetPasswordDataResponse GetPasswordData( GetPasswordDataRequest getPasswordDataRequest )
Parameters
- getPasswordDataRequest
-
Type: Amazon.EC2.Model.GetPasswordDataRequest
Container for the necessary parameters to execute the GetPasswordData service method on AmazonEC2.
Return Value
Type: Amazon.EC2.Model.GetPasswordDataResponse
The response from the GetPasswordData service method, as returned by AmazonEC2.
Type: Amazon.EC2.Model.GetPasswordDataResponse
The response from the GetPasswordData service method, as returned by AmazonEC2.
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5