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
,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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Defines a batch.static final class
A fluent builder forCfnTestCase
.static interface
Specifies the CloudFormation action.static interface
Compares the action.static interface
Defines the Change Data Capture (CDC) of the database.static interface
Defines a data set.static interface
Specifies a file metadata.static interface
Specifies the input file.static interface
Specifies the input.static interface
Specifies the Mainframe Modernization managed action properties.static interface
Specifies the Mainframe Modernization managed application action.static interface
Specifies the Mainframe Modernization non-managed application action.static interface
Specifies the mainframe action properties.static interface
Specifies the mainframe action.static interface
Specifies the mainframe action type.static interface
Specifies an output file.static interface
Specifies an output.static interface
Specifies a resource action.static interface
Specifies the script.static interface
Specifies the source database metadata.static interface
Specifies a step action.static interface
Defines a step.static interface
Specifies a target database metadata.static interface
Specifies the latest version of a test case.static interface
Specifies the TN3270 protocol.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnTestCase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTestCase
(software.amazon.jsii.JsiiObjectRef objRef) CfnTestCase
(software.constructs.Construct scope, String id, CfnTestCaseProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) The description of the test case.void
The name of the test case.void
The steps in the test case.void
setSteps
(IResolvable value) The steps in the test case.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getName
The name of the test case. -
setName
The name of the test case. -
getSteps
The steps in the test case. -
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.
-