cdk-assume-role-plugin
Version:
Adds assume role and mfa support to cdk apps
36 lines (35 loc) • 1.23 kB
TypeScript
export interface AssumeRolePluginConfig {
userProfile?: string;
roles?: Record<string, string>;
}
export interface ProfileMapper {
resolve(): AssumeRolePluginConfig;
}
export interface JsonFileProfileMapperProps {
workingDirectory: string;
filename: string;
}
export declare class JsonFileProfileMapper implements ProfileMapper {
private readonly _workingDirectory;
private readonly _filename;
private _encoding;
constructor(props: JsonFileProfileMapperProps);
resolve(): AssumeRolePluginConfig;
}
export declare class PackageJsonProfileMapper implements ProfileMapper {
resolve(): AssumeRolePluginConfig;
}
export declare class EnvironmentAwareGlobalProfileMapper implements ProfileMapper {
static readonly environmentVariableName = "CDK_ASSUME_ROLE_PLUGIN_CONFIG";
private readonly _defaultGlobalConfigurationFile;
private readonly _workingDirectory;
private readonly _filename;
constructor();
resolve(): AssumeRolePluginConfig;
}
export declare class LocalProjectDirMapper implements ProfileMapper {
resolve(): AssumeRolePluginConfig;
}
export declare class PrecedenceProfileMapper implements ProfileMapper {
resolve(): AssumeRolePluginConfig;
}