@altostra/core
Version:
Core library for shared types and logic
19 lines (18 loc) • 895 B
TypeScript
import type { EventPattern } from "../../aws/CloudFormation/Events/EventPattern";
import type { TypeValidation } from '@altostra/type-validations';
import type { ResourceBase } from "./Common";
export declare type EventBusType = 'resource.event-bridge.event-bus';
export declare const eventBusDefaultName: string;
export interface EventBus extends ResourceBase {
type: EventBusType;
}
export declare const isExternalEventBridge: TypeValidation<EventBus>;
export declare type EventBridgeRuleType = 'resource.event-bridge.rule';
export interface EventBridgeRule extends ResourceBase {
type: EventBridgeRuleType;
ruleName: string;
eventPattern: EventPattern;
}
export declare const isEventBridgeRule: TypeValidation<EventBridgeRule>;
export declare function isEventBridgeRuleName(value: unknown): boolean;
export declare function isEventBridgeEventBusName(value: unknown): boolean;