# DataMigrationSettingsProperty

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.

- Source: Generated at build time
- Type last changed: v2.166.0 · 7 Nov 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dms as dms } from 'aws-cdk-lib';
const dataMigrationSettingsProperty: dms.CfnDataMigration.DataMigrationSettingsProperty = {
  cloudwatchLogsEnabled: false,
  numberOfJobs: 123,
  selectionRules: 'selectionRules',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dms as dms

data_migration_settings_property = dms.CfnDataMigration.DataMigrationSettingsProperty(
    cloudwatch_logs_enabled=False,
    number_of_jobs=123,
    selection_rules="selectionRules"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dms.*;

DataMigrationSettingsProperty dataMigrationSettingsProperty = DataMigrationSettingsProperty.builder()
        .cloudwatchLogsEnabled(false)
        .numberOfJobs(123)
        .selectionRules("selectionRules")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DMS;

var dataMigrationSettingsProperty = new DataMigrationSettingsProperty {
    CloudwatchLogsEnabled = false,
    NumberOfJobs = 123,
    SelectionRules = "selectionRules"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataMigrationSettingsProperty := &DataMigrationSettingsProperty{
	CloudwatchLogsEnabled: jsii.Boolean(false),
	NumberOfJobs: jsii.Number(123),
	SelectionRules: jsii.String("selectionRules"),
}
```

## Properties

- `cloudwatchLogsEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to enable CloudWatch logging for the data migration.

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

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