@cloud-copilot/iam-data
Version:
30 lines • 1.24 kB
TypeScript
export interface ConditionKey {
key: string;
description: string;
type: string;
}
/**
* Reads the condition keys for a service
*
* @param serviceKey the service key to read the condition keys for, is case insensitive
* @returns the condition keys for the service
*/
export declare function iamConditionKeysForService(serviceKey: string): Promise<string[]>;
/**
* Check if a condition key exists
*
* @param serviceKey the service key to check for the condition key, is case insensitive
* @param conditionKey the condition key to check for, is case insensitive
* @returns true if the condition key exists, false otherwise
*/
export declare function iamConditionKeyExists(serviceKey: string, conditionKey: string): Promise<boolean>;
/**
* Get the details for a condition key
*
* @param serviceKey the service key to get the condition key for, is case insensitive
* @param conditionKey the condition key to get the details for, is case insensitive
* @throws error if the service or condition key does not exist
* @returns the details for the condition key
*/
export declare function iamConditionKeyDetails(serviceKey: string, conditionKey: string): Promise<ConditionKey>;
//# sourceMappingURL=conditionKeys.d.ts.map