lib/aws-sdk-ec2instanceconnect/errors.rb in aws-sdk-ec2instanceconnect-1.13.0 vs lib/aws-sdk-ec2instanceconnect/errors.rb in aws-sdk-ec2instanceconnect-1.14.0

- old
+ new

@@ -27,11 +27,15 @@ # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {AuthException} # * {EC2InstanceNotFoundException} + # * {EC2InstanceTypeInvalidException} # * {InvalidArgsException} + # * {SerialConsoleAccessDisabledException} + # * {SerialConsoleSessionLimitExceededException} + # * {SerialConsoleSessionUnavailableException} # * {ServiceException} # * {ThrottlingException} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. @@ -67,14 +71,74 @@ def message @message || @data[:message] end end + class EC2InstanceTypeInvalidException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::EC2InstanceConnect::Types::EC2InstanceTypeInvalidException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + class InvalidArgsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::EC2InstanceConnect::Types::InvalidArgsException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class SerialConsoleAccessDisabledException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::EC2InstanceConnect::Types::SerialConsoleAccessDisabledException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class SerialConsoleSessionLimitExceededException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::EC2InstanceConnect::Types::SerialConsoleSessionLimitExceededException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class SerialConsoleSessionUnavailableException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::EC2InstanceConnect::Types::SerialConsoleSessionUnavailableException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]