Class CfnTestCase

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:38.932Z") @Stability(Stable) public class CfnTestCase extends CfnResource implements IInspectable, ITaggableV2
Creates a test case for an application.

For more information about test cases, see Test cases and Application Testing concepts in the AWS Mainframe Modernization User Guide .

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.apptest.*;
 CfnTestCase cfnTestCase = CfnTestCase.Builder.create(this, "MyCfnTestCase")
         .name("name")
         .steps(List.of(StepProperty.builder()
                 .action(StepActionProperty.builder()
                         .compareAction(CompareActionProperty.builder()
                                 .input(InputProperty.builder()
                                         .file(InputFileProperty.builder()
                                                 .fileMetadata(FileMetadataProperty.builder()
                                                         .databaseCdc(DatabaseCDCProperty.builder()
                                                                 .sourceMetadata(SourceDatabaseMetadataProperty.builder()
                                                                         .captureTool("captureTool")
                                                                         .type("type")
                                                                         .build())
                                                                 .targetMetadata(TargetDatabaseMetadataProperty.builder()
                                                                         .captureTool("captureTool")
                                                                         .type("type")
                                                                         .build())
                                                                 .build())
                                                         .dataSets(List.of(DataSetProperty.builder()
                                                                 .ccsid("ccsid")
                                                                 .format("format")
                                                                 .length(123)
                                                                 .name("name")
                                                                 .type("type")
                                                                 .build()))
                                                         .build())
                                                 .sourceLocation("sourceLocation")
                                                 .targetLocation("targetLocation")
                                                 .build())
                                         .build())
                                 // the properties below are optional
                                 .output(OutputProperty.builder()
                                         .file(OutputFileProperty.builder()
                                                 .fileLocation("fileLocation")
                                                 .build())
                                         .build())
                                 .build())
                         .mainframeAction(MainframeActionProperty.builder()
                                 .actionType(MainframeActionTypeProperty.builder()
                                         .batch(BatchProperty.builder()
                                                 .batchJobName("batchJobName")
                                                 // the properties below are optional
                                                 .batchJobParameters(Map.of(
                                                         "batchJobParametersKey", "batchJobParameters"))
                                                 .exportDataSetNames(List.of("exportDataSetNames"))
                                                 .build())
                                         .tn3270(TN3270Property.builder()
                                                 .script(ScriptProperty.builder()
                                                         .scriptLocation("scriptLocation")
                                                         .type("type")
                                                         .build())
                                                 // the properties below are optional
                                                 .exportDataSetNames(List.of("exportDataSetNames"))
                                                 .build())
                                         .build())
                                 .resource("resource")
                                 // the properties below are optional
                                 .properties(MainframeActionPropertiesProperty.builder()
                                         .dmsTaskArn("dmsTaskArn")
                                         .build())
                                 .build())
                         .resourceAction(ResourceActionProperty.builder()
                                 .cloudFormationAction(CloudFormationActionProperty.builder()
                                         .resource("resource")
                                         // the properties below are optional
                                         .actionType("actionType")
                                         .build())
                                 .m2ManagedApplicationAction(M2ManagedApplicationActionProperty.builder()
                                         .actionType("actionType")
                                         .resource("resource")
                                         // the properties below are optional
                                         .properties(M2ManagedActionPropertiesProperty.builder()
                                                 .forceStop(false)
                                                 .importDataSetLocation("importDataSetLocation")
                                                 .build())
                                         .build())
                                 .m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty.builder()
                                         .actionType("actionType")
                                         .resource("resource")
                                         .build())
                                 .build())
                         .build())
                 .name("name")
                 // the properties below are optional
                 .description("description")
                 .build()))
         // the properties below are optional
         .description("description")
         .tags(Map.of(
                 "tagsKey", "tags"))
         .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)
      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

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

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The creation time of the test case.
    • getAttrLastUpdateTime

      @Stability(Stable) @NotNull public String getAttrLastUpdateTime()
      The last update time of the test case.
    • getAttrLatestVersion

      @Stability(Stable) @NotNull public IResolvable getAttrLatestVersion()
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The status of the test case.
    • getAttrTestCaseArn

      @Stability(Stable) @NotNull public String getAttrTestCaseArn()
      The Amazon Resource Name (ARN) of the test case.
    • getAttrTestCaseId

      @Stability(Stable) @NotNull public String getAttrTestCaseId()
      The response test case ID of the test case.
    • getAttrTestCaseVersion

      @Stability(Stable) @NotNull public IResolvable getAttrTestCaseVersion()
      The version 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
    • 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.
    • getSteps

      @Stability(Stable) @NotNull public Object getSteps()
      The steps in the test case.
    • setSteps

      @Stability(Stable) public void setSteps(@NotNull IResolvable value)
      The steps in the test case.
    • setSteps

      @Stability(Stable) public void setSteps(@NotNull List<Object> value)
      The steps in 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.
    • getTags

      @Stability(Stable) @Nullable public Map<String,String> getTags()
      The specified tags of the test case.
    • setTags

      @Stability(Stable) public void setTags(@Nullable Map<String,String> value)
      The specified tags of the test case.