Class IDeployAssert.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.integtests.alpha.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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.integtests.alpha.IDeployAssert
IDeployAssert.Jsii$Default, IDeployAssert.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IApiCallawsApiCall(String service, String api) (experimental) Query AWS using JavaScript SDK API calls.final IApiCallawsApiCall(String service, String api, Object parameters) (experimental) Query AWS using JavaScript SDK API calls.final IApiCallhttpApiCall(String url) (experimental) Make an HTTP call to the provided endpoint.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awscdk.integtests.alpha.IDeployAssert.Jsii$Default
awsApiCall, expect, httpApiCall, invokeFunctionMethods 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 IApiCall awsApiCall(@NotNull String service, @NotNull String api, @Nullable 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
serviceis 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
apiis 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")))));- Specified by:
awsApiCallin interfaceIDeployAssert- Specified by:
awsApiCallin interfaceIDeployAssert.Jsii$Default- Parameters:
service- This parameter is required.api- This parameter is required.parameters-
- An AWS SDK for JavaScript v3 package name (
-
awsApiCall
@Stability(Experimental) @NotNull public final IApiCall awsApiCall(@NotNull String service, @NotNull String api) (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
serviceis 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
apiis 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")))));- Specified by:
awsApiCallin interfaceIDeployAssert- Specified by:
awsApiCallin interfaceIDeployAssert.Jsii$Default- Parameters:
service- This parameter is required.api- This parameter is required.
- An AWS SDK for JavaScript v3 package name (
-
httpApiCall
(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!")));- Specified by:
httpApiCallin interfaceIDeployAssert- Specified by:
httpApiCallin interfaceIDeployAssert.Jsii$Default- Parameters:
url- This parameter is required.
-