UNPKG

@altostra/core

Version:

Core library for shared types and logic

24 lines (23 loc) 975 B
import type { Maybe } from "../../common/Maybe"; import type { Dict } from "../../common/Types"; import type { AwsResourceCommon } from "./common"; declare const serviceToIconMap: Dict<string>; export default serviceToIconMap; /** * Gets an icon path for a given aws type * @param awsType The resource type as it is in an AWS CloudFormation template * @returns If found, a path to icon file (assuming editor-like directory structure) \ * Otherwise, `undefined`. */ export declare function iconByType(awsType: string): Maybe<string>; export interface AwsServiceMetadata { displayName: string; color?: string; optionalProperties?: boolean; } export declare const awsServiceToMetadataMap: Record<string, AwsServiceMetadata>; export interface ValidCustomResourceDataResult { isValid: boolean; invalidResourceKeys: string[]; } export declare function isValidCustomResourceData(resources: Record<string, AwsResourceCommon>): ValidCustomResourceDataResult;