> **Experimental**
>
> `@aws-cdk/integ-tests-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# AssertionRequest

A request to make an assertion that the actual value matches the expected.

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/assertions/providers/lambda-handler/types.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/lambda-handler/types.ts#L207)

## Example

TypeScript:

```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';

declare const actual: any;
declare const expected: any;
const assertionRequest: integ_tests_alpha.AssertionRequest = {
  actual: actual,
  expected: expected,

  // the properties below are optional
  failDeployment: false,
};
```

Python:

```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

# actual: Any
# expected: Any

assertion_request = integ_tests_alpha.AssertionRequest(
    actual=actual,
    expected=expected,

    # the properties below are optional
    fail_deployment=False
)
```

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.integtests.alpha.*;

Object actual;
Object expected;

AssertionRequest assertionRequest = AssertionRequest.builder()
        .actual(actual)
        .expected(expected)

        // the properties below are optional
        .failDeployment(false)
        .build();
```

C# / .NET:

```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 actual;
var expected;

var assertionRequest = new AssertionRequest {
    Actual = actual,
    Expected = expected,

    // the properties below are optional
    FailDeployment = false
};
```

Golang:

```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"

var actual interface{}
var expected interface{}

assertionRequest := &AssertionRequest{
	Actual: actual,
	Expected: expected,

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

## Properties

- `actual`: any (required) — The actual value received.

- `expected`: any (required) — The expected value to assert.

- `failDeployment`: boolean = false — Set this to true if a failed assertion should result in a CloudFormation deployment failure.

  This is only necessary if assertions are being
  executed outside of `integ-runner`.
