# CfnFieldProps

Properties for defining a `CfnField`.

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

- Source: Generated at build time
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cases as cases } from 'aws-cdk-lib';
const cfnFieldProps: cases.CfnFieldProps = {
  name: 'name',
  type: 'type',

  // the properties below are optional
  attributes: {
    text: {
      isMultiline: false,
    },
  },
  description: 'description',
  domainId: 'domainId',
  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_cases as cases

cfn_field_props = cases.CfnFieldProps(
    name="name",
    type="type",

    # the properties below are optional
    attributes=cases.CfnField.FieldAttributesProperty(
        text=cases.CfnField.TextAttributesProperty(
            is_multiline=False
        )
    ),
    description="description",
    domain_id="domainId",
    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.cases.*;

CfnFieldProps cfnFieldProps = CfnFieldProps.builder()
        .name("name")
        .type("type")

        // the properties below are optional
        .attributes(FieldAttributesProperty.builder()
                .text(TextAttributesProperty.builder()
                        .isMultiline(false)
                        .build())
                .build())
        .description("description")
        .domainId("domainId")
        .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.Cases;

var cfnFieldProps = new CfnFieldProps {
    Name = "name",
    Type = "type",

    // the properties below are optional
    Attributes = new FieldAttributesProperty {
        Text = new TextAttributesProperty {
            IsMultiline = false
        }
    },
    Description = "description",
    DomainId = "domainId",
    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"

cfnFieldProps := &CfnFieldProps{
	Name: jsii.String("name"),
	Type: jsii.String("type"),

	// the properties below are optional
	Attributes: &FieldAttributesProperty{
		Text: &TextAttributesProperty{
			IsMultiline: jsii.Boolean(false),
		},
	},
	Description: jsii.String("description"),
	DomainId: jsii.String("domainId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `attributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnField.FieldAttributesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cases.CfnField.FieldAttributesProperty.html) — Union of field attributes.

- `description`: string — Description of the field.

- `domainId`: string — The unique identifier of the Cases domain.

- `name`: string (required) — Name of the field.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

- `type`: string (required) — Type of the field.
