Class DestinationTable
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DestinationTable.Builder,DestinationTable>
The table that a migration creates in a table bucket and migrates the source into.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DestinationTable.Builderbuilder()final EncryptionConfigurationThe encryption configuration for the table.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()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final IcebergSortOrderThe sort order of the rows within each data file that the migration writes.final Stringname()The name of the table to create.final StringThe namespace to create the table in.final MigrationTablePropertiesThe properties of the destination table, such as its Iceberg format version and the format of its data files.final IcebergSchemaV2schema()The schema of the table to create.static Class<? extends DestinationTable.Builder> The storage class configuration for the table.final StringThe Amazon Resource Name (ARN) of the table bucket to create the table in.tags()The tags to add to the table.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
-
tableBucketARN
The Amazon Resource Name (ARN) of the table bucket to create the table in.
- Returns:
- The Amazon Resource Name (ARN) of the table bucket to create the table in.
-
namespace
The namespace to create the table in.
- Returns:
- The namespace to create the table in.
-
name
The name of the table to create.
- Returns:
- The name of the table to create.
-
encryptionConfiguration
The encryption configuration for the table. If you don't specify one, the table uses the default encryption configuration of its table bucket. If you specify an encryption configuration, the migration role must have the
s3tables:PutTableEncryptionpermission. If you choose SSE-KMS, the migration role must have thekms:DescribeKey,kms:GenerateDataKeyandkms:Decryptpermissions on the KMS key, and the S3 Tables maintenance principal must have access to it. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption.- Returns:
- The encryption configuration for the table. If you don't specify one, the table uses the default
encryption configuration of its table bucket. If you specify an encryption configuration, the migration
role must have the
s3tables:PutTableEncryptionpermission. If you choose SSE-KMS, the migration role must have thekms:DescribeKey,kms:GenerateDataKeyandkms:Decryptpermissions on the KMS key, and the S3 Tables maintenance principal must have access to it. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption.
-
storageClassConfiguration
The storage class configuration for the table. If you don't specify one, the table inherits the storage class configuration of its table bucket. If you specify a storage class configuration, the migration role must have the
s3tables:PutTableStorageClasspermission.- Returns:
- The storage class configuration for the table. If you don't specify one, the table inherits the storage
class configuration of its table bucket. If you specify a storage class configuration, the migration role
must have the
s3tables:PutTableStorageClasspermission.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
The tags to add to the table. A tag is a key-value pair that you apply to your resources. For more information, see Tagging for cost allocation or attribute-based access control (ABAC). If you specify tags, the migration role must have the
s3tables:TagResourcepermission.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- The tags to add to the table. A tag is a key-value pair that you apply to your resources. For more
information, see Tagging for
cost allocation or attribute-based access control (ABAC). If you specify tags, the migration role
must have the
s3tables:TagResourcepermission.
-
properties
The properties of the destination table, such as its Iceberg format version and the format of its data files.
- Returns:
- The properties of the destination table, such as its Iceberg format version and the format of its data files.
-
schema
The schema of the table to create. If you don't specify a schema, the migration infers it from the source table, with every column optional. A schema that you specify must include every partition column of the source table. It can leave out other columns only if
unmatchedSourceFieldsPolicyisdrop. A struct column must have the same fields as the source column. Column default values aren't supported. If you mark a column as required, every source object must have a value for it: an object with a null value in a required column fails to migrate. The destination table is partitioned in the same way as the source table. To specify fields inicebergSortOrder, you must specify a schema.- Returns:
- The schema of the table to create. If you don't specify a schema, the migration infers it from the source
table, with every column optional. A schema that you specify must include every partition column of the
source table. It can leave out other columns only if
unmatchedSourceFieldsPolicyisdrop. A struct column must have the same fields as the source column. Column default values aren't supported. If you mark a column as required, every source object must have a value for it: an object with a null value in a required column fails to migrate. The destination table is partitioned in the same way as the source table. To specify fields inicebergSortOrder, you must specify a schema.
-
icebergSortOrder
The sort order of the rows within each data file that the migration writes. A sort order can have up to five fields, each naming a column of the schema that you specify by its field ID, so to use a sort order you must specify a schema.
StartTableMigrationrejects a field that names no column of the schema, or whose transform doesn't fit the column's type.- Returns:
- The sort order of the rows within each data file that the migration writes. A sort order can have up to
five fields, each naming a column of the schema that you specify by its field ID, so to use a sort order
you must specify a schema.
StartTableMigrationrejects a field that names no column of the schema, or whose transform doesn't fit the column's type.
-
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<DestinationTable.Builder,DestinationTable> - 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.
-