# 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/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::DatabaseMigrationService # When DatabaseMigrationService returns an error response, the Ruby SDK constructs and raises an error. # These errors all extend Aws::DatabaseMigrationService::Errors::ServiceError < {Aws::Errors::ServiceError} # # You can rescue all DatabaseMigrationService errors using ServiceError: # # begin # # do stuff # rescue Aws::DatabaseMigrationService::Errors::ServiceError # # rescues all DatabaseMigrationService API errors # end # # # ## Request Context # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns # information about the request that generated the error. # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {AccessDeniedFault} # * {InsufficientResourceCapacityFault} # * {InvalidCertificateFault} # * {InvalidResourceStateFault} # * {InvalidSubnet} # * {KMSAccessDeniedFault} # * {KMSDisabledFault} # * {KMSFault} # * {KMSInvalidStateFault} # * {KMSKeyNotAccessibleFault} # * {KMSNotFoundFault} # * {KMSThrottlingFault} # * {ReplicationSubnetGroupDoesNotCoverEnoughAZs} # * {ResourceAlreadyExistsFault} # * {ResourceNotFoundFault} # * {ResourceQuotaExceededFault} # * {S3AccessDeniedFault} # * {S3ResourceNotFoundFault} # * {SNSInvalidTopicFault} # * {SNSNoAuthorizationFault} # * {StorageQuotaExceededFault} # * {SubnetAlreadyInUse} # * {UpgradeDependencyFailureFault} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors extend Aws::Errors::DynamicErrors class AccessDeniedFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::AccessDeniedFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InsufficientResourceCapacityFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::InsufficientResourceCapacityFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidCertificateFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::InvalidCertificateFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidResourceStateFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::InvalidResourceStateFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidSubnet < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::InvalidSubnet] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class KMSAccessDeniedFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::KMSAccessDeniedFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class KMSDisabledFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::KMSDisabledFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class KMSFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::KMSFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class KMSInvalidStateFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::KMSInvalidStateFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class KMSKeyNotAccessibleFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::KMSKeyNotAccessibleFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class KMSNotFoundFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::KMSNotFoundFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class KMSThrottlingFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::KMSThrottlingFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ReplicationSubnetGroupDoesNotCoverEnoughAZs < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::ReplicationSubnetGroupDoesNotCoverEnoughAZs] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceAlreadyExistsFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::ResourceAlreadyExistsFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end # @return [String] def resource_arn @data[:resource_arn] end end class ResourceNotFoundFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::ResourceNotFoundFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceQuotaExceededFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::ResourceQuotaExceededFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class S3AccessDeniedFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::S3AccessDeniedFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class S3ResourceNotFoundFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::S3ResourceNotFoundFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class SNSInvalidTopicFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::SNSInvalidTopicFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class SNSNoAuthorizationFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::SNSNoAuthorizationFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class StorageQuotaExceededFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::StorageQuotaExceededFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class SubnetAlreadyInUse < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::SubnetAlreadyInUse] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class UpgradeDependencyFailureFault < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::DatabaseMigrationService::Types::UpgradeDependencyFailureFault] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end end end