UNPKG

@fntio/infra-client

Version:

Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.

8 lines (7 loc) • 660 B
/** `roleSessionName` — how the STS session of a vended role is named, which is what the target account's console * and CloudTrail show as the federated user (`<Role>/<session name>`). `userId` is the Cognito sub * (`creds-<sub>`); `email` is the caller's email (a token's owner, a service user's registry name). Omit = userId. */ export type RoleSessionNamePolicy = "userId" | "email"; export declare const ROLE_SESSION_NAME_POLICIES: readonly RoleSessionNamePolicy[]; /** A bad value must fail synth — the API would silently fall back to the sub. */ export declare function resolveRoleSessionName(cfg?: RoleSessionNamePolicy): RoleSessionNamePolicy;