@cloud-copilot/iam-data
Version:
29 lines • 1.29 kB
TypeScript
export interface ResourceType {
readonly key: string;
readonly arn: string;
readonly conditionKeys: string[];
}
/**
*
* @param serviceKey the service key to get the resource types for, is case insensitive
* @returns the resource types for the service
*/
export declare function iamResourceTypesForService(serviceKey: string): Promise<string[]>;
/**
* Check if a resource type exists for a service and resource type key
*
* @param serviceKey the service key to check for the resource type, is case insensitive
* @param resourceTypeKey the resource type key to check for, is case insensitive
* @returns true if the resource type exists, false otherwise
*/
export declare function iamResourceTypeExists(serviceKey: string, resourceTypeKey: string): Promise<boolean>;
/**
* Get the resource type for a service and resource type key
*
* @param serviceKey the service key to get the resource type for, is case insensitive
* @param resourceTypeKey the resource type key to get the resource type for, is case insensitive
* @throws an error if the resource type does not exist
* @returns the resource type
*/
export declare function iamResourceTypeDetails(serviceKey: string, resourceTypeKey: string): Promise<ResourceType>;
//# sourceMappingURL=resourceTypes.d.ts.map