{ "version": "2.0", "metadata": { "apiVersion": "2018-04-02", "endpointPrefix": "ec2-instance-connect", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "EC2 Instance Connect", "serviceFullName": "AWS EC2 Instance Connect", "serviceId": "EC2 Instance Connect", "signatureVersion": "v4", "targetPrefix": "AWSEC2InstanceConnectService", "uid": "ec2-instance-connect-2018-04-02" }, "operations": { "SendSSHPublicKey": { "name": "SendSSHPublicKey", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "SendSSHPublicKeyRequest" }, "output": { "shape": "SendSSHPublicKeyResponse" }, "errors": [ { "shape": "AuthException" }, { "shape": "InvalidArgsException" }, { "shape": "ServiceException" }, { "shape": "ThrottlingException" }, { "shape": "EC2InstanceNotFoundException" }, { "shape": "EC2InstanceStateInvalidException" }, { "shape": "EC2InstanceUnavailableException" } ], "documentation": "

Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.

" }, "SendSerialConsoleSSHPublicKey": { "name": "SendSerialConsoleSSHPublicKey", "http": { "method": "POST", "requestUri": "/" }, "input": { "shape": "SendSerialConsoleSSHPublicKeyRequest" }, "output": { "shape": "SendSerialConsoleSSHPublicKeyResponse" }, "errors": [ { "shape": "AuthException" }, { "shape": "SerialConsoleAccessDisabledException" }, { "shape": "InvalidArgsException" }, { "shape": "ServiceException" }, { "shape": "ThrottlingException" }, { "shape": "EC2InstanceNotFoundException" }, { "shape": "EC2InstanceTypeInvalidException" }, { "shape": "SerialConsoleSessionLimitExceededException" }, { "shape": "SerialConsoleSessionUnavailableException" }, { "shape": "EC2InstanceStateInvalidException" }, { "shape": "EC2InstanceUnavailableException" }, { "shape": "SerialConsoleSessionUnsupportedException" } ], "documentation": "

Pushes an SSH public key to the specified EC2 instance. The key remains for 60 seconds, which gives you 60 seconds to establish a serial console connection to the instance using SSH. For more information, see EC2 Serial Console in the Amazon EC2 User Guide.

" } }, "shapes": { "AvailabilityZone": { "type": "string", "max": 32, "min": 6, "pattern": "^(\\w+-){2,3}\\d+\\w+$" }, "InstanceId": { "type": "string", "max": 32, "min": 10, "pattern": "^i-[a-f0-9]+$" }, "InstanceOSUser": { "type": "string", "max": 32, "min": 1, "pattern": "(^[A-Za-z_][A-Za-z0-9\\@\\._-]{0,30}[A-Za-z0-9\\$_-]?$)|(^(?=.{2,32}$)[0-9]{1,32}[A-Za-z\\@\\._-][A-Za-z0-9\\@\\._-]*[A-Za-z0-9\\$_-]?$)" }, "RequestId": { "type": "string" }, "SSHPublicKey": { "type": "string", "max": 4096, "min": 80 }, "SendSSHPublicKeyRequest": { "type": "structure", "required": [ "InstanceId", "InstanceOSUser", "SSHPublicKey" ], "members": { "InstanceId": { "shape": "InstanceId", "documentation": "

The ID of the EC2 instance.

" }, "InstanceOSUser": { "shape": "InstanceOSUser", "documentation": "

The OS user on the EC2 instance for whom the key can be used to authenticate.

" }, "SSHPublicKey": { "shape": "SSHPublicKey", "documentation": "

The public key material. To use the public key, you must have the matching private key.

" }, "AvailabilityZone": { "shape": "AvailabilityZone", "documentation": "

The Availability Zone in which the EC2 instance was launched.

" } } }, "SendSSHPublicKeyResponse": { "type": "structure", "members": { "RequestId": { "shape": "RequestId", "documentation": "

The ID of the request. Please provide this ID when contacting AWS Support for assistance.

" }, "Success": { "shape": "Success", "documentation": "

Is true if the request succeeds and an error otherwise.

" } } }, "SendSerialConsoleSSHPublicKeyRequest": { "type": "structure", "required": [ "InstanceId", "SSHPublicKey" ], "members": { "InstanceId": { "shape": "InstanceId", "documentation": "

The ID of the EC2 instance.

" }, "SerialPort": { "shape": "SerialPort", "documentation": "

The serial port of the EC2 instance. Currently only port 0 is supported.

Default: 0

" }, "SSHPublicKey": { "shape": "SSHPublicKey", "documentation": "

The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.

" } } }, "SendSerialConsoleSSHPublicKeyResponse": { "type": "structure", "members": { "RequestId": { "shape": "RequestId", "documentation": "

The ID of the request. Please provide this ID when contacting AWS Support for assistance.

" }, "Success": { "shape": "Success", "documentation": "

Is true if the request succeeds and an error otherwise.

" } } }, "SerialPort": { "type": "integer", "max": 0, "min": 0 }, "Success": { "type": "boolean" } }, "documentation": "

This is the Amazon EC2 Instance Connect API Reference. It provides descriptions, syntax, and usage examples for each of the actions for Amazon EC2 Instance Connect. Amazon EC2 Instance Connect enables system administrators to publish one-time use SSH public keys to EC2, providing users a simple and secure way to connect to their instances.

To view the Amazon EC2 Instance Connect content in the Amazon EC2 User Guide, see Connect to your Linux instance using EC2 Instance Connect.

For Amazon EC2 APIs, see the Amazon EC2 API Reference.

" }