# SourceConfigurationProperty

Configuration for a migration source environment.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mgn as mgn } from 'aws-cdk-lib';
const sourceConfigurationProperty: mgn.CfnNetworkMigrationDefinition.SourceConfigurationProperty = {
  sourceEnvironment: 'sourceEnvironment',
  sourceS3Configuration: {
    s3Bucket: 's3Bucket',
    s3BucketOwner: 's3BucketOwner',
    s3Key: 's3Key',
  },
};
```

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_mgn as mgn

source_configuration_property = mgn.CfnNetworkMigrationDefinition.SourceConfigurationProperty(
    source_environment="sourceEnvironment",
    source_s3_configuration=mgn.CfnNetworkMigrationDefinition.SourceS3ConfigurationProperty(
        s3_bucket="s3Bucket",
        s3_bucket_owner="s3BucketOwner",
        s3_key="s3Key"
    )
)
```

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.mgn.*;

SourceConfigurationProperty sourceConfigurationProperty = SourceConfigurationProperty.builder()
        .sourceEnvironment("sourceEnvironment")
        .sourceS3Configuration(SourceS3ConfigurationProperty.builder()
                .s3Bucket("s3Bucket")
                .s3BucketOwner("s3BucketOwner")
                .s3Key("s3Key")
                .build())
        .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.MGN;

var sourceConfigurationProperty = new SourceConfigurationProperty {
    SourceEnvironment = "sourceEnvironment",
    SourceS3Configuration = new SourceS3ConfigurationProperty {
        S3Bucket = "s3Bucket",
        S3BucketOwner = "s3BucketOwner",
        S3Key = "s3Key"
    }
};
```

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"

sourceConfigurationProperty := &SourceConfigurationProperty{
	SourceEnvironment: jsii.String("sourceEnvironment"),
	SourceS3Configuration: &SourceS3ConfigurationProperty{
		S3Bucket: jsii.String("s3Bucket"),
		S3BucketOwner: jsii.String("s3BucketOwner"),
		S3Key: jsii.String("s3Key"),
	},
}
```

## Properties

- `sourceEnvironment`: string (required) — The source environment type.

- `sourceS3Configuration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkMigrationDefinition.SourceS3ConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mgn.CfnNetworkMigrationDefinition.SourceS3ConfigurationProperty.html) (required) — S3 configuration for source network data.
