I am creating DMS endpoint for opensearch and need to use useNewMappingType
as true, this is available in AWS documentation here. But I am unable to do that, as this is not allowed in AWS CDK library.
Upon further inspection, I have also noted that cloudformation is not supporting this parameter either, as observed here.
Are there any workarounds? Since I am using CDK with typescript with latest version "2.178.1" and don't want to make any manual updates after the infrastructure is setup.
// Create DMS Endpoint for OpenSearch target
const targetEndpoint = new dms.CfnEndpoint(this, 'TargetEndpoint', {
endpointType: 'target',
engineName: 'opensearch',
endpointIdentifier: `${id}-target-opensearch`,
elasticsearchSettings: {
endpointUri: props.opensearchDomain.domain.domainEndpoint,
serviceAccessRoleArn: dmsOpenSearchRole.roleArn,
errorRetryDuration: 300,
fullLoadErrorPercentage: 10,
useNewMappingType: true,
},
});