@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:15.988Z") @Stability(value=Experimental) public class AwsApiCall extends Construct implements IAwsApiCall
Example:
Stack myAppStack;
AwsApiCall.Builder.create(myAppStack, "GetObject")
.service("S3")
.api("getObject")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
AwsApiCall.Builder
(experimental) A fluent builder for
AwsApiCall. |
software.amazon.jsii.JsiiObject.InitializationModeIAwsApiCall.Jsii$Default, IAwsApiCall.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
AwsApiCall(software.constructs.Construct scope,
String id,
AwsApiCallProps props) |
protected |
AwsApiCall(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AwsApiCall(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertAtPath(String path,
ExpectedResult expected)
(experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall at the given path.
|
void |
expect(ExpectedResult expected)
(experimental) Assert that the ExpectedResult is equal to the result of the AwsApiCall.
|
Reference |
getAtt(String attributeName)
(experimental) Returns the value of an attribute of the custom resource of an arbitrary type.
|
String |
getAttString(String attributeName)
(experimental) Returns the value of an attribute of the custom resource of type string.
|
protected AssertionsProvider |
getProvider() |
protected void |
setProvider(AssertionsProvider value) |
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected AwsApiCall(software.amazon.jsii.JsiiObjectRef objRef)
protected AwsApiCall(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public AwsApiCall(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
AwsApiCallProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental)
public void assertAtPath(@NotNull
String path,
@NotNull
ExpectedResult expected)
For example the SQS.receiveMessage api response would look like:
If you wanted to assert the value of Body you could do
assertAtPath in interface IAwsApiCallpath - This parameter is required.expected - This parameter is required.@Stability(value=Experimental)
public void expect(@NotNull
ExpectedResult expected)
expect in interface IAwsApiCallexpected - This parameter is required.@Stability(value=Experimental) @NotNull public Reference getAtt(@NotNull String attributeName)
Attributes are returned from the custom resource provider through the
Data map where the key is the attribute name.
getAtt in interface IAwsApiCallattributeName - This parameter is required.@Stability(value=Experimental) @NotNull public String getAttString(@NotNull String attributeName)
Attributes are returned from the custom resource provider through the
Data map where the key is the attribute name.
getAttString in interface IAwsApiCallattributeName - This parameter is required.@Stability(value=Experimental) @NotNull protected AssertionsProvider getProvider()
@Stability(value=Experimental)
protected void setProvider(@NotNull
AssertionsProvider value)
Copyright © 2022. All rights reserved.