class AssertionsProvider
Language | Type name |
---|---|
![]() | Amazon.CDK.IntegTests.AssertionsProvider |
![]() | software.amazon.awscdk.integtests.AssertionsProvider |
![]() | aws_cdk.integ_tests.AssertionsProvider |
![]() | @aws-cdk/integ-tests » AssertionsProvider |
Implements
IConstruct
, IConstruct
, IDependable
Extends
Construct
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 * as integ_tests from '@aws-cdk/integ-tests';
const assertionsProvider = new integ_tests.AssertionsProvider(this, 'MyAssertionsProvider');
Initializer
new AssertionsProvider(scope: Construct, id: string)
Parameters
- scope
Construct
- id
string
Properties
Name | Type | Description |
---|---|---|
handler | Reference | A reference to the provider Lambda Function execution Role ARN. |
node | Construct | The construct tree node associated with this construct. |
service | string | The ARN of the lambda function which can be used as a serviceToken to a CustomResource. |
handlerRoleArn
Type:
Reference
A reference to the provider Lambda Function execution Role ARN.
node
Type:
Construct
The construct tree node associated with this construct.
serviceToken
Type:
string
The ARN of the lambda function which can be used as a serviceToken to a CustomResource.
Methods
Name | Description |
---|---|
add | Create a policy statement from a specific api call. |
encode(obj) | Encode an object so it can be passed as custom resource parameters. |
to | Returns a string representation of this construct. |
addPolicyStatementFromSdkCall(service, api, resources?)
public addPolicyStatementFromSdkCall(service: string, api: string, resources?: string[]): void
Parameters
- service
string
- api
string
- resources
string[]
Create a policy statement from a specific api call.
encode(obj)
public encode(obj: any): any
Parameters
- obj
any
Returns
any
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
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.