Class MigrationFailureReason
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MigrationFailureReason.Builder,MigrationFailureReason>
The reason that a migration failed: a code and, when there is one, the resource or reason it applies to. This value
is returned only when the migration is in the failed state.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final MigrationFailureCodecode()The failure code.final StringThe failure code.final Stringdetail()The resource that the failure applies to, such as the role ARN, the Amazon Web Services Glue table (database.table) or a bucket.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends MigrationFailureReason.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
code
The failure code. It names the cause or the report that lists the findings. Valid values:
-
rolePermissions- S3 Tables couldn't assume the migration role, or the role doesn't have a permission that the migration needs.detailis the role ARN. -
sourcePermissions- The migration role couldn't read the Amazon Web Services Glue table or the source objects.detailnames the table (database.table) or the source bucket. -
destinationPermissions- The migration role couldn't write to the table bucket, the destination table or the report bucket.detailnames the destination table or the bucket. -
resourceNotFound- A resource that you specified doesn't exist, such as the Amazon Web Services Glue table, the source bucket, or the report bucket.detailnames it. -
sourceNotSupported- The source table can't be migrated, for example because it is empty, has too many objects, or has columns or partitions that can't be migrated. The table compatibility report lists the findings. -
tableCompatibilityReport- The migration couldn't create the destination table, for example because a table with that name was created while the migration ran, or the KMS key can't be used. For a sync, the destination table changed after the previous migration. The table compatibility report lists the finding. -
objectCompatibilityReport- Some source objects can't be migrated, for example because they are archived, or because they were overwritten after an earlier migration migrated them. The object compatibility report lists them. -
objectMigrationReport- Some source objects failed to migrate. The object migration report lists them and the cause for each. -
reportBucketNotSupported- The report bucket can't receive the migration's reports, for example because it is in a different Region than the table bucket. -
internalError- S3 Tables encountered an internal error. Retry the migration, and contact Amazon Web Services Support if the error persists. A migration that waits in thependingReviewstate for more than 30 days also fails with this code.
If the service returns an enum value that is not available in the current SDK version,
codewill returnMigrationFailureCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The failure code. It names the cause or the report that lists the findings. Valid values:
-
rolePermissions- S3 Tables couldn't assume the migration role, or the role doesn't have a permission that the migration needs.detailis the role ARN. -
sourcePermissions- The migration role couldn't read the Amazon Web Services Glue table or the source objects.detailnames the table (database.table) or the source bucket. -
destinationPermissions- The migration role couldn't write to the table bucket, the destination table or the report bucket.detailnames the destination table or the bucket. -
resourceNotFound- A resource that you specified doesn't exist, such as the Amazon Web Services Glue table, the source bucket, or the report bucket.detailnames it. -
sourceNotSupported- The source table can't be migrated, for example because it is empty, has too many objects, or has columns or partitions that can't be migrated. The table compatibility report lists the findings. -
tableCompatibilityReport- The migration couldn't create the destination table, for example because a table with that name was created while the migration ran, or the KMS key can't be used. For a sync, the destination table changed after the previous migration. The table compatibility report lists the finding. -
objectCompatibilityReport- Some source objects can't be migrated, for example because they are archived, or because they were overwritten after an earlier migration migrated them. The object compatibility report lists them. -
objectMigrationReport- Some source objects failed to migrate. The object migration report lists them and the cause for each. -
reportBucketNotSupported- The report bucket can't receive the migration's reports, for example because it is in a different Region than the table bucket. -
internalError- S3 Tables encountered an internal error. Retry the migration, and contact Amazon Web Services Support if the error persists. A migration that waits in thependingReviewstate for more than 30 days also fails with this code.
-
- See Also:
-
-
codeAsString
The failure code. It names the cause or the report that lists the findings. Valid values:
-
rolePermissions- S3 Tables couldn't assume the migration role, or the role doesn't have a permission that the migration needs.detailis the role ARN. -
sourcePermissions- The migration role couldn't read the Amazon Web Services Glue table or the source objects.detailnames the table (database.table) or the source bucket. -
destinationPermissions- The migration role couldn't write to the table bucket, the destination table or the report bucket.detailnames the destination table or the bucket. -
resourceNotFound- A resource that you specified doesn't exist, such as the Amazon Web Services Glue table, the source bucket, or the report bucket.detailnames it. -
sourceNotSupported- The source table can't be migrated, for example because it is empty, has too many objects, or has columns or partitions that can't be migrated. The table compatibility report lists the findings. -
tableCompatibilityReport- The migration couldn't create the destination table, for example because a table with that name was created while the migration ran, or the KMS key can't be used. For a sync, the destination table changed after the previous migration. The table compatibility report lists the finding. -
objectCompatibilityReport- Some source objects can't be migrated, for example because they are archived, or because they were overwritten after an earlier migration migrated them. The object compatibility report lists them. -
objectMigrationReport- Some source objects failed to migrate. The object migration report lists them and the cause for each. -
reportBucketNotSupported- The report bucket can't receive the migration's reports, for example because it is in a different Region than the table bucket. -
internalError- S3 Tables encountered an internal error. Retry the migration, and contact Amazon Web Services Support if the error persists. A migration that waits in thependingReviewstate for more than 30 days also fails with this code.
If the service returns an enum value that is not available in the current SDK version,
codewill returnMigrationFailureCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The failure code. It names the cause or the report that lists the findings. Valid values:
-
rolePermissions- S3 Tables couldn't assume the migration role, or the role doesn't have a permission that the migration needs.detailis the role ARN. -
sourcePermissions- The migration role couldn't read the Amazon Web Services Glue table or the source objects.detailnames the table (database.table) or the source bucket. -
destinationPermissions- The migration role couldn't write to the table bucket, the destination table or the report bucket.detailnames the destination table or the bucket. -
resourceNotFound- A resource that you specified doesn't exist, such as the Amazon Web Services Glue table, the source bucket, or the report bucket.detailnames it. -
sourceNotSupported- The source table can't be migrated, for example because it is empty, has too many objects, or has columns or partitions that can't be migrated. The table compatibility report lists the findings. -
tableCompatibilityReport- The migration couldn't create the destination table, for example because a table with that name was created while the migration ran, or the KMS key can't be used. For a sync, the destination table changed after the previous migration. The table compatibility report lists the finding. -
objectCompatibilityReport- Some source objects can't be migrated, for example because they are archived, or because they were overwritten after an earlier migration migrated them. The object compatibility report lists them. -
objectMigrationReport- Some source objects failed to migrate. The object migration report lists them and the cause for each. -
reportBucketNotSupported- The report bucket can't receive the migration's reports, for example because it is in a different Region than the table bucket. -
internalError- S3 Tables encountered an internal error. Retry the migration, and contact Amazon Web Services Support if the error persists. A migration that waits in thependingReviewstate for more than 30 days also fails with this code.
-
- See Also:
-
-
detail
The resource that the failure applies to, such as the role ARN, the Amazon Web Services Glue table (
database.table) or a bucket. ForsourceNotSupported, the reason that the source isn't supported, such asEMPTY_TABLE. This value isn't returned for the report codes or forinternalError.- Returns:
- The resource that the failure applies to, such as the role ARN, the Amazon Web Services Glue table (
database.table) or a bucket. ForsourceNotSupported, the reason that the source isn't supported, such asEMPTY_TABLE. This value isn't returned for the report codes or forinternalError.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MigrationFailureReason.Builder,MigrationFailureReason> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-