@altostra/core
Version:
Core library for shared types and logic
61 lines (60 loc) • 2.11 kB
TypeScript
import type { Base64, Base64Key } from "./Base64";
import type { Cidr, CidrKey } from "./Cidr";
import type { FindInMap, FindInMapKey } from "./FindInMap";
import type { GetAtt, GetAttKey } from "./GetAtt";
import type { GetAZs, GetAZsKey } from "./GetAZs";
import type { If, IfKey } from "./If";
import type { ImportValue, ImportValueKey } from "./ImportValue";
import type { Join, JoinKey } from "./Join";
import type { Length, LengthKey } from "./Length";
import type { Ref, RefKey } from "./Ref";
import type { Select, SelectKey } from "./Select";
import type { Split, SplitKey } from "./Split";
import type { Sub, SubKey } from "./Sub";
import type { Transform, TransformKey } from "./Transform";
export * from "./Base64";
export * from "./Cidr";
export * from "./FindInMap";
export * from "./GetAtt";
export * from "./GetAZs";
export * from "./ImportValue";
export * from "./Join";
export * from "./Length";
export * from "./Select";
export * from "./Split";
export * from "./Sub";
export * from "./Ref";
export * from "./If";
export * from "./Conditions";
export { type CloudFormationValue, type CloudFormationString, type IntrinsicFunction, isCloudFormationValue, isCloudFormationString, isIntristicFunc, isIntrinsicFunc, } from "./common";
export declare const INTRINSIC_FUNCTION_KEYS: readonly ["Fn::Base64", "Fn::Cidr", "Fn::FindInMap", "Fn::GetAtt", "Fn::GetAZs", "Fn::If", "Fn::ImportValue", "Fn::Join", "Fn::Length", "Ref", "Fn::Select", "Fn::Split", "Fn::Sub", "Fn::Transform"];
export declare type IntrinsicFunctionByKey = {
[K in Base64Key]: Base64;
} & {
[K in CidrKey]: Cidr;
} & {
[K in FindInMapKey]: FindInMap;
} & {
[K in GetAttKey]: GetAtt;
} & {
[K in GetAZsKey]: GetAZs;
} & {
[K in IfKey]: If;
} & {
[K in ImportValueKey]: ImportValue;
} & {
[K in JoinKey]: Join;
} & {
[K in LengthKey]: Length;
} & {
[K in RefKey]: Ref;
} & {
[K in SelectKey]: Select;
} & {
[K in SplitKey]: Split;
} & {
[K in SubKey]: Sub;
} & {
[K in TransformKey]: Transform;
};
export declare type IntrinsicFunctionKeys = keyof IntrinsicFunctionByKey;