Class: Aws::S3Tables::Types::MigrationPolicies

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/types.rb

Overview

The policies for source data that doesn't fit the destination schema.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#incompatible_values_policy ⇒ String

The migration policy for a source value that the destination column's type can't hold. Valid values:

  • fail - Fails the migration. This is the default.

  • setNull - Writes null for a value that the destination column's type can't hold. If a column's or nested field's type in a source object is incompatible with the destination type, that column or field is null for that whole object.

A value that would be written as null in a required column, or a type that migration doesn't support, fails the migration under either value.

Returns:

  • (String)


2587
2588
2589
2590
2591
2592
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/types.rb', line 2587

class MigrationPolicies < Struct.new(
  :unmatched_source_fields_policy,
  :incompatible_values_policy)
  SENSITIVE = []
  include Aws::Structure
end

#unmatched_source_fields_policy ⇒ String

The migration policy for a source field that has no matching column in the destination schema. Valid values:

  • fail - Fails the migration. Source objects under the table location that no Amazon Web Services Glue partition references, including objects in a subdirectory of an unpartitioned table, also fail the migration. This is the default.

  • drop - Leaves source columns that the destination schema doesn't have out of the destination table, and doesn't migrate source objects outside the Amazon Web Services Glue table's partition locations.

A destination schema that leaves out a partition column or a field of a struct column fails the migration under either value.

Returns:

  • (String)


2587
2588
2589
2590
2591
2592
# File 'gems/aws-sdk-s3tables/lib/aws-sdk-s3tables/types.rb', line 2587

class MigrationPolicies < Struct.new(
  :unmatched_source_fields_policy,
  :incompatible_values_policy)
  SENSITIVE = []
  include Aws::Structure
end