# CfnSchemaMappingProps

Properties for defining a `CfnSchemaMapping`.

Used as props by: [CfnSchemaMapping](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_entityresolution.CfnSchemaMapping.html)

- Source: Generated at build time
- Type last changed: v2.97.0 · 22 Sep 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_entityresolution as entityresolution } from 'aws-cdk-lib';
const cfnSchemaMappingProps: entityresolution.CfnSchemaMappingProps = {
  mappedInputFields: [{
    fieldName: 'fieldName',
    type: 'type',

    // the properties below are optional
    groupName: 'groupName',
    hashed: false,
    matchKey: 'matchKey',
    subType: 'subType',
  }],
  schemaName: 'schemaName',

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

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

cfn_schema_mapping_props = entityresolution.CfnSchemaMappingProps(
    mapped_input_fields=[entityresolution.CfnSchemaMapping.SchemaInputAttributeProperty(
        field_name="fieldName",
        type="type",

        # the properties below are optional
        group_name="groupName",
        hashed=False,
        match_key="matchKey",
        sub_type="subType"
    )],
    schema_name="schemaName",

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

CfnSchemaMappingProps cfnSchemaMappingProps = CfnSchemaMappingProps.builder()
        .mappedInputFields(List.of(SchemaInputAttributeProperty.builder()
                .fieldName("fieldName")
                .type("type")

                // the properties below are optional
                .groupName("groupName")
                .hashed(false)
                .matchKey("matchKey")
                .subType("subType")
                .build()))
        .schemaName("schemaName")

        // the properties below are optional
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.EntityResolution;

var cfnSchemaMappingProps = new CfnSchemaMappingProps {
    MappedInputFields = new [] { new SchemaInputAttributeProperty {
        FieldName = "fieldName",
        Type = "type",

        // the properties below are optional
        GroupName = "groupName",
        Hashed = false,
        MatchKey = "matchKey",
        SubType = "subType"
    } },
    SchemaName = "schemaName",

    // the properties below are optional
    Description = "description",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnSchemaMappingProps := &CfnSchemaMappingProps{
	MappedInputFields: []interface{}{
		&SchemaInputAttributeProperty{
			FieldName: jsii.String("fieldName"),
			Type: jsii.String("type"),

			// the properties below are optional
			GroupName: jsii.String("groupName"),
			Hashed: jsii.Boolean(false),
			MatchKey: jsii.String("matchKey"),
			SubType: jsii.String("subType"),
		},
	},
	SchemaName: jsii.String("schemaName"),

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — A description of the schema.

- `mappedInputFields`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSchemaMapping.SchemaInputAttributeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_entityresolution.CfnSchemaMapping.SchemaInputAttributeProperty.html)[] (required) — A list of `MappedInputFields` .

  Each `MappedInputField` corresponds to a column the source data table, and contains column name plus additional information that AWS Entity Resolution uses for matching.

- `schemaName`: string (required) — The name of the schema.

  There can't be multiple `SchemaMappings` with the same name.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags used to organize, track, or control access for this resource.
