@Internal public static final class IDeployAssert.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IDeployAssert.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIDeployAssert.Jsii$Default, IDeployAssert.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
IAwsApiCall |
awsApiCall(String service,
String api)
(experimental) Query AWS using JavaScript SDK V2 API calls.
|
IAwsApiCall |
awsApiCall(String service,
String api,
Object parameters)
(experimental) Query AWS using JavaScript SDK V2 API calls.
|
void |
expect(String id,
ExpectedResult expected,
ActualResult actual)
(experimental) Assert that the ExpectedResult is equal to the ActualResult.
|
IAwsApiCall |
invokeFunction(LambdaInvokeFunctionProps props)
(experimental) Invoke a lambda function and return the response which can be asserted.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) @NotNull public final IAwsApiCall awsApiCall(@NotNull String service, @NotNull String api, @Nullable Object parameters)
This can be used to either trigger an action or to return a result that can then be asserted against an expected value
Example:
App app;
IntegTest integ;
integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
"QueueUrl", "url",
"MessageBody", "hello"));
IAwsApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
"QueueUrl", "url"));
message.expect(ExpectedResult.objectLike(Map.of(
"Messages", List.of(Map.of("Body", "hello")))));
awsApiCall in interface IDeployAssertawsApiCall in interface IDeployAssert.Jsii$Defaultservice - This parameter is required.api - This parameter is required.parameters - @Stability(value=Experimental) @NotNull public final IAwsApiCall awsApiCall(@NotNull String service, @NotNull String api)
This can be used to either trigger an action or to return a result that can then be asserted against an expected value
Example:
App app;
IntegTest integ;
integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
"QueueUrl", "url",
"MessageBody", "hello"));
IAwsApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
"QueueUrl", "url"));
message.expect(ExpectedResult.objectLike(Map.of(
"Messages", List.of(Map.of("Body", "hello")))));
awsApiCall in interface IDeployAssertservice - This parameter is required.api - This parameter is required.@Stability(value=Experimental)
public final void expect(@NotNull
String id,
@NotNull
ExpectedResult expected,
@NotNull
ActualResult actual)
Example:
IntegTest integ;
AwsApiCall apiCall;
integ.assertions.expect("invoke", ExpectedResult.objectLike(Map.of("Payload", "OK")), ActualResult.fromAwsApiCall(apiCall, "Body"));
expect in interface IDeployAssertexpect in interface IDeployAssert.Jsii$Defaultid - This parameter is required.expected - This parameter is required.actual - This parameter is required.@Stability(value=Experimental) @NotNull public final IAwsApiCall invokeFunction(@NotNull LambdaInvokeFunctionProps props)
Example:
App app;
IntegTest integ;
IAwsApiCall invoke = integ.assertions.invokeFunction(LambdaInvokeFunctionProps.builder()
.functionName("my-function")
.build());
invoke.expect(ExpectedResult.objectLike(Map.of(
"Payload", "200")));
invokeFunction in interface IDeployAssertinvokeFunction in interface IDeployAssert.Jsii$Defaultprops - This parameter is required.Copyright © 2022. All rights reserved.