Class ApiGatewayDeployment

A test construct representing an API Gateway API Deployment

See

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.CfnDeployment.html

Hierarchy

  • Resource

    Hierarchy

    • ApiGatewayDeployment

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

  • The number of resources matching from the template.

    Returns

    Returns number

  • 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

  • Checks if the matching resource does not exist.

    Throws

    if the matching resource exists.

    Returns void

  • Checks if the matching resource exists.

    Throws

    if the matching resource does not exist.

    Returns void

  • Checks if the tag with the given name (and optionally value) exists on the resource.

    Returns

    Throws

    if the tag is not found.

    Parameters

    • key: string

      The exact name of the tag.

    • Optional value: string

      Either empty to check only for the tag or the exact value of the tag.

    Returns ApiGatewayDeployment

  • 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

  • Converts the resource to its CloudFormation definition from the template.

    Returns

    Returns any

  • Sets/Overwrites a particular property in Metadata.

    Returns

    Parameters

    • key: string

      The key of the metadata.

    • Optional value: any

      The metadata's value, either a matching string, a Matcher, or not set to only match for the existence of the property.

    Returns ApiGatewayDeployment

  • Sets/Overwrites a particular property in Properties.

    Returns

    Parameters

    • key: string

      The key of the property.

    • Optional value: any

      The property's value, either a matching string, a Matcher, or not set to only match for the existence of the property.

    Returns ApiGatewayDeployment

  • Sets/Overwrites a particular property in the root definition.

    Returns

    Parameters

    • key: string

      The key of the property.

    • Optional value: any

      The metadata's value, either a matching string, a Matcher, or not set to only match for the existence of the property.

    Returns ApiGatewayDeployment

Generated using TypeDoc