# CfnCustomEntityTypeProps

Properties for defining a `CfnCustomEntityType`.

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

- Source: Generated at build time
- Type last changed: v2.119.0 · 11 Jan 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';

declare const tags: any;
const cfnCustomEntityTypeProps: glue.CfnCustomEntityTypeProps = {
  contextWords: ['contextWords'],
  name: 'name',
  regexString: 'regexString',
  tags: tags,
};
```

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_glue as glue

# tags: Any

cfn_custom_entity_type_props = glue.CfnCustomEntityTypeProps(
    context_words=["contextWords"],
    name="name",
    regex_string="regexString",
    tags=tags
)
```

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

Object tags;

CfnCustomEntityTypeProps cfnCustomEntityTypeProps = CfnCustomEntityTypeProps.builder()
        .contextWords(List.of("contextWords"))
        .name("name")
        .regexString("regexString")
        .tags(tags)
        .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.Glue;

var tags;

var cfnCustomEntityTypeProps = new CfnCustomEntityTypeProps {
    ContextWords = new [] { "contextWords" },
    Name = "name",
    RegexString = "regexString",
    Tags = tags
};
```

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"

var tags interface{}

cfnCustomEntityTypeProps := &CfnCustomEntityTypeProps{
	ContextWords: []*string{
		jsii.String("contextWords"),
	},
	Name: jsii.String("name"),
	RegexString: jsii.String("regexString"),
	Tags: tags,
}
```

## Properties

- `contextWords`: string[] — A list of context words.

  If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.

  If no context words are passed only a regular expression is checked.

- `name`: string — A name for the custom pattern that allows it to be retrieved or deleted later.

  This name must be unique per AWS account.

- `regexString`: string — A regular expression string that is used for detecting sensitive data in a custom pattern.

- `tags`: any — AWS tags that contain a key value pair and may be searched by console, command line, or API.
