Interface DestinationTable.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DestinationTable.Builder,,DestinationTable> SdkBuilder<DestinationTable.Builder,,DestinationTable> SdkPojo
- Enclosing class:
DestinationTable
-
Method Summary
Modifier and TypeMethodDescriptiondefault DestinationTable.BuilderencryptionConfiguration(Consumer<EncryptionConfiguration.Builder> encryptionConfiguration) The encryption configuration for the table.encryptionConfiguration(EncryptionConfiguration encryptionConfiguration) The encryption configuration for the table.default DestinationTable.BuildericebergSortOrder(Consumer<IcebergSortOrder.Builder> icebergSortOrder) The sort order of the rows within each data file that the migration writes.icebergSortOrder(IcebergSortOrder icebergSortOrder) The sort order of the rows within each data file that the migration writes.The name of the table to create.The namespace to create the table in.default DestinationTable.Builderproperties(Consumer<MigrationTableProperties.Builder> properties) The properties of the destination table, such as its Iceberg format version and the format of its data files.properties(MigrationTableProperties properties) The properties of the destination table, such as its Iceberg format version and the format of its data files.default DestinationTable.Builderschema(Consumer<IcebergSchemaV2.Builder> schema) The schema of the table to create.schema(IcebergSchemaV2 schema) The schema of the table to create.default DestinationTable.BuilderstorageClassConfiguration(Consumer<StorageClassConfiguration.Builder> storageClassConfiguration) The storage class configuration for the table.storageClassConfiguration(StorageClassConfiguration storageClassConfiguration) The storage class configuration for the table.tableBucketARN(String tableBucketARN) The Amazon Resource Name (ARN) of the table bucket to create the table in.The tags to add to the table.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
tableBucketARN
The Amazon Resource Name (ARN) of the table bucket to create the table in.
- Parameters:
tableBucketARN- The Amazon Resource Name (ARN) of the table bucket to create the table in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
The namespace to create the table in.
- Parameters:
namespace- The namespace to create the table in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the table to create.
- Parameters:
name- The name of the table to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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 thes3tables: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:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfiguration
default DestinationTable.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> 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
This is a convenience method that creates an instance of thes3tables: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.EncryptionConfiguration.Builderavoiding the need to create one manually viaEncryptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toencryptionConfiguration(EncryptionConfiguration).- Parameters:
encryptionConfiguration- a consumer that will call methods onEncryptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageClassConfiguration
DestinationTable.Builder storageClassConfiguration(StorageClassConfiguration 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.- Parameters:
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 thes3tables:PutTableStorageClasspermission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageClassConfiguration
default DestinationTable.Builder storageClassConfiguration(Consumer<StorageClassConfiguration.Builder> 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
This is a convenience method that creates an instance of thes3tables:PutTableStorageClasspermission.StorageClassConfiguration.Builderavoiding the need to create one manually viaStorageClassConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostorageClassConfiguration(StorageClassConfiguration).- Parameters:
storageClassConfiguration- a consumer that will call methods onStorageClassConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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 thes3tables:TagResourcepermission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
The properties of the destination table, such as its Iceberg format version and the format of its data files.
- Parameters:
properties- The properties of the destination table, such as its Iceberg format version and the format of its data files.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
The properties of the destination table, such as its Iceberg format version and the format of its data files.
This is a convenience method that creates an instance of theMigrationTableProperties.Builderavoiding the need to create one manually viaMigrationTableProperties.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproperties(MigrationTableProperties).- Parameters:
properties- a consumer that will call methods onMigrationTableProperties.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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 ifunmatchedSourceFieldsPolicyisdrop. 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:
- Returns a reference to this object so that method calls can be chained together.
-
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
This is a convenience method that creates an instance of theunmatchedSourceFieldsPolicyisdrop. 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.IcebergSchemaV2.Builderavoiding the need to create one manually viaIcebergSchemaV2.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschema(IcebergSchemaV2).- Parameters:
schema- a consumer that will call methods onIcebergSchemaV2.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
icebergSortOrder
default DestinationTable.Builder icebergSortOrder(Consumer<IcebergSortOrder.Builder> 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.
This is a convenience method that creates an instance of theStartTableMigrationrejects a field that names no column of the schema, or whose transform doesn't fit the column's type.IcebergSortOrder.Builderavoiding the need to create one manually viaIcebergSortOrder.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toicebergSortOrder(IcebergSortOrder).- Parameters:
icebergSortOrder- a consumer that will call methods onIcebergSortOrder.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-