Class IDeployAssert.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.integtests.IDeployAssert.Jsii$Proxy
All Implemented Interfaces:
IDeployAssert, IDeployAssert.Jsii$Default, software.amazon.jsii.JsiiSerializable
Enclosing interface:
IDeployAssert

@Internal public static final class IDeployAssert.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IDeployAssert.Jsii$Default
A proxy class which represents a concrete javascript instance of this type.
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.integtests.IDeployAssert

    IDeployAssert.Jsii$Default, IDeployAssert.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    awsApiCall(String service, String api)
    (experimental) Query AWS using JavaScript SDK V2 API calls.
    awsApiCall(String service, String api, Object parameters)
    (experimental) Query AWS using JavaScript SDK V2 API calls.
    final void
    expect(String id, ExpectedResult expected, ActualResult actual)
    (experimental) Assert that the ExpectedResult is equal to the ActualResult.
    (experimental) Invoke a lambda function and return the response which can be asserted.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
  • Method Details

    • awsApiCall

      @Stability(Experimental) @NotNull public final IAwsApiCall awsApiCall(@NotNull String service, @NotNull String api, @Nullable Object parameters)
      (experimental) Query AWS using JavaScript SDK V2 API calls.

      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")))));
       

      Specified by:
      awsApiCall in interface IDeployAssert
      Specified by:
      awsApiCall in interface IDeployAssert.Jsii$Default
      Parameters:
      service - This parameter is required.
      api - This parameter is required.
      parameters -
    • awsApiCall

      @Stability(Experimental) @NotNull public final IAwsApiCall awsApiCall(@NotNull String service, @NotNull String api)
      (experimental) Query AWS using JavaScript SDK V2 API calls.

      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")))));
       

      Specified by:
      awsApiCall in interface IDeployAssert
      Parameters:
      service - This parameter is required.
      api - This parameter is required.
    • expect

      @Stability(Experimental) public final void expect(@NotNull String id, @NotNull ExpectedResult expected, @NotNull ActualResult actual)
      (experimental) Assert that the ExpectedResult is equal to the ActualResult.

      Example:

       IntegTest integ;
       AwsApiCall apiCall;
       integ.assertions.expect("invoke", ExpectedResult.objectLike(Map.of("Payload", "OK")), ActualResult.fromAwsApiCall(apiCall, "Body"));
       

      Specified by:
      expect in interface IDeployAssert
      Specified by:
      expect in interface IDeployAssert.Jsii$Default
      Parameters:
      id - This parameter is required.
      expected - This parameter is required.
      actual - This parameter is required.
    • invokeFunction

      @Stability(Experimental) @NotNull public final IAwsApiCall invokeFunction(@NotNull LambdaInvokeFunctionProps props)
      (experimental) Invoke a lambda function and return the response which can be asserted.

      Example:

       App app;
       IntegTest integ;
       IAwsApiCall invoke = integ.assertions.invokeFunction(LambdaInvokeFunctionProps.builder()
               .functionName("my-function")
               .build());
       invoke.expect(ExpectedResult.objectLike(Map.of(
               "Payload", "200")));
       

      Specified by:
      invokeFunction in interface IDeployAssert
      Specified by:
      invokeFunction in interface IDeployAssert.Jsii$Default
      Parameters:
      props - This parameter is required.