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 |
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 instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. 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 includes output from the EC2Config service.
See: AWS API Reference for GetConsoleOutput.
- getConsoleOutput :: Text -> GetConsoleOutput
- data GetConsoleOutput
- gcoDryRun :: Lens' GetConsoleOutput (Maybe Bool)
- gcoInstanceId :: Lens' GetConsoleOutput Text
- getConsoleOutputResponse :: Int -> GetConsoleOutputResponse
- data GetConsoleOutputResponse
- gcorsInstanceId :: Lens' GetConsoleOutputResponse (Maybe Text)
- gcorsOutput :: Lens' GetConsoleOutputResponse (Maybe Text)
- gcorsTimestamp :: Lens' GetConsoleOutputResponse (Maybe UTCTime)
- gcorsStatus :: Lens' GetConsoleOutputResponse Int
Creating a Request
Creates a value of GetConsoleOutput
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetConsoleOutput Source
See: getConsoleOutput
smart constructor.
Request Lenses
gcoDryRun :: Lens' GetConsoleOutput (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
.
gcoInstanceId :: Lens' GetConsoleOutput Text Source
The ID of the instance.
Destructuring the Response
getConsoleOutputResponse Source
Creates a value of GetConsoleOutputResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetConsoleOutputResponse Source
See: getConsoleOutputResponse
smart constructor.
Response Lenses
gcorsInstanceId :: Lens' GetConsoleOutputResponse (Maybe Text) Source
The ID of the instance.
gcorsOutput :: Lens' GetConsoleOutputResponse (Maybe Text) Source
The console output, Base64 encoded.
gcorsTimestamp :: Lens' GetConsoleOutputResponse (Maybe UTCTime) Source
The time the output was last updated.
gcorsStatus :: Lens' GetConsoleOutputResponse Int Source
The response status code.