class CfnTestCasePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppTest.Mixins.CfnTestCasePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapptest/mixins#CfnTestCasePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.apptest.mixins.CfnTestCasePropsMixin |
Python | aws_cdk.mixins_preview.aws_apptest.mixins.CfnTestCasePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_apptest » mixins » 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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as apptest_mixins } from '@aws-cdk/mixins-preview/aws-apptest';
const cfnTestCasePropsMixin = new apptest_mixins.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: mixins.PropertyMergeStrategy.OVERRIDE,
});
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 | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
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): IConstruct
Parameters
- construct
IConstruct
Returns
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