@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.
Files changed (75) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +214 -0
  3. package/dist-cjs/EKSAuth.js +13 -0
  4. package/dist-cjs/EKSAuthClient.js +43 -0
  5. package/dist-cjs/commands/AssumeRoleForPodIdentityCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +4 -0
  7. package/dist-cjs/endpoint/EndpointParameters.js +11 -0
  8. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  9. package/dist-cjs/endpoint/ruleset.js +7 -0
  10. package/dist-cjs/extensionConfiguration.js +2 -0
  11. package/dist-cjs/index.js +11 -0
  12. package/dist-cjs/models/EKSAuthServiceException.js +12 -0
  13. package/dist-cjs/models/index.js +4 -0
  14. package/dist-cjs/models/models_0.js +136 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +270 -0
  16. package/dist-cjs/runtimeConfig.browser.js +39 -0
  17. package/dist-cjs/runtimeConfig.js +50 -0
  18. package/dist-cjs/runtimeConfig.native.js +15 -0
  19. package/dist-cjs/runtimeConfig.shared.js +24 -0
  20. package/dist-cjs/runtimeExtensions.js +22 -0
  21. package/dist-es/EKSAuth.js +9 -0
  22. package/dist-es/EKSAuthClient.js +39 -0
  23. package/dist-es/commands/AssumeRoleForPodIdentityCommand.js +47 -0
  24. package/dist-es/commands/index.js +1 -0
  25. package/dist-es/endpoint/EndpointParameters.js +7 -0
  26. package/dist-es/endpoint/endpointResolver.js +8 -0
  27. package/dist-es/endpoint/ruleset.js +4 -0
  28. package/dist-es/extensionConfiguration.js +1 -0
  29. package/dist-es/index.js +6 -0
  30. package/dist-es/models/EKSAuthServiceException.js +8 -0
  31. package/dist-es/models/index.js +1 -0
  32. package/dist-es/models/models_0.js +121 -0
  33. package/dist-es/protocols/Aws_restJson1.js +265 -0
  34. package/dist-es/runtimeConfig.browser.js +34 -0
  35. package/dist-es/runtimeConfig.js +45 -0
  36. package/dist-es/runtimeConfig.native.js +11 -0
  37. package/dist-es/runtimeConfig.shared.js +20 -0
  38. package/dist-es/runtimeExtensions.js +18 -0
  39. package/dist-types/EKSAuth.d.ts +18 -0
  40. package/dist-types/EKSAuthClient.d.ts +171 -0
  41. package/dist-types/commands/AssumeRoleForPodIdentityCommand.d.ts +128 -0
  42. package/dist-types/commands/index.d.ts +1 -0
  43. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  44. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  45. package/dist-types/endpoint/ruleset.d.ts +2 -0
  46. package/dist-types/extensionConfiguration.d.ts +8 -0
  47. package/dist-types/index.d.ts +15 -0
  48. package/dist-types/models/EKSAuthServiceException.d.ts +13 -0
  49. package/dist-types/models/index.d.ts +1 -0
  50. package/dist-types/models/models_0.d.ts +273 -0
  51. package/dist-types/protocols/Aws_restJson1.d.ts +11 -0
  52. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  53. package/dist-types/runtimeConfig.d.ts +46 -0
  54. package/dist-types/runtimeConfig.native.d.ts +45 -0
  55. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  56. package/dist-types/runtimeExtensions.d.ts +17 -0
  57. package/dist-types/ts3.4/EKSAuth.d.ts +22 -0
  58. package/dist-types/ts3.4/EKSAuthClient.d.ts +122 -0
  59. package/dist-types/ts3.4/commands/AssumeRoleForPodIdentityCommand.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  61. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +31 -0
  62. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  63. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  64. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  65. package/dist-types/ts3.4/index.d.ts +9 -0
  66. package/dist-types/ts3.4/models/EKSAuthServiceException.d.ts +8 -0
  67. package/dist-types/ts3.4/models/index.d.ts +1 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +101 -0
  69. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +17 -0
  70. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  71. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  72. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  73. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  74. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  75. package/package.json +102 -0
