Class CfnCase

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

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:05.064Z") @Stability(Stable) public class CfnCase extends CfnResource implements IInspectable, ICaseRef, ITaggableV2
Creates a case in the specified 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.*;
 CfnCase cfnCase = CfnCase.Builder.create(this, "MyCfnCase")
         .customerId("customerId")
         .domainId("domainId")
         .templateId("templateId")
         .title("title")
         // the properties below are optional
         .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

    • CfnCase

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

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

      @Stability(Stable) public CfnCase(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCaseProps props)
      Create a new AWS::Cases::Case.

      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

    • arnForCase

      @Stability(Stable) @NotNull public static String arnForCase(@NotNull ICaseRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnCase

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

      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.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the case.
    • getAttrCaseId

      @Stability(Stable) @NotNull public String getAttrCaseId()
      A unique identifier of the case.
    • getCaseRef

      @Stability(Stable) @NotNull public CaseReference getCaseRef()
      A reference to a Case resource.
      Specified by:
      getCaseRef in interface ICaseRef
    • 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
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getCustomerId

      @Stability(Stable) @NotNull public String getCustomerId()
      The full customer profile ARN for the case.
    • setCustomerId

      @Stability(Stable) public void setCustomerId(@NotNull String value)
      The full customer profile ARN for the case.
    • getDomainId

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

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

      @Stability(Stable) @NotNull public String getTemplateId()
      A unique identifier of a template.
    • setTemplateId

      @Stability(Stable) public void setTemplateId(@NotNull String value)
      A unique identifier of a template.
    • getTitle

      @Stability(Stable) @NotNull public String getTitle()
      The title of the case.
    • setTitle

      @Stability(Stable) public void setTitle(@NotNull String value)
      The title of the case.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      A list of tags for the case.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      A list of tags for the case.