@aws-sdk/client-eks-auth 3.1101.0 → 3.1102.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/README.md CHANGED
@@ -6,8 +6,7 @@
6
6
 
7
7
  AWS SDK for JavaScript EKSAuth Client for Node.js, Browser and React Native.
8
8
 
9
- <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only
10
- used by the EKS Pod Identity Agent.</p>
9
+ <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only used by the EKS Pod Identity Agent.</p>
11
10
 
12
11
  ## Installing
13
12
 
package/dist-cjs/index.js CHANGED
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1100.0";
70
+ var version = "3.1101.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -265,9 +265,11 @@ const _c = "client";
265
265
  const _cN = "clusterName";
266
266
  const _cr = "credentials";
267
267
  const _e = "error";
268
+ const _eNN = "eksNodeName";
268
269
  const _ex = "expiration";
269
270
  const _h = "http";
270
271
  const _hE = "httpError";
272
+ const _iI = "instanceId";
271
273
  const _m = "message";
272
274
  const _n = "namespace";
273
275
  const _pIA = "podIdentityAssociation";
@@ -278,6 +280,7 @@ const _sT = "sessionToken";
278
280
  const _se = "server";
279
281
  const _su = "subject";
280
282
  const _t = "token";
283
+ const _z = "zone";
281
284
  const n0 = "com.amazonaws.eksauth";
282
285
  const _s_registry = TypeRegistry.for(_s);
283
286
  var EKSAuthServiceException$ = [-3, _s, "EKSAuthServiceException", 0, [], []];
@@ -349,8 +352,8 @@ var AssumedRoleUser$ = [3, n0, _ARU,
349
352
  ];
350
353
  var AssumeRoleForPodIdentityRequest$ = [3, n0, _ARFPIR,
351
354
  0,
352
- [_cN, _t],
353
- [[0, 1], [() => JwtToken, 0]], 2
355
+ [_cN, _t, _eNN, _iI, _z],
356
+ [[0, 1], [() => JwtToken, 0], 0, 0, 0], 2
354
357
  ];
