@aws-sdk/client-sts 3.294.0 → 3.296.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/dist-cjs/commands/AssumeRoleCommand.js +4 -4
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +4 -4
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +4 -4
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +4 -4
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js +4 -4
- package/dist-cjs/commands/GetCallerIdentityCommand.js +4 -4
- package/dist-cjs/commands/GetFederationTokenCommand.js +4 -4
- package/dist-cjs/commands/GetSessionTokenCommand.js +4 -4
- package/dist-es/commands/AssumeRoleCommand.js +4 -4
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +4 -4
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +4 -4
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +4 -4
- package/dist-es/commands/GetAccessKeyInfoCommand.js +4 -4
- package/dist-es/commands/GetCallerIdentityCommand.js +4 -4
- package/dist-es/commands/GetFederationTokenCommand.js +4 -4
- package/dist-es/commands/GetSessionTokenCommand.js +4 -4
- package/dist-types/STSClient.d.ts +4 -4
- package/dist-types/defaultRoleAssumers.d.ts +2 -2
- package/dist-types/defaultStsRoleAssumers.d.ts +3 -3
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/STSClient.d.ts +4 -4
- package/dist-types/ts3.4/defaultRoleAssumers.d.ts +2 -2
- package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +3 -5
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +3 -4
- package/package.json +36 -36
|
@@ -8,10 +8,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
10
|
class AssumeRoleCommand extends smithy_client_1.Command {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
}
|
|
15
11
|
static getEndpointParameterInstructions() {
|
|
16
12
|
return {
|
|
17
13
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -21,6 +17,10 @@ class AssumeRoleCommand extends smithy_client_1.Command {
|
|
|
21
17
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
22
18
|
};
|
|
23
19
|
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
24
|
resolveMiddleware(clientStack, configuration, options) {
|
|
25
25
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
26
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
9
9
|
class AssumeRoleWithSAMLCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -20,6 +16,10 @@ class AssumeRoleWithSAMLCommand extends smithy_client_1.Command {
|
|
|
20
16
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
21
17
|
};
|
|
22
18
|
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
23
|
resolveMiddleware(clientStack, configuration, options) {
|
|
24
24
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
25
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithSAMLCommand.getEndpointParameterInstructions()));
|
|
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
9
9
|
class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
|
|
10
|
-
constructor(input) {
|
|
11
|
-
super();
|
|
12
|
-
this.input = input;
|
|
13
|
-
}
|
|
14
10
|
static getEndpointParameterInstructions() {
|
|
15
11
|
return {
|
|
16
12
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -20,6 +16,10 @@ class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
|
|
|
20
16
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
21
17
|
};
|
|
22
18
|
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
23
|
resolveMiddleware(clientStack, configuration, options) {
|
|
24
24
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
25
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions()));
|
|
@@ -8,10 +8,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
10
|
class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
}
|
|
15
11
|
static getEndpointParameterInstructions() {
|
|
16
12
|
return {
|
|
17
13
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -21,6 +17,10 @@ class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
|
|
|
21
17
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
22
18
|
};
|
|
23
19
|
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
24
|
resolveMiddleware(clientStack, configuration, options) {
|
|
25
25
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
26
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DecodeAuthorizationMessageCommand.getEndpointParameterInstructions()));
|
|
@@ -8,10 +8,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
10
|
class GetAccessKeyInfoCommand extends smithy_client_1.Command {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
}
|
|
15
11
|
static getEndpointParameterInstructions() {
|
|
16
12
|
return {
|
|
17
13
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -21,6 +17,10 @@ class GetAccessKeyInfoCommand extends smithy_client_1.Command {
|
|
|
21
17
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
22
18
|
};
|
|
23
19
|
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
24
|
resolveMiddleware(clientStack, configuration, options) {
|
|
25
25
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
26
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessKeyInfoCommand.getEndpointParameterInstructions()));
|
|
@@ -8,10 +8,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
10
|
class GetCallerIdentityCommand extends smithy_client_1.Command {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
}
|
|
15
11
|
static getEndpointParameterInstructions() {
|
|
16
12
|
return {
|
|
17
13
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -21,6 +17,10 @@ class GetCallerIdentityCommand extends smithy_client_1.Command {
|
|
|
21
17
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
22
18
|
};
|
|
23
19
|
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
24
|
resolveMiddleware(clientStack, configuration, options) {
|
|
25
25
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
26
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCallerIdentityCommand.getEndpointParameterInstructions()));
|
|
@@ -8,10 +8,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
10
|
class GetFederationTokenCommand extends smithy_client_1.Command {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
}
|
|
15
11
|
static getEndpointParameterInstructions() {
|
|
16
12
|
return {
|
|
17
13
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -21,6 +17,10 @@ class GetFederationTokenCommand extends smithy_client_1.Command {
|
|
|
21
17
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
22
18
|
};
|
|
23
19
|
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
24
|
resolveMiddleware(clientStack, configuration, options) {
|
|
25
25
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
26
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetFederationTokenCommand.getEndpointParameterInstructions()));
|
|
@@ -8,10 +8,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
10
10
|
class GetSessionTokenCommand extends smithy_client_1.Command {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
}
|
|
15
11
|
static getEndpointParameterInstructions() {
|
|
16
12
|
return {
|
|
17
13
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -21,6 +17,10 @@ class GetSessionTokenCommand extends smithy_client_1.Command {
|
|
|
21
17
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
22
18
|
};
|
|
23
19
|
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
24
|
resolveMiddleware(clientStack, configuration, options) {
|
|
25
25
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
26
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSessionTokenCommand.getEndpointParameterInstructions()));
|
|
@@ -5,10 +5,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
5
5
|
import { AssumeRoleRequestFilterSensitiveLog, AssumeRoleResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryAssumeRoleCommand, serializeAws_queryAssumeRoleCommand } from "../protocols/Aws_query";
|
|
7
7
|
export class AssumeRoleCommand extends $Command {
|
|
8
|
-
constructor(input) {
|
|
9
|
-
super();
|
|
10
|
-
this.input = input;
|
|
11
|
-
}
|
|
12
8
|
static getEndpointParameterInstructions() {
|
|
13
9
|
return {
|
|
14
10
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -18,6 +14,10 @@ export class AssumeRoleCommand extends $Command {
|
|
|
18
14
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
15
|
};
|
|
20
16
|
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
22
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
23
|
this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleCommand.getEndpointParameterInstructions()));
|
|
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
4
4
|
import { AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_queryAssumeRoleWithSAMLCommand, serializeAws_queryAssumeRoleWithSAMLCommand, } from "../protocols/Aws_query";
|
|
6
6
|
export class AssumeRoleWithSAMLCommand extends $Command {
|
|
7
|
-
constructor(input) {
|
|
8
|
-
super();
|
|
9
|
-
this.input = input;
|
|
10
|
-
}
|
|
11
7
|
static getEndpointParameterInstructions() {
|
|
12
8
|
return {
|
|
13
9
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -17,6 +13,10 @@ export class AssumeRoleWithSAMLCommand extends $Command {
|
|
|
17
13
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
14
|
};
|
|
19
15
|
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
20
|
resolveMiddleware(clientStack, configuration, options) {
|
|
21
21
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
22
|
this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleWithSAMLCommand.getEndpointParameterInstructions()));
|
|
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
4
4
|
import { AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_queryAssumeRoleWithWebIdentityCommand, serializeAws_queryAssumeRoleWithWebIdentityCommand, } from "../protocols/Aws_query";
|
|
6
6
|
export class AssumeRoleWithWebIdentityCommand extends $Command {
|
|
7
|
-
constructor(input) {
|
|
8
|
-
super();
|
|
9
|
-
this.input = input;
|
|
10
|
-
}
|
|
11
7
|
static getEndpointParameterInstructions() {
|
|
12
8
|
return {
|
|
13
9
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -17,6 +13,10 @@ export class AssumeRoleWithWebIdentityCommand extends $Command {
|
|
|
17
13
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
14
|
};
|
|
19
15
|
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
20
|
resolveMiddleware(clientStack, configuration, options) {
|
|
21
21
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
22
|
this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions()));
|
|
@@ -5,10 +5,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
5
5
|
import { DecodeAuthorizationMessageRequestFilterSensitiveLog, DecodeAuthorizationMessageResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryDecodeAuthorizationMessageCommand, serializeAws_queryDecodeAuthorizationMessageCommand, } from "../protocols/Aws_query";
|
|
7
7
|
export class DecodeAuthorizationMessageCommand extends $Command {
|
|
8
|
-
constructor(input) {
|
|
9
|
-
super();
|
|
10
|
-
this.input = input;
|
|
11
|
-
}
|
|
12
8
|
static getEndpointParameterInstructions() {
|
|
13
9
|
return {
|
|
14
10
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -18,6 +14,10 @@ export class DecodeAuthorizationMessageCommand extends $Command {
|
|
|
18
14
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
15
|
};
|
|
20
16
|
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
22
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
23
|
this.middlewareStack.use(getEndpointPlugin(configuration, DecodeAuthorizationMessageCommand.getEndpointParameterInstructions()));
|
|
@@ -5,10 +5,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
5
5
|
import { GetAccessKeyInfoRequestFilterSensitiveLog, GetAccessKeyInfoResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryGetAccessKeyInfoCommand, serializeAws_queryGetAccessKeyInfoCommand, } from "../protocols/Aws_query";
|
|
7
7
|
export class GetAccessKeyInfoCommand extends $Command {
|
|
8
|
-
constructor(input) {
|
|
9
|
-
super();
|
|
10
|
-
this.input = input;
|
|
11
|
-
}
|
|
12
8
|
static getEndpointParameterInstructions() {
|
|
13
9
|
return {
|
|
14
10
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -18,6 +14,10 @@ export class GetAccessKeyInfoCommand extends $Command {
|
|
|
18
14
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
15
|
};
|
|
20
16
|
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
22
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
23
|
this.middlewareStack.use(getEndpointPlugin(configuration, GetAccessKeyInfoCommand.getEndpointParameterInstructions()));
|
|
@@ -5,10 +5,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
5
5
|
import { GetCallerIdentityRequestFilterSensitiveLog, GetCallerIdentityResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryGetCallerIdentityCommand, serializeAws_queryGetCallerIdentityCommand, } from "../protocols/Aws_query";
|
|
7
7
|
export class GetCallerIdentityCommand extends $Command {
|
|
8
|
-
constructor(input) {
|
|
9
|
-
super();
|
|
10
|
-
this.input = input;
|
|
11
|
-
}
|
|
12
8
|
static getEndpointParameterInstructions() {
|
|
13
9
|
return {
|
|
14
10
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -18,6 +14,10 @@ export class GetCallerIdentityCommand extends $Command {
|
|
|
18
14
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
15
|
};
|
|
20
16
|
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
22
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
23
|
this.middlewareStack.use(getEndpointPlugin(configuration, GetCallerIdentityCommand.getEndpointParameterInstructions()));
|
|
@@ -5,10 +5,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
5
5
|
import { GetFederationTokenRequestFilterSensitiveLog, GetFederationTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryGetFederationTokenCommand, serializeAws_queryGetFederationTokenCommand, } from "../protocols/Aws_query";
|
|
7
7
|
export class GetFederationTokenCommand extends $Command {
|
|
8
|
-
constructor(input) {
|
|
9
|
-
super();
|
|
10
|
-
this.input = input;
|
|
11
|
-
}
|
|
12
8
|
static getEndpointParameterInstructions() {
|
|
13
9
|
return {
|
|
14
10
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -18,6 +14,10 @@ export class GetFederationTokenCommand extends $Command {
|
|
|
18
14
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
15
|
};
|
|
20
16
|
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
22
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
23
|
this.middlewareStack.use(getEndpointPlugin(configuration, GetFederationTokenCommand.getEndpointParameterInstructions()));
|
|
@@ -5,10 +5,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
|
5
5
|
import { GetSessionTokenRequestFilterSensitiveLog, GetSessionTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
6
|
import { deserializeAws_queryGetSessionTokenCommand, serializeAws_queryGetSessionTokenCommand, } from "../protocols/Aws_query";
|
|
7
7
|
export class GetSessionTokenCommand extends $Command {
|
|
8
|
-
constructor(input) {
|
|
9
|
-
super();
|
|
10
|
-
this.input = input;
|
|
11
|
-
}
|
|
12
8
|
static getEndpointParameterInstructions() {
|
|
13
9
|
return {
|
|
14
10
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
@@ -18,6 +14,10 @@ export class GetSessionTokenCommand extends $Command {
|
|
|
18
14
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
15
|
};
|
|
20
16
|
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
21
|
resolveMiddleware(clientStack, configuration, options) {
|
|
22
22
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
23
|
this.middlewareStack.use(getEndpointPlugin(configuration, GetSessionTokenCommand.getEndpointParameterInstructions()));
|
|
@@ -16,8 +16,8 @@ import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from ".
|
|
|
16
16
|
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
17
17
|
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
18
18
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type ServiceInputTypes = AssumeRoleCommandInput | AssumeRoleWithSAMLCommandInput | AssumeRoleWithWebIdentityCommandInput | DecodeAuthorizationMessageCommandInput | GetAccessKeyInfoCommandInput | GetCallerIdentityCommandInput | GetFederationTokenCommandInput | GetSessionTokenCommandInput;
|
|
20
|
+
export type ServiceOutputTypes = AssumeRoleCommandOutput | AssumeRoleWithSAMLCommandOutput | AssumeRoleWithWebIdentityCommandOutput | DecodeAuthorizationMessageCommandOutput | GetAccessKeyInfoCommandOutput | GetCallerIdentityCommandOutput | GetFederationTokenCommandOutput | GetSessionTokenCommandOutput;
|
|
21
21
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
22
22
|
/**
|
|
23
23
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -118,13 +118,13 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
118
118
|
*/
|
|
119
119
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
type STSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & StsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
122
122
|
/**
|
|
123
123
|
* The configuration interface of STSClient class constructor that set the region, credentials and other options.
|
|
124
124
|
*/
|
|
125
125
|
export interface STSClientConfig extends STSClientConfigType {
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
type STSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & StsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
128
128
|
/**
|
|
129
129
|
* The resolved configuration interface of STSClient class. This is resolved and normalized from the {@link STSClientConfig | constructor configuration interface}.
|
|
130
130
|
*/
|
|
@@ -4,11 +4,11 @@ import { ServiceInputTypes, ServiceOutputTypes, STSClientConfig } from "./STSCli
|
|
|
4
4
|
/**
|
|
5
5
|
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getDefaultRoleAssumer: (stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
|
|
7
|
+
export declare const getDefaultRoleAssumer: (stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]) => RoleAssumer;
|
|
8
8
|
/**
|
|
9
9
|
* The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
|
|
10
10
|
*/
|
|
11
|
-
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
|
|
11
|
+
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">, stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]) => RoleAssumerWithWebIdentity;
|
|
12
12
|
/**
|
|
13
13
|
* The default credential providers depend STS client to assume role with desired API: sts:assumeRole,
|
|
14
14
|
* sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which
|
|
@@ -5,7 +5,7 @@ import type { STSClient, STSClientConfig } from "./STSClient";
|
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type RoleAssumer = (sourceCreds: Credentials, params: AssumeRoleCommandInput) => Promise<Credentials>;
|
|
9
9
|
/**
|
|
10
10
|
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
|
11
11
|
* @internal
|
|
@@ -14,7 +14,7 @@ export declare const getDefaultRoleAssumer: (stsOptions: Pick<STSClientConfig, "
|
|
|
14
14
|
/**
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export type RoleAssumerWithWebIdentity = (params: AssumeRoleWithWebIdentityCommandInput) => Promise<Credentials>;
|
|
18
18
|
/**
|
|
19
19
|
* The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
|
|
20
20
|
* @internal
|
|
@@ -23,7 +23,7 @@ export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: Pick<STS
|
|
|
23
23
|
/**
|
|
24
24
|
* @internal
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type DefaultCredentialProvider = (input: any) => Provider<Credentials>;
|
|
27
27
|
/**
|
|
28
28
|
* The default credential providers depend STS client to assume role with desired API: sts:assumeRole,
|
|
29
29
|
* sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which
|
|
@@ -6,7 +6,7 @@ export interface ClientInputEndpointParameters {
|
|
|
6
6
|
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
7
7
|
useGlobalEndpoint?: boolean | Provider<boolean>;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
10
10
|
defaultSigningName: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
ClientResolvedEndpointParameters,
|
|
82
82
|
EndpointParameters,
|
|
83
83
|
} from "./endpoint/EndpointParameters";
|
|
84
|
-
export
|
|
84
|
+
export type ServiceInputTypes =
|
|
85
85
|
| AssumeRoleCommandInput
|
|
86
86
|
| AssumeRoleWithSAMLCommandInput
|
|
87
87
|
| AssumeRoleWithWebIdentityCommandInput
|
|
@@ -90,7 +90,7 @@ export declare type ServiceInputTypes =
|
|
|
90
90
|
| GetCallerIdentityCommandInput
|
|
91
91
|
| GetFederationTokenCommandInput
|
|
92
92
|
| GetSessionTokenCommandInput;
|
|
93
|
-
export
|
|
93
|
+
export type ServiceOutputTypes =
|
|
94
94
|
| AssumeRoleCommandOutput
|
|
95
95
|
| AssumeRoleWithSAMLCommandOutput
|
|
96
96
|
| AssumeRoleWithWebIdentityCommandOutput
|
|
@@ -123,7 +123,7 @@ export interface ClientDefaults
|
|
|
123
123
|
logger?: __Logger;
|
|
124
124
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
type STSClientConfigType = Partial<
|
|
127
127
|
__SmithyConfiguration<__HttpHandlerOptions>
|
|
128
128
|
> &
|
|
129
129
|
ClientDefaults &
|
|
@@ -135,7 +135,7 @@ declare type STSClientConfigType = Partial<
|
|
|
135
135
|
UserAgentInputConfig &
|
|
136
136
|
ClientInputEndpointParameters;
|
|
137
137
|
export interface STSClientConfig extends STSClientConfigType {}
|
|
138
|
-
|
|
138
|
+
type STSClientResolvedConfigType =
|
|
139
139
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
140
140
|
Required<ClientDefaults> &
|
|
141
141
|
RegionResolvedConfig &
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
} from "./STSClient";
|
|
12
12
|
export declare const getDefaultRoleAssumer: (
|
|
13
13
|
stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
|
|
14
|
-
stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
|
|
14
|
+
stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
|
|
15
15
|
) => RoleAssumer;
|
|
16
16
|
export declare const getDefaultRoleAssumerWithWebIdentity: (
|
|
17
17
|
stsOptions?: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
|
|
18
|
-
stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
|
|
18
|
+
stsPlugins?: Pluggable<ServiceInputTypes, ServiceOutputTypes>[]
|
|
19
19
|
) => RoleAssumerWithWebIdentity;
|
|
20
20
|
export declare const decorateDefaultCredentialProvider: (
|
|
21
21
|
provider: DefaultCredentialProvider
|
|
@@ -2,7 +2,7 @@ import { Credentials, Provider } from "@aws-sdk/types";
|
|
|
2
2
|
import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand";
|
|
3
3
|
import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
4
4
|
import { STSClient, STSClientConfig } from "./STSClient";
|
|
5
|
-
export
|
|
5
|
+
export type RoleAssumer = (
|
|
6
6
|
sourceCreds: Credentials,
|
|
7
7
|
params: AssumeRoleCommandInput
|
|
8
8
|
) => Promise<Credentials>;
|
|
@@ -10,16 +10,14 @@ export declare const getDefaultRoleAssumer: (
|
|
|
10
10
|
stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
|
|
11
11
|
stsClientCtor: new (options: STSClientConfig) => STSClient
|
|
12
12
|
) => RoleAssumer;
|
|
13
|
-
export
|
|
13
|
+
export type RoleAssumerWithWebIdentity = (
|
|
14
14
|
params: AssumeRoleWithWebIdentityCommandInput
|
|
15
15
|
) => Promise<Credentials>;
|
|
16
16
|
export declare const getDefaultRoleAssumerWithWebIdentity: (
|
|
17
17
|
stsOptions: Pick<STSClientConfig, "logger" | "region" | "requestHandler">,
|
|
18
18
|
stsClientCtor: new (options: STSClientConfig) => STSClient
|
|
19
19
|
) => RoleAssumerWithWebIdentity;
|
|
20
|
-
export
|
|
21
|
-
input: any
|
|
22
|
-
) => Provider<Credentials>;
|
|
20
|
+
export type DefaultCredentialProvider = (input: any) => Provider<Credentials>;
|
|
23
21
|
export declare const decorateDefaultCredentialProvider: (
|
|
24
22
|
provider: DefaultCredentialProvider
|
|
25
23
|
) => DefaultCredentialProvider;
|
|
@@ -17,10 +17,9 @@ export interface ClientInputEndpointParameters {
|
|
|
17
17
|
| Provider<EndpointV2>;
|
|
18
18
|
useGlobalEndpoint?: boolean | Provider<boolean>;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
20
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
21
|
+
defaultSigningName: string;
|
|
22
|
+
};
|
|
24
23
|
export declare const resolveClientEndpointParameters: <T>(
|
|
25
24
|
options: T & ClientInputEndpointParameters
|
|
26
25
|
) => T &
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.296.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -22,50 +22,50 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-sdk-sts": "3.
|
|
37
|
-
"@aws-sdk/middleware-serde": "3.
|
|
38
|
-
"@aws-sdk/middleware-signing": "3.
|
|
39
|
-
"@aws-sdk/middleware-stack": "3.
|
|
40
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
41
|
-
"@aws-sdk/node-config-provider": "3.
|
|
42
|
-
"@aws-sdk/node-http-handler": "3.
|
|
43
|
-
"@aws-sdk/protocol-http": "3.
|
|
44
|
-
"@aws-sdk/smithy-client": "3.
|
|
45
|
-
"@aws-sdk/types": "3.
|
|
46
|
-
"@aws-sdk/url-parser": "3.
|
|
47
|
-
"@aws-sdk/util-base64": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
49
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
52
|
-
"@aws-sdk/util-endpoints": "3.
|
|
53
|
-
"@aws-sdk/util-retry": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8": "3.
|
|
25
|
+
"@aws-sdk/config-resolver": "3.296.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.296.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.296.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.296.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.296.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.296.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.296.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.296.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.296.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.296.0",
|
|
36
|
+
"@aws-sdk/middleware-sdk-sts": "3.296.0",
|
|
37
|
+
"@aws-sdk/middleware-serde": "3.296.0",
|
|
38
|
+
"@aws-sdk/middleware-signing": "3.296.0",
|
|
39
|
+
"@aws-sdk/middleware-stack": "3.296.0",
|
|
40
|
+
"@aws-sdk/middleware-user-agent": "3.296.0",
|
|
41
|
+
"@aws-sdk/node-config-provider": "3.296.0",
|
|
42
|
+
"@aws-sdk/node-http-handler": "3.296.0",
|
|
43
|
+
"@aws-sdk/protocol-http": "3.296.0",
|
|
44
|
+
"@aws-sdk/smithy-client": "3.296.0",
|
|
45
|
+
"@aws-sdk/types": "3.296.0",
|
|
46
|
+
"@aws-sdk/url-parser": "3.296.0",
|
|
47
|
+
"@aws-sdk/util-base64": "3.295.0",
|
|
48
|
+
"@aws-sdk/util-body-length-browser": "3.295.0",
|
|
49
|
+
"@aws-sdk/util-body-length-node": "3.295.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.296.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.296.0",
|
|
52
|
+
"@aws-sdk/util-endpoints": "3.296.0",
|
|
53
|
+
"@aws-sdk/util-retry": "3.296.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.296.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.296.0",
|
|
56
|
+
"@aws-sdk/util-utf8": "3.295.0",
|
|
57
57
|
"fast-xml-parser": "4.1.2",
|
|
58
|
-
"tslib": "^2.
|
|
58
|
+
"tslib": "^2.5.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/service-client-documentation-generator": "3.295.0",
|
|
62
62
|
"@tsconfig/node14": "1.0.3",
|
|
63
63
|
"@types/node": "^14.14.31",
|
|
64
64
|
"concurrently": "7.0.0",
|
|
65
65
|
"downlevel-dts": "0.10.1",
|
|
66
66
|
"rimraf": "3.0.2",
|
|
67
67
|
"typedoc": "0.23.23",
|
|
68
|
-
"typescript": "~4.
|
|
68
|
+
"typescript": "~4.9.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=14.0.0"
|