@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
17 lines • 822 B
TypeScript
import { ResourceAnalysis } from '../evaluate.js';
import { RequestResource } from '../request/requestResource.js';
import { DefaultServiceAuthorizer } from './DefaultServiceAuthorizer.js';
/**
* The default authorizer for services.
*/
export declare class KmsServiceAuthorizer extends DefaultServiceAuthorizer {
/**
* Determines if the service trusts the principal's Account's IAM policies
*
* @param sameAccount - If the principal and resource are in the same account
* @param resourceAnalysis - The resource policy analysis
* @returns true if the service trusts the principal's account IAM policies
*/
serviceTrustsPrincipalAccount(sameAccount: boolean, resourceAnalysis: ResourceAnalysis, resource: RequestResource): boolean;
}
//# sourceMappingURL=KmsServiceAuthorizer.d.ts.map