mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-05 06:25:08 +09:00
chore: Update dist
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
|||||||
|
import { STSClient } from '@aws-sdk/client-sts';
|
||||||
|
export interface CredentialsClientProps {
|
||||||
|
region?: string;
|
||||||
|
proxyServer?: string;
|
||||||
|
}
|
||||||
|
export declare class CredentialsClient {
|
||||||
|
region?: string;
|
||||||
|
private _stsClient?;
|
||||||
|
private readonly requestHandler?;
|
||||||
|
constructor(props: CredentialsClientProps);
|
||||||
|
get stsClient(): STSClient;
|
||||||
|
validateCredentials(expectedAccessKeyId?: string, roleChaining?: boolean): Promise<void>;
|
||||||
|
private loadCredentials;
|
||||||
|
}
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
import type { CredentialsClient } from './CredentialsClient';
|
||||||
|
export interface assumeRoleParams {
|
||||||
|
credentialsClient: CredentialsClient;
|
||||||
|
roleToAssume: string;
|
||||||
|
roleDuration: number;
|
||||||
|
roleSessionName: string;
|
||||||
|
roleSkipSessionTagging?: boolean;
|
||||||
|
sourceAccountId?: string;
|
||||||
|
roleExternalId?: string;
|
||||||
|
webIdentityTokenFile?: string;
|
||||||
|
webIdentityToken?: string;
|
||||||
|
inlineSessionPolicy?: string;
|
||||||
|
managedSessionPolicies?: {
|
||||||
|
arn: string;
|
||||||
|
}[];
|
||||||
|
}
|
||||||
|
export declare function assumeRole(params: assumeRoleParams): Promise<import("@aws-sdk/client-sts").AssumeRoleCommandOutput>;
|
||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* When the GitHub Actions job is done, clean up any environment variables that
|
||||||
|
* may have been set by the configure-aws-credentials steps in the job.
|
||||||
|
*
|
||||||
|
* Environment variables are not intended to be shared across different jobs in
|
||||||
|
* the same GitHub Actions workflow: GitHub Actions documentation states that
|
||||||
|
* each job runs in a fresh instance. However, doing our own cleanup will
|
||||||
|
* give us additional assurance that these environment variables are not shared
|
||||||
|
* with any other jobs.
|
||||||
|
*/
|
||||||
|
export declare function cleanup(): void;
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
import type { Credentials } from '@aws-sdk/client-sts';
|
||||||
|
import type { CredentialsClient } from './CredentialsClient';
|
||||||
|
export declare function exportCredentials(creds?: Partial<Credentials>, outputCredentials?: boolean): void;
|
||||||
|
export declare function unsetCredentials(): void;
|
||||||
|
export declare function exportRegion(region: string): void;
|
||||||
|
export declare function exportAccountId(credentialsClient: CredentialsClient, maskAccountId?: boolean): Promise<string>;
|
||||||
|
export declare function sanitizeGitHubVariables(name: string): string;
|
||||||
|
export declare function defaultSleep(ms: number): Promise<unknown>;
|
||||||
|
declare let sleep: typeof defaultSleep;
|
||||||
|
export declare function withsleep(s: typeof sleep): void;
|
||||||
|
export declare function reset(): void;
|
||||||
|
export declare function verifyKeys(creds: Partial<Credentials> | undefined): boolean;
|
||||||
|
export declare function retryAndBackoff<T>(fn: () => Promise<T>, isRetryable: boolean, maxRetries?: number, retries?: number, base?: number): Promise<T>;
|
||||||
|
export declare function errorMessage(error: unknown): string;
|
||||||
|
export declare function isDefined<T>(i: T | undefined | null): i is T;
|
||||||
|
export {};
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
export declare function run(): Promise<void>;
|
||||||
+6813
-6049
File diff suppressed because it is too large
Load Diff
+6005
-6558
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user