Safe Haskell | None |
---|---|
Language | Haskell2010 |
Gets the console output for the specified instance.
Instances do not have a physical monitor through which you can view their console output. They also lack physical controls that allow you to power up, reboot, or shut them down. To allow these actions, we provide them through the Amazon EC2 API and command line interface.
Instance console output is buffered and posted shortly after instance boot, reboot, and termination. Amazon EC2 preserves the most recent 64 KB output which is available for at least one hour after the most recent post.
For Linux/Unix instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a machine. This output is buffered because the instance produces it and then posts it to a store where the instance's owner can retrieve it.
For Windows instances, the instance console output displays the last three system event log errors.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-GetConsoleOutput.html
- data GetConsoleOutput
- getConsoleOutput :: Text -> GetConsoleOutput
- gcoDryRun :: Lens' GetConsoleOutput (Maybe Bool)
- gcoInstanceId :: Lens' GetConsoleOutput Text
- data GetConsoleOutputResponse
- getConsoleOutputResponse :: GetConsoleOutputResponse
- gcorInstanceId :: Lens' GetConsoleOutputResponse (Maybe Text)
- gcorOutput :: Lens' GetConsoleOutputResponse (Maybe Text)
- gcorTimestamp :: Lens' GetConsoleOutputResponse (Maybe UTCTime)
Request
data GetConsoleOutput Source
Request constructor
GetConsoleOutput
constructor.
The fields accessible through corresponding lenses are:
gcoDryRun
::
Maybe
Bool
gcoInstanceId
::
Text
Request lenses
gcoInstanceId :: Lens' GetConsoleOutput Text Source
The ID of the instance.
Response
Response constructor
getConsoleOutputResponse :: GetConsoleOutputResponse Source
GetConsoleOutputResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
gcorInstanceId :: Lens' GetConsoleOutputResponse (Maybe Text) Source
The ID of the instance.
gcorOutput :: Lens' GetConsoleOutputResponse (Maybe Text) Source
The console output, Base64 encoded.
gcorTimestamp :: Lens' GetConsoleOutputResponse (Maybe UTCTime) Source
The time the output was last updated.