Class CfnField

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IFieldRef, IEnvironmentAware, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.125.0 (build fdbe357)", date="2026-01-09T10:20:13.551Z") @Stability(Stable) public class CfnField extends CfnResource implements IInspectable, IFieldRef, ITaggableV2
Creates a field in the Cases domain.

This field is used to define the case object model (that is, defines what data can be captured on cases) in a Cases domain.

Example:

 // 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.*;
 CfnField cfnField = CfnField.Builder.create(this, "MyCfnField")
         .name("name")
         .type("type")
         // the properties below are optional
         .description("description")
         .domainId("domainId")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnField

      protected CfnField(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnField

      protected CfnField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnField

      @Stability(Stable) public CfnField(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFieldProps props)
      Create a new AWS::Cases::Field.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForField

      @Stability(Stable) @NotNull public static String arnForField(@NotNull IFieldRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnField

      @Stability(Stable) @NotNull public static Boolean isCfnField(@NotNull Object x)
      Checks whether the given object is a CfnField.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedTime

      @Stability(Stable) @NotNull public String getAttrCreatedTime()
      Timestamp at which the resource was created.
    • getAttrFieldArn

      @Stability(Stable) @NotNull public String getAttrFieldArn()
      The Amazon Resource Name (ARN) of the field.
    • getAttrFieldId

      @Stability(Stable) @NotNull public String getAttrFieldId()
      Unique identifier of the field.
    • getAttrLastModifiedTime

      @Stability(Stable) @NotNull public String getAttrLastModifiedTime()
      Timestamp at which the resource was created or last modified.
    • getAttrNamespace

      @Stability(Stable) @NotNull public String getAttrNamespace()
      Namespace of the field.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getFieldRef

      @Stability(Stable) @NotNull public FieldReference getFieldRef()
      A reference to a Field resource.
      Specified by:
      getFieldRef in interface IFieldRef
    • getName

      @Stability(Stable) @NotNull public String getName()
      Name of the field.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      Name of the field.
    • getType

      @Stability(Stable) @NotNull public String getType()
      Type of the field.
    • setType

      @Stability(Stable) public void setType(@NotNull String value)
      Type of the field.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      Description of the field.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      Description of the field.
    • getDomainId

      @Stability(Stable) @Nullable public String getDomainId()
      The unique identifier of the Cases domain.
    • setDomainId

      @Stability(Stable) public void setDomainId(@Nullable String value)
      The unique identifier of the Cases domain.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource.