35 lines
894 B
TypeScript
35 lines
894 B
TypeScript
import type { IResource } from '../../core';
|
|
import { Resource } from '../../core';
|
|
import type { IApiRef, ApiReference } from '../../interfaces/generated/aws-appsync-interfaces.generated';
|
|
/**
|
|
* Interface for an API
|
|
*/
|
|
export interface IApi extends IResource, IApiRef {
|
|
/**
|
|
* The unique identifier for the AWS AppSync Api generated by the service.
|
|
*
|
|
* @attribute
|
|
*/
|
|
readonly apiId: string;
|
|
/**
|
|
* The ARN of the AWS AppSync Api.
|
|
*
|
|
* @attribute
|
|
*/
|
|
readonly apiArn: string;
|
|
}
|
|
/**
|
|
* Base Class for API
|
|
*/
|
|
export declare abstract class ApiBase extends Resource implements IApi {
|
|
/**
|
|
* The unique identifier for the AWS AppSync Api generated by the service.
|
|
*/
|
|
abstract readonly apiId: string;
|
|
/**
|
|
* The ARN of the AWS AppSync Api.
|
|
*/
|
|
abstract readonly apiArn: string;
|
|
get apiRef(): ApiReference;
|
|
}
|