Skip to content
v2.278.0

StepActionProperty Struct ​

Specifies a step 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 stepActionProperty: apptest.CfnTestCase.StepActionProperty = {
  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',
      },
    },

    // the properties below are optional
    output: {
      file: {
        fileLocation: 'fileLocation',
      },
    },
  },
  mainframeAction: {
    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',
    },
  },
  resourceAction: {
    cloudFormationAction: {
      resource: 'resource',

      // the properties below are optional
      actionType: 'actionType',
    },
    m2ManagedApplicationAction: {
      actionType: 'actionType',
      resource: 'resource',

      // the properties below are optional
      properties: {
        forceStop: false,
        importDataSetLocation: 'importDataSetLocation',
      },
    },
    m2NonManagedApplicationAction: {
      actionType: 'actionType',
      resource: 'resource',
    },
  },
};
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

step_action_property = apptest.CfnTestCase.StepActionProperty(
    compare_action=apptest.CfnTestCase.CompareActionProperty(
        input=apptest.CfnTestCase.InputProperty(
            file=apptest.CfnTestCase.InputFileProperty(
                file_metadata=apptest.CfnTestCase.FileMetadataProperty(
                    database_cdc=apptest.CfnTestCase.DatabaseCDCProperty(
                        source_metadata=apptest.CfnTestCase.SourceDatabaseMetadataProperty(
                            capture_tool="captureTool",
                            type="type"
                        ),
                        target_metadata=apptest.CfnTestCase.TargetDatabaseMetadataProperty(
                            capture_tool="captureTool",
                            type="type"
                        )
                    ),
                    data_sets=[apptest.CfnTestCase.DataSetProperty(
                        ccsid="ccsid",
                        format="format",
                        length=123,
                        name="name",
                        type="type"
                    )]
                ),
                source_location="sourceLocation",
                target_location="targetLocation"
            )
        ),

        # the properties below are optional
        output=apptest.CfnTestCase.OutputProperty(
            file=apptest.CfnTestCase.OutputFileProperty(
                file_location="fileLocation"
            )
        )
    ),
    mainframe_action=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"
        )
    ),
    resource_action=apptest.CfnTestCase.ResourceActionProperty(
        cloud_formation_action=apptest.CfnTestCase.CloudFormationActionProperty(
            resource="resource",

            # the properties below are optional
            action_type="actionType"
        ),
        m2_managed_application_action=apptest.CfnTestCase.M2ManagedApplicationActionProperty(
            action_type="actionType",
            resource="resource",

            # the properties below are optional
            properties=apptest.CfnTestCase.M2ManagedActionPropertiesProperty(
                force_stop=False,
                import_data_set_location="importDataSetLocation"
            )
        ),
        m2_non_managed_application_action=apptest.CfnTestCase.M2NonManagedApplicationActionProperty(
            action_type="actionType",
            resource="resource"
        )
    )
)
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.*;

StepActionProperty stepActionProperty = StepActionProperty.builder()
        .compareAction(CompareActionProperty.builder()
                .input(InputProperty.builder()
                        .file(InputFileProperty.builder()
                                .fileMetadata(FileMetadataProperty.builder()
                                        .databaseCdc(DatabaseCDCProperty.builder()
                                                .sourceMetadata(SourceDatabaseMetadataProperty.builder()
                                                        .captureTool("captureTool")
                                                        .type("type")
                                                        .build())
                                                .targetMetadata(TargetDatabaseMetadataProperty.builder()
                                                        .captureTool("captureTool")
                                                        .type("type")
                                                        .build())
                                                .build())
                                        .dataSets(List.of(DataSetProperty.builder()
                                                .ccsid("ccsid")
                                                .format("format")
                                                .length(123)
                                                .name("name")
                                                .type("type")
                                                .build()))
                                        .build())
                                .sourceLocation("sourceLocation")
                                .targetLocation("targetLocation")
                                .build())
                        .build())

                // the properties below are optional
                .output(OutputProperty.builder()
                        .file(OutputFileProperty.builder()
                                .fileLocation("fileLocation")
                                .build())
                        .build())
                .build())
        .mainframeAction(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())
        .resourceAction(ResourceActionProperty.builder()
                .cloudFormationAction(CloudFormationActionProperty.builder()
                        .resource("resource")

                        // the properties below are optional
                        .actionType("actionType")
                        .build())
                .m2ManagedApplicationAction(M2ManagedApplicationActionProperty.builder()
                        .actionType("actionType")
                        .resource("resource")

                        // the properties below are optional
                        .properties(M2ManagedActionPropertiesProperty.builder()
                                .forceStop(false)
                                .importDataSetLocation("importDataSetLocation")
                                .build())
                        .build())
                .m2NonManagedApplicationAction(M2NonManagedApplicationActionProperty.builder()
                        .actionType("actionType")
                        .resource("resource")
                        .build())
                .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 stepActionProperty = new StepActionProperty {
    CompareAction = new CompareActionProperty {
        Input = new InputProperty {
            File = new InputFileProperty {
                FileMetadata = new FileMetadataProperty {
                    DatabaseCdc = new DatabaseCDCProperty {
                        SourceMetadata = new SourceDatabaseMetadataProperty {
                            CaptureTool = "captureTool",
                            Type = "type"
                        },
                        TargetMetadata = new TargetDatabaseMetadataProperty {
                            CaptureTool = "captureTool",
                            Type = "type"
                        }
                    },
                    DataSets = new [] { new DataSetProperty {
                        Ccsid = "ccsid",
                        Format = "format",
                        Length = 123,
                        Name = "name",
                        Type = "type"
                    } }
                },
                SourceLocation = "sourceLocation",
                TargetLocation = "targetLocation"
            }
        },

        // the properties below are optional
        Output = new OutputProperty {
            File = new OutputFileProperty {
                FileLocation = "fileLocation"
            }
        }
    },
    MainframeAction = 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"
        }
    },
    ResourceAction = new ResourceActionProperty {
        CloudFormationAction = new CloudFormationActionProperty {
            Resource = "resource",

            // the properties below are optional
            ActionType = "actionType"
        },
        M2ManagedApplicationAction = new M2ManagedApplicationActionProperty {
            ActionType = "actionType",
            Resource = "resource",

            // the properties below are optional
            Properties = new M2ManagedActionPropertiesProperty {
                ForceStop = false,
                ImportDataSetLocation = "importDataSetLocation"
            }
        },
        M2NonManagedApplicationAction = new M2NonManagedApplicationActionProperty {
            ActionType = "actionType",
            Resource = "resource"
        }
    }
};
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"

