Class AssertionsProvider
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.integtests.AssertionsProvider
- All Implemented Interfaces:
IConstruct,IDependable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.689Z")
@Stability(Experimental)
public class AssertionsProvider
extends Construct
(experimental) Represents an assertions provider.
The creates a singletone Lambda Function that will create a single function per stack that serves as the custom resource provider for the various assertion providers
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.integtests.*; AssertionsProvider assertionsProvider = new AssertionsProvider(this, "MyAssertionsProvider");
-
Nested Class Summary
Nested classes/interfaces inherited from class software.constructs.Construct
software.constructs.Construct.BuilderNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAssertionsProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAssertionsProvider(software.amazon.jsii.JsiiObjectRef objRef) AssertionsProvider(software.constructs.Construct scope, String id) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPolicyStatementFromSdkCall(String service, String api) (experimental) Create a policy statement from a specific api call.voidaddPolicyStatementFromSdkCall(String service, String api, List<String> resources) (experimental) Create a policy statement from a specific api call.(experimental) Encode an object so it can be passed as custom resource parameters.(experimental) A reference to the provider Lambda Function execution Role ARN.(experimental) The ARN of the lambda function which can be used as a serviceToken to a CustomResource.Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AssertionsProvider
protected AssertionsProvider(software.amazon.jsii.JsiiObjectRef objRef) -
AssertionsProvider
protected AssertionsProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AssertionsProvider
@Stability(Experimental) public AssertionsProvider(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
addPolicyStatementFromSdkCall
@Stability(Experimental) public void addPolicyStatementFromSdkCall(@NotNull String service, @NotNull String api, @Nullable List<String> resources) (experimental) Create a policy statement from a specific api call.- Parameters:
service- This parameter is required.api- This parameter is required.resources-
-
addPolicyStatementFromSdkCall
@Stability(Experimental) public void addPolicyStatementFromSdkCall(@NotNull String service, @NotNull String api) (experimental) Create a policy statement from a specific api call.- Parameters:
service- This parameter is required.api- This parameter is required.
-
encode
(experimental) Encode an object so it can be passed as custom resource parameters.Custom resources will convert all input parameters to strings so we encode non-strings here so we can then decode them correctly in the provider function
- Parameters:
obj- This parameter is required.
-
getHandlerRoleArn
(experimental) A reference to the provider Lambda Function execution Role ARN. -
getServiceToken
(experimental) The ARN of the lambda function which can be used as a serviceToken to a CustomResource.
-