export declare enum InvalidActionBehavior { Remove = "Remove", Error = "Error", Include = "Include" } /** * Options for the expand function * */ export interface ExpandIamActionsOptions { /** * If true, a single `*` will be expanded to all actions for all services * If false, a single `*` will be returned as is * Default: false */ expandAsterisk: boolean; /** * If true, an error will be thrown if the action string is not in the correct format * If false, an empty array will be returned * Default: false */ errorOnInvalidFormat: boolean; /** * If true, an error will be thrown if the service in the action string does not exist * If false, an empty array will be returned * Default: false */ errorOnInvalidService: boolean; /** * The behavior to use when an invalid action is encountered without wildcards * @{InvalidActionBehavior.Remove} will remove the invalid action from the output * @{InvalidActionBehavior.Error} will throw an error if an invalid action is encountered * @{InvalidActionBehavior.Include} will include the invalid action in the output * * Default: InvalidActionBehavior.Remove */ invalidActionBehavior: InvalidActionBehavior; } /** * Expands an IAM action string that contains wildcards. * If the action string contains no wildcards, it is returned as is. * @see {@link ExpandIamActionsOptions} for options to customize behavior * * If any options are set to throw an error, the function will throw an error if validation fails for a single value. * * @param actionStringOrStrings An IAM action or array IAM action(s) that may contain wildcards * @param overrideOptions Options to override the default behavior * @returns An array of expanded action strings flattened to a single array */ export declare function expandIamActions(actionStringOrStrings: string | string[], overrideOptions?: Partial): Promise; //# sourceMappingURL=expand.d.ts.map