Skip to content
v2.278.0

MainframeActionProperty Struct ​

Specifies the mainframe action.

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',
  },
};
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_property = apptest.CfnTestCase.MainframeActionProperty(
    action_type=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"]
        )
    ),
    resource="resource",

    # the properties below are optional
    properties=apptest.CfnTestCase.MainframeActionPropertiesProperty(
        dms_task_arn="dmsTaskArn"
    )
)
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.*;

MainframeActionProperty mainframeActionProperty = 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();
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 mainframeActionProperty = new MainframeActionProperty {
    ActionType = 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" }
        }
    },
    Resource = "resource",

    // the properties below are optional
    Properties = new MainframeActionPropertiesProperty {
        DmsTaskArn = "dmsTaskArn"
    }
};
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"

mainframeActionProperty := &MainframeActionProperty{
	ActionType: &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"),
			},
		},
	},
	Resource: jsii.String("resource"),

	// the properties below are optional
	Properties: &MainframeActionPropertiesProperty{
		DmsTaskArn: jsii.String("dmsTaskArn"),
	},
}

Properties ​

actionTypeIResolvable | CfnTestCase.MainframeActionTypePropertyaction_typetyping.Union[IResolvable, MainframeActionTypeProperty]actionTypeIResolvableActionTypeIResolvableActionTypeinterface{} required #
The action type of the mainframe action.
propertiesoptionalIResolvable | CfnTestCase.MainframeActionPropertiesPropertypropertiesoptionaltyping.Union[IResolvable, MainframeActionPropertiesProperty]propertiesoptionalIResolvablePropertiesoptionalIResolvablePropertiesoptionalinterface{} #
The properties of the mainframe action.
resourcestringresourcestrresourceStringResourcestringResource*string required #
The resource of the mainframe action.