355
358
  var AssumeRoleForPodIdentityResponse$ = [3, n0, _ARFPIRs,
356
359
  0,
@@ -26,9 +26,11 @@ const _c = "client";
26
26
  const _cN = "clusterName";
27
27
  const _cr = "credentials";
28
28
  const _e = "error";
29
+ const _eNN = "eksNodeName";
29
30
  const _ex = "expiration";
30
31
  const _h = "http";
31
32
  const _hE = "httpError";
33
+ const _iI = "instanceId";
32
34
  const _m = "message";
33
35
  const _n = "namespace";
34
36
  const _pIA = "podIdentityAssociation";
@@ -39,6 +41,7 @@ const _sT = "sessionToken";
39
41
  const _se = "server";
40
42
  const _su = "subject";
41
43
  const _t = "token";
44
+ const _z = "zone";
42
45
  const n0 = "com.amazonaws.eksauth";
43
46
  import { TypeRegistry } from "@smithy/core/schema";
44
47
  import { EKSAuthServiceException } from "../models/EKSAuthServiceException";
@@ -113,8 +116,8 @@ export var AssumedRoleUser$ = [3, n0, _ARU,
113
116
  ];
114
117
  export var AssumeRoleForPodIdentityRequest$ = [3, n0, _ARFPIR,
115
118
  0,
116
- [_cN, _t],
117
- [[0, 1], [() => JwtToken, 0]], 2
119
+ [_cN, _t, _eNN, _iI, _z],
120
+ [[0, 1], [() => JwtToken, 0], 0, 0, 0], 2
118
121
  ];
119
122
  export var AssumeRoleForPodIdentityResponse$ = [3, n0, _ARFPIRs,
120
123
  0,
@@ -10,8 +10,7 @@ export interface EKSAuth {
10
10
  assumeRoleForPodIdentity(args: AssumeRoleForPodIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleForPodIdentityCommandOutput) => void): void;
11
11
  }
12
12
  /**
13
- * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only
14
- * used by the EKS Pod Identity Agent.</p>
13
+ * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only used by the EKS Pod Identity Agent.</p>
15
14
  * @public
16
15
  */
17
16
  export declare class EKSAuth extends EKSAuthClient implements EKSAuth {
@@ -169,8 +169,7 @@ export type EKSAuthClientResolvedConfigType = __SmithyResolvedConfiguration<__Ht
169
169
  export interface EKSAuthClientResolvedConfig extends EKSAuthClientResolvedConfigType {
170
170
  }
171
171
  /**
172
- * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only
173
- * used by the EKS Pod Identity Agent.</p>
172
+ * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only used by the EKS Pod Identity Agent.</p>
174
173
  * @public
175
174
  */
176
175
  export declare class EKSAuthClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, EKSAuthClientResolvedConfig> {
@@ -24,11 +24,7 @@ declare const AssumeRoleForPodIdentityCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only used
28
- * by the EKS Pod Identity Agent.</p>
29
- * <p>We recommend that applications use the Amazon Web Services SDKs to connect to Amazon Web Services services; if
30
- * credentials from an EKS Pod Identity association are available in the pod, the latest versions of the
31
- * SDKs use them automatically.</p>
27
+ * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only used by the EKS Pod Identity Agent.</p> <p>We recommend that applications use the Amazon Web Services SDKs to connect to Amazon Web Services services; if credentials from an EKS Pod Identity association are available in the pod, the latest versions of the SDKs use them automatically.</p>
32
28
  * @example
33
29
  * Use a bare-bones client and the command you need to make an API call.
34
30
  * ```javascript
@@ -40,6 +36,9 @@ declare const AssumeRoleForPodIdentityCommand_base: {
40
36
  * const input = { // AssumeRoleForPodIdentityRequest
41
37
  * clusterName: "STRING_VALUE", // required
42
38
  * token: "STRING_VALUE", // required
39
+ * eksNodeName: "STRING_VALUE",
40
+ * instanceId: "STRING_VALUE",
41
+ * zone: "STRING_VALUE",
43
42
  * };
44
43
  * const command = new AssumeRoleForPodIdentityCommand(input);
45
44
  * const response = await client.send(command);
@@ -74,10 +73,7 @@ declare const AssumeRoleForPodIdentityCommand_base: {
74
73
  * @see {@link EKSAuthClientResolvedConfig | config} for EKSAuthClient's `config` shape.
75
74
  *
76
75
  * @throws {@link AccessDeniedException} (client fault)
77
- * <p>You don't have permissions to perform the requested operation. The IAM principal
78
- * making the request must have at least one IAM permissions policy attached
79
- * that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access
80
- * management</a> in the <i>IAM User Guide</i>. </p>
76
+ * <p>You don't have permissions to perform the requested operation. The IAM principal making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management</a> in the <i>IAM User Guide</i>. </p>
81
77
  *
82
78
  * @throws {@link ExpiredTokenException} (client fault)
83
79
  * <p>The specified Kubernetes service account token is expired.</p>
@@ -86,12 +82,10 @@ declare const AssumeRoleForPodIdentityCommand_base: {
86
82
  * <p>These errors are usually caused by a server-side issue.</p>
87
83
  *
88
84
  * @throws {@link InvalidParameterException} (client fault)
89
- * <p>The specified parameter is invalid. Review the available parameters for the API
90
- * request.</p>
85
+ * <p>The specified parameter is invalid. Review the available parameters for the API request.</p>
91
86
  *
92
87
  * @throws {@link InvalidRequestException} (client fault)
93
- * <p>This exception is thrown if the request contains a semantic error. The precise meaning
94
- * will depend on the API, and will be documented in the error message.</p>
88
+ * <p>This exception is thrown if the request contains a semantic error. The precise meaning will depend on the API, and will be documented in the error message.</p>
95
89
  *
96
90
  * @throws {@link InvalidTokenException} (client fault)
97
91
  * <p>The specified Kubernetes service account token is invalid.</p>
@@ -1,6 +1,5 @@
1
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>
2
+ * <p>The Amazon EKS Auth API and the <code>AssumeRoleForPodIdentity</code> action are only used by the EKS Pod Identity Agent.</p>
4
3
  *
5
4
  * @packageDocumentation
6
5
  */
@@ -1,10 +1,7 @@
1
1
  import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { EKSAuthServiceException as __BaseException } from "./EKSAuthServiceException";
3
3
  /**
4
- * <p>You don't have permissions to perform the requested operation. The IAM principal
5
- * making the request must have at least one IAM permissions policy attached
6
- * that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access
7
- * management</a> in the <i>IAM User Guide</i>. </p>
4
+ * <p>You don't have permissions to perform the requested operation. The IAM principal making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management</a> in the <i>IAM User Guide</i>. </p>
8
5
  * @public
9
6
  */
10
7
  export declare class AccessDeniedException extends __BaseException {
@@ -40,8 +37,7 @@ export declare class InternalServerException extends __BaseException {
40
37
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
41
38
  }
42
39
  /**
43
- * <p>The specified parameter is invalid. Review the available parameters for the API
44
- * request.</p>
40
+ * <p>The specified parameter is invalid. Review the available parameters for the API request.</p>
45
41
  * @public
46
42
  */
47
43
  export declare class InvalidParameterException extends __BaseException {
@@ -53,8 +49,7 @@ export declare class InvalidParameterException extends __BaseException {
53
49
  constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
54
50
  }
55
51
  /**
56
- * <p>This exception is thrown if the request contains a semantic error. The precise meaning
57
- * will depend on the API, and will be documented in the error message.</p>
52
+ * <p>This exception is thrown if the request contains a semantic error. The precise meaning will depend on the API, and will be documented in the error message.</p>
58
53
  * @public
59
54
  */
60
55
  export declare class InvalidRequestException extends __BaseException {
@@ -1,6 +1,5 @@
1
1
  /**
2
- * <p>An object with the permanent IAM role identity and the temporary session
3
- * name.</p>
2
+ * <p>An object with the permanent IAM role identity and the temporary session name.</p>
4
3
  * @public
5
4
  */
6
5
  export interface AssumedRoleUser {
@@ -10,14 +9,7 @@ export interface AssumedRoleUser {
10
9
  */
11
10
  arn: string | undefined;
12
11
  /**
13
- * <p>The session name of the temporary session requested to STS. The value
14
- * is a unique identifier that contains the role ID, a colon (<code>:</code>), and the role
15
- * session name of the role that is being assumed. The role ID is generated by IAM when
16
- * the role is created. The role session name part of the value follows this format:
17
- * <code>eks-<i>clustername</i>-<i>podname</i>-<i>random
18
- * UUID</i>
19
- * </code>
20
- * </p>
12
+ * <p>The session name of the temporary session requested to STS. The value is a unique identifier that contains the role ID, a colon (<code>:</code>), and the role session name of the role that is being assumed. The role ID is generated by IAM when the role is created. The role session name part of the value follows this format: <code>eks-<i>clustername</i>-<i>podname</i>-<i>random UUID</i> </code> </p>
21
13
  * @public
22
14
  */
23
15
  assumeRoleId: string | undefined;
@@ -36,16 +28,29 @@ export interface AssumeRoleForPodIdentityRequest {
36
28
  * @public
37
29
  */
38
30
  token: string | undefined;
31
+ /**
32
+ * <p>The Kubernetes node name of the worker node where the pod is running.</p>
33
+ * @public
34
+ */
35
+ eksNodeName?: string | undefined;
36
+ /**
37
+ * <p>The Amazon EC2 instance ID of the worker node where the pod is running.</p>
38
+ * @public
39
+ */
40
+ instanceId?: string | undefined;
41
+ /**
42
+ * <p>The Availability Zone ID of the worker node where the pod is running.</p>
43
+ * @public
44
+ */
45
+ zone?: string | undefined;
39
46
  }
40
47
  /**
41
- * <p>The <i>Amazon Web Services Signature Version 4</i> type of temporary
42
- * credentials.</p>
48
+ * <p>The <i>Amazon Web Services Signature Version 4</i> type of temporary credentials.</p>
43
49
  * @public
44
50
  */
45
51
  export interface Credentials {
46
52
  /**
47
- * <p>The token that applications inside the pods must pass to any service API to use the
48
- * temporary credentials.</p>
53
+ * <p>The token that applications inside the pods must pass to any service API to use the temporary credentials.</p>
49
54
  * @public
50
55
  */
51
56
  sessionToken: string | undefined;
@@ -82,21 +87,17 @@ export interface PodIdentityAssociation {
82
87
  associationId: string | undefined;
83
88
  }
84
89
  /**
85
- * <p>An object containing the name of the Kubernetes service account inside the cluster to
86
- * associate the IAM credentials with.</p>
90
+ * <p>An object containing the name of the Kubernetes service account inside the cluster to associate the IAM credentials with.</p>
87
91
  * @public
88
92
  */
89
93
  export interface Subject {
90
94
  /**
91
- * <p>The name of the Kubernetes namespace inside the cluster to create the association in. The
92
- * service account and the pods that use the service account must be in this
93
- * namespace.</p>
95
+ * <p>The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the pods that use the service account must be in this namespace.</p>
94
96
  * @public
95
97
  */
96
98
  namespace: string | undefined;
97
99
  /**
98
- * <p>The name of the Kubernetes service account inside the cluster to associate the IAM
99
- * credentials with.</p>
100
+ * <p>The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.</p>
100
101
  * @public
101
102
  */
102
103
  serviceAccount: string | undefined;
@@ -106,14 +107,12 @@ export interface Subject {
106
107
  */
107
108
  export interface AssumeRoleForPodIdentityResponse {
108
109
  /**
109
- * <p>The name of the Kubernetes service account inside the cluster to associate the IAM
110
- * credentials with.</p>
110
+ * <p>The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.</p>
111
111
  * @public
112
112
  */
113
113
  subject: Subject | undefined;
114
114
  /**
115
- * <p>The identity that is allowed to use the credentials. This value is always
116
- * <code>pods.eks.amazonaws.com</code>.</p>
115
+ * <p>The identity that is allowed to use the credentials. This value is always <code>pods.eks.amazonaws.com</code>.</p>
117
116
  * @public
118
117
  */
119
118
  audience: string | undefined;
@@ -123,23 +122,12 @@ export interface AssumeRoleForPodIdentityResponse {
123
122
  */
124
123
  podIdentityAssociation: PodIdentityAssociation | undefined;
125
124
  /**
126
- * <p>An object with the permanent IAM role identity and the temporary session
127
- * name.</p>
128
- * <p>The ARN of the IAM role that the temporary credentials authenticate to.</p>
129
- * <p>The session name of the temporary session requested to STS. The value
130
- * is a unique identifier that contains the role ID, a colon (<code>:</code>), and the role
131
- * session name of the role that is being assumed. The role ID is generated by IAM when
132
- * the role is created. The role session name part of the value follows this format:
133
- * <code>eks-<i>clustername</i>-<i>podname</i>-<i>random
134
- * UUID</i>
135
- * </code>
136
- * </p>
125
+ * <p>An object with the permanent IAM role identity and the temporary session name.</p> <p>The ARN of the IAM role that the temporary credentials authenticate to.</p> <p>The session name of the temporary session requested to STS. The value is a unique identifier that contains the role ID, a colon (<code>:</code>), and the role session name of the role that is being assumed. The role ID is generated by IAM when the role is created. The role session name part of the value follows this format: <code>eks-<i>clustername</i>-<i>podname</i>-<i>random UUID</i> </code> </p>
137
126
  * @public
138
127
  */
139
128
  assumedRoleUser: AssumedRoleUser | undefined;
140
129
  /**
141
- * <p>The <i>Amazon Web Services Signature Version 4</i> type of temporary
142
- * credentials.</p>
130
+ * <p>The <i>Amazon Web Services Signature Version 4</i> type of temporary credentials.</p>
143
131
  * @public
144
132
  */
145
133
  credentials: Credentials | undefined;
@@ -5,6 +5,9 @@ export interface AssumedRoleUser {
5
5
  export interface AssumeRoleForPodIdentityRequest {
6
6
  clusterName: string | undefined;
7
7
  token: string | undefined;
8
+ eksNodeName?: string | undefined;
9
+ instanceId?: string | undefined;
10
+ zone?: string | undefined;
8
11
  }
9
12
  export interface Credentials {
10
13
  sessionToken: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-eks-auth",
3
- "version": "3.1101.0",
3
+ "version": "3.1102.0",
4
4
  "description": "AWS SDK for JavaScript Eks Auth Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks-auth",
6
6
  "license": "Apache-2.0",
@@ -46,8 +46,8 @@
46
46
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.977.4",
50
- "@aws-sdk/credential-provider-node": "^3.972.76",
49
+ "@aws-sdk/core": "^3.977.5",
50
+ "@aws-sdk/credential-provider-node": "^3.972.77",
51
51
  "@aws-sdk/types": "^3.974.2",
52
52
  "@smithy/core": "^3.31.1",
53
53
  "@smithy/fetch-http-handler": "^5.6.13",