AssertionsProvider

class aws_cdk.integ_tests.AssertionsProvider(scope, id)

Bases: 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

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.integ_tests as integ_tests

assertions_provider = integ_tests.AssertionsProvider(self, "MyAssertionsProvider")
Parameters:
Stability:

experimental

Methods

add_policy_statement_from_sdk_call(service, api, resources=None)

(experimental) Create a policy statement from a specific api call.

Parameters:
  • service (str) –

  • api (str) –

  • resources (Optional[Sequence[str]]) –

Stability:

experimental

Return type:

None

encode(obj)

(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 (Any) –

Stability:

experimental

Return type:

Any

to_string()

Returns a string representation of this construct.

Return type:

str

Attributes

handler_role_arn

(experimental) A reference to the provider Lambda Function execution Role ARN.

Stability:

experimental

node

The construct tree node associated with this construct.

service_token

(experimental) The ARN of the lambda function which can be used as a serviceToken to a CustomResource.

Stability:

experimental

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters:

x (Any) –

Return type:

bool