Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves the encrypted administrator password for an instance running Windows.
The Windows password is generated at boot if the EC2Config
service
plugin, Ec2SetPassword
, is enabled. This usually only happens the
first time an AMI is launched, and then Ec2SetPassword
is
automatically disabled. The password is not generated for rebundled AMIs
unless Ec2SetPassword
is enabled before bundling.
The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.
Password generation and encryption takes a few moments. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.
See: AWS API Reference for GetPasswordData.
- getPasswordData :: Text -> GetPasswordData
- data GetPasswordData
- gpdDryRun :: Lens' GetPasswordData (Maybe Bool)
- gpdInstanceId :: Lens' GetPasswordData Text
- getPasswordDataResponse :: Int -> Text -> Text -> UTCTime -> GetPasswordDataResponse
- data GetPasswordDataResponse
- gpdrsStatus :: Lens' GetPasswordDataResponse Int
- gpdrsInstanceId :: Lens' GetPasswordDataResponse Text
- gpdrsPasswordData :: Lens' GetPasswordDataResponse Text
- gpdrsTimestamp :: Lens' GetPasswordDataResponse UTCTime
Creating a Request
Creates a value of GetPasswordData
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetPasswordData Source
See: getPasswordData
smart constructor.
Request Lenses
gpdDryRun :: Lens' GetPasswordData (Maybe Bool) Source
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
gpdInstanceId :: Lens' GetPasswordData Text Source
The ID of the Windows instance.
Destructuring the Response
getPasswordDataResponse Source
:: Int | |
-> Text | |
-> Text | |
-> UTCTime | |
-> GetPasswordDataResponse |
Creates a value of GetPasswordDataResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetPasswordDataResponse Source
See: getPasswordDataResponse
smart constructor.
Response Lenses
gpdrsStatus :: Lens' GetPasswordDataResponse Int Source
The response status code.
gpdrsInstanceId :: Lens' GetPasswordDataResponse Text Source
The ID of the Windows instance.
gpdrsPasswordData :: Lens' GetPasswordDataResponse Text Source
The password of the instance.
gpdrsTimestamp :: Lens' GetPasswordDataResponse UTCTime Source
The time the data was last updated.