@aws-sdk/client-signin 3.1064.0 → 3.1066.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 +56 -7
- package/dist-cjs/endpoint/bdd.js +70 -35
- package/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist-cjs/index.js +133 -2
- package/dist-cjs/models/errors.js +46 -1
- package/dist-cjs/schemas/schemas_0.js +202 -1
- package/dist-es/Signin.js +19 -1
- package/dist-es/commands/CreateOAuth2TokenCommand.js +4 -1
- package/dist-es/commands/DeleteConsoleAuthorizationConfigurationCommand.js +19 -0
- package/dist-es/commands/DeleteResourcePermissionStatementCommand.js +19 -0
- package/dist-es/commands/GetConsoleAuthorizationConfigurationCommand.js +19 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +19 -0
- package/dist-es/commands/ListResourcePermissionStatementsCommand.js +19 -0
- package/dist-es/commands/PutConsoleAuthorizationConfigurationCommand.js +19 -0
- package/dist-es/commands/PutResourcePermissionStatementCommand.js +19 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/bdd.js +70 -35
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +3 -0
- package/dist-es/models/errors.js +42 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListResourcePermissionStatementsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +202 -1
- package/dist-types/Signin.d.ts +63 -1
- package/dist-types/SigninClient.d.ts +9 -2
- package/dist-types/commands/CreateOAuth2TokenCommand.d.ts +3 -3
- package/dist-types/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +124 -0
- package/dist-types/commands/DeleteResourcePermissionStatementCommand.d.ts +121 -0
- package/dist-types/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +124 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +133 -0
- package/dist-types/commands/ListResourcePermissionStatementsCommand.d.ts +135 -0
- package/dist-types/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +131 -0
- package/dist-types/commands/PutResourcePermissionStatementCommand.d.ts +136 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/errors.d.ts +66 -0
- package/dist-types/models/models_0.d.ts +288 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListResourcePermissionStatementsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +27 -0
- package/dist-types/ts3.4/Signin.d.ts +161 -1
- package/dist-types/ts3.4/SigninClient.d.ts +46 -2
- package/dist-types/ts3.4/commands/CreateOAuth2TokenCommand.d.ts +9 -5
- package/dist-types/ts3.4/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteResourcePermissionStatementCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListResourcePermissionStatementsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/PutResourcePermissionStatementCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +3 -0
- package/dist-types/ts3.4/models/errors.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +69 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListResourcePermissionStatementsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +27 -0
- package/package.json +5 -5
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { DeleteResourcePermissionStatementInput, DeleteResourcePermissionStatementOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "../SigninClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteResourcePermissionStatementCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteResourcePermissionStatementCommandInput extends DeleteResourcePermissionStatementInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteResourcePermissionStatementCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteResourcePermissionStatementCommandOutput extends DeleteResourcePermissionStatementOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteResourcePermissionStatementCommand_base: {
|
|
25
|
+
new (input: DeleteResourcePermissionStatementCommandInput): import("@smithy/core/client").CommandImpl<DeleteResourcePermissionStatementCommandInput, DeleteResourcePermissionStatementCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeleteResourcePermissionStatementCommandInput): import("@smithy/core/client").CommandImpl<DeleteResourcePermissionStatementCommandInput, DeleteResourcePermissionStatementCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Remove a permission statement from the account's SignIn resource-based policy
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SigninClient, DeleteResourcePermissionStatementCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
37
|
+
* // const { SigninClient, DeleteResourcePermissionStatementCommand } = require("@aws-sdk/client-signin"); // CommonJS import
|
|
38
|
+
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
|
|
39
|
+
* const config = {}; // type is SigninClientConfig
|
|
40
|
+
* const client = new SigninClient(config);
|
|
41
|
+
* const input = { // DeleteResourcePermissionStatementInput
|
|
42
|
+
* statementId: "STRING_VALUE", // required
|
|
43
|
+
* clientToken: "STRING_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new DeleteResourcePermissionStatementCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // {};
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param DeleteResourcePermissionStatementCommandInput - {@link DeleteResourcePermissionStatementCommandInput}
|
|
52
|
+
* @returns {@link DeleteResourcePermissionStatementCommandOutput}
|
|
53
|
+
* @see {@link DeleteResourcePermissionStatementCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link DeleteResourcePermissionStatementCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
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.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerException} (server fault)
|
|
68
|
+
* Error thrown when an internal server error occurs
|
|
69
|
+
*
|
|
70
|
+
* HTTP Status Code: 500 Internal Server Error
|
|
71
|
+
*
|
|
72
|
+
* Used for unexpected server-side errors that prevent request processing.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
75
|
+
* Error thrown when requested resource is not found
|
|
76
|
+
*
|
|
77
|
+
* HTTP Status Code: 404 Not Found
|
|
78
|
+
*
|
|
79
|
+
* Used when the specified resource does not exist
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
82
|
+
* Error thrown when rate limit is exceeded
|
|
83
|
+
*
|
|
84
|
+
* HTTP Status Code: 429 Too Many Requests
|
|
85
|
+
*
|
|
86
|
+
* Possible OAuth2ErrorCode values:
|
|
87
|
+
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
88
|
+
*
|
|
89
|
+
* Possible causes:
|
|
90
|
+
* - Too many token requests from the same client
|
|
91
|
+
* - Rate limiting based on client_id or IP address
|
|
92
|
+
* - Abuse prevention mechanisms triggered
|
|
93
|
+
* - Service protection against excessive token generation
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ValidationException} (client fault)
|
|
96
|
+
* Error thrown when request validation fails
|
|
97
|
+
*
|
|
98
|
+
* HTTP Status Code: 400 Bad Request
|
|
99
|
+
*
|
|
100
|
+
* Used for request validation errors such as malformed parameters,
|
|
101
|
+
* missing required fields, or invalid parameter values.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link SigninServiceException}
|
|
104
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export declare class DeleteResourcePermissionStatementCommand extends DeleteResourcePermissionStatementCommand_base {
|
|
110
|
+
/** @internal type navigation helper, not in runtime. */
|
|
111
|
+
protected static __types: {
|
|
112
|
+
api: {
|
|
113
|
+
input: DeleteResourcePermissionStatementInput;
|
|
114
|
+
output: {};
|
|
115
|
+
};
|
|
116
|
+
sdk: {
|
|
117
|
+
input: DeleteResourcePermissionStatementCommandInput;
|
|
118
|
+
output: DeleteResourcePermissionStatementCommandOutput;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { GetConsoleAuthorizationConfigurationInput, GetConsoleAuthorizationConfigurationOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "../SigninClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetConsoleAuthorizationConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetConsoleAuthorizationConfigurationCommandInput extends GetConsoleAuthorizationConfigurationInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetConsoleAuthorizationConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetConsoleAuthorizationConfigurationCommandOutput extends GetConsoleAuthorizationConfigurationOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetConsoleAuthorizationConfigurationCommand_base: {
|
|
25
|
+
new (input: GetConsoleAuthorizationConfigurationCommandInput): import("@smithy/core/client").CommandImpl<GetConsoleAuthorizationConfigurationCommandInput, GetConsoleAuthorizationConfigurationCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetConsoleAuthorizationConfigurationCommandInput]): import("@smithy/core/client").CommandImpl<GetConsoleAuthorizationConfigurationCommandInput, GetConsoleAuthorizationConfigurationCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Get console authorization configuration with automatic scope detection
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SigninClient, GetConsoleAuthorizationConfigurationCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
37
|
+
* // const { SigninClient, GetConsoleAuthorizationConfigurationCommand } = require("@aws-sdk/client-signin"); // CommonJS import
|
|
38
|
+
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
|
|
39
|
+
* const config = {}; // type is SigninClientConfig
|
|
40
|
+
* const client = new SigninClient(config);
|
|
41
|
+
* const input = { // GetConsoleAuthorizationConfigurationInput
|
|
42
|
+
* targetId: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetConsoleAuthorizationConfigurationCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetConsoleAuthorizationConfigurationOutput
|
|
47
|
+
* // targetId: "STRING_VALUE", // required
|
|
48
|
+
* // scope: "STRING_VALUE", // required
|
|
49
|
+
* // consoleAuthorizationEnabled: true || false, // required
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param GetConsoleAuthorizationConfigurationCommandInput - {@link GetConsoleAuthorizationConfigurationCommandInput}
|
|
55
|
+
* @returns {@link GetConsoleAuthorizationConfigurationCommandOutput}
|
|
56
|
+
* @see {@link GetConsoleAuthorizationConfigurationCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link GetConsoleAuthorizationConfigurationCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
62
|
+
*
|
|
63
|
+
* Runtime HTTP Status Code Mapping:
|
|
64
|
+
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
65
|
+
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
66
|
+
*
|
|
67
|
+
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
68
|
+
* Consumers should use the error field to determine the specific access denial reason.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* Error thrown when an internal server error occurs
|
|
72
|
+
*
|
|
73
|
+
* HTTP Status Code: 500 Internal Server Error
|
|
74
|
+
*
|
|
75
|
+
* Used for unexpected server-side errors that prevent request processing.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* Error thrown when requested resource is not found
|
|
79
|
+
*
|
|
80
|
+
* HTTP Status Code: 404 Not Found
|
|
81
|
+
*
|
|
82
|
+
* Used when the specified resource does not exist
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
85
|
+
* Error thrown when rate limit is exceeded
|
|
86
|
+
*
|
|
87
|
+
* HTTP Status Code: 429 Too Many Requests
|
|
88
|
+
*
|
|
89
|
+
* Possible OAuth2ErrorCode values:
|
|
90
|
+
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
91
|
+
*
|
|
92
|
+
* Possible causes:
|
|
93
|
+
* - Too many token requests from the same client
|
|
94
|
+
* - Rate limiting based on client_id or IP address
|
|
95
|
+
* - Abuse prevention mechanisms triggered
|
|
96
|
+
* - Service protection against excessive token generation
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ValidationException} (client fault)
|
|
99
|
+
* Error thrown when request validation fails
|
|
100
|
+
*
|
|
101
|
+
* HTTP Status Code: 400 Bad Request
|
|
102
|
+
*
|
|
103
|
+
* Used for request validation errors such as malformed parameters,
|
|
104
|
+
* missing required fields, or invalid parameter values.
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link SigninServiceException}
|
|
107
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export declare class GetConsoleAuthorizationConfigurationCommand extends GetConsoleAuthorizationConfigurationCommand_base {
|
|
113
|
+
/** @internal type navigation helper, not in runtime. */
|
|
114
|
+
protected static __types: {
|
|
115
|
+
api: {
|
|
116
|
+
input: GetConsoleAuthorizationConfigurationInput;
|
|
117
|
+
output: GetConsoleAuthorizationConfigurationOutput;
|
|
118
|
+
};
|
|
119
|
+
sdk: {
|
|
120
|
+
input: GetConsoleAuthorizationConfigurationCommandInput;
|
|
121
|
+
output: GetConsoleAuthorizationConfigurationCommandOutput;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { GetResourcePolicyInput, GetResourcePolicyOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "../SigninClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcePolicyCommandInput extends GetResourcePolicyInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcePolicyCommand_base: {
|
|
25
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetResourcePolicyCommandInput]): import("@smithy/core/client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve the account's consolidated SignIn resource-based policy
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SigninClient, GetResourcePolicyCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
37
|
+
* // const { SigninClient, GetResourcePolicyCommand } = require("@aws-sdk/client-signin"); // CommonJS import
|
|
38
|
+
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
|
|
39
|
+
* const config = {}; // type is SigninClientConfig
|
|
40
|
+
* const client = new SigninClient(config);
|
|
41
|
+
* const input = {};
|
|
42
|
+
* const command = new GetResourcePolicyCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetResourcePolicyOutput
|
|
45
|
+
* // signinResourceBasedPolicy: { // SigninResourceBasedPolicy
|
|
46
|
+
* // version: "STRING_VALUE",
|
|
47
|
+
* // statement: [ // PolicyStatements
|
|
48
|
+
* // { // PolicyStatement
|
|
49
|
+
* // effect: "STRING_VALUE",
|
|
50
|
+
* // principal: { // Principal
|
|
51
|
+
* // "<keys>": "STRING_VALUE",
|
|
52
|
+
* // },
|
|
53
|
+
* // action: [ // PolicyActions
|
|
54
|
+
* // "STRING_VALUE",
|
|
55
|
+
* // ],
|
|
56
|
+
* // resource: "STRING_VALUE",
|
|
57
|
+
* // condition: { // ConditionBlock
|
|
58
|
+
* // "<keys>": { // Condition
|
|
59
|
+
* // "<keys>": [ // ConditionValues
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
62
|
+
* // },
|
|
63
|
+
* // },
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // },
|
|
67
|
+
* // };
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
|
|
72
|
+
* @returns {@link GetResourcePolicyCommandOutput}
|
|
73
|
+
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
78
|
+
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
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.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link InternalServerException} (server fault)
|
|
88
|
+
* Error thrown when an internal server error occurs
|
|
89
|
+
*
|
|
90
|
+
* HTTP Status Code: 500 Internal Server Error
|
|
91
|
+
*
|
|
92
|
+
* Used for unexpected server-side errors that prevent request processing.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
95
|
+
* Error thrown when requested resource is not found
|
|
96
|
+
*
|
|
97
|
+
* HTTP Status Code: 404 Not Found
|
|
98
|
+
*
|
|
99
|
+
* Used when the specified resource does not exist
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
102
|
+
* Error thrown when rate limit is exceeded
|
|
103
|
+
*
|
|
104
|
+
* HTTP Status Code: 429 Too Many Requests
|
|
105
|
+
*
|
|
106
|
+
* Possible OAuth2ErrorCode values:
|
|
107
|
+
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
108
|
+
*
|
|
109
|
+
* Possible causes:
|
|
110
|
+
* - Too many token requests from the same client
|
|
111
|
+
* - Rate limiting based on client_id or IP address
|
|
112
|
+
* - Abuse prevention mechanisms triggered
|
|
113
|
+
* - Service protection against excessive token generation
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link SigninServiceException}
|
|
116
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
117
|
+
*
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
122
|
+
/** @internal type navigation helper, not in runtime. */
|
|
123
|
+
protected static __types: {
|
|
124
|
+
api: {
|
|
125
|
+
input: {};
|
|
126
|
+
output: GetResourcePolicyOutput;
|
|
127
|
+
};
|
|
128
|
+
sdk: {
|
|
129
|
+
input: GetResourcePolicyCommandInput;
|
|
130
|
+
output: GetResourcePolicyCommandOutput;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { ListResourcePermissionStatementsInput, ListResourcePermissionStatementsOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "../SigninClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListResourcePermissionStatementsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListResourcePermissionStatementsCommandInput extends ListResourcePermissionStatementsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListResourcePermissionStatementsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListResourcePermissionStatementsCommandOutput extends ListResourcePermissionStatementsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListResourcePermissionStatementsCommand_base: {
|
|
25
|
+
new (input: ListResourcePermissionStatementsCommandInput): import("@smithy/core/client").CommandImpl<ListResourcePermissionStatementsCommandInput, ListResourcePermissionStatementsCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListResourcePermissionStatementsCommandInput]): import("@smithy/core/client").CommandImpl<ListResourcePermissionStatementsCommandInput, ListResourcePermissionStatementsCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve all permission statements in the account's SignIn resource-based policy
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SigninClient, ListResourcePermissionStatementsCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
37
|
+
* // const { SigninClient, ListResourcePermissionStatementsCommand } = require("@aws-sdk/client-signin"); // CommonJS import
|
|
38
|
+
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
|
|
39
|
+
* const config = {}; // type is SigninClientConfig
|
|
40
|
+
* const client = new SigninClient(config);
|
|
41
|
+
* const input = { // ListResourcePermissionStatementsInput
|
|
42
|
+
* maxResults: Number("int"),
|
|
43
|
+
* nextToken: "STRING_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new ListResourcePermissionStatementsCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // ListResourcePermissionStatementsOutput
|
|
48
|
+
* // permissionStatements: [ // PermissionStatementSummaries // required
|
|
49
|
+
* // { // PermissionStatementSummary
|
|
50
|
+
* // sid: "STRING_VALUE", // required
|
|
51
|
+
* // condition: { // ConditionBlock
|
|
52
|
+
* // "<keys>": { // Condition
|
|
53
|
+
* // "<keys>": [ // ConditionValues
|
|
54
|
+
* // "STRING_VALUE",
|
|
55
|
+
* // ],
|
|
56
|
+
* // },
|
|
57
|
+
* // },
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // nextToken: "STRING_VALUE",
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param ListResourcePermissionStatementsCommandInput - {@link ListResourcePermissionStatementsCommandInput}
|
|
66
|
+
* @returns {@link ListResourcePermissionStatementsCommandOutput}
|
|
67
|
+
* @see {@link ListResourcePermissionStatementsCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link ListResourcePermissionStatementsCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
73
|
+
*
|
|
74
|
+
* Runtime HTTP Status Code Mapping:
|
|
75
|
+
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
76
|
+
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
77
|
+
*
|
|
78
|
+
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
79
|
+
* Consumers should use the error field to determine the specific access denial reason.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* Error thrown when an internal server error occurs
|
|
83
|
+
*
|
|
84
|
+
* HTTP Status Code: 500 Internal Server Error
|
|
85
|
+
*
|
|
86
|
+
* Used for unexpected server-side errors that prevent request processing.
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
89
|
+
* Error thrown when requested resource is not found
|
|
90
|
+
*
|
|
91
|
+
* HTTP Status Code: 404 Not Found
|
|
92
|
+
*
|
|
93
|
+
* Used when the specified resource does not exist
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
96
|
+
* Error thrown when rate limit is exceeded
|
|
97
|
+
*
|
|
98
|
+
* HTTP Status Code: 429 Too Many Requests
|
|
99
|
+
*
|
|
100
|
+
* Possible OAuth2ErrorCode values:
|
|
101
|
+
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
102
|
+
*
|
|
103
|
+
* Possible causes:
|
|
104
|
+
* - Too many token requests from the same client
|
|
105
|
+
* - Rate limiting based on client_id or IP address
|
|
106
|
+
* - Abuse prevention mechanisms triggered
|
|
107
|
+
* - Service protection against excessive token generation
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ValidationException} (client fault)
|
|
110
|
+
* Error thrown when request validation fails
|
|
111
|
+
*
|
|
112
|
+
* HTTP Status Code: 400 Bad Request
|
|
113
|
+
*
|
|
114
|
+
* Used for request validation errors such as malformed parameters,
|
|
115
|
+
* missing required fields, or invalid parameter values.
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link SigninServiceException}
|
|
118
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
119
|
+
*
|
|
120
|
+
*
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
export declare class ListResourcePermissionStatementsCommand extends ListResourcePermissionStatementsCommand_base {
|
|
124
|
+
/** @internal type navigation helper, not in runtime. */
|
|
125
|
+
protected static __types: {
|
|
126
|
+
api: {
|
|
127
|
+
input: ListResourcePermissionStatementsInput;
|
|
128
|
+
output: ListResourcePermissionStatementsOutput;
|
|
129
|
+
};
|
|
130
|
+
sdk: {
|
|
131
|
+
input: ListResourcePermissionStatementsCommandInput;
|
|
132
|
+
output: ListResourcePermissionStatementsCommandOutput;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { PutConsoleAuthorizationConfigurationInput, PutConsoleAuthorizationConfigurationOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "../SigninClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutConsoleAuthorizationConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutConsoleAuthorizationConfigurationCommandInput extends PutConsoleAuthorizationConfigurationInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutConsoleAuthorizationConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutConsoleAuthorizationConfigurationCommandOutput extends PutConsoleAuthorizationConfigurationOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutConsoleAuthorizationConfigurationCommand_base: {
|
|
25
|
+
new (input: PutConsoleAuthorizationConfigurationCommandInput): import("@smithy/core/client").CommandImpl<PutConsoleAuthorizationConfigurationCommandInput, PutConsoleAuthorizationConfigurationCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [PutConsoleAuthorizationConfigurationCommandInput]): import("@smithy/core/client").CommandImpl<PutConsoleAuthorizationConfigurationCommandInput, PutConsoleAuthorizationConfigurationCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Enable console authorization configuration with automatic scope detection
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SigninClient, PutConsoleAuthorizationConfigurationCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
37
|
+
* // const { SigninClient, PutConsoleAuthorizationConfigurationCommand } = require("@aws-sdk/client-signin"); // CommonJS import
|
|
38
|
+
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
|
|
39
|
+
* const config = {}; // type is SigninClientConfig
|
|
40
|
+
* const client = new SigninClient(config);
|
|
41
|
+
* const input = { // PutConsoleAuthorizationConfigurationInput
|
|
42
|
+
* targetId: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new PutConsoleAuthorizationConfigurationCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // PutConsoleAuthorizationConfigurationOutput
|
|
47
|
+
* // targetId: "STRING_VALUE", // required
|
|
48
|
+
* // scope: "STRING_VALUE", // required
|
|
49
|
+
* // consoleAuthorizationEnabled: true || false, // required
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param PutConsoleAuthorizationConfigurationCommandInput - {@link PutConsoleAuthorizationConfigurationCommandInput}
|
|
55
|
+
* @returns {@link PutConsoleAuthorizationConfigurationCommandOutput}
|
|
56
|
+
* @see {@link PutConsoleAuthorizationConfigurationCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link PutConsoleAuthorizationConfigurationCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
62
|
+
*
|
|
63
|
+
* Runtime HTTP Status Code Mapping:
|
|
64
|
+
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
65
|
+
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
66
|
+
*
|
|
67
|
+
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
68
|
+
* Consumers should use the error field to determine the specific access denial reason.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ConflictException} (client fault)
|
|
71
|
+
* Error thrown when request conflicts with current state
|
|
72
|
+
*
|
|
73
|
+
* HTTP Status Code: 409 Conflict
|
|
74
|
+
*
|
|
75
|
+
* Used when the request conflicts with the current state of the resource
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InternalServerException} (server fault)
|
|
78
|
+
* Error thrown when an internal server error occurs
|
|
79
|
+
*
|
|
80
|
+
* HTTP Status Code: 500 Internal Server Error
|
|
81
|
+
*
|
|
82
|
+
* Used for unexpected server-side errors that prevent request processing.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* Error thrown when requested resource is not found
|
|
86
|
+
*
|
|
87
|
+
* HTTP Status Code: 404 Not Found
|
|
88
|
+
*
|
|
89
|
+
* Used when the specified resource does not exist
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
92
|
+
* Error thrown when rate limit is exceeded
|
|
93
|
+
*
|
|
94
|
+
* HTTP Status Code: 429 Too Many Requests
|
|
95
|
+
*
|
|
96
|
+
* Possible OAuth2ErrorCode values:
|
|
97
|
+
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
98
|
+
*
|
|
99
|
+
* Possible causes:
|
|
100
|
+
* - Too many token requests from the same client
|
|
101
|
+
* - Rate limiting based on client_id or IP address
|
|
102
|
+
* - Abuse prevention mechanisms triggered
|
|
103
|
+
* - Service protection against excessive token generation
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ValidationException} (client fault)
|
|
106
|
+
* Error thrown when request validation fails
|
|
107
|
+
*
|
|
108
|
+
* HTTP Status Code: 400 Bad Request
|
|
109
|
+
*
|
|
110
|
+
* Used for request validation errors such as malformed parameters,
|
|
111
|
+
* missing required fields, or invalid parameter values.
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link SigninServiceException}
|
|
114
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
export declare class PutConsoleAuthorizationConfigurationCommand extends PutConsoleAuthorizationConfigurationCommand_base {
|
|
120
|
+
/** @internal type navigation helper, not in runtime. */
|
|
121
|
+
protected static __types: {
|
|
122
|
+
api: {
|
|
123
|
+
input: PutConsoleAuthorizationConfigurationInput;
|
|
124
|
+
output: PutConsoleAuthorizationConfigurationOutput;
|
|
125
|
+
};
|
|
126
|
+
sdk: {
|
|
127
|
+
input: PutConsoleAuthorizationConfigurationCommandInput;
|
|
128
|
+
output: PutConsoleAuthorizationConfigurationCommandOutput;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
}
|