lib/aws-sdk-fsx/errors.rb in aws-sdk-fsx-1.35.0 vs lib/aws-sdk-fsx/errors.rb in aws-sdk-fsx-1.36.0
- old
+ new
@@ -26,29 +26,35 @@
# information about the request that generated the error.
# See {Seahorse::Client::RequestContext} for more information.
#
# ## Error Classes
# * {ActiveDirectoryError}
+ # * {BackupBeingCopied}
# * {BackupInProgress}
# * {BackupNotFound}
# * {BackupRestoring}
# * {BadRequest}
# * {DataRepositoryTaskEnded}
# * {DataRepositoryTaskExecuting}
# * {DataRepositoryTaskNotFound}
# * {FileSystemNotFound}
# * {IncompatibleParameterError}
+ # * {IncompatibleRegionForMultiAZ}
# * {InternalServerError}
+ # * {InvalidDestinationKmsKey}
# * {InvalidExportPath}
# * {InvalidImportPath}
# * {InvalidNetworkSettings}
# * {InvalidPerUnitStorageThroughput}
+ # * {InvalidRegion}
+ # * {InvalidSourceKmsKey}
# * {MissingFileSystemConfiguration}
# * {NotServiceResourceError}
# * {ResourceDoesNotSupportTagging}
# * {ResourceNotFound}
# * {ServiceLimitExceeded}
+ # * {SourceBackupUnavailable}
# * {UnsupportedOperation}
#
# Additionally, error classes are dynamically generated for service errors based on the error code
# if they are not defined above.
module Errors
@@ -78,10 +84,30 @@
def message
@message || @data[:message]
end
end
+ class BackupBeingCopied < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::FSx::Types::BackupBeingCopied] 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 backup_id
+ @data[:backup_id]
+ end
+ end
+
class BackupInProgress < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::FSx::Types::BackupInProgress] data
@@ -223,10 +249,25 @@
def message
@message || @data[:message]
end
end
+ class IncompatibleRegionForMultiAZ < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::FSx::Types::IncompatibleRegionForMultiAZ] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
class InternalServerError < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::FSx::Types::InternalServerError] data
@@ -238,10 +279,25 @@
def message
@message || @data[:message]
end
end
+ class InvalidDestinationKmsKey < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::FSx::Types::InvalidDestinationKmsKey] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
class InvalidExportPath < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::FSx::Types::InvalidExportPath] data
@@ -308,10 +364,40 @@
def message
@message || @data[:message]
end
end
+ class InvalidRegion < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::FSx::Types::InvalidRegion] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
+ class InvalidSourceKmsKey < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::FSx::Types::InvalidSourceKmsKey] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
class MissingFileSystemConfiguration < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::FSx::Types::MissingFileSystemConfiguration] data
@@ -400,9 +486,29 @@
end
# @return [String]
def message
@message || @data[:message]
+ end
+ end
+
+ class SourceBackupUnavailable < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::FSx::Types::SourceBackupUnavailable] 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 backup_id
+ @data[:backup_id]
end
end
class UnsupportedOperation < ServiceError