# MainframeActionTypeProperty

Specifies the mainframe action type.

- Source: Generated at build time
- Type last changed: v2.148.0 · 5 Jul 2024

## Example

TypeScript:

```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 mainframeActionTypeProperty: apptest.CfnTestCase.MainframeActionTypeProperty = {
  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'],
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apptest as apptest

mainframe_action_type_property = apptest.CfnTestCase.MainframeActionTypeProperty(
    batch=apptest.CfnTestCase.BatchProperty(
        batch_job_name="batchJobName",

        # the properties below are optional
        batch_job_parameters={
            "batch_job_parameters_key": "batchJobParameters"
        },
        export_data_set_names=["exportDataSetNames"]
    ),
    tn3270=apptest.CfnTestCase.TN3270Property(
        script=apptest.CfnTestCase.ScriptProperty(
            script_location="scriptLocation",
            type="type"
        ),

        # the properties below are optional
        export_data_set_names=["exportDataSetNames"]
    )
)
```

Java:

```java
// 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.*;

MainframeActionTypeProperty mainframeActionTypeProperty = 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();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppTest;

var mainframeActionTypeProperty = new MainframeActionTypeProperty {
    Batch = new BatchProperty {
        BatchJobName = "batchJobName",

        // the properties below are optional
        BatchJobParameters = new Dictionary<string, string> {
            { "batchJobParametersKey", "batchJobParameters" }
        },
        ExportDataSetNames = new [] { "exportDataSetNames" }
    },
    Tn3270 = new TN3270Property {
        Script = new ScriptProperty {
            ScriptLocation = "scriptLocation",
            Type = "type"
        },

        // the properties below are optional
        ExportDataSetNames = new [] { "exportDataSetNames" }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

mainframeActionTypeProperty := &MainframeActionTypeProperty{
	Batch: &BatchProperty{
		BatchJobName: jsii.String("batchJobName"),

		// the properties below are optional
		BatchJobParameters: map[string]*string{
			"batchJobParametersKey": jsii.String("batchJobParameters"),
		},
		ExportDataSetNames: []*string{
			jsii.String("exportDataSetNames"),
		},
	},
	Tn3270: &TN3270Property{
		Script: &ScriptProperty{
			ScriptLocation: jsii.String("scriptLocation"),
			Type: jsii.String("type"),
		},

		// the properties below are optional
		ExportDataSetNames: []*string{
			jsii.String("exportDataSetNames"),
		},
	},
}
```

## Properties

- `batch`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.BatchProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.BatchProperty.html) — The batch of the mainframe action type.

- `tn3270`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTestCase.TN3270Property](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apptest.CfnTestCase.TN3270Property.html) — The tn3270 port of the mainframe action type.