@@ -0,0 +1,171 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
+ import { Credentials as __Credentials } from "@aws-sdk/types";
5
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
+ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
+ import { AssumeRoleForPodIdentityCommandInput, AssumeRoleForPodIdentityCommandOutput } from "./commands/AssumeRoleForPodIdentityCommand";
12
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
13
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
14
+ export { __Client };
15
+ /**
16
+ * @public
17
+ */
18
+ export type ServiceInputTypes = AssumeRoleForPodIdentityCommandInput;
19
+ /**
20
+ * @public
21
+ */
22
+ export type ServiceOutputTypes = AssumeRoleForPodIdentityCommandOutput;
23
+ /**
24
+ * @public
25
+ */
26
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
27
+ /**
28
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
29
+ */
30
+ requestHandler?: __HttpHandler;
31
+ /**
32
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
33
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
34
+ * @internal
35
+ */
36
+ sha256?: __ChecksumConstructor | __HashConstructor;
37
+ /**
38
+ * The function that will be used to convert strings into HTTP endpoints.
39
+ * @internal
40
+ */
41
+ urlParser?: __UrlParser;
42
+ /**
43
+ * A function that can calculate the length of a request body.
44
+ * @internal
45
+ */
46
+ bodyLengthChecker?: __BodyLengthCalculator;
47
+ /**
48
+ * A function that converts a stream into an array of bytes.
49
+ * @internal
50
+ */
51
+ streamCollector?: __StreamCollector;
52
+ /**
53
+ * The function that will be used to convert a base64-encoded string to a byte array.
54
+ * @internal
55
+ */
56
+ base64Decoder?: __Decoder;
57
+ /**
58
+ * The function that will be used to convert binary data to a base64-encoded string.
59
+ * @internal
60
+ */
61
+ base64Encoder?: __Encoder;
62
+ /**
63
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
64
+ * @internal
65
+ */
66
+ utf8Decoder?: __Decoder;
67
+ /**
68
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
69
+ * @internal
70
+ */
71
+ utf8Encoder?: __Encoder;
72
+ /**
73
+ * The runtime environment.
74
+ * @internal
75
+ */
76
+ runtime?: string;
77
+ /**
78
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
79
+ * trait of an operation.
80
+ */
81
+ disableHostPrefix?: boolean;
82
+ /**
83
+ * Unique service identifier.
84
+ * @internal
85
+ */
86
+ serviceId?: string;
87
+ /**
88
+ * Enables IPv6/IPv4 dualstack endpoint.
89
+ */
90
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
91
+ /**
92
+ * Enables FIPS compatible endpoints.
93
+ */
94
+ useFipsEndpoint?: boolean | __Provider<boolean>;
95
+ /**
96
+ * The AWS region to which this client will send requests
97
+ */
98
+ region?: string | __Provider<string>;
99
+ /**
100
+ * Default credentials provider; Not available in browser runtime.
101
+ * @internal
102
+ */
103
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
104
+ /**
105
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
106
+ * @internal
107
+ */
108
+ defaultUserAgentProvider?: Provider<__UserAgent>;
109
+ /**
110
+ * Value for how many times a request will be made at most in case of retry.
111
+ */
112
+ maxAttempts?: number | __Provider<number>;
113
+ /**
114
+ * Specifies which retry algorithm to use.
115
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
116
+ *
117
+ */
118
+ retryMode?: string | __Provider<string>;
119
+ /**
120
+ * Optional logger for logging debug/info/warn/error.
121
+ */
122
+ logger?: __Logger;
123
+ /**
124
+ * Optional extensions
125
+ */
126
+ extensions?: RuntimeExtension[];
127
+ /**
128
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
129
+ */
130
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
131
+ }
132
+ /**
133
+ * @public
134
+ */
135
+ export type EKSAuthClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
136
+ /**
137
+ * @public
138
+ *
139
+ * The configuration interface of EKSAuthClient class constructor that set the region, credentials and other options.
140
+ */
141
+ export interface EKSAuthClientConfig extends EKSAuthClientConfigType {
142
+ }
143
+ /**
144
+ * @public
145
+ */
146
+ export type EKSAuthClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
147
+ /**
148
+ * @public
149
+ *
150
+ * The resolved configuration interface of EKSAuthClient class. This is resolved and normalized from the {@link EKSAuthClientConfig | constructor configuration interface}.
151
+ */
152
+ export interface EKSAuthClientResolvedConfig extends EKSAuthClientResolvedConfigType {
153
+ }
154
+ /**
155
+ * @public
156
+ * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only
157
+ * used by the EKS Pod Identity Agent.</p>
158
+ */
159
+ export declare class EKSAuthClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, EKSAuthClientResolvedConfig> {
160
+ /**
161
+ * The resolved configuration of EKSAuthClient class. This is resolved and normalized from the {@link EKSAuthClientConfig | constructor configuration interface}.
162
+ */
163
+ readonly config: EKSAuthClientResolvedConfig;
164
+ constructor(...[configuration]: __CheckOptionalClientConfig<EKSAuthClientConfig>);
165
+ /**
166
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
167
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
168
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
169
+ */
170
+ destroy(): void;
171
+ }
@@ -0,0 +1,128 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { EKSAuthClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EKSAuthClient";
5
+ import { AssumeRoleForPodIdentityRequest, AssumeRoleForPodIdentityResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link AssumeRoleForPodIdentityCommand}.
14
+ */
15
+ export interface AssumeRoleForPodIdentityCommandInput extends AssumeRoleForPodIdentityRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AssumeRoleForPodIdentityCommand}.
21
+ */
22
+ export interface AssumeRoleForPodIdentityCommandOutput extends AssumeRoleForPodIdentityResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only used
27
+ * by the EKS Pod Identity Agent.</p>
28
+ * <p>We recommend that applications use the Amazon Web Services SDKs to connect to Amazon Web Services services; if
29
+ * credentials from an EKS Pod Identity association are available in the pod, the latest versions of the
30
+ * SDKs use them automatically.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { EKSAuthClient, AssumeRoleForPodIdentityCommand } from "@aws-sdk/client-eks-auth"; // ES Modules import
35
+ * // const { EKSAuthClient, AssumeRoleForPodIdentityCommand } = require("@aws-sdk/client-eks-auth"); // CommonJS import
36
+ * const client = new EKSAuthClient(config);
37
+ * const input = { // AssumeRoleForPodIdentityRequest
38
+ * clusterName: "STRING_VALUE", // required
39
+ * token: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new AssumeRoleForPodIdentityCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // AssumeRoleForPodIdentityResponse
44
+ * // subject: { // Subject
45
+ * // namespace: "STRING_VALUE", // required
46
+ * // serviceAccount: "STRING_VALUE", // required
47
+ * // },
48
+ * // audience: "STRING_VALUE", // required
49
+ * // podIdentityAssociation: { // PodIdentityAssociation
50
+ * // associationArn: "STRING_VALUE", // required
51
+ * // associationId: "STRING_VALUE", // required
52
+ * // },
53
+ * // assumedRoleUser: { // AssumedRoleUser
54
+ * // arn: "STRING_VALUE", // required
55
+ * // assumeRoleId: "STRING_VALUE", // required
56
+ * // },
57
+ * // credentials: { // Credentials
58
+ * // sessionToken: "STRING_VALUE", // required
59
+ * // secretAccessKey: "STRING_VALUE", // required
60
+ * // accessKeyId: "STRING_VALUE", // required
61
+ * // expiration: new Date("TIMESTAMP"), // required
62
+ * // },
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param AssumeRoleForPodIdentityCommandInput - {@link AssumeRoleForPodIdentityCommandInput}
68
+ * @returns {@link AssumeRoleForPodIdentityCommandOutput}
69
+ * @see {@link AssumeRoleForPodIdentityCommandInput} for command's `input` shape.
70
+ * @see {@link AssumeRoleForPodIdentityCommandOutput} for command's `response` shape.
71
+ * @see {@link EKSAuthClientResolvedConfig | config} for EKSAuthClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>You don't have permissions to perform the requested operation. The IAM principal
75
+ * making the request must have at least one IAM permissions policy attached
76
+ * that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access
77
+ * management</a> in the <i>IAM User Guide</i>. </p>
78
+ *
79
+ * @throws {@link ExpiredTokenException} (client fault)
80
+ * <p>The specified Kubernetes service account token is expired.</p>
81
+ *
82
+ * @throws {@link InternalServerException} (server fault)
83
+ * <p>These errors are usually caused by a server-side issue.</p>
84
+ *
85
+ * @throws {@link InvalidParameterException} (client fault)
86
+ * <p>The specified parameter is invalid. Review the available parameters for the API
87
+ * request.</p>
88
+ *
89
+ * @throws {@link InvalidRequestException} (client fault)
90
+ * <p>This exception is thrown if the request contains a semantic error. The precise meaning
91
+ * will depend on the API, and will be documented in the error message.</p>
92
+ *
93
+ * @throws {@link InvalidTokenException} (client fault)
94
+ * <p>The specified Kubernetes service account token is invalid.</p>
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * <p>The specified resource could not be found.</p>
98
+ *
99
+ * @throws {@link ServiceUnavailableException} (server fault)
100
+ * <p>The service is unavailable. Back off and retry the operation.</p>
101
+ *
102
+ * @throws {@link ThrottlingException} (client fault)
103
+ * <p>The request was denied because your request rate is too high. Reduce the frequency of requests.</p>
104
+ *
105
+ * @throws {@link EKSAuthServiceException}
106
+ * <p>Base exception class for all service exceptions from EKSAuth service.</p>
107
+ *
108
+ */
109
+ export declare class AssumeRoleForPodIdentityCommand extends $Command<AssumeRoleForPodIdentityCommandInput, AssumeRoleForPodIdentityCommandOutput, EKSAuthClientResolvedConfig> {
110
+ readonly input: AssumeRoleForPodIdentityCommandInput;
111
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
112
+ /**
113
+ * @public
114
+ */
115
+ constructor(input: AssumeRoleForPodIdentityCommandInput);
116
+ /**
117
+ * @internal
118
+ */
119
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EKSAuthClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssumeRoleForPodIdentityCommandInput, AssumeRoleForPodIdentityCommandOutput>;
120
+ /**
121
+ * @internal
122
+ */
123
+ private serialize;
124
+ /**
125
+ * @internal
126
+ */
127
+ private deserialize;
128
+ }
@@ -0,0 +1 @@
1
+ export * from "./AssumeRoleForPodIdentityCommand";
@@ -0,0 +1,20 @@
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | Provider<string>;
7
+ useFipsEndpoint?: boolean | Provider<boolean>;
8
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
9
+ }
10
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
11
+ defaultSigningName: string;
12
+ };
13
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
14
+ defaultSigningName: string;
15
+ };
16
+ export interface EndpointParameters extends __EndpointParameters {
17
+ Region?: string;
18
+ UseFIPS?: boolean;
19
+ Endpoint?: string;
20
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,8 @@
1
+ import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface EKSAuthExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
8
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only
3
+ * used by the EKS Pod Identity Agent.</p>
4
+ *
5
+ * @packageDocumentation
6
+ */
7
+ export * from "./EKSAuthClient";
8
+ export * from "./EKSAuth";
9
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
10
+ export { RuntimeExtension } from "./runtimeExtensions";
11
+ export { EKSAuthExtensionConfiguration } from "./extensionConfiguration";
12
+ export * from "./commands";
13
+ export * from "./models";
14
+ import "@aws-sdk/util-endpoints";
15
+ export { EKSAuthServiceException } from "./models/EKSAuthServiceException";
@@ -0,0 +1,13 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
+ export { __ServiceException, __ServiceExceptionOptions };
3
+ /**
4
+ * @public
5
+ *
6
+ * Base exception class for all service exceptions from EKSAuth service.
7
+ */
8
+ export declare class EKSAuthServiceException extends __ServiceException {
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(options: __ServiceExceptionOptions);
13
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,273 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { EKSAuthServiceException as __BaseException } from "./EKSAuthServiceException";
3
+ /**
4
+ * @public
5
+ * <p>You don't have permissions to perform the requested operation. The IAM principal
6
+ * making the request must have at least one IAM permissions policy attached
7
+ * that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access
8
+ * management</a> in the <i>IAM User Guide</i>. </p>
9
+ */
10
+ export declare class AccessDeniedException extends __BaseException {
11
+ readonly name: "AccessDeniedException";
12
+ readonly $fault: "client";
13
+ /**
14
+ * @internal
15
+ */
16
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
17
+ }
18
+ /**
19
+ * @public
20
+ * <p>An object with the permanent IAM role identity and the temporary session
21
+ * name.</p>
22
+ */
23
+ export interface AssumedRoleUser {
24
+ /**
25
+ * @public
26
+ * <p>The ARN of the IAM role that the temporary credentials authenticate to.</p>
27
+ */
28
+ arn: string | undefined;
29
+ /**
30
+ * @public
31
+ * <p>The session name of the temporary session requested to STS. The value
32
+ * is a unique identifier that contains the role ID, a colon (<code>:</code>), and the role
33
+ * session name of the role that is being assumed. The role ID is generated by IAM when
34
+ * the role is created. The role session name part of the value follows this format:
35
+ * <code>eks-<i>clustername</i>-<i>podname</i>-<i>random
36
+ * UUID</i>
37
+ * </code>
38
+ * </p>
39
+ */
40
+ assumeRoleId: string | undefined;
41
+ }
42
+ /**
43
+ * @public
44
+ */
45
+ export interface AssumeRoleForPodIdentityRequest {
46
+ /**
47
+ * @public
48
+ * <p>The name of the cluster for the request.</p>
49
+ */
50
+ clusterName: string | undefined;
51
+ /**
52
+ * @public
53
+ * <p>The token of the Kubernetes service account for the pod.</p>
54
+ */
55
+ token: string | undefined;
56
+ }
57
+ /**
58
+ * @public
59
+ * <p>The <i>Amazon Web Services Signature Version 4</i> type of temporary
60
+ * credentials.</p>
61
+ */
62
+ export interface Credentials {
63
+ /**
64
+ * @public
65
+ * <p>The token that applications inside the pods must pass to any service API to use the
66
+ * temporary credentials.</p>
67
+ */
68
+ sessionToken: string | undefined;
69
+ /**
70
+ * @public
71
+ * <p>The secret access key that applications inside the pods use to sign requests.</p>
72
+ */
73
+ secretAccessKey: string | undefined;
74
+ /**
75
+ * @public
76
+ * <p>The access key ID that identifies the temporary security credentials.</p>
77
+ */
78
+ accessKeyId: string | undefined;
79
+ /**
80
+ * @public
81
+ * <p>The Unix epoch timestamp in seconds when the current credentials expire.</p>
82
+ */
83
+ expiration: Date | undefined;
84
+ }
85
+ /**
86
+ * @public
87
+ * <p>Amazon EKS Pod Identity associations provide the ability to manage credentials for your applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon EC2 instances.</p>
88
+ */
89
+ export interface PodIdentityAssociation {
90
+ /**
91
+ * @public
92
+ * <p>The Amazon Resource Name (ARN) of the EKS Pod Identity association.</p>
93
+ */
94
+ associationArn: string | undefined;
95
+ /**
96
+ * @public
97
+ * <p>The ID of the association.</p>
98
+ */
99
+ associationId: string | undefined;
100
+ }
101
+ /**
102
+ * @public
103
+ * <p>An object containing the name of the Kubernetes service account inside the cluster to
104
+ * associate the IAM credentials with.</p>
105
+ */
106
+ export interface Subject {
107
+ /**
108
+ * @public
109
+ * <p>The name of the Kubernetes namespace inside the cluster to create the association in. The
110
+ * service account and the pods that use the service account must be in this
111
+ * namespace.</p>
112
+ */
113
+ namespace: string | undefined;
114
+ /**
115
+ * @public
116
+ * <p>The name of the Kubernetes service account inside the cluster to associate the IAM
117
+ * credentials with.</p>
118
+ */
119
+ serviceAccount: string | undefined;
120
+ }
121
+ /**
122
+ * @public
123
+ */
124
+ export interface AssumeRoleForPodIdentityResponse {
125
+ /**
126
+ * @public
127
+ * <p>The name of the Kubernetes service account inside the cluster to associate the IAM
128
+ * credentials with.</p>
129
+ */
130
+ subject: Subject | undefined;
131
+ /**
132
+ * @public
133
+ * <p>The identity that is allowed to use the credentials. This value is always
134
+ * <code>pods.eks.amazonaws.com</code>.</p>
135
+ */
136
+ audience: string | undefined;
137
+ /**
138
+ * @public
139
+ * <p>The Amazon Resource Name (ARN) and ID of the EKS Pod Identity association.</p>
140
+ */
141
+ podIdentityAssociation: PodIdentityAssociation | undefined;
142
+ /**
143
+ * @public
144
+ * <p>An object with the permanent IAM role identity and the temporary session
145
+ * name.</p>
146
+ * <p>The ARN of the IAM role that the temporary credentials authenticate to.</p>
147
+ * <p>The session name of the temporary session requested to STS. The value
148
+ * is a unique identifier that contains the role ID, a colon (<code>:</code>), and the role
149
+ * session name of the role that is being assumed. The role ID is generated by IAM when
150
+ * the role is created. The role session name part of the value follows this format:
151
+ * <code>eks-<i>clustername</i>-<i>podname</i>-<i>random
152
+ * UUID</i>
153
+ * </code>
154
+ * </p>
155
+ */
156
+ assumedRoleUser: AssumedRoleUser | undefined;
157
+ /**
158
+ * @public
159
+ * <p>The <i>Amazon Web Services Signature Version 4</i> type of temporary
160
+ * credentials.</p>
161
+ */
162
+ credentials: Credentials | undefined;
163
+ }
164
+ /**
165
+ * @public
166
+ * <p>The specified Kubernetes service account token is expired.</p>
167
+ */
168
+ export declare class ExpiredTokenException extends __BaseException {
169
+ readonly name: "ExpiredTokenException";
170
+ readonly $fault: "client";
171
+ /**
172
+ * @internal
173
+ */
174
+ constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
175
+ }
176
+ /**
177
+ * @public
178
+ * <p>These errors are usually caused by a server-side issue.</p>
179
+ */
180
+ export declare class InternalServerException extends __BaseException {
181
+ readonly name: "InternalServerException";
182
+ readonly $fault: "server";
183
+ /**
184
+ * @internal
185
+ */
186
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
187
+ }
188
+ /**
189
+ * @public
190
+ * <p>The specified parameter is invalid. Review the available parameters for the API
191
+ * request.</p>
192
+ */
193
+ export declare class InvalidParameterException extends __BaseException {
194
+ readonly name: "InvalidParameterException";
195
+ readonly $fault: "client";
196
+ /**
197
+ * @internal
198
+ */
199
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
200
+ }
201
+ /**
202
+ * @public
203
+ * <p>This exception is thrown if the request contains a semantic error. The precise meaning
204
+ * will depend on the API, and will be documented in the error message.</p>
205
+ */
206
+ export declare class InvalidRequestException extends __BaseException {
207
+ readonly name: "InvalidRequestException";
208
+ readonly $fault: "client";
209
+ /**
210
+ * @internal
211
+ */
212
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
213
+ }
214
+ /**
215
+ * @public
216
+ * <p>The specified Kubernetes service account token is invalid.</p>
217
+ */
218
+ export declare class InvalidTokenException extends __BaseException {
219
+ readonly name: "InvalidTokenException";
220
+ readonly $fault: "client";
221
+ /**
222
+ * @internal
223
+ */
224
+ constructor(opts: __ExceptionOptionType<InvalidTokenException, __BaseException>);
225
+ }
226
+ /**
227
+ * @public
228
+ * <p>The specified resource could not be found.</p>
229
+ */
230
+ export declare class ResourceNotFoundException extends __BaseException {
231
+ readonly name: "ResourceNotFoundException";
232
+ readonly $fault: "client";
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
237
+ }
238
+ /**
239
+ * @public
240
+ * <p>The service is unavailable. Back off and retry the operation.</p>
241
+ */
242
+ export declare class ServiceUnavailableException extends __BaseException {
243
+ readonly name: "ServiceUnavailableException";
244
+ readonly $fault: "server";
245
+ /**
246
+ * @internal
247
+ */
248
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
249
+ }
250
+ /**
251
+ * @public
252
+ * <p>The request was denied because your request rate is too high. Reduce the frequency of requests.</p>
253
+ */
254
+ export declare class ThrottlingException extends __BaseException {
255
+ readonly name: "ThrottlingException";
256
+ readonly $fault: "client";
257
+ /**
258
+ * @internal
259
+ */
260
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
261
+ }
262
+ /**
263
+ * @internal
264
+ */
265
+ export declare const AssumeRoleForPodIdentityRequestFilterSensitiveLog: (obj: AssumeRoleForPodIdentityRequest) => any;
266
+ /**
267
+ * @internal
268
+ */
269
+ export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
270
+ /**
271
+ * @internal
272
+ */
273
+ export declare const AssumeRoleForPodIdentityResponseFilterSensitiveLog: (obj: AssumeRoleForPodIdentityResponse) => any;
@@ -0,0 +1,11 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { AssumeRoleForPodIdentityCommandInput, AssumeRoleForPodIdentityCommandOutput } from "../commands/AssumeRoleForPodIdentityCommand";
4
+ /**
5
+ * serializeAws_restJson1AssumeRoleForPodIdentityCommand
6
+ */
7
+ export declare const se_AssumeRoleForPodIdentityCommand: (input: AssumeRoleForPodIdentityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
+ /**
9
+ * deserializeAws_restJson1AssumeRoleForPodIdentityCommand
10
+ */
11
+ export declare const de_AssumeRoleForPodIdentityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AssumeRoleForPodIdentityCommandOutput>;