Skip to content
v2.278.0

CompareActionProperty Struct ​

Compares the 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 compareActionProperty: apptest.CfnTestCase.CompareActionProperty = {
  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',
    },
  },
};
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

compare_action_property = 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"
        )
    )
)
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.*;

CompareActionProperty compareActionProperty = 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();
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 compareActionProperty = 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"
        }
    }
};
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"

compareActionProperty := &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"),
		},
	},
}

Properties ​

inputIResolvable | CfnTestCase.InputPropertyinputtyping.Union[IResolvable, InputProperty]inputIResolvableInputIResolvableInputinterface{} required #
The input of the compare action.
outputoptionalIResolvable | CfnTestCase.OutputPropertyoutputoptionaltyping.Union[IResolvable, OutputProperty]outputoptionalIResolvableOutputoptionalIResolvableOutputoptionalinterface{} #
The output of the compare action.