AWS SDK for .NET Documentation
GetPasswordDataRequest Class
AmazonAmazon.EC2.ModelGetPasswordDataRequest 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 class GetPasswordDataRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
GetPasswordDataRequest()()()()
Initializes a new instance of the GetPasswordDataRequest class

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InstanceId
The ID of the instance for which to get the password.

IsSetInstanceId()()()()
Checks if InstanceId property is set

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithInstanceId(String) Obsolete.
Sets the ID of the instance for which to get the password.

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.
Inheritance Hierarchy
Object
EC2Request
 GetPasswordDataRequest

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