Class CfnField
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cases.CfnField
- 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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cases.IFieldRef
IFieldRef.Jsii$Default, IFieldRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnField(software.amazon.jsii.JsiiObjectRef objRef) CfnField(software.constructs.Construct scope, String id, CfnFieldProps props) Create a newAWS::Cases::Field. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForField(IFieldRef resource) Timestamp at which the resource was created.The Amazon Resource Name (ARN) of the field.Unique identifier of the field.Timestamp at which the resource was created or last modified.Namespace of the field.Tag Manager which manages the tags for this resource.Description of the field.The unique identifier of the Cases domain.A reference to a Field resource.getName()Name of the field.getTags()An array of key-value pairs to apply to this resource.getType()Type of the field.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanisCfnField(Object x) Checks whether the given object is a CfnField.renderProperties(Map<String, Object> props) voidsetDescription(String value) Description of the field.voidsetDomainId(String value) The unique identifier of the Cases domain.voidName of the field.voidAn array of key-value pairs to apply to this resource.voidType of the field.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 newAWS::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
- Parameters:
resource- This parameter is required.
-
isCfnField
Checks whether the given object is a CfnField.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedTime
Timestamp at which the resource was created. -
getAttrFieldArn
The Amazon Resource Name (ARN) of the field. -
getAttrFieldId
Unique identifier of the field. -
getAttrLastModifiedTime
Timestamp at which the resource was created or last modified. -
getAttrNamespace
Namespace of the field. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFieldRef
A reference to a Field resource.- Specified by:
getFieldRefin interfaceIFieldRef
-
getName
Name of the field. -
setName
Name of the field. -
getType
Type of the field. -
setType
Type of the field. -
getDescription
Description of the field. -
setDescription
Description of the field. -
getDomainId
The unique identifier of the Cases domain. -
setDomainId
The unique identifier of the Cases domain. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-