MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / buildRoleTrustPolicy

Function buildRoleTrustPolicy

packages/cli/src/commands/lambda/policies.ts:191–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 * be a confusingly-overscoped runtime role no human should attach.
190 */
191export function buildRoleTrustPolicy(): TrustPolicyDocument {
192 return {
193 Version: "2012-10-17",
194 Statement: [
195 {
196 Effect: "Allow",
197 Principal: { Service: "cloudformation.amazonaws.com" },
198 Action: "sts:AssumeRole",
199 },
200 ],
201 };
202}
203
204export interface PoliciesArgs {
205 verb: PoliciesVerb;

Callers 2

runPoliciesFunction · 0.85
policies.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected