Skip to content
v2.278.0

SourceConfigurationProperty Struct ​

Configuration for a migration source environment.

Example ​

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
# 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
// 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();
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"
    }
};
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 ​

sourceEnvironmentstringsource_environmentstrsourceEnvironmentStringSourceEnvironmentstringSourceEnvironment*string required #
The source environment type.
sourceS3ConfigurationIResolvable | CfnNetworkMigrationDefinition.SourceS3ConfigurationPropertysource_s3_configurationtyping.Union[IResolvable, SourceS3ConfigurationProperty]sourceS3ConfigurationIResolvableSourceS3ConfigurationIResolvableSourceS3Configurationinterface{} required #
S3 configuration for source network data.