Skip to content
v2.277.0

CfnFieldProps Struct ​

Properties for defining a CfnField.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

attributesoptionalIResolvable | CfnField.FieldAttributesPropertyattributesoptionaltyping.Union[IResolvable, FieldAttributesProperty]attributesoptionalIResolvableAttributesoptionalIResolvableAttributesoptionalinterface{}#
Union of field attributes.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
Description of the field.
domainIdoptionalstringdomain_idoptionalstrdomainIdoptionalStringDomainIdoptionalstringDomainIdoptional*string#
The unique identifier of the Cases domain.
namestringnamestrnameStringNamestringName*stringrequired#
Name of the field.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
An array of key-value pairs to apply to this resource.
typestringtypestrtypeStringTypestringType*stringrequired#
Type of the field.