Skip to content
v2.278.0

SourceProperty Struct ​

The source from which to create the profile's initial template content.

Exactly one of the members must be specified. Use StarterProfile (C-CDA only), ProfileMapping (C-CDA or CSV), or ExistingVersionedProfileId to clone an existing profile. Each produces a published profile.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_healthlake as healthlake } from 'aws-cdk-lib';
const sourceProperty: healthlake.CfnDataTransformationProfile.SourceProperty = {
  existingVersionedProfileId: {
    profileId: 'profileId',
    version: 123,
  },
  profileMapping: {
    profileMapping: {
      profileMappingKey: 'profileMapping',
    },
  },
  starterProfile: {
    starterProfileName: 'starterProfileName',
  },
};
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_healthlake as healthlake

source_property = healthlake.CfnDataTransformationProfile.SourceProperty(
    existing_versioned_profile_id=healthlake.CfnDataTransformationProfile.ExistingVersionedProfileSourceProperty(
        profile_id="profileId",
        version=123
    ),
    profile_mapping=healthlake.CfnDataTransformationProfile.ProfileMappingSourceProperty(
        profile_mapping={
            "profile_mapping_key": "profileMapping"
        }
    ),
    starter_profile=healthlake.CfnDataTransformationProfile.StarterProfileSourceProperty(
        starter_profile_name="starterProfileName"
    )
)
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.healthlake.*;

SourceProperty sourceProperty = SourceProperty.builder()
        .existingVersionedProfileId(ExistingVersionedProfileSourceProperty.builder()
                .profileId("profileId")
                .version(123)
                .build())
        .profileMapping(ProfileMappingSourceProperty.builder()
                .profileMapping(Map.of(
                        "profileMappingKey", "profileMapping"))
                .build())
        .starterProfile(StarterProfileSourceProperty.builder()
                .starterProfileName("starterProfileName")
                .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.HealthLake;

var sourceProperty = new SourceProperty {
    ExistingVersionedProfileId = new ExistingVersionedProfileSourceProperty {
        ProfileId = "profileId",
        Version = 123
    },
    ProfileMapping = new ProfileMappingSourceProperty {
        ProfileMapping = new Dictionary<string, string> {
            { "profileMappingKey", "profileMapping" }
        }
    },
    StarterProfile = new StarterProfileSourceProperty {
        StarterProfileName = "starterProfileName"
    }
};
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"

sourceProperty := &SourceProperty{
	ExistingVersionedProfileId: &ExistingVersionedProfileSourceProperty{
		ProfileId: jsii.String("profileId"),
		Version: jsii.Number(123),
	},
	ProfileMapping: &ProfileMappingSourceProperty{
		ProfileMapping: map[string]*string{
			"profileMappingKey": jsii.String("profileMapping"),
		},
	},
	StarterProfile: &StarterProfileSourceProperty{
		StarterProfileName: jsii.String("starterProfileName"),
	},
}

Properties ​

existingVersionedProfileIdoptionalIResolvable | CfnDataTransformationProfile.ExistingVersionedProfileSourcePropertyexisting_versioned_profile_idoptionaltyping.Union[IResolvable, ExistingVersionedProfileSourceProperty]existingVersionedProfileIdoptionalIResolvableExistingVersionedProfileIdoptionalIResolvableExistingVersionedProfileIdoptionalinterface{} #
Create the profile by cloning a specific version of an existing profile.
profileMappingoptionalIResolvable | CfnDataTransformationProfile.ProfileMappingSourcePropertyprofile_mappingoptionaltyping.Union[IResolvable, ProfileMappingSourceProperty]profileMappingoptionalIResolvableProfileMappingoptionalIResolvableProfileMappingoptionalinterface{} #
Create the profile from raw Velocity template mapping content.
starterProfileoptionalIResolvable | CfnDataTransformationProfile.StarterProfileSourcePropertystarter_profileoptionaltyping.Union[IResolvable, StarterProfileSourceProperty]starterProfileoptionalIResolvableStarterProfileoptionalIResolvableStarterProfileoptionalinterface{} #
Create the profile from a predefined starter profile of transformation templates.