enable_serial_console_access

EC2.Client.enable_serial_console_access(**kwargs)

Enables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide .

See also: AWS API Documentation

Request Syntax

response = client.enable_serial_console_access(
    DryRun=True|False
)
Parameters
DryRun (boolean) -- 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 .
Return type
dict
Returns
Response Syntax
{
    'SerialConsoleAccessEnabled': True|False
}

Response Structure

  • (dict) --
    • SerialConsoleAccessEnabled (boolean) --

      If true , access to the EC2 serial console of all instances is enabled for your account. If false , access to the EC2 serial console of all instances is disabled for your account.