Scalr\Service\Aws\Ec2\DataType\InstanceData::getPasswordData PHP Method

getPasswordData() public method

Retrieves the encrypted administrator password for an instance 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.
public getPasswordData ( ) : GetPasswordDataResponseData
return GetPasswordDataResponseData Returns object which represents console output.
    public function getPasswordData()
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getEc2()->instance->getPasswordData($this->instanceId);
    }