{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.ec2instanceconnect#AWSEC2InstanceConnectService": { "type": "service", "version": "2018-04-02", "operations": [ { "target": "com.amazonaws.ec2instanceconnect#SendSerialConsoleSSHPublicKey" }, { "target": "com.amazonaws.ec2instanceconnect#SendSSHPublicKey" } ], "traits": { "aws.api#service": { "sdkId": "EC2 Instance Connect", "arnNamespace": "ec2-instance-connect", "cloudFormationName": "EC2InstanceConnect", "cloudTrailEventSource": "ec2instanceconnect.amazonaws.com", "endpointPrefix": "ec2-instance-connect" }, "aws.auth#sigv4": { "name": "ec2-instance-connect" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "

Amazon EC2 Instance Connect enables system administrators to publish one-time use SSH\n public keys to EC2, providing users a simple and secure way to connect to their\n instances.

", "smithy.api#title": "AWS EC2 Instance Connect" } }, "com.amazonaws.ec2instanceconnect#AuthException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

Either your AWS credentials are not valid or you do not have access to the EC2 instance.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.ec2instanceconnect#AvailabilityZone": { "type": "string", "traits": { "smithy.api#length": { "min": 6, "max": 32 }, "smithy.api#pattern": "^(\\w+-){2,3}\\d+\\w+$" } }, "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

The specified instance was not found.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

The instance type is not supported for connecting via the serial console. Only Nitro\n instance types are currently supported.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ec2instanceconnect#InstanceId": { "type": "string", "traits": { "smithy.api#length": { "min": 10, "max": 32 }, "smithy.api#pattern": "^i-[a-f0-9]+$" } }, "com.amazonaws.ec2instanceconnect#InstanceOSUser": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 32 }, "smithy.api#pattern": "^[A-Za-z_][A-Za-z0-9\\@\\._-]{0,30}[A-Za-z0-9\\$_-]?$" } }, "com.amazonaws.ec2instanceconnect#InvalidArgsException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

One of the parameters is not valid.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ec2instanceconnect#RequestId": { "type": "string" }, "com.amazonaws.ec2instanceconnect#SSHPublicKey": { "type": "string", "traits": { "smithy.api#length": { "min": 256, "max": 4096 } } }, "com.amazonaws.ec2instanceconnect#SendSSHPublicKey": { "type": "operation", "input": { "target": "com.amazonaws.ec2instanceconnect#SendSSHPublicKeyRequest" }, "output": { "target": "com.amazonaws.ec2instanceconnect#SendSSHPublicKeyResponse" }, "errors": [ { "target": "com.amazonaws.ec2instanceconnect#AuthException" }, { "target": "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException" }, { "target": "com.amazonaws.ec2instanceconnect#InvalidArgsException" }, { "target": "com.amazonaws.ec2instanceconnect#ServiceException" }, { "target": "com.amazonaws.ec2instanceconnect#ThrottlingException" } ], "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.ec2instanceconnect#SendSSHPublicKeyRequest": { "type": "structure", "members": { "InstanceId": { "target": "com.amazonaws.ec2instanceconnect#InstanceId", "traits": { "smithy.api#documentation": "

The ID of the EC2 instance.

", "smithy.api#required": {} } }, "InstanceOSUser": { "target": "com.amazonaws.ec2instanceconnect#InstanceOSUser", "traits": { "smithy.api#documentation": "

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

", "smithy.api#required": {} } }, "SSHPublicKey": { "target": "com.amazonaws.ec2instanceconnect#SSHPublicKey", "traits": { "smithy.api#documentation": "

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

", "smithy.api#required": {} } }, "AvailabilityZone": { "target": "com.amazonaws.ec2instanceconnect#AvailabilityZone", "traits": { "smithy.api#documentation": "

The Availability Zone in which the EC2 instance was launched.

", "smithy.api#required": {} } } } }, "com.amazonaws.ec2instanceconnect#SendSSHPublicKeyResponse": { "type": "structure", "members": { "RequestId": { "target": "com.amazonaws.ec2instanceconnect#RequestId", "traits": { "smithy.api#documentation": "

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

" } }, "Success": { "target": "com.amazonaws.ec2instanceconnect#Success", "traits": { "smithy.api#documentation": "

Is true if the request succeeds and an error otherwise.

" } } } }, "com.amazonaws.ec2instanceconnect#SendSerialConsoleSSHPublicKey": { "type": "operation", "input": { "target": "com.amazonaws.ec2instanceconnect#SendSerialConsoleSSHPublicKeyRequest" }, "output": { "target": "com.amazonaws.ec2instanceconnect#SendSerialConsoleSSHPublicKeyResponse" }, "errors": [ { "target": "com.amazonaws.ec2instanceconnect#AuthException" }, { "target": "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException" }, { "target": "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException" }, { "target": "com.amazonaws.ec2instanceconnect#InvalidArgsException" }, { "target": "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException" }, { "target": "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException" }, { "target": "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException" }, { "target": "com.amazonaws.ec2instanceconnect#ServiceException" }, { "target": "com.amazonaws.ec2instanceconnect#ThrottlingException" } ], "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.ec2instanceconnect#SendSerialConsoleSSHPublicKeyRequest": { "type": "structure", "members": { "InstanceId": { "target": "com.amazonaws.ec2instanceconnect#InstanceId", "traits": { "smithy.api#documentation": "

The ID of the EC2 instance.

", "smithy.api#required": {} } }, "SerialPort": { "target": "com.amazonaws.ec2instanceconnect#SerialPort", "traits": { "smithy.api#documentation": "

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

\n

Default: 0

" } }, "SSHPublicKey": { "target": "com.amazonaws.ec2instanceconnect#SSHPublicKey", "traits": { "smithy.api#documentation": "

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

", "smithy.api#required": {} } } } }, "com.amazonaws.ec2instanceconnect#SendSerialConsoleSSHPublicKeyResponse": { "type": "structure", "members": { "RequestId": { "target": "com.amazonaws.ec2instanceconnect#RequestId", "traits": { "smithy.api#documentation": "

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

" } }, "Success": { "target": "com.amazonaws.ec2instanceconnect#Success", "traits": { "smithy.api#documentation": "

Is true if the request succeeds and an error otherwise.

" } } } }, "com.amazonaws.ec2instanceconnect#SerialConsoleAccessDisabledException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

Your account is not authorized to use the EC2 Serial Console. To authorize your\n account, run the EnableSerialConsoleAccess API. For more information, see\n EnableSerialConsoleAccess in the Amazon EC2 API Reference.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.ec2instanceconnect#SerialConsoleSessionLimitExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

The instance currently has 1 active serial console session. Only 1 session is supported at a time.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.ec2instanceconnect#SerialConsoleSessionUnavailableException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

Unable to start a serial console session. Please try again.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.ec2instanceconnect#SerialPort": { "type": "integer", "traits": { "smithy.api#range": { "min": 0, "max": 0 } } }, "com.amazonaws.ec2instanceconnect#ServiceException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

The service encountered an error. Follow the instructions in the error message and try again.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.ec2instanceconnect#String": { "type": "string" }, "com.amazonaws.ec2instanceconnect#Success": { "type": "boolean" }, "com.amazonaws.ec2instanceconnect#ThrottlingException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.ec2instanceconnect#String" } }, "traits": { "smithy.api#documentation": "

The requests were made too frequently and have been throttled. Wait a while and try again. \n To increase the limit on your request frequency, contact AWS Support.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } } } }