Class CloudFormationCustomResource

Hierarchy

Constructors

Properties

definitionMatcher: Dict

Member

The matching definition of the resource (including the Properties).

dependencyMatcher: string[]

Member

The matching dependency keys of the resource (DependsOn).

key: string

Member

The matching key of the resource.

metadataMatcher: any

Member

The matching Metadata of the resource.

propertiesMatcher: any

Member

The matching Properties of the resource.

Member

The parsed template.

Accessors

  • get arn(): Matcher
  • The matcher for the ARN of the resource.

    Returns Matcher

  • get definition(): any
  • The definition of the resource from the template.

    Throws

    if the resource is not found.

    Throws

    if more than one matching resource is found.

    Returns any

  • get id(): string
  • The key/ID of the resource from the template.

    Returns string

  • get metadata(): Dict
  • The metadata of the resource from the template.

    Returns Dict

  • get ref(): Matcher
  • The matcher for the Ref of the resource.

    Returns Matcher

Methods

  • Asserts the condition and in case of failure, fails with a detailed error containing the template's debug information.

    Throws

    if the condition is false.

    Parameters

    • condition: boolean

      The condition to evaluate for true.

    • message: string

      The message to fail if the condition is false.

    Returns void

  • Checks if the number of matching resources is expected.

    Throws

    if the number of the matching resources is not the expected.

    Parameters

    • count: number

      The expected number of matching resources.

    Returns void

  • Returns debug information (as JSON string) of the test construct, including the matching definition and the resources with the same type found in the template.

    Returns

    Returns string

Generated using TypeDoc