# MainframeActionProperty

Specifies the mainframe action.

- Source: Generated code
- Type last changed: v2.148.0 · 5 Jul 2024

## Example

```ts
// 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-lib';
const mainframeActionProperty: apptest.CfnTestCase.MainframeActionProperty = {
  actionType: {
    batch: {
      batchJobName: 'batchJobName',

      // the properties below are optional
      batchJobParameters: {
        batchJobParametersKey: 'batchJobParameters',
      },
      exportDataSetNames: ['exportDataSetNames'],
    },
    tn3270: {
      script: {
        scriptLocation: 'scriptLocation',
        type: 'type',
      },

      // the properties below are optional
      exportDataSetNames: ['exportDataSetNames'],
    },
  },
  resource: 'resource',

  // the properties below are optional
  properties: {
    dmsTaskArn: 'dmsTaskArn',
  },
};
```

## Properties

- `actionType`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.MainframeActionTypeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.MainframeActionTypeProperty.html) (required) — The action type of the mainframe action.

- `properties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.MainframeActionPropertiesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.MainframeActionPropertiesProperty.html) — The properties of the mainframe action.

- `resource`: string (required) — The resource of the mainframe action.
