Class AssertionsProvider
(experimental) Represents an assertions provider.
Inherited Members
Namespace: Amazon.CDK.IntegTests
Assembly: Amazon.CDK.IntegTests.dll
Syntax (csharp)
public class AssertionsProvider : Construct, IConstruct, IDependable
Syntax (vb)
Public Class AssertionsProvider
Inherits Construct
Implements IConstruct, IDependable
Remarks
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
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.IntegTests;
var assertionsProvider = new AssertionsProvider(this, "MyAssertionsProvider");
Synopsis
Constructors
AssertionsProvider(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AssertionsProvider(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AssertionsProvider(Construct, String) |
Properties
HandlerRoleArn | (experimental) A reference to the provider Lambda Function execution Role ARN. |
ServiceToken | (experimental) The ARN of the lambda function which can be used as a serviceToken to a CustomResource. |
Methods
AddPolicyStatementFromSdkCall(String, String, String[]) | (experimental) Create a policy statement from a specific api call. |
Encode(Object) | (experimental) Encode an object so it can be passed as custom resource parameters. |
Constructors
AssertionsProvider(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AssertionsProvider(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AssertionsProvider(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AssertionsProvider(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AssertionsProvider(Construct, String)
public AssertionsProvider(Construct scope, string id)
Parameters
- scope Constructs.Construct
- id System.String
Remarks
Stability: Experimental
Properties
HandlerRoleArn
(experimental) A reference to the provider Lambda Function execution Role ARN.
public virtual Reference HandlerRoleArn { get; }
Property Value
Remarks
Stability: Experimental
ServiceToken
(experimental) The ARN of the lambda function which can be used as a serviceToken to a CustomResource.
public virtual string ServiceToken { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
AddPolicyStatementFromSdkCall(String, String, String[])
(experimental) Create a policy statement from a specific api call.
public virtual void AddPolicyStatementFromSdkCall(string service, string api, string[] resources = null)
Parameters
- service System.String
- api System.String
- resources System.String[]
Remarks
Stability: Experimental
Encode(Object)
(experimental) Encode an object so it can be passed as custom resource parameters.
public virtual object Encode(object obj)
Parameters
- obj System.Object
Returns
System.Object
Remarks
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
Stability: Experimental