Class: AWSCDK::DMS::CfnDataMigration::SourceDataSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dms/cfn_data_migration.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cdc_start_position: nil, cdc_start_time: nil, cdc_stop_time: nil, slot_name: nil) ⇒ SourceDataSettingsProperty

Returns a new instance of SourceDataSettingsProperty.

Parameters:

  • cdc_start_position (String, nil) (defaults to: nil)

    The property is a point in the database engine's log that defines a time where you can begin CDC.

  • cdc_start_time (String, nil) (defaults to: nil)

    The property indicates the start time for a change data capture (CDC) operation.

  • cdc_stop_time (String, nil) (defaults to: nil)

    The property indicates the stop time for a change data capture (CDC) operation.

  • slot_name (String, nil) (defaults to: nil)

    The property sets the name of a previously created logical replication slot for a change data capture (CDC) load of the source instance.



671
672
673
674
675
676
677
678
679
680
# File 'dms/cfn_data_migration.rb', line 671

def initialize(cdc_start_position: nil, cdc_start_time: nil, cdc_stop_time: nil, slot_name: nil)
  @cdc_start_position = cdc_start_position
  Jsii::Type.check_type(@cdc_start_position, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cdcStartPosition") unless @cdc_start_position.nil?
  @cdc_start_time = cdc_start_time
  Jsii::Type.check_type(@cdc_start_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cdcStartTime") unless @cdc_start_time.nil?
  @cdc_stop_time = cdc_stop_time
  Jsii::Type.check_type(@cdc_stop_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cdcStopTime") unless @cdc_stop_time.nil?
  @slot_name = slot_name
  Jsii::Type.check_type(@slot_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotName") unless @slot_name.nil?
end

Instance Attribute Details

#cdc_start_positionString? (readonly)

The property is a point in the database engine's log that defines a time where you can begin CDC.



686
687
688
# File 'dms/cfn_data_migration.rb', line 686

def cdc_start_position
  @cdc_start_position
end

#cdc_start_timeString? (readonly)

The property indicates the start time for a change data capture (CDC) operation.

The value is server time in UTC format.



693
694
695
# File 'dms/cfn_data_migration.rb', line 693

def cdc_start_time
  @cdc_start_time
end

#cdc_stop_timeString? (readonly)

The property indicates the stop time for a change data capture (CDC) operation.

The value is server time in UTC format.



700
701
702
# File 'dms/cfn_data_migration.rb', line 700

def cdc_stop_time
  @cdc_stop_time
end

#slot_nameString? (readonly)

The property sets the name of a previously created logical replication slot for a change data capture (CDC) load of the source instance.



705
706
707
# File 'dms/cfn_data_migration.rb', line 705

def slot_name
  @slot_name
end

Class Method Details

.jsii_propertiesObject



707
708
709
710
711
712
713
714
# File 'dms/cfn_data_migration.rb', line 707

def self.jsii_properties
  {
    :cdc_start_position => "cdcStartPosition",
    :cdc_start_time => "cdcStartTime",
    :cdc_stop_time => "cdcStopTime",
    :slot_name => "slotName",
  }
end

Instance Method Details

#to_jsiiObject



716
717
718
719
720
721
722
723
724
725
# File 'dms/cfn_data_migration.rb', line 716

def to_jsii
  result = {}
  result.merge!({
    "cdcStartPosition" => @cdc_start_position,
    "cdcStartTime" => @cdc_start_time,
    "cdcStopTime" => @cdc_stop_time,
    "slotName" => @slot_name,
  })
  result.compact
end