@aws-sdk/client-eks-auth 3.458.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +214 -0
- package/dist-cjs/EKSAuth.js +13 -0
- package/dist-cjs/EKSAuthClient.js +43 -0
- package/dist-cjs/commands/AssumeRoleForPodIdentityCommand.js +51 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/EndpointParameters.js +11 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/EKSAuthServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +136 -0
- package/dist-cjs/protocols/Aws_restJson1.js +270 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/EKSAuth.js +9 -0
- package/dist-es/EKSAuthClient.js +39 -0
- package/dist-es/commands/AssumeRoleForPodIdentityCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/EndpointParameters.js +7 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/EKSAuthServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +121 -0
- package/dist-es/protocols/Aws_restJson1.js +265 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/EKSAuth.d.ts +18 -0
- package/dist-types/EKSAuthClient.d.ts +171 -0
- package/dist-types/commands/AssumeRoleForPodIdentityCommand.d.ts +128 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/EKSAuthServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +273 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +11 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/EKSAuth.d.ts +22 -0
- package/dist-types/ts3.4/EKSAuthClient.d.ts +122 -0
- package/dist-types/ts3.4/commands/AssumeRoleForPodIdentityCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +31 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/EKSAuthServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +101 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +17 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +102 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
|
|
2
|
+
import { EKSAuthClientConfig } from "./EKSAuthClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
|
+
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
14
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
15
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
16
|
+
httpHandlerConfigs(): {};
|
|
17
|
+
}) | RequestHandler;
|
|
18
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
19
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
20
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
21
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
|
+
apiVersion: string;
|
|
24
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
25
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
26
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
27
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
28
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
29
|
+
disableHostPrefix: boolean;
|
|
30
|
+
serviceId: string;
|
|
31
|
+
logger: import("@smithy/types").Logger;
|
|
32
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
33
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
34
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
35
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
36
|
+
}) => import("@smithy/types").EndpointV2;
|
|
37
|
+
tls?: boolean | undefined;
|
|
38
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
39
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
|
|
40
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
41
|
+
signingEscapePath?: boolean | undefined;
|
|
42
|
+
systemClockOffset?: number | undefined;
|
|
43
|
+
signingRegion?: string | undefined;
|
|
44
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
45
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
46
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import { EKSAuthClientConfig } from "./EKSAuthClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
7
|
+
runtime: string;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
|
+
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
14
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
15
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
16
|
+
httpHandlerConfigs(): {};
|
|
17
|
+
}) | RequestHandler;
|
|
18
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
19
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
20
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
21
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
|
+
apiVersion: string;
|
|
24
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
25
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
26
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
27
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
28
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
29
|
+
disableHostPrefix: boolean;
|
|
30
|
+
serviceId: string;
|
|
31
|
+
logger: import("@smithy/types").Logger;
|
|
32
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
33
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
34
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
35
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
36
|
+
}) => import("@smithy/types").EndpointV2;
|
|
37
|
+
tls?: boolean | undefined;
|
|
38
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
39
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
|
|
40
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
41
|
+
signingEscapePath?: boolean | undefined;
|
|
42
|
+
systemClockOffset?: number | undefined;
|
|
43
|
+
signingRegion?: string | undefined;
|
|
44
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
45
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
46
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EKSAuthClientConfig } from "./EKSAuthClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
9
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
10
|
+
httpHandlerConfigs(): {};
|
|
11
|
+
}) | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
12
|
+
apiVersion: string;
|
|
13
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
14
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
17
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
18
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
19
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
20
|
+
disableHostPrefix: boolean;
|
|
21
|
+
serviceId: string;
|
|
22
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
25
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
|
+
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
27
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
28
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
29
|
+
logger: import("@smithy/types").Logger;
|
|
30
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
31
|
+
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
32
|
+
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
33
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
34
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
35
|
+
}) => import("@smithy/types").EndpointV2;
|
|
36
|
+
tls?: boolean | undefined;
|
|
37
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
38
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
|
|
39
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
40
|
+
signingEscapePath?: boolean | undefined;
|
|
41
|
+
systemClockOffset?: number | undefined;
|
|
42
|
+
signingRegion?: string | undefined;
|
|
43
|
+
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
44
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
45
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EKSAuthClientConfig } from "./EKSAuthClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: EKSAuthClientConfig) => {
|
|
6
|
+
apiVersion: string;
|
|
7
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
8
|
+
base64Encoder: import("@smithy/types").Encoder;
|
|
9
|
+
disableHostPrefix: boolean;
|
|
10
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
11
|
+
logger?: import("@smithy/types").Logger | undefined;
|
|
12
|
+
}) => import("@smithy/types").EndpointV2;
|
|
13
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
14
|
+
logger: import("@smithy/types").Logger;
|
|
15
|
+
serviceId: string;
|
|
16
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
17
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
18
|
+
utf8Encoder: import("@smithy/types").Encoder;
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EKSAuthExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: EKSAuthExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
AssumeRoleForPodIdentityCommandInput,
|
|
4
|
+
AssumeRoleForPodIdentityCommandOutput,
|
|
5
|
+
} from "./commands/AssumeRoleForPodIdentityCommand";
|
|
6
|
+
import { EKSAuthClient } from "./EKSAuthClient";
|
|
7
|
+
export interface EKSAuth {
|
|
8
|
+
assumeRoleForPodIdentity(
|
|
9
|
+
args: AssumeRoleForPodIdentityCommandInput,
|
|
10
|
+
options?: __HttpHandlerOptions
|
|
11
|
+
): Promise<AssumeRoleForPodIdentityCommandOutput>;
|
|
12
|
+
assumeRoleForPodIdentity(
|
|
13
|
+
args: AssumeRoleForPodIdentityCommandInput,
|
|
14
|
+
cb: (err: any, data?: AssumeRoleForPodIdentityCommandOutput) => void
|
|
15
|
+
): void;
|
|
16
|
+
assumeRoleForPodIdentity(
|
|
17
|
+
args: AssumeRoleForPodIdentityCommandInput,
|
|
18
|
+
options: __HttpHandlerOptions,
|
|
19
|
+
cb: (err: any, data?: AssumeRoleForPodIdentityCommandOutput) => void
|
|
20
|
+
): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class EKSAuth extends EKSAuthClient implements EKSAuth {}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HostHeaderInputConfig,
|
|
3
|
+
HostHeaderResolvedConfig,
|
|
4
|
+
} from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import {
|
|
6
|
+
AwsAuthInputConfig,
|
|
7
|
+
AwsAuthResolvedConfig,
|
|
8
|
+
} from "@aws-sdk/middleware-signing";
|
|
9
|
+
import {
|
|
10
|
+
UserAgentInputConfig,
|
|
11
|
+
UserAgentResolvedConfig,
|
|
12
|
+
} from "@aws-sdk/middleware-user-agent";
|
|
13
|
+
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
14
|
+
import {
|
|
15
|
+
RegionInputConfig,
|
|
16
|
+
RegionResolvedConfig,
|
|
17
|
+
} from "@smithy/config-resolver";
|
|
18
|
+
import {
|
|
19
|
+
EndpointInputConfig,
|
|
20
|
+
EndpointResolvedConfig,
|
|
21
|
+
} from "@smithy/middleware-endpoint";
|
|
22
|
+
import {
|
|
23
|
+
RetryInputConfig,
|
|
24
|
+
RetryResolvedConfig,
|
|
25
|
+
} from "@smithy/middleware-retry";
|
|
26
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
27
|
+
import {
|
|
28
|
+
Client as __Client,
|
|
29
|
+
DefaultsMode as __DefaultsMode,
|
|
30
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
31
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
32
|
+
} from "@smithy/smithy-client";
|
|
33
|
+
import {
|
|
34
|
+
BodyLengthCalculator as __BodyLengthCalculator,
|
|
35
|
+
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
36
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
37
|
+
Decoder as __Decoder,
|
|
38
|
+
Encoder as __Encoder,
|
|
39
|
+
HashConstructor as __HashConstructor,
|
|
40
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
41
|
+
Logger as __Logger,
|
|
42
|
+
Provider as __Provider,
|
|
43
|
+
Provider,
|
|
44
|
+
StreamCollector as __StreamCollector,
|
|
45
|
+
UrlParser as __UrlParser,
|
|
46
|
+
UserAgent as __UserAgent,
|
|
47
|
+
} from "@smithy/types";
|
|
48
|
+
import {
|
|
49
|
+
AssumeRoleForPodIdentityCommandInput,
|
|
50
|
+
AssumeRoleForPodIdentityCommandOutput,
|
|
51
|
+
} from "./commands/AssumeRoleForPodIdentityCommand";
|
|
52
|
+
import {
|
|
53
|
+
ClientInputEndpointParameters,
|
|
54
|
+
ClientResolvedEndpointParameters,
|
|
55
|
+
EndpointParameters,
|
|
56
|
+
} from "./endpoint/EndpointParameters";
|
|
57
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
58
|
+
export { __Client };
|
|
59
|
+
export type ServiceInputTypes = AssumeRoleForPodIdentityCommandInput;
|
|
60
|
+
export type ServiceOutputTypes = AssumeRoleForPodIdentityCommandOutput;
|
|
61
|
+
export interface ClientDefaults
|
|
62
|
+
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
63
|
+
requestHandler?: __HttpHandler;
|
|
64
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
65
|
+
urlParser?: __UrlParser;
|
|
66
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
67
|
+
streamCollector?: __StreamCollector;
|
|
68
|
+
base64Decoder?: __Decoder;
|
|
69
|
+
base64Encoder?: __Encoder;
|
|
70
|
+
utf8Decoder?: __Decoder;
|
|
71
|
+
utf8Encoder?: __Encoder;
|
|
72
|
+
runtime?: string;
|
|
73
|
+
disableHostPrefix?: boolean;
|
|
74
|
+
serviceId?: string;
|
|
75
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
76
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
77
|
+
region?: string | __Provider<string>;
|
|
78
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
79
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
80
|
+
maxAttempts?: number | __Provider<number>;
|
|
81
|
+
retryMode?: string | __Provider<string>;
|
|
82
|
+
logger?: __Logger;
|
|
83
|
+
extensions?: RuntimeExtension[];
|
|
84
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
85
|
+
}
|
|
86
|
+
export type EKSAuthClientConfigType = Partial<
|
|
87
|
+
__SmithyConfiguration<__HttpHandlerOptions>
|
|
88
|
+
> &
|
|
89
|
+
ClientDefaults &
|
|
90
|
+
RegionInputConfig &
|
|
91
|
+
EndpointInputConfig<EndpointParameters> &
|
|
92
|
+
RetryInputConfig &
|
|
93
|
+
HostHeaderInputConfig &
|
|
94
|
+
AwsAuthInputConfig &
|
|
95
|
+
UserAgentInputConfig &
|
|
96
|
+
ClientInputEndpointParameters;
|
|
97
|
+
export interface EKSAuthClientConfig extends EKSAuthClientConfigType {}
|
|
98
|
+
export type EKSAuthClientResolvedConfigType =
|
|
99
|
+
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
100
|
+
Required<ClientDefaults> &
|
|
101
|
+
RuntimeExtensionsConfig &
|
|
102
|
+
RegionResolvedConfig &
|
|
103
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
104
|
+
RetryResolvedConfig &
|
|
105
|
+
HostHeaderResolvedConfig &
|
|
106
|
+
AwsAuthResolvedConfig &
|
|
107
|
+
UserAgentResolvedConfig &
|
|
108
|
+
ClientResolvedEndpointParameters;
|
|
109
|
+
export interface EKSAuthClientResolvedConfig
|
|
110
|
+
extends EKSAuthClientResolvedConfigType {}
|
|
111
|
+
export declare class EKSAuthClient extends __Client<
|
|
112
|
+
__HttpHandlerOptions,
|
|
113
|
+
ServiceInputTypes,
|
|
114
|
+
ServiceOutputTypes,
|
|
115
|
+
EKSAuthClientResolvedConfig
|
|
116
|
+
> {
|
|
117
|
+
readonly config: EKSAuthClientResolvedConfig;
|
|
118
|
+
constructor(
|
|
119
|
+
...[configuration]: __CheckOptionalClientConfig<EKSAuthClientConfig>
|
|
120
|
+
);
|
|
121
|
+
destroy(): void;
|
|
122
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
EKSAuthClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../EKSAuthClient";
|
|
14
|
+
import {
|
|
15
|
+
AssumeRoleForPodIdentityRequest,
|
|
16
|
+
AssumeRoleForPodIdentityResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface AssumeRoleForPodIdentityCommandInput
|
|
20
|
+
extends AssumeRoleForPodIdentityRequest {}
|
|
21
|
+
export interface AssumeRoleForPodIdentityCommandOutput
|
|
22
|
+
extends AssumeRoleForPodIdentityResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class AssumeRoleForPodIdentityCommand extends $Command<
|
|
25
|
+
AssumeRoleForPodIdentityCommandInput,
|
|
26
|
+
AssumeRoleForPodIdentityCommandOutput,
|
|
27
|
+
EKSAuthClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: AssumeRoleForPodIdentityCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: AssumeRoleForPodIdentityCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: EKSAuthClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
AssumeRoleForPodIdentityCommandInput,
|
|
38
|
+
AssumeRoleForPodIdentityCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AssumeRoleForPodIdentityCommand";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Endpoint,
|
|
3
|
+
EndpointParameters as __EndpointParameters,
|
|
4
|
+
EndpointV2,
|
|
5
|
+
Provider,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export interface ClientInputEndpointParameters {
|
|
8
|
+
region?: string | Provider<string>;
|
|
9
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
10
|
+
endpoint?:
|
|
11
|
+
| string
|
|
12
|
+
| Provider<string>
|
|
13
|
+
| Endpoint
|
|
14
|
+
| Provider<Endpoint>
|
|
15
|
+
| EndpointV2
|
|
16
|
+
| Provider<EndpointV2>;
|
|
17
|
+
}
|
|
18
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
19
|
+
defaultSigningName: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const resolveClientEndpointParameters: <T>(
|
|
22
|
+
options: T & ClientInputEndpointParameters
|
|
23
|
+
) => T &
|
|
24
|
+
ClientInputEndpointParameters & {
|
|
25
|
+
defaultSigningName: string;
|
|
26
|
+
};
|
|
27
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
28
|
+
Region?: string;
|
|
29
|
+
UseFIPS?: boolean;
|
|
30
|
+
Endpoint?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
export interface EKSAuthExtensionConfiguration
|
|
5
|
+
extends HttpHandlerExtensionConfiguration,
|
|
6
|
+
DefaultExtensionConfiguration,
|
|
7
|
+
AwsRegionExtensionConfiguration {}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./EKSAuthClient";
|
|
2
|
+
export * from "./EKSAuth";
|
|
3
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
4
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
|
+
export { EKSAuthExtensionConfiguration } from "./extensionConfiguration";
|
|
6
|
+
export * from "./commands";
|
|
7
|
+
export * from "./models";
|
|
8
|
+
import "@aws-sdk/util-endpoints";
|
|
9
|
+
export { EKSAuthServiceException } from "./models/EKSAuthServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ServiceException as __ServiceException,
|
|
3
|
+
ServiceExceptionOptions as __ServiceExceptionOptions,
|
|
4
|
+
} from "@smithy/smithy-client";
|
|
5
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
6
|
+
export declare class EKSAuthServiceException extends __ServiceException {
|
|
7
|
+
constructor(options: __ServiceExceptionOptions);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { EKSAuthServiceException as __BaseException } from "./EKSAuthServiceException";
|
|
3
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
4
|
+
readonly name: "AccessDeniedException";
|
|
5
|
+
readonly $fault: "client";
|
|
6
|
+
constructor(
|
|
7
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
export interface AssumedRoleUser {
|
|
11
|
+
arn: string | undefined;
|
|
12
|
+
assumeRoleId: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface AssumeRoleForPodIdentityRequest {
|
|
15
|
+
clusterName: string | undefined;
|
|
16
|
+
token: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
export interface Credentials {
|
|
19
|
+
sessionToken: string | undefined;
|
|
20
|
+
secretAccessKey: string | undefined;
|
|
21
|
+
accessKeyId: string | undefined;
|
|
22
|
+
expiration: Date | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface PodIdentityAssociation {
|
|
25
|
+
associationArn: string | undefined;
|
|
26
|
+
associationId: string | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface Subject {
|
|
29
|
+
namespace: string | undefined;
|
|
30
|
+
serviceAccount: string | undefined;
|
|
31
|
+
}
|
|
32
|
+
export interface AssumeRoleForPodIdentityResponse {
|
|
33
|
+
subject: Subject | undefined;
|
|
34
|
+
audience: string | undefined;
|
|
35
|
+
podIdentityAssociation: PodIdentityAssociation | undefined;
|
|
36
|
+
assumedRoleUser: AssumedRoleUser | undefined;
|
|
37
|
+
credentials: Credentials | undefined;
|
|
38
|
+
}
|
|
39
|
+
export declare class ExpiredTokenException extends __BaseException {
|
|
40
|
+
readonly name: "ExpiredTokenException";
|
|
41
|
+
readonly $fault: "client";
|
|
42
|
+
constructor(
|
|
43
|
+
opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
export declare class InternalServerException extends __BaseException {
|
|
47
|
+
readonly name: "InternalServerException";
|
|
48
|
+
readonly $fault: "server";
|
|
49
|
+
constructor(
|
|
50
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
54
|
+
readonly name: "InvalidParameterException";
|
|
55
|
+
readonly $fault: "client";
|
|
56
|
+
constructor(
|
|
57
|
+
opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export declare class InvalidRequestException extends __BaseException {
|
|
61
|
+
readonly name: "InvalidRequestException";
|
|
62
|
+
readonly $fault: "client";
|
|
63
|
+
constructor(
|
|
64
|
+
opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
export declare class InvalidTokenException extends __BaseException {
|
|
68
|
+
readonly name: "InvalidTokenException";
|
|
69
|
+
readonly $fault: "client";
|
|
70
|
+
constructor(
|
|
71
|
+
opts: __ExceptionOptionType<InvalidTokenException, __BaseException>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
75
|
+
readonly name: "ResourceNotFoundException";
|
|
76
|
+
readonly $fault: "client";
|
|
77
|
+
constructor(
|
|
78
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
82
|
+
readonly name: "ServiceUnavailableException";
|
|
83
|
+
readonly $fault: "server";
|
|
84
|
+
constructor(
|
|
85
|
+
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
export declare class ThrottlingException extends __BaseException {
|
|
89
|
+
readonly name: "ThrottlingException";
|
|
90
|
+
readonly $fault: "client";
|
|
91
|
+
constructor(
|
|
92
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
export declare const AssumeRoleForPodIdentityRequestFilterSensitiveLog: (
|
|
96
|
+
obj: AssumeRoleForPodIdentityRequest
|
|
97
|
+
) => any;
|
|
98
|
+
export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
|
|
99
|
+
export declare const AssumeRoleForPodIdentityResponseFilterSensitiveLog: (
|
|
100
|
+
obj: AssumeRoleForPodIdentityResponse
|
|
101
|
+
) => any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpRequest as __HttpRequest,
|
|
3
|
+
HttpResponse as __HttpResponse,
|
|
4
|
+
} from "@smithy/protocol-http";
|
|
5
|
+
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
+
import {
|
|
7
|
+
AssumeRoleForPodIdentityCommandInput,
|
|
8
|
+
AssumeRoleForPodIdentityCommandOutput,
|
|
9
|
+
} from "../commands/AssumeRoleForPodIdentityCommand";
|
|
10
|
+
export declare const se_AssumeRoleForPodIdentityCommand: (
|
|
11
|
+
input: AssumeRoleForPodIdentityCommandInput,
|
|
12
|
+
context: __SerdeContext
|
|
13
|
+
) => Promise<__HttpRequest>;
|
|
14
|
+
export declare const de_AssumeRoleForPodIdentityCommand: (
|
|
15
|
+
output: __HttpResponse,
|
|
16
|
+
context: __SerdeContext
|
|
17
|
+
) => Promise<AssumeRoleForPodIdentityCommandOutput>;
|