@aws-sdk/client-signin 3.1156.0 → 3.1157.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 +8 -2
- package/dist-cjs/index.js +120 -3
- package/dist-es/Signin.js +2 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +6 -0
- package/dist-es/commands/CreateOAuth2TokenWithTokenExchangeCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +7 -0
- package/dist-es/models/errors.js +46 -0
- package/dist-es/schemas/schemas_0.js +48 -3
- package/dist-types/Signin.d.ts +8 -2
- package/dist-types/SigninClient.d.ts +4 -4
- package/dist-types/commands/CreateOAuth2TokenCommand.d.ts +5 -59
- package/dist-types/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
- package/dist-types/commands/CreateOAuth2TokenWithTokenExchangeCommand.d.ts +96 -0
- package/dist-types/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/DeleteResourcePermissionStatementCommand.d.ts +4 -31
- package/dist-types/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -25
- package/dist-types/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +6 -40
- package/dist-types/commands/ListResourcePermissionStatementsCommand.d.ts +4 -31
- package/dist-types/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +4 -31
- package/dist-types/commands/PutResourcePermissionStatementCommand.d.ts +4 -31
- package/dist-types/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +5 -38
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -2
- package/dist-types/models/enums.d.ts +16 -9
- package/dist-types/models/errors.d.ts +63 -39
- package/dist-types/models/models_0.d.ts +113 -68
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/Signin.d.ts +17 -0
- package/dist-types/ts3.4/SigninClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/CreateOAuth2TokenWithTokenExchangeCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +7 -0
- package/dist-types/ts3.4/models/errors.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
- package/package.json +6 -6
|
@@ -24,34 +24,7 @@ declare const CreateOAuth2TokenCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* Path: /v1/token
|
|
30
|
-
* Request Method: POST
|
|
31
|
-
* Content-Type: application/json or application/x-www-form-urlencoded
|
|
32
|
-
*
|
|
33
|
-
* This API implements OAuth 2.0 flows for AWS Sign-In CLI clients, supporting both:
|
|
34
|
-
* 1. Authorization code redemption (grant_type=authorization_code) - NOT idempotent
|
|
35
|
-
* 2. Token refresh (grant_type=refresh_token) - Idempotent within token validity window
|
|
36
|
-
*
|
|
37
|
-
* The operation behavior is determined by the grant_type parameter in the request body:
|
|
38
|
-
*
|
|
39
|
-
* **Authorization Code Flow (NOT Idempotent):**
|
|
40
|
-
* - JSON or form-encoded body with client_id, grant_type=authorization_code, code, redirect_uri, code_verifier
|
|
41
|
-
* - Returns access_token, token_type, expires_in, refresh_token, and id_token
|
|
42
|
-
* - Each authorization code can only be used ONCE for security (prevents replay attacks)
|
|
43
|
-
*
|
|
44
|
-
* **Token Refresh Flow (Idempotent):**
|
|
45
|
-
* - JSON or form-encoded body with client_id, grant_type=refresh_token, refresh_token
|
|
46
|
-
* - Returns access_token, token_type, expires_in, and refresh_token (no id_token)
|
|
47
|
-
* - Multiple calls with same refresh_token return consistent results within validity window
|
|
48
|
-
*
|
|
49
|
-
* Authentication and authorization:
|
|
50
|
-
* - Confidential clients: sigv4 signing required with signin:ExchangeToken permissions
|
|
51
|
-
* - CLI clients (public): authn/authz skipped based on client_id & grant_type
|
|
52
|
-
*
|
|
53
|
-
* Note: This operation cannot be marked as @idempotent because it handles both idempotent
|
|
54
|
-
* (token refresh) and non-idempotent (auth code redemption) flows in a single endpoint.
|
|
27
|
+
* Exchanges an authorization code or refresh token for an OAuth 2.0 access token and refresh token.
|
|
55
28
|
* @example
|
|
56
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
57
30
|
* ```javascript
|
|
@@ -95,43 +68,16 @@ declare const CreateOAuth2TokenCommand_base: {
|
|
|
95
68
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
96
69
|
*
|
|
97
70
|
* @throws {@link AccessDeniedException} (client fault)
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* Runtime HTTP Status Code Mapping:
|
|
101
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
102
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
103
|
-
*
|
|
104
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
105
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
71
|
+
* You do not have sufficient access to perform this action.
|
|
106
72
|
*
|
|
107
73
|
* @throws {@link InternalServerException} (server fault)
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
111
|
-
*
|
|
112
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
74
|
+
* The request failed because of an internal server error.
|
|
113
75
|
*
|
|
114
76
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
118
|
-
*
|
|
119
|
-
* Possible OAuth2ErrorCode values:
|
|
120
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
121
|
-
*
|
|
122
|
-
* Possible causes:
|
|
123
|
-
* - Too many token requests from the same client
|
|
124
|
-
* - Rate limiting based on client_id or IP address
|
|
125
|
-
* - Abuse prevention mechanisms triggered
|
|
126
|
-
* - Service protection against excessive token generation
|
|
77
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
127
78
|
*
|
|
128
79
|
* @throws {@link ValidationException} (client fault)
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* HTTP Status Code: 400 Bad Request
|
|
132
|
-
*
|
|
133
|
-
* Used for request validation errors such as malformed parameters,
|
|
134
|
-
* missing required fields, or invalid parameter values.
|
|
80
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
135
81
|
*
|
|
136
82
|
* @throws {@link SigninServiceException}
|
|
137
83
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
@@ -24,8 +24,7 @@ declare const CreateOAuth2TokenWithIAMCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* scoped to a resource that can be used to access AWS services from applications
|
|
27
|
+
* Exchanges client credentials for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
|
|
29
28
|
* @example
|
|
30
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
30
|
* ```javascript
|
|
@@ -55,43 +54,16 @@ declare const CreateOAuth2TokenWithIAMCommand_base: {
|
|
|
55
54
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
56
55
|
*
|
|
57
56
|
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* Runtime HTTP Status Code Mapping:
|
|
61
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
62
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
63
|
-
*
|
|
64
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
65
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
57
|
+
* You do not have sufficient access to perform this action.
|
|
66
58
|
*
|
|
67
59
|
* @throws {@link InternalServerException} (server fault)
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
71
|
-
*
|
|
72
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
60
|
+
* The request failed because of an internal server error.
|
|
73
61
|
*
|
|
74
62
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
78
|
-
*
|
|
79
|
-
* Possible OAuth2ErrorCode values:
|
|
80
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
81
|
-
*
|
|
82
|
-
* Possible causes:
|
|
83
|
-
* - Too many token requests from the same client
|
|
84
|
-
* - Rate limiting based on client_id or IP address
|
|
85
|
-
* - Abuse prevention mechanisms triggered
|
|
86
|
-
* - Service protection against excessive token generation
|
|
63
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
87
64
|
*
|
|
88
65
|
* @throws {@link ValidationException} (client fault)
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* HTTP Status Code: 400 Bad Request
|
|
92
|
-
*
|
|
93
|
-
* Used for request validation errors such as malformed parameters,
|
|
94
|
-
* missing required fields, or invalid parameter values.
|
|
66
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
95
67
|
*
|
|
96
68
|
* @throws {@link SigninServiceException}
|
|
97
69
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateOAuth2TokenWithTokenExchangeRequest, CreateOAuth2TokenWithTokenExchangeResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateOAuth2TokenWithTokenExchangeCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateOAuth2TokenWithTokenExchangeCommandInput extends CreateOAuth2TokenWithTokenExchangeRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateOAuth2TokenWithTokenExchangeCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateOAuth2TokenWithTokenExchangeCommandOutput extends CreateOAuth2TokenWithTokenExchangeResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateOAuth2TokenWithTokenExchangeCommand_base: {
|
|
22
|
+
new (input: CreateOAuth2TokenWithTokenExchangeCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithTokenExchangeCommandInput, CreateOAuth2TokenWithTokenExchangeCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateOAuth2TokenWithTokenExchangeCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithTokenExchangeCommandInput, CreateOAuth2TokenWithTokenExchangeCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Exchanges a supported token for an OAuth 2.0 access token scoped to a resource, which you can use to access AWS services from applications.
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SigninClient, CreateOAuth2TokenWithTokenExchangeCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
32
|
+
* // const { SigninClient, CreateOAuth2TokenWithTokenExchangeCommand } = require("@aws-sdk/client-signin"); // CommonJS import
|
|
33
|
+
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
|
|
34
|
+
* const config = {}; // type is SigninClientConfig
|
|
35
|
+
* const client = new SigninClient(config);
|
|
36
|
+
* const input = { // CreateOAuth2TokenWithTokenExchangeRequest
|
|
37
|
+
* grantType: "STRING_VALUE", // required
|
|
38
|
+
* subjectToken: "STRING_VALUE",
|
|
39
|
+
* subjectTokenType: "STRING_VALUE",
|
|
40
|
+
* resource: "STRING_VALUE",
|
|
41
|
+
* scope: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new CreateOAuth2TokenWithTokenExchangeCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CreateOAuth2TokenWithTokenExchangeResponse
|
|
46
|
+
* // accessToken: "STRING_VALUE", // required
|
|
47
|
+
* // issuedTokenType: "STRING_VALUE",
|
|
48
|
+
* // tokenType: "STRING_VALUE", // required
|
|
49
|
+
* // expiresIn: Number("int"), // required
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param CreateOAuth2TokenWithTokenExchangeCommandInput - {@link CreateOAuth2TokenWithTokenExchangeCommandInput}
|
|
55
|
+
* @returns {@link CreateOAuth2TokenWithTokenExchangeCommandOutput}
|
|
56
|
+
* @see {@link CreateOAuth2TokenWithTokenExchangeCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link CreateOAuth2TokenWithTokenExchangeCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* The request failed because of an internal server error.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InvalidGrantException} (client fault)
|
|
64
|
+
* The request failed because the provided grant is invalid or expired.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InvalidScopeException} (client fault)
|
|
67
|
+
* The request failed because the requested scope is invalid or exceeds the scope that can be granted.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
70
|
+
* The request failed because a dependency is temporarily unavailable. You can retry the request.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
73
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link SigninServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class CreateOAuth2TokenWithTokenExchangeCommand extends CreateOAuth2TokenWithTokenExchangeCommand_base {
|
|
85
|
+
/** @internal type navigation helper, not in runtime. */
|
|
86
|
+
protected static __types: {
|
|
87
|
+
api: {
|
|
88
|
+
input: CreateOAuth2TokenWithTokenExchangeRequest;
|
|
89
|
+
output: CreateOAuth2TokenWithTokenExchangeResponse;
|
|
90
|
+
};
|
|
91
|
+
sdk: {
|
|
92
|
+
input: CreateOAuth2TokenWithTokenExchangeCommandInput;
|
|
93
|
+
output: CreateOAuth2TokenWithTokenExchangeCommandOutput;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -53,21 +53,10 @@ declare const DeleteConsoleAuthorizationConfigurationCommand_base: {
|
|
|
53
53
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* Runtime HTTP Status Code Mapping:
|
|
59
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
60
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
61
|
-
*
|
|
62
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
63
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
56
|
+
* You do not have sufficient access to perform this action.
|
|
64
57
|
*
|
|
65
58
|
* @throws {@link InternalServerException} (server fault)
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
69
|
-
*
|
|
70
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
59
|
+
* The request failed because of an internal server error.
|
|
71
60
|
*
|
|
72
61
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
73
62
|
* Error thrown when requested resource is not found
|
|
@@ -77,26 +66,10 @@ declare const DeleteConsoleAuthorizationConfigurationCommand_base: {
|
|
|
77
66
|
* Used when the specified resource does not exist
|
|
78
67
|
*
|
|
79
68
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
83
|
-
*
|
|
84
|
-
* Possible OAuth2ErrorCode values:
|
|
85
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
86
|
-
*
|
|
87
|
-
* Possible causes:
|
|
88
|
-
* - Too many token requests from the same client
|
|
89
|
-
* - Rate limiting based on client_id or IP address
|
|
90
|
-
* - Abuse prevention mechanisms triggered
|
|
91
|
-
* - Service protection against excessive token generation
|
|
69
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
92
70
|
*
|
|
93
71
|
* @throws {@link ValidationException} (client fault)
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* HTTP Status Code: 400 Bad Request
|
|
97
|
-
*
|
|
98
|
-
* Used for request validation errors such as malformed parameters,
|
|
99
|
-
* missing required fields, or invalid parameter values.
|
|
72
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
100
73
|
*
|
|
101
74
|
* @throws {@link SigninServiceException}
|
|
102
75
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
@@ -50,21 +50,10 @@ declare const DeleteResourcePermissionStatementCommand_base: {
|
|
|
50
50
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
51
51
|
*
|
|
52
52
|
* @throws {@link AccessDeniedException} (client fault)
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* Runtime HTTP Status Code Mapping:
|
|
56
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
57
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
58
|
-
*
|
|
59
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
60
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
53
|
+
* You do not have sufficient access to perform this action.
|
|
61
54
|
*
|
|
62
55
|
* @throws {@link InternalServerException} (server fault)
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
66
|
-
*
|
|
67
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
56
|
+
* The request failed because of an internal server error.
|
|
68
57
|
*
|
|
69
58
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
70
59
|
* Error thrown when requested resource is not found
|
|
@@ -74,26 +63,10 @@ declare const DeleteResourcePermissionStatementCommand_base: {
|
|
|
74
63
|
* Used when the specified resource does not exist
|
|
75
64
|
*
|
|
76
65
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
80
|
-
*
|
|
81
|
-
* Possible OAuth2ErrorCode values:
|
|
82
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
83
|
-
*
|
|
84
|
-
* Possible causes:
|
|
85
|
-
* - Too many token requests from the same client
|
|
86
|
-
* - Rate limiting based on client_id or IP address
|
|
87
|
-
* - Abuse prevention mechanisms triggered
|
|
88
|
-
* - Service protection against excessive token generation
|
|
66
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
89
67
|
*
|
|
90
68
|
* @throws {@link ValidationException} (client fault)
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* HTTP Status Code: 400 Bad Request
|
|
94
|
-
*
|
|
95
|
-
* Used for request validation errors such as malformed parameters,
|
|
96
|
-
* missing required fields, or invalid parameter values.
|
|
69
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
97
70
|
*
|
|
98
71
|
* @throws {@link SigninServiceException}
|
|
99
72
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
@@ -53,21 +53,10 @@ declare const GetConsoleAuthorizationConfigurationCommand_base: {
|
|
|
53
53
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* Runtime HTTP Status Code Mapping:
|
|
59
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
60
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
61
|
-
*
|
|
62
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
63
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
56
|
+
* You do not have sufficient access to perform this action.
|
|
64
57
|
*
|
|
65
58
|
* @throws {@link InternalServerException} (server fault)
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
69
|
-
*
|
|
70
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
59
|
+
* The request failed because of an internal server error.
|
|
71
60
|
*
|
|
72
61
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
73
62
|
* Error thrown when requested resource is not found
|
|
@@ -77,26 +66,10 @@ declare const GetConsoleAuthorizationConfigurationCommand_base: {
|
|
|
77
66
|
* Used when the specified resource does not exist
|
|
78
67
|
*
|
|
79
68
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
83
|
-
*
|
|
84
|
-
* Possible OAuth2ErrorCode values:
|
|
85
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
86
|
-
*
|
|
87
|
-
* Possible causes:
|
|
88
|
-
* - Too many token requests from the same client
|
|
89
|
-
* - Rate limiting based on client_id or IP address
|
|
90
|
-
* - Abuse prevention mechanisms triggered
|
|
91
|
-
* - Service protection against excessive token generation
|
|
69
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
92
70
|
*
|
|
93
71
|
* @throws {@link ValidationException} (client fault)
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* HTTP Status Code: 400 Bad Request
|
|
97
|
-
*
|
|
98
|
-
* Used for request validation errors such as malformed parameters,
|
|
99
|
-
* missing required fields, or invalid parameter values.
|
|
72
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
100
73
|
*
|
|
101
74
|
* @throws {@link SigninServiceException}
|
|
102
75
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
@@ -70,21 +70,10 @@ declare const GetResourcePolicyCommand_base: {
|
|
|
70
70
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* Runtime HTTP Status Code Mapping:
|
|
76
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
77
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
78
|
-
*
|
|
79
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
80
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
73
|
+
* You do not have sufficient access to perform this action.
|
|
81
74
|
*
|
|
82
75
|
* @throws {@link InternalServerException} (server fault)
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
86
|
-
*
|
|
87
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
76
|
+
* The request failed because of an internal server error.
|
|
88
77
|
*
|
|
89
78
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
90
79
|
* Error thrown when requested resource is not found
|
|
@@ -94,18 +83,7 @@ declare const GetResourcePolicyCommand_base: {
|
|
|
94
83
|
* Used when the specified resource does not exist
|
|
95
84
|
*
|
|
96
85
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
100
|
-
*
|
|
101
|
-
* Possible OAuth2ErrorCode values:
|
|
102
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
103
|
-
*
|
|
104
|
-
* Possible causes:
|
|
105
|
-
* - Too many token requests from the same client
|
|
106
|
-
* - Rate limiting based on client_id or IP address
|
|
107
|
-
* - Abuse prevention mechanisms triggered
|
|
108
|
-
* - Service protection against excessive token generation
|
|
86
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
109
87
|
*
|
|
110
88
|
* @throws {@link SigninServiceException}
|
|
111
89
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
@@ -24,17 +24,10 @@ declare const IntrospectOAuth2TokenWithIAMCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* access token or refresh token
|
|
27
|
+
* Inspects the metadata and active state of an OAuth 2.0 access token or refresh token.
|
|
29
28
|
*
|
|
30
29
|
* Implements RFC 7662 OAuth 2.0 Token Introspection over a SigV4-authenticated
|
|
31
|
-
* endpoint.
|
|
32
|
-
* by AWS Sign-In and returns the claims associated with it.
|
|
33
|
-
*
|
|
34
|
-
* Inactive token semantics (RFC 7662 §2.2): when the supplied token is
|
|
35
|
-
* unknown, expired, revoked, malformed, or owned by a different account,
|
|
36
|
-
* the response body is exactly \{ "active": false \} with all other claims
|
|
37
|
-
* omitted.
|
|
30
|
+
* endpoint. Returns the claims associated with a token issued by AWS Sign-In.
|
|
38
31
|
* @example
|
|
39
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
40
33
|
* ```javascript
|
|
@@ -75,43 +68,16 @@ declare const IntrospectOAuth2TokenWithIAMCommand_base: {
|
|
|
75
68
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
76
69
|
*
|
|
77
70
|
* @throws {@link AccessDeniedException} (client fault)
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* Runtime HTTP Status Code Mapping:
|
|
81
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
82
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
83
|
-
*
|
|
84
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
85
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
71
|
+
* You do not have sufficient access to perform this action.
|
|
86
72
|
*
|
|
87
73
|
* @throws {@link InternalServerException} (server fault)
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
91
|
-
*
|
|
92
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
74
|
+
* The request failed because of an internal server error.
|
|
93
75
|
*
|
|
94
76
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
98
|
-
*
|
|
99
|
-
* Possible OAuth2ErrorCode values:
|
|
100
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
101
|
-
*
|
|
102
|
-
* Possible causes:
|
|
103
|
-
* - Too many token requests from the same client
|
|
104
|
-
* - Rate limiting based on client_id or IP address
|
|
105
|
-
* - Abuse prevention mechanisms triggered
|
|
106
|
-
* - Service protection against excessive token generation
|
|
77
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
107
78
|
*
|
|
108
79
|
* @throws {@link ValidationException} (client fault)
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* HTTP Status Code: 400 Bad Request
|
|
112
|
-
*
|
|
113
|
-
* Used for request validation errors such as malformed parameters,
|
|
114
|
-
* missing required fields, or invalid parameter values.
|
|
80
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
115
81
|
*
|
|
116
82
|
* @throws {@link SigninServiceException}
|
|
117
83
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
@@ -64,21 +64,10 @@ declare const ListResourcePermissionStatementsCommand_base: {
|
|
|
64
64
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
65
65
|
*
|
|
66
66
|
* @throws {@link AccessDeniedException} (client fault)
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* Runtime HTTP Status Code Mapping:
|
|
70
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
71
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
72
|
-
*
|
|
73
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
74
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
67
|
+
* You do not have sufficient access to perform this action.
|
|
75
68
|
*
|
|
76
69
|
* @throws {@link InternalServerException} (server fault)
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
80
|
-
*
|
|
81
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
70
|
+
* The request failed because of an internal server error.
|
|
82
71
|
*
|
|
83
72
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
84
73
|
* Error thrown when requested resource is not found
|
|
@@ -88,26 +77,10 @@ declare const ListResourcePermissionStatementsCommand_base: {
|
|
|
88
77
|
* Used when the specified resource does not exist
|
|
89
78
|
*
|
|
90
79
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
94
|
-
*
|
|
95
|
-
* Possible OAuth2ErrorCode values:
|
|
96
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
97
|
-
*
|
|
98
|
-
* Possible causes:
|
|
99
|
-
* - Too many token requests from the same client
|
|
100
|
-
* - Rate limiting based on client_id or IP address
|
|
101
|
-
* - Abuse prevention mechanisms triggered
|
|
102
|
-
* - Service protection against excessive token generation
|
|
80
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
103
81
|
*
|
|
104
82
|
* @throws {@link ValidationException} (client fault)
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* HTTP Status Code: 400 Bad Request
|
|
108
|
-
*
|
|
109
|
-
* Used for request validation errors such as malformed parameters,
|
|
110
|
-
* missing required fields, or invalid parameter values.
|
|
83
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
111
84
|
*
|
|
112
85
|
* @throws {@link SigninServiceException}
|
|
113
86
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
@@ -53,14 +53,7 @@ declare const PutConsoleAuthorizationConfigurationCommand_base: {
|
|
|
53
53
|
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
54
54
|
*
|
|
55
55
|
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* Runtime HTTP Status Code Mapping:
|
|
59
|
-
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
60
|
-
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
61
|
-
*
|
|
62
|
-
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
63
|
-
* Consumers should use the error field to determine the specific access denial reason.
|
|
56
|
+
* You do not have sufficient access to perform this action.
|
|
64
57
|
*
|
|
65
58
|
* @throws {@link ConflictException} (client fault)
|
|
66
59
|
* Error thrown when request conflicts with current state
|
|
@@ -70,11 +63,7 @@ declare const PutConsoleAuthorizationConfigurationCommand_base: {
|
|
|
70
63
|
* Used when the request conflicts with the current state of the resource
|
|
71
64
|
*
|
|
72
65
|
* @throws {@link InternalServerException} (server fault)
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* HTTP Status Code: 500 Internal Server Error
|
|
76
|
-
*
|
|
77
|
-
* Used for unexpected server-side errors that prevent request processing.
|
|
66
|
+
* The request failed because of an internal server error.
|
|
78
67
|
*
|
|
79
68
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
80
69
|
* Error thrown when requested resource is not found
|
|
@@ -84,26 +73,10 @@ declare const PutConsoleAuthorizationConfigurationCommand_base: {
|
|
|
84
73
|
* Used when the specified resource does not exist
|
|
85
74
|
*
|
|
86
75
|
* @throws {@link TooManyRequestsError} (client fault)
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* HTTP Status Code: 429 Too Many Requests
|
|
90
|
-
*
|
|
91
|
-
* Possible OAuth2ErrorCode values:
|
|
92
|
-
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
93
|
-
*
|
|
94
|
-
* Possible causes:
|
|
95
|
-
* - Too many token requests from the same client
|
|
96
|
-
* - Rate limiting based on client_id or IP address
|
|
97
|
-
* - Abuse prevention mechanisms triggered
|
|
98
|
-
* - Service protection against excessive token generation
|
|
76
|
+
* The request failed because you exceeded the request rate limit for this operation.
|
|
99
77
|
*
|
|
100
78
|
* @throws {@link ValidationException} (client fault)
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* HTTP Status Code: 400 Bad Request
|
|
104
|
-
*
|
|
105
|
-
* Used for request validation errors such as malformed parameters,
|
|
106
|
-
* missing required fields, or invalid parameter values.
|
|
79
|
+
* The request failed because it contains a malformed, missing, or invalid parameter.
|
|
107
80
|
*
|
|
108
81
|
* @throws {@link SigninServiceException}
|
|
109
82
|
* <p>Base exception class for all service exceptions from Signin service.</p>
|