@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:15.987Z") @Stability(value=Experimental) 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");
software.constructs.Construct.Buildersoftware.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
AssertionsProvider(software.constructs.Construct scope,
String id) |
protected |
AssertionsProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AssertionsProvider(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPolicyStatementFromSdkCall(String service,
String api)
(experimental) Create a policy statement from a specific api call.
|
void |
addPolicyStatementFromSdkCall(String service,
String api,
List<String> resources)
(experimental) Create a policy statement from a specific api call.
|
Object |
encode(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.
|
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, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AssertionsProvider(software.amazon.jsii.JsiiObjectRef objRef)
protected AssertionsProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public AssertionsProvider(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental)
public void addPolicyStatementFromSdkCall(@NotNull
String service,
@NotNull
String api,
@Nullable
List<String> resources)
service - This parameter is required.api - This parameter is required.resources - @Stability(value=Experimental)
public void addPolicyStatementFromSdkCall(@NotNull
String service,
@NotNull
String api)
service - This parameter is required.api - This parameter is required.@Stability(value=Experimental) @NotNull public Object encode(@NotNull 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.@Stability(value=Experimental) @NotNull public Reference getHandlerRoleArn()
@Stability(value=Experimental) @NotNull public String getServiceToken()
Copyright © 2022. All rights reserved.