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.104.0 (build e79254c)",
date="2025-01-15T21:09:28.954Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.integtests.alpha.IApiCall
IApiCall.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
ApiCallBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ApiCallBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
ApiCallBase
(software.constructs.Construct scope, String id) -
Method Summary
Modifier and TypeMethodDescriptionabstract IApiCall
assertAtPath
(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 String
protected String
abstract AssertionsProvider
(experimental) access the AssertionsProvider.protected String
(experimental) Allows you to chain IApiCalls.protected void
setExpectedResult
(String value) protected void
setFlattenResponse
(String value) protected void
setOutputPaths
(List<String> value) protected void
setStateMachineArn
(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, toString
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, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods 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
Body
you could do- Specified by:
assertAtPath
in 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
Data
map 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
Data
map where the key is the attribute name.- Specified by:
getAttString
in interfaceIApiCall
- Parameters:
attributeName
- This parameter is required.- Returns:
- a token for
Fn::GetAtt
encoded 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:
waitForAssertions
in 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:
waitForAssertions
in interfaceIApiCall
-
getApiCallResource
-
getProvider
(experimental) access the AssertionsProvider.This can be used to add additional IAM policies the the provider role policy
- Specified by:
getProvider
in interfaceIApiCall
-
getFlattenResponse
-
setFlattenResponse
-
getExpectedResult
-
setExpectedResult
-
getOutputPaths
-
setOutputPaths
-
getStateMachineArn
-
setStateMachineArn
-