Interface IAwsApiCall.Jsii$Default
- All Superinterfaces:
IAwsApiCall,IConstruct,software.constructs.IConstruct,IConstruct.Jsii$Default,software.constructs.IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IAwsApiCall.Jsii$Proxy
- Enclosing interface:
- IAwsApiCall
@Internal
public static interface IAwsApiCall.Jsii$Default
extends IAwsApiCall, IConstruct.Jsii$Default
Internal default implementation for
IAwsApiCall.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.integtests.IAwsApiCall
IAwsApiCall.Jsii$Default, IAwsApiCall.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault voidassertAtPath(String path, ExpectedResult expected) (experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall at the given path.default voidexpect(ExpectedResult expected) (experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall.default Reference(experimental) Returns the value of an attribute of the custom resource of an arbitrary type.default StringgetAttString(String attributeName) (experimental) Returns the value of an attribute of the custom resource of type string.default ConstructNodegetNode()The construct tree node for this construct.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default
-
assertAtPath
@Stability(Experimental) default void assertAtPath(@NotNull String path, @NotNull ExpectedResult expected) (experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall at the given path.For example the SQS.receiveMessage api response would look like:
If you wanted to assert the value of
Bodyyou could doExample:
IntegTest integ; Map<String, Map<String, Object>[]> actual = Map.of( "Messages", List.of(Map.of( "MessageId", "", "ReceiptHandle", "", "MD5OfBody", "", "Body", "hello", "Attributes", Map.of(), "MD5OfMessageAttributes", Map.of(), "MessageAttributes", Map.of()))); IAwsApiCall message = integ.assertions.awsApiCall("SQS", "receiveMessage"); message.assertAtPath("Messages.0.Body", ExpectedResult.stringLikeRegexp("hello"));- Specified by:
assertAtPathin interfaceIAwsApiCall- 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.Example:
IntegTest integ; IAwsApiCall invoke = integ.assertions.invokeFunction(LambdaInvokeFunctionProps.builder() .functionName("my-func") .build()); invoke.expect(ExpectedResult.objectLike(Map.of("Payload", "OK")));- Specified by:
expectin interfaceIAwsApiCall- Parameters:
expected- This parameter is required.
-
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.- Specified by:
getAttin interfaceIAwsApiCall- Parameters:
attributeName- the name of the attribute. This parameter is required.- Returns:
- a token for
Fn::GetAtt. UseToken.asXxxto encode the returnedReferenceas a specific type or use the conveniencegetAttStringfor string attributes.
-
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 interfaceIAwsApiCall- Parameters:
attributeName- the name of the attribute. This parameter is required.- Returns:
- a token for
Fn::GetAttencoded as a string.
-