stepActionProperty := &StepActionProperty{
	CompareAction: &CompareActionProperty{
		Input: &InputProperty{
			File: &InputFileProperty{
				FileMetadata: &FileMetadataProperty{
					DatabaseCdc: &DatabaseCDCProperty{
						SourceMetadata: &SourceDatabaseMetadataProperty{
							CaptureTool: jsii.String("captureTool"),
							Type: jsii.String("type"),
						},
						TargetMetadata: &TargetDatabaseMetadataProperty{
							CaptureTool: jsii.String("captureTool"),
							Type: jsii.String("type"),
						},
					},
					DataSets: []interface{}{
						&DataSetProperty{
							Ccsid: jsii.String("ccsid"),
							Format: jsii.String("format"),
							Length: jsii.Number(123),
							Name: jsii.String("name"),
							Type: jsii.String("type"),
						},
					},
				},
				SourceLocation: jsii.String("sourceLocation"),
				TargetLocation: jsii.String("targetLocation"),
			},
		},

		// the properties below are optional
		Output: &OutputProperty{
			File: &OutputFileProperty{
				FileLocation: jsii.String("fileLocation"),
			},
		},
	},
	MainframeAction: &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"),
		},
	},
	ResourceAction: &ResourceActionProperty{
		CloudFormationAction: &CloudFormationActionProperty{
			Resource: jsii.String("resource"),

			// the properties below are optional
			ActionType: jsii.String("actionType"),
		},
		M2ManagedApplicationAction: &M2ManagedApplicationActionProperty{
			ActionType: jsii.String("actionType"),
			Resource: jsii.String("resource"),

			// the properties below are optional
			Properties: &M2ManagedActionPropertiesProperty{
				ForceStop: jsii.Boolean(false),
				ImportDataSetLocation: jsii.String("importDataSetLocation"),
			},
		},
		M2NonManagedApplicationAction: &M2NonManagedApplicationActionProperty{
			ActionType: jsii.String("actionType"),
			Resource: jsii.String("resource"),
		},
	},
}

Properties ​

compareActionoptionalIResolvable | CfnTestCase.CompareActionPropertycompare_actionoptionaltyping.Union[IResolvable, CompareActionProperty]compareActionoptionalIResolvableCompareActionoptionalIResolvableCompareActionoptionalinterface{} #
The compare action of the step action.
mainframeActionoptionalIResolvable | CfnTestCase.MainframeActionPropertymainframe_actionoptionaltyping.Union[IResolvable, MainframeActionProperty]mainframeActionoptionalIResolvableMainframeActionoptionalIResolvableMainframeActionoptionalinterface{} #
The mainframe action of the step action.
resourceActionoptionalIResolvable | CfnTestCase.ResourceActionPropertyresource_actionoptionaltyping.Union[IResolvable, ResourceActionProperty]resourceActionoptionalIResolvableResourceActionoptionalIResolvableResourceActionoptionalinterface{} #
The resource action of the step action.