Skip to content
v2.278.0

Experimental

@aws-cdk/integ-tests-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AssertionResult Struct ​

The result of an Assertion wrapping the actual result data in another struct.

Needed to access the whole message via getAtt() on the custom resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as integ_tests_alpha from '@aws-cdk/integ-tests-alpha';
const assertionResult: integ_tests_alpha.AssertionResult = {
  assertion: 'assertion',

  // the properties below are optional
  failed: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.integ_tests_alpha as integ_tests_alpha

assertion_result = integ_tests_alpha.AssertionResult(
    assertion="assertion",

    # the properties below are optional
    failed=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.integtests.alpha.*;

AssertionResult assertionResult = AssertionResult.builder()
        .assertion("assertion")

        // the properties below are optional
        .failed(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.IntegTests.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.IntegTests.Alpha;

var assertionResult = new AssertionResult {
    Assertion = "assertion",

    // the properties below are optional
    Failed = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import integ_tests_alpha "github.com/aws/aws-cdk-go/awscdkintegtestsalpha"

assertionResult := &AssertionResult{
	Assertion: jsii.String("assertion"),

	// the properties below are optional
	Failed: jsii.Boolean(false),
}

Properties ​

assertionstringassertionstrassertionStringAssertionstringAssertion*string required #
The result of an assertion.
failedoptionalbooleanfailedoptionalboolfailedoptionalBooleanFailedoptionalboolFailedoptional*bool = false #
Whether or not the assertion failed.