Class ApiCallBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.integtests.alpha.ApiCallBase
- All Implemented Interfaces:
IApiCall,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
AwsApiCall,HttpApiCall
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:51.015Z")
@Stability(Experimental)
public abstract class ApiCallBase
extends software.constructs.Construct
implements IApiCall
(experimental) Base class for an ApiCall.
-
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.IApiCall
IApiCall.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApiCallBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedApiCallBase(software.amazon.jsii.JsiiObjectRef objRef) protectedApiCallBase(software.constructs.Construct scope, String id) -
Method Summary
Modifier and TypeMethodDescriptionabstract IApiCallassertAtPath(String path, ExpectedResult expected) (experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall at the given path.expect(ExpectedResult expected) (experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall.protected abstract CustomResource(experimental) Returns the value of an attribute of the custom resource of an arbitrary type.getAttString(String attributeName) (experimental) Returns the value of an attribute of the custom resource of type string.protected Stringprotected Stringabstract AssertionsProvider(experimental) access the AssertionsProvider.protected String(experimental) Allows you to chain IApiCalls.protected voidsetExpectedResult(String value) protected voidsetFlattenResponse(String value) protected voidsetOutputPaths(List<String> value) protected voidsetStateMachineArn(String value) abstract IApiCall(experimental) Wait for the IApiCall to return the expected response.abstract IApiCall(experimental) Wait for the IApiCall to return the expected response.Methods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ApiCallBase
protected ApiCallBase(software.amazon.jsii.JsiiObjectRef objRef) -
ApiCallBase
protected ApiCallBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ApiCallBase
@Stability(Experimental) protected ApiCallBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
assertAtPath
@Stability(Experimental) @NotNull public abstract IApiCall assertAtPath(@NotNull String path, @NotNull ExpectedResult expected) (experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall at the given path.Providing a path will filter the output of the initial API call.
For example the SQS.receiveMessage api response would look like:
If you wanted to assert the value of
Bodyyou could do- Specified by:
assertAtPathin interfaceIApiCall- Parameters:
path- This parameter is required.expected- This parameter is required.
-
expect
(experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall. -
getAtt
(experimental) Returns the value of an attribute of the custom resource of an arbitrary type.Attributes are returned from the custom resource provider through the
Datamap where the key is the attribute name. -
getAttString
(experimental) Returns the value of an attribute of the custom resource of type string.Attributes are returned from the custom resource provider through the
Datamap where the key is the attribute name.- Specified by:
getAttStringin interfaceIApiCall- Parameters:
attributeName- This parameter is required.- Returns:
- a token for
Fn::GetAttencoded as a string.
-
next
(experimental) Allows you to chain IApiCalls. This adds an explicit dependency betweent the two resources.Returns the IApiCall provided as
next -
waitForAssertions
@Stability(Experimental) @NotNull public abstract IApiCall waitForAssertions(@Nullable WaiterStateMachineOptions options) (experimental) Wait for the IApiCall to return the expected response.If no expected response is specified then it will wait for the IApiCall to return a success
- Specified by:
waitForAssertionsin interfaceIApiCall- Parameters:
options-
-
waitForAssertions
(experimental) Wait for the IApiCall to return the expected response.If no expected response is specified then it will wait for the IApiCall to return a success
- Specified by:
waitForAssertionsin interfaceIApiCall
-
getApiCallResource
-
getProvider
(experimental) access the AssertionsProvider.This can be used to add additional IAM policies the the provider role policy
- Specified by:
getProviderin interfaceIApiCall
-
getFlattenResponse
-
setFlattenResponse
-
getExpectedResult
-
setExpectedResult
-
getOutputPaths
-
setOutputPaths
-
getStateMachineArn
-
setStateMachineArn
-