@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:26.421Z") public class AssertionsProvider extends Construct
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");
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
AssertionsProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssertionsProvider(software.amazon.jsii.JsiiObjectRef objRef) |
|
AssertionsProvider(software.constructs.Construct scope,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addPolicyStatementFromSdkCall(java.lang.String service,
java.lang.String api)
(experimental) Create a policy statement from a specific api call.
|
void |
addPolicyStatementFromSdkCall(java.lang.String service,
java.lang.String api,
java.util.List<java.lang.String> resources)
(experimental) Create a policy statement from a specific api call.
|
java.lang.Object |
encode(java.lang.Object obj)
(experimental) Encode an object so it can be passed as custom resource parameters.
|
Reference |
getHandlerRoleArn()
(experimental) A reference to the provider Lambda Function execution Role ARN.
|
java.lang.String |
getServiceToken()
(experimental) The ARN of the lambda function which can be used as a serviceToken to a CustomResource.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected AssertionsProvider(software.amazon.jsii.JsiiObjectRef objRef)
protected AssertionsProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public AssertionsProvider(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public void addPolicyStatementFromSdkCall(java.lang.String service, java.lang.String api, java.util.List<java.lang.String> resources)
service
- This parameter is required.api
- This parameter is required.resources
- public void addPolicyStatementFromSdkCall(java.lang.String service, java.lang.String api)
service
- This parameter is required.api
- This parameter is required.public java.lang.Object encode(java.lang.Object obj)
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
obj
- This parameter is required.public Reference getHandlerRoleArn()
public java.lang.String getServiceToken()