Class CfnTestCase

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

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-22T17:37:23.425Z") @Stability(Stable) public class CfnTestCase extends CfnResource implements IInspectable, ITestCaseRef, ITaggableV2
Resource Type definition for AWS::Connect::TestCase.

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.connect.*;
 CfnTestCase cfnTestCase = CfnTestCase.Builder.create(this, "MyCfnTestCase")
         .content("content")
         .instanceArn("instanceArn")
         .name("name")
         // the properties below are optional
         .description("description")
         .entryPoint(EntryPointProperty.builder()
                 .chatEntryPointParameters(ChatEntryPointParametersProperty.builder()
                         .flowId("flowId")
                         .build())
                 .type("type")
                 .voiceCallEntryPointParameters(VoiceCallEntryPointParametersProperty.builder()
                         .destinationPhoneNumber("destinationPhoneNumber")
                         .flowId("flowId")
                         .sourcePhoneNumber("sourcePhoneNumber")
                         .build())
                 .build())
         .initializationData("initializationData")
         .status("status")
         .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

    • CfnTestCase

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

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

      @Stability(Stable) public CfnTestCase(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTestCaseProps props)
      Create a new AWS::Connect::TestCase.

      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

    • arnForTestCase

      @Stability(Stable) @NotNull public static String arnForTestCase(@NotNull ITestCaseRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnTestCase

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

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

      @Stability(Stable) @NotNull public String getAttrLastModifiedRegion()
      Last modified region.
    • getAttrLastModifiedTime

      @Stability(Stable) @NotNull public IResolvable getAttrLastModifiedTime()
      A epoch time stamp field used for test case operations.
    • getAttrTestCaseArn

      @Stability(Stable) @NotNull public String getAttrTestCaseArn()
      The identifier of the test case.
    • 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
    • getTestCaseRef

      @Stability(Stable) @NotNull public TestCaseReference getTestCaseRef()
      A reference to a TestCase resource.
      Specified by:
      getTestCaseRef in interface ITestCaseRef
    • getContent

      @Stability(Stable) @NotNull public String getContent()
      The content of the test case.
    • setContent

      @Stability(Stable) public void setContent(@NotNull String value)
      The content of the test case.
    • getInstanceArn

      @Stability(Stable) @NotNull public String getInstanceArn()
      The identifier of the Amazon Connect instance.
    • setInstanceArn

      @Stability(Stable) public void setInstanceArn(@NotNull String value)
      The identifier of the Amazon Connect instance.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the test case.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the test case.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the test case.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the test case.
    • getEntryPoint

      @Stability(Stable) @Nullable public Object getEntryPoint()
      The Entry Point associated with the test case.

      Returns union: either IResolvable or CfnTestCase.EntryPointProperty

    • setEntryPoint

      @Stability(Stable) public void setEntryPoint(@Nullable IResolvable value)
      The Entry Point associated with the test case.
    • setEntryPoint

      @Stability(Stable) public void setEntryPoint(@Nullable CfnTestCase.EntryPointProperty value)
      The Entry Point associated with the test case.
    • getInitializationData

      @Stability(Stable) @Nullable public String getInitializationData()
      The initialization data of the test case.
    • setInitializationData

      @Stability(Stable) public void setInitializationData(@Nullable String value)
      The initialization data of the test case.
    • getStatus

      @Stability(Stable) @Nullable public String getStatus()
      The status of the test case.
    • setStatus

      @Stability(Stable) public void setStatus(@Nullable String value)
      The status of the test case.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      One or more tags.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      One or more tags.