Class CfnTestCase
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.apptest.CfnTestCase
- All Implemented Interfaces:
IInspectable,ITaggableV2,ITestCaseRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:32.739Z")
@Stability(Stable)
public class CfnTestCase
extends CfnResource
implements IInspectable, ITestCaseRef, 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines a batch.static final classA fluent builder forCfnTestCase.static interfaceSpecifies the CloudFormation action.static interfaceCompares the action.static interfaceDefines the Change Data Capture (CDC) of the database.static interfaceDefines a data set.static interfaceSpecifies a file metadata.static interfaceSpecifies the input file.static interfaceSpecifies the input.static interfaceSpecifies the Mainframe Modernization managed action properties.static interfaceSpecifies the Mainframe Modernization managed application action.static interfaceSpecifies the Mainframe Modernization non-managed application action.static interfaceSpecifies the mainframe action properties.static interfaceSpecifies the mainframe action.static interfaceSpecifies the mainframe action type.static interfaceSpecifies an output file.static interfaceSpecifies an output.static interfaceSpecifies a resource action.static interfaceSpecifies the script.static interfaceSpecifies the source database metadata.static interfaceSpecifies a step action.static interfaceDefines a step.static interfaceSpecifies a target database metadata.static interfaceSpecifies the latest version of a test case.static interfaceSpecifies the TN3270 protocol.Nested 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.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.apptest.ITestCaseRef
ITestCaseRef.Jsii$Default, ITestCaseRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTestCase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTestCase(software.amazon.jsii.JsiiObjectRef objRef) CfnTestCase(software.constructs.Construct scope, String id, CfnTestCaseProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ITestCaseReffromTestCaseArn(software.constructs.Construct scope, String id, String arn) Creates a new ITestCaseRef from an ARN.static ITestCaseReffromTestCaseId(software.constructs.Construct scope, String id, String testCaseId) Creates a new ITestCaseRef from a testCaseId.The creation time of the test case.The last update time of the test case.The status of the test case.The Amazon Resource Name (ARN) of the test case.The response test case ID of the test case.The version of the test case.Tag Manager which manages the tags for this resource.The description of the test case.getName()The name of the test case.getSteps()The steps in the test case.getTags()The specified tags of the test case.A reference to a TestCase resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the test case.voidThe name of the test case.voidThe steps in the test case.voidsetSteps(IResolvable value) The steps in the test case.voidThe specified tags of the test case.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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
-
fromTestCaseArn
@Stability(Stable) @NotNull public static ITestCaseRef fromTestCaseArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new ITestCaseRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromTestCaseId
@Stability(Stable) @NotNull public static ITestCaseRef fromTestCaseId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String testCaseId) Creates a new ITestCaseRef from a testCaseId.- Parameters:
scope- This parameter is required.id- This parameter is required.testCaseId- 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.
-
getAttrCreationTime
The creation time of the test case. -
getAttrLastUpdateTime
The last update time of the test case. -
getAttrLatestVersion
-
getAttrStatus
The status of the test case. -
getAttrTestCaseArn
The Amazon Resource Name (ARN) of the test case. -
getAttrTestCaseId
The response test case ID of the test case. -
getAttrTestCaseVersion
The version of the test case. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTestCaseRef
A reference to a TestCase resource.- Specified by:
getTestCaseRefin interfaceITestCaseRef
-
getName
The name of the test case. -
setName
The name of the test case. -
getSteps
The steps in the test case.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTestCase.StepProperty> -
setSteps
The steps in the test case. -
setSteps
The steps in the test case. -
getDescription
The description of the test case. -
setDescription
The description of the test case. -
getTags
The specified tags of the test case. -
setTags
The specified tags of the test case.
-