Class: AWSCDK::DMS::CfnDataMigration::DataMigrationSettingsProperty

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

Overview

Options for configuring a data migration, including whether to enable CloudWatch logs, and the selection rules to use to include or exclude database objects from the migration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloudwatch_logs_enabled: nil, number_of_jobs: nil, selection_rules: nil) ⇒ DataMigrationSettingsProperty

Returns a new instance of DataMigrationSettingsProperty.

Parameters:

  • cloudwatch_logs_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether to enable CloudWatch logging for the data migration.

  • number_of_jobs (Numeric, nil) (defaults to: nil)

    The number of parallel jobs that trigger parallel threads to unload the tables from the source, and then load them to the target.

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

    A JSON-formatted string that defines what objects to include and exclude from the migration.



619
620
621
622
623
624
625
626
# File 'dms/cfn_data_migration.rb', line 619

def initialize(cloudwatch_logs_enabled: nil, number_of_jobs: nil, selection_rules: nil)
  @cloudwatch_logs_enabled = cloudwatch_logs_enabled
  Jsii::Type.check_type(@cloudwatch_logs_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "cloudwatchLogsEnabled") unless @cloudwatch_logs_enabled.nil?
  @number_of_jobs = number_of_jobs
  Jsii::Type.check_type(@number_of_jobs, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numberOfJobs") unless @number_of_jobs.nil?
  @selection_rules = selection_rules
  Jsii::Type.check_type(@selection_rules, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "selectionRules") unless @selection_rules.nil?
end

Instance Attribute Details

#cloudwatch_logs_enabledBoolean, ... (readonly)

Whether to enable CloudWatch logging for the data migration.



632
633
634
# File 'dms/cfn_data_migration.rb', line 632

def cloudwatch_logs_enabled
  @cloudwatch_logs_enabled
end

#number_of_jobsNumeric? (readonly)

The number of parallel jobs that trigger parallel threads to unload the tables from the source, and then load them to the target.



637
638
639
# File 'dms/cfn_data_migration.rb', line 637

def number_of_jobs
  @number_of_jobs
end

#selection_rulesString? (readonly)

A JSON-formatted string that defines what objects to include and exclude from the migration.



642
643
644
# File 'dms/cfn_data_migration.rb', line 642

def selection_rules
  @selection_rules
end

Class Method Details

.jsii_propertiesObject



644
645
646
647
648
649
650
# File 'dms/cfn_data_migration.rb', line 644

def self.jsii_properties
  {
    :cloudwatch_logs_enabled => "cloudwatchLogsEnabled",
    :number_of_jobs => "numberOfJobs",
    :selection_rules => "selectionRules",
  }
end

Instance Method Details

#to_jsiiObject



652
653
654
655
656
657
658
659
660
# File 'dms/cfn_data_migration.rb', line 652

def to_jsii
  result = {}
  result.merge!({
    "cloudwatchLogsEnabled" => @cloudwatch_logs_enabled,
    "numberOfJobs" => @number_of_jobs,
    "selectionRules" => @selection_rules,
  })
  result.compact
end