All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.integtests.alpha.IDeployAssert Maven / Gradle / Ivy

There is a newer version: 2.173.2-alpha.0
Show newest version
package software.amazon.awscdk.integtests.alpha;

/**
 * (experimental) Interface that allows for registering a list of assertions that should be performed on a construct.
 * 

* This is only necessary * when writing integration tests. */ @javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-11-22T02:24:11.281Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.integtests.alpha.$Module.class, fqn = "@aws-cdk/integ-tests-alpha.IDeployAssert") @software.amazon.jsii.Jsii.Proxy(IDeployAssert.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface IDeployAssert extends software.amazon.jsii.JsiiSerializable { /** * (experimental) Query AWS using JavaScript SDK 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 *

* The service is the name of an AWS service, in one of the following forms: *

*

    *
  • An AWS SDK for JavaScript v3 package name (@aws-sdk/client-api-gateway)
  • *
  • An AWS SDK for JavaScript v3 client name (api-gateway)
  • *
  • An AWS SDK for JavaScript v2 constructor name (APIGateway)
  • *
  • A lowercase AWS SDK for JavaScript v2 constructor name (apigateway)
  • *
*

* The api is the name of an AWS API call, in one of the following forms: *

*

    *
  • An API call name as found in the API Reference documentation (GetObject)
  • *
  • The API call name starting with a lowercase letter (getObject)
  • *
  • The AWS SDK for JavaScript v3 command class name (GetObjectCommand)
  • *
*

* Example: *

*

     * App app;
     * IntegTest integ;
     * integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
     *         "QueueUrl", "url",
     *         "MessageBody", "hello"));
     * IApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
     *         "QueueUrl", "url"));
     * message.expect(ExpectedResult.objectLike(Map.of(
     *         "Messages", List.of(Map.of("Body", "hello")))));
     * 
*

* @param service This parameter is required. * @param api This parameter is required. * @param parameters * @param outputPaths */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall awsApiCall(final @org.jetbrains.annotations.NotNull java.lang.String service, final @org.jetbrains.annotations.NotNull java.lang.String api, final @org.jetbrains.annotations.Nullable java.lang.Object parameters, final @org.jetbrains.annotations.Nullable java.util.List outputPaths); /** * (experimental) Query AWS using JavaScript SDK 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 *

* The service is the name of an AWS service, in one of the following forms: *

*

    *
  • An AWS SDK for JavaScript v3 package name (@aws-sdk/client-api-gateway)
  • *
  • An AWS SDK for JavaScript v3 client name (api-gateway)
  • *
  • An AWS SDK for JavaScript v2 constructor name (APIGateway)
  • *
  • A lowercase AWS SDK for JavaScript v2 constructor name (apigateway)
  • *
*

* The api is the name of an AWS API call, in one of the following forms: *

*

    *
  • An API call name as found in the API Reference documentation (GetObject)
  • *
  • The API call name starting with a lowercase letter (getObject)
  • *
  • The AWS SDK for JavaScript v3 command class name (GetObjectCommand)
  • *
*

* Example: *

*

     * App app;
     * IntegTest integ;
     * integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
     *         "QueueUrl", "url",
     *         "MessageBody", "hello"));
     * IApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
     *         "QueueUrl", "url"));
     * message.expect(ExpectedResult.objectLike(Map.of(
     *         "Messages", List.of(Map.of("Body", "hello")))));
     * 
*

* @param service This parameter is required. * @param api This parameter is required. * @param parameters */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall awsApiCall(final @org.jetbrains.annotations.NotNull java.lang.String service, final @org.jetbrains.annotations.NotNull java.lang.String api, final @org.jetbrains.annotations.Nullable java.lang.Object parameters); /** * (experimental) Query AWS using JavaScript SDK 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 *

* The service is the name of an AWS service, in one of the following forms: *

*

    *
  • An AWS SDK for JavaScript v3 package name (@aws-sdk/client-api-gateway)
  • *
  • An AWS SDK for JavaScript v3 client name (api-gateway)
  • *
  • An AWS SDK for JavaScript v2 constructor name (APIGateway)
  • *
  • A lowercase AWS SDK for JavaScript v2 constructor name (apigateway)
  • *
*

* The api is the name of an AWS API call, in one of the following forms: *

*

    *
  • An API call name as found in the API Reference documentation (GetObject)
  • *
  • The API call name starting with a lowercase letter (getObject)
  • *
  • The AWS SDK for JavaScript v3 command class name (GetObjectCommand)
  • *
*

* Example: *

*

     * App app;
     * IntegTest integ;
     * integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
     *         "QueueUrl", "url",
     *         "MessageBody", "hello"));
     * IApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
     *         "QueueUrl", "url"));
     * message.expect(ExpectedResult.objectLike(Map.of(
     *         "Messages", List.of(Map.of("Body", "hello")))));
     * 
*

* @param service This parameter is required. * @param api This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall awsApiCall(final @org.jetbrains.annotations.NotNull java.lang.String service, final @org.jetbrains.annotations.NotNull java.lang.String api); /** * (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"));
     * 
*

* @param id This parameter is required. * @param expected This parameter is required. * @param actual This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) void expect(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.ExpectedResult expected, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.ActualResult actual); /** * (experimental) Make an HTTP call to the provided endpoint. *

* Example: *

*

     * App app;
     * IntegTest integ;
     * IApiCall call = integ.assertions.httpApiCall("https://example.com/test");
     * call.expect(ExpectedResult.objectLike(Map.of(
     *         "Message", "Hello World!")));
     * 
*

* @param url This parameter is required. * @param options */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall httpApiCall(final @org.jetbrains.annotations.NotNull java.lang.String url, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.integtests.alpha.FetchOptions options); /** * (experimental) Make an HTTP call to the provided endpoint. *

* Example: *

*

     * App app;
     * IntegTest integ;
     * IApiCall call = integ.assertions.httpApiCall("https://example.com/test");
     * call.expect(ExpectedResult.objectLike(Map.of(
     *         "Message", "Hello World!")));
     * 
*

* @param url This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall httpApiCall(final @org.jetbrains.annotations.NotNull java.lang.String url); /** * (experimental) Invoke a lambda function and return the response which can be asserted. *

* Example: *

*

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

* @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall invokeFunction(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.LambdaInvokeFunctionProps props); /** * A proxy class which represents a concrete javascript instance of this type. */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.integtests.alpha.IDeployAssert.Jsii$Default { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } /** * (experimental) Query AWS using JavaScript SDK 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 *

* The service is the name of an AWS service, in one of the following forms: *

*

    *
  • An AWS SDK for JavaScript v3 package name (@aws-sdk/client-api-gateway)
  • *
  • An AWS SDK for JavaScript v3 client name (api-gateway)
  • *
  • An AWS SDK for JavaScript v2 constructor name (APIGateway)
  • *
  • A lowercase AWS SDK for JavaScript v2 constructor name (apigateway)
  • *
*

* The api is the name of an AWS API call, in one of the following forms: *

*

    *
  • An API call name as found in the API Reference documentation (GetObject)
  • *
  • The API call name starting with a lowercase letter (getObject)
  • *
  • The AWS SDK for JavaScript v3 command class name (GetObjectCommand)
  • *
*

* Example: *

*

         * App app;
         * IntegTest integ;
         * integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
         *         "QueueUrl", "url",
         *         "MessageBody", "hello"));
         * IApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
         *         "QueueUrl", "url"));
         * message.expect(ExpectedResult.objectLike(Map.of(
         *         "Messages", List.of(Map.of("Body", "hello")))));
         * 
*

* @param service This parameter is required. * @param api This parameter is required. * @param parameters * @param outputPaths */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall awsApiCall(final @org.jetbrains.annotations.NotNull java.lang.String service, final @org.jetbrains.annotations.NotNull java.lang.String api, final @org.jetbrains.annotations.Nullable java.lang.Object parameters, final @org.jetbrains.annotations.Nullable java.util.List outputPaths) { return software.amazon.jsii.Kernel.call(this, "awsApiCall", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(service, "service is required"), java.util.Objects.requireNonNull(api, "api is required"), parameters, outputPaths }); } /** * (experimental) Query AWS using JavaScript SDK 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 *

* The service is the name of an AWS service, in one of the following forms: *

*

    *
  • An AWS SDK for JavaScript v3 package name (@aws-sdk/client-api-gateway)
  • *
  • An AWS SDK for JavaScript v3 client name (api-gateway)
  • *
  • An AWS SDK for JavaScript v2 constructor name (APIGateway)
  • *
  • A lowercase AWS SDK for JavaScript v2 constructor name (apigateway)
  • *
*

* The api is the name of an AWS API call, in one of the following forms: *

*

    *
  • An API call name as found in the API Reference documentation (GetObject)
  • *
  • The API call name starting with a lowercase letter (getObject)
  • *
  • The AWS SDK for JavaScript v3 command class name (GetObjectCommand)
  • *
*

* Example: *

*

         * App app;
         * IntegTest integ;
         * integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
         *         "QueueUrl", "url",
         *         "MessageBody", "hello"));
         * IApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
         *         "QueueUrl", "url"));
         * message.expect(ExpectedResult.objectLike(Map.of(
         *         "Messages", List.of(Map.of("Body", "hello")))));
         * 
*

* @param service This parameter is required. * @param api This parameter is required. * @param parameters */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall awsApiCall(final @org.jetbrains.annotations.NotNull java.lang.String service, final @org.jetbrains.annotations.NotNull java.lang.String api, final @org.jetbrains.annotations.Nullable java.lang.Object parameters) { return software.amazon.jsii.Kernel.call(this, "awsApiCall", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(service, "service is required"), java.util.Objects.requireNonNull(api, "api is required"), parameters }); } /** * (experimental) Query AWS using JavaScript SDK 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 *

* The service is the name of an AWS service, in one of the following forms: *

*

    *
  • An AWS SDK for JavaScript v3 package name (@aws-sdk/client-api-gateway)
  • *
  • An AWS SDK for JavaScript v3 client name (api-gateway)
  • *
  • An AWS SDK for JavaScript v2 constructor name (APIGateway)
  • *
  • A lowercase AWS SDK for JavaScript v2 constructor name (apigateway)
  • *
*

* The api is the name of an AWS API call, in one of the following forms: *

*

    *
  • An API call name as found in the API Reference documentation (GetObject)
  • *
  • The API call name starting with a lowercase letter (getObject)
  • *
  • The AWS SDK for JavaScript v3 command class name (GetObjectCommand)
  • *
*

* Example: *

*

         * App app;
         * IntegTest integ;
         * integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
         *         "QueueUrl", "url",
         *         "MessageBody", "hello"));
         * IApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
         *         "QueueUrl", "url"));
         * message.expect(ExpectedResult.objectLike(Map.of(
         *         "Messages", List.of(Map.of("Body", "hello")))));
         * 
*

* @param service This parameter is required. * @param api This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall awsApiCall(final @org.jetbrains.annotations.NotNull java.lang.String service, final @org.jetbrains.annotations.NotNull java.lang.String api) { return software.amazon.jsii.Kernel.call(this, "awsApiCall", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(service, "service is required"), java.util.Objects.requireNonNull(api, "api is required") }); } /** * (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"));
         * 
*

* @param id This parameter is required. * @param expected This parameter is required. * @param actual This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final void expect(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.ExpectedResult expected, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.ActualResult actual) { software.amazon.jsii.Kernel.call(this, "expect", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(expected, "expected is required"), java.util.Objects.requireNonNull(actual, "actual is required") }); } /** * (experimental) Make an HTTP call to the provided endpoint. *

* Example: *

*

         * App app;
         * IntegTest integ;
         * IApiCall call = integ.assertions.httpApiCall("https://example.com/test");
         * call.expect(ExpectedResult.objectLike(Map.of(
         *         "Message", "Hello World!")));
         * 
*

* @param url This parameter is required. * @param options */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall httpApiCall(final @org.jetbrains.annotations.NotNull java.lang.String url, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.integtests.alpha.FetchOptions options) { return software.amazon.jsii.Kernel.call(this, "httpApiCall", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(url, "url is required"), options }); } /** * (experimental) Make an HTTP call to the provided endpoint. *

* Example: *

*

         * App app;
         * IntegTest integ;
         * IApiCall call = integ.assertions.httpApiCall("https://example.com/test");
         * call.expect(ExpectedResult.objectLike(Map.of(
         *         "Message", "Hello World!")));
         * 
*

* @param url This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall httpApiCall(final @org.jetbrains.annotations.NotNull java.lang.String url) { return software.amazon.jsii.Kernel.call(this, "httpApiCall", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(url, "url is required") }); } /** * (experimental) Invoke a lambda function and return the response which can be asserted. *

* Example: *

*

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

* @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall invokeFunction(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.LambdaInvokeFunctionProps props) { return software.amazon.jsii.Kernel.call(this, "invokeFunction", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } } /** * Internal default implementation for {@link IDeployAssert}. */ @software.amazon.jsii.Internal interface Jsii$Default extends IDeployAssert { /** * (experimental) Query AWS using JavaScript SDK 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 *

* The service is the name of an AWS service, in one of the following forms: *

*

    *
  • An AWS SDK for JavaScript v3 package name (@aws-sdk/client-api-gateway)
  • *
  • An AWS SDK for JavaScript v3 client name (api-gateway)
  • *
  • An AWS SDK for JavaScript v2 constructor name (APIGateway)
  • *
  • A lowercase AWS SDK for JavaScript v2 constructor name (apigateway)
  • *
*

* The api is the name of an AWS API call, in one of the following forms: *

*

    *
  • An API call name as found in the API Reference documentation (GetObject)
  • *
  • The API call name starting with a lowercase letter (getObject)
  • *
  • The AWS SDK for JavaScript v3 command class name (GetObjectCommand)
  • *
*

* Example: *

*

         * App app;
         * IntegTest integ;
         * integ.assertions.awsApiCall("SQS", "sendMessage", Map.of(
         *         "QueueUrl", "url",
         *         "MessageBody", "hello"));
         * IApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage", Map.of(
         *         "QueueUrl", "url"));
         * message.expect(ExpectedResult.objectLike(Map.of(
         *         "Messages", List.of(Map.of("Body", "hello")))));
         * 
*

* @param service This parameter is required. * @param api This parameter is required. * @param parameters * @param outputPaths */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override default @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall awsApiCall(final @org.jetbrains.annotations.NotNull java.lang.String service, final @org.jetbrains.annotations.NotNull java.lang.String api, final @org.jetbrains.annotations.Nullable java.lang.Object parameters, final @org.jetbrains.annotations.Nullable java.util.List outputPaths) { return software.amazon.jsii.Kernel.call(this, "awsApiCall", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(service, "service is required"), java.util.Objects.requireNonNull(api, "api is required"), parameters, outputPaths }); } /** * (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"));
         * 
*

* @param id This parameter is required. * @param expected This parameter is required. * @param actual This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override default void expect(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.ExpectedResult expected, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.ActualResult actual) { software.amazon.jsii.Kernel.call(this, "expect", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(expected, "expected is required"), java.util.Objects.requireNonNull(actual, "actual is required") }); } /** * (experimental) Make an HTTP call to the provided endpoint. *

* Example: *

*

         * App app;
         * IntegTest integ;
         * IApiCall call = integ.assertions.httpApiCall("https://example.com/test");
         * call.expect(ExpectedResult.objectLike(Map.of(
         *         "Message", "Hello World!")));
         * 
*

* @param url This parameter is required. * @param options */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override default @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall httpApiCall(final @org.jetbrains.annotations.NotNull java.lang.String url, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.integtests.alpha.FetchOptions options) { return software.amazon.jsii.Kernel.call(this, "httpApiCall", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(url, "url is required"), options }); } /** * (experimental) Invoke a lambda function and return the response which can be asserted. *

* Example: *

*

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

* @param props This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override default @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.IApiCall invokeFunction(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.integtests.alpha.LambdaInvokeFunctionProps props) { return software.amazon.jsii.Kernel.call(this, "invokeFunction", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.integtests.alpha.IApiCall.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy