class CfnTestCasePropsMixin (mixin)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.AppTest.CfnTestCasePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsapptest#CfnTestCasePropsMixin |
Java | software.amazon.awscdk.cfnpropertymixins.services.apptest.CfnTestCasePropsMixin |
Python | aws_cdk.cfn_property_mixins.aws_apptest.CfnTestCasePropsMixin |
TypeScript | @aws-cdk/cfn-property-mixins » aws_apptest » CfnTestCasePropsMixin |
Implements
IMixin
Extends
Mixin
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 .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apptest-testcase.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apptest as apptest } from '@aws-cdk/cfn-property-mixins';
import * as cdk from 'aws-cdk-lib';
declare const mergeStrategy: cdk.IMergeStrategy;
const cfnTestCasePropsMixin = new apptest.CfnTestCasePropsMixin({
description: 'description',
name: 'name',
steps: [{
action: {
compareAction: {
input: {
file: {
fileMetadata: {
databaseCdc: {
sourceMetadata: {
captureTool: 'captureTool',
type: 'type',
},
targetMetadata: {
captureTool: 'captureTool',
type: 'type',
},
},
dataSets: [{
ccsid: 'ccsid',
format: 'format',
length: 123,
name: 'name',
type: 'type',
}],
},
sourceLocation: 'sourceLocation',
targetLocation: 'targetLocation',
},
},
output: {
file: {
fileLocation: 'fileLocation',
},
},
},
mainframeAction: {
actionType: {
batch: {
batchJobName: 'batchJobName',
batchJobParameters: {
batchJobParametersKey: 'batchJobParameters',
},
exportDataSetNames: ['exportDataSetNames'],
},
tn3270: {
exportDataSetNames: ['exportDataSetNames'],
script: {
scriptLocation: 'scriptLocation',
type: 'type',
},
},
},
properties: {
dmsTaskArn: 'dmsTaskArn',
},
resource: 'resource',
},
resourceAction: {
cloudFormationAction: {
actionType: 'actionType',
resource: 'resource',
},
m2ManagedApplicationAction: {
actionType: 'actionType',
properties: {
forceStop: false,
importDataSetLocation: 'importDataSetLocation',
},
resource: 'resource',
},
m2NonManagedApplicationAction: {
actionType: 'actionType',
resource: 'resource',
},
},
},
description: 'description',
name: 'name',
}],
tags: {
tagsKey: 'tags',
},
}, /* all optional props */ {
strategy: mergeStrategy,
});
Initializer
new CfnTestCasePropsMixin(props: CfnTestCaseMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Test Case Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::AppTest::TestCase.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | IMerge | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
IMerge
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): void
Parameters
- construct
IConstruct
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript