UNPKG

@aws-cdk/integ-tests-alpha

Version:

CDK Integration Testing Constructs

25 lines (24 loc) 1 kB
import { CustomResource } from 'aws-cdk-lib'; import type { Construct } from 'constructs'; import type { IApiCall } from './api-call-base'; import { ApiCallBase } from './api-call-base'; import type { ExpectedResult } from './common'; import type { HttpRequestParameters } from './providers'; import { AssertionsProvider } from './providers'; import type { WaiterStateMachineOptions } from './waiter-state-machine'; /** * Options for creating an HttpApiCall provider */ export interface HttpCallProps extends HttpRequestParameters { } /** * Construct that creates a custom resource that will perform * an HTTP API Call */ export declare class HttpApiCall extends ApiCallBase { protected readonly apiCallResource: CustomResource; readonly provider: AssertionsProvider; constructor(scope: Construct, id: string, props: HttpCallProps); assertAtPath(_path: string, _expected: ExpectedResult): IApiCall; waitForAssertions(options?: WaiterStateMachineOptions | undefined): IApiCall; }