# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::EC2InstanceConnect # @api private module ClientApi include Seahorse::Model AuthException = Shapes::StructureShape.new(name: 'AuthException') AvailabilityZone = Shapes::StringShape.new(name: 'AvailabilityZone') EC2InstanceNotFoundException = Shapes::StructureShape.new(name: 'EC2InstanceNotFoundException') InstanceId = Shapes::StringShape.new(name: 'InstanceId') InstanceOSUser = Shapes::StringShape.new(name: 'InstanceOSUser') InvalidArgsException = Shapes::StructureShape.new(name: 'InvalidArgsException') RequestId = Shapes::StringShape.new(name: 'RequestId') SSHPublicKey = Shapes::StringShape.new(name: 'SSHPublicKey') SendSSHPublicKeyRequest = Shapes::StructureShape.new(name: 'SendSSHPublicKeyRequest') SendSSHPublicKeyResponse = Shapes::StructureShape.new(name: 'SendSSHPublicKeyResponse') ServiceException = Shapes::StructureShape.new(name: 'ServiceException') String = Shapes::StringShape.new(name: 'String') Success = Shapes::BooleanShape.new(name: 'Success') ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException') AuthException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message")) AuthException.struct_class = Types::AuthException EC2InstanceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message")) EC2InstanceNotFoundException.struct_class = Types::EC2InstanceNotFoundException InvalidArgsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message")) InvalidArgsException.struct_class = Types::InvalidArgsException SendSSHPublicKeyRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId")) SendSSHPublicKeyRequest.add_member(:instance_os_user, Shapes::ShapeRef.new(shape: InstanceOSUser, required: true, location_name: "InstanceOSUser")) SendSSHPublicKeyRequest.add_member(:ssh_public_key, Shapes::ShapeRef.new(shape: SSHPublicKey, required: true, location_name: "SSHPublicKey")) SendSSHPublicKeyRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZone, required: true, location_name: "AvailabilityZone")) SendSSHPublicKeyRequest.struct_class = Types::SendSSHPublicKeyRequest SendSSHPublicKeyResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "RequestId")) SendSSHPublicKeyResponse.add_member(:success, Shapes::ShapeRef.new(shape: Success, location_name: "Success")) SendSSHPublicKeyResponse.struct_class = Types::SendSSHPublicKeyResponse ServiceException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message")) ServiceException.struct_class = Types::ServiceException ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message")) ThrottlingException.struct_class = Types::ThrottlingException # @api private API = Seahorse::Model::Api.new.tap do |api| api.version = "2018-04-02" api.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", } api.add_operation(:send_ssh_public_key, Seahorse::Model::Operation.new.tap do |o| o.name = "SendSSHPublicKey" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: SendSSHPublicKeyRequest) o.output = Shapes::ShapeRef.new(shape: SendSSHPublicKeyResponse) o.errors << Shapes::ShapeRef.new(shape: AuthException) o.errors << Shapes::ShapeRef.new(shape: InvalidArgsException) o.errors << Shapes::ShapeRef.new(shape: ServiceException) o.errors << Shapes::ShapeRef.new(shape: ThrottlingException) o.errors << Shapes::ShapeRef.new(shape: EC2InstanceNotFoundException) end) end end end