Interface DestinationTable.Builder

  • Method Details

    • tableBucketARN

      DestinationTable.Builder tableBucketARN(String 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

      DestinationTable.Builder namespace(String 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

      DestinationTable.Builder encryptionConfiguration(EncryptionConfiguration 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:PutTableEncryption permission. If you choose SSE-KMS, the migration role must have the kms:DescribeKey, kms:GenerateDataKey and kms:Decrypt permissions 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 the s3tables:PutTableEncryption permission. If you choose SSE-KMS, the migration role must have the kms:DescribeKey, kms:GenerateDataKey and kms:Decrypt permissions 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 s3tables:PutTableEncryption permission. If you choose SSE-KMS, the migration role must have the kms:DescribeKey, kms:GenerateDataKey and kms:Decrypt permissions 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.

      This is a convenience method that creates an instance of the EncryptionConfiguration.Builder avoiding the need to create one manually via EncryptionConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to encryptionConfiguration(EncryptionConfiguration).

      Parameters:
      encryptionConfiguration - a consumer that will call methods on EncryptionConfiguration.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:PutTableStorageClass permission.

      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 the s3tables:PutTableStorageClass permission.
      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 s3tables:PutTableStorageClass permission.

      This is a convenience method that creates an instance of the StorageClassConfiguration.Builder avoiding the need to create one manually via StorageClassConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to storageClassConfiguration(StorageClassConfiguration).

      Parameters:
      storageClassConfiguration - a consumer that will call methods on StorageClassConfiguration.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:TagResource permission.

      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 the s3tables:TagResource permission.
      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 the MigrationTableProperties.Builder avoiding the need to create one manually via MigrationTableProperties.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to properties(MigrationTableProperties).

      Parameters:
      properties - a consumer that will call methods on MigrationTableProperties.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 unmatchedSourceFieldsPolicy is drop. 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 in icebergSortOrder, 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 if unmatchedSourceFieldsPolicy is drop. 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 in icebergSortOrder, 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 unmatchedSourceFieldsPolicy is drop. 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 in icebergSortOrder, you must specify a schema.

      This is a convenience method that creates an instance of the IcebergSchemaV2.Builder avoiding the need to create one manually via IcebergSchemaV2.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to schema(IcebergSchemaV2).

      Parameters:
      schema - a consumer that will call methods on IcebergSchemaV2.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • icebergSortOrder

      DestinationTable.Builder icebergSortOrder(IcebergSortOrder 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. StartTableMigration rejects 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. StartTableMigration rejects 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. StartTableMigration rejects a field that names no column of the schema, or whose transform doesn't fit the column's type.

      This is a convenience method that creates an instance of the IcebergSortOrder.Builder avoiding the need to create one manually via IcebergSortOrder.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to icebergSortOrder(IcebergSortOrder).

      Parameters:
      icebergSortOrder - a consumer that will call methods on IcebergSortOrder.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: