@aws-sdk/client-signin 3.1065.0 → 3.1067.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 +4 -4
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { PutResourcePermissionStatementInput, PutResourcePermissionStatementOutput } 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 PutResourcePermissionStatementCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutResourcePermissionStatementCommandInput extends PutResourcePermissionStatementInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutResourcePermissionStatementCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutResourcePermissionStatementCommandOutput extends PutResourcePermissionStatementOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutResourcePermissionStatementCommand_base: {
|
|
25
|
+
new (input: PutResourcePermissionStatementCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePermissionStatementCommandInput, PutResourcePermissionStatementCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [PutResourcePermissionStatementCommandInput]): import("@smithy/core/client").CommandImpl<PutResourcePermissionStatementCommandInput, PutResourcePermissionStatementCommandOutput, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Create a permission statement 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, PutResourcePermissionStatementCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
37
|
+
* // const { SigninClient, PutResourcePermissionStatementCommand } = 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 = { // PutResourcePermissionStatementInput
|
|
42
|
+
* sourceVpc: "STRING_VALUE",
|
|
43
|
+
* signinSourceVpce: "STRING_VALUE",
|
|
44
|
+
* consoleSourceVpce: "STRING_VALUE",
|
|
45
|
+
* vpcSourceIp: "STRING_VALUE",
|
|
46
|
+
* sourceIp: "STRING_VALUE",
|
|
47
|
+
* requestedRegion: "STRING_VALUE",
|
|
48
|
+
* excludedPrincipal: "STRING_VALUE",
|
|
49
|
+
* clientToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new PutResourcePermissionStatementCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // PutResourcePermissionStatementOutput
|
|
54
|
+
* // statementId: "STRING_VALUE", // required
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param PutResourcePermissionStatementCommandInput - {@link PutResourcePermissionStatementCommandInput}
|
|
60
|
+
* @returns {@link PutResourcePermissionStatementCommandOutput}
|
|
61
|
+
* @see {@link PutResourcePermissionStatementCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link PutResourcePermissionStatementCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
67
|
+
*
|
|
68
|
+
* Runtime HTTP Status Code Mapping:
|
|
69
|
+
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
70
|
+
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
71
|
+
*
|
|
72
|
+
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
73
|
+
* Consumers should use the error field to determine the specific access denial reason.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ConflictException} (client fault)
|
|
76
|
+
* Error thrown when request conflicts with current state
|
|
77
|
+
*
|
|
78
|
+
* HTTP Status Code: 409 Conflict
|
|
79
|
+
*
|
|
80
|
+
* Used when the request conflicts with the current state of the resource
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InternalServerException} (server fault)
|
|
83
|
+
* Error thrown when an internal server error occurs
|
|
84
|
+
*
|
|
85
|
+
* HTTP Status Code: 500 Internal Server Error
|
|
86
|
+
*
|
|
87
|
+
* Used for unexpected server-side errors that prevent request processing.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
90
|
+
* Error thrown when service quota is exceeded
|
|
91
|
+
*
|
|
92
|
+
* HTTP Status Code: 402 Payment Required (used as quota exceeded indicator)
|
|
93
|
+
*
|
|
94
|
+
* Used when the request would cause a service quota to be exceeded
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
97
|
+
* Error thrown when rate limit is exceeded
|
|
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
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ValidationException} (client fault)
|
|
111
|
+
* Error thrown when request validation fails
|
|
112
|
+
*
|
|
113
|
+
* HTTP Status Code: 400 Bad Request
|
|
114
|
+
*
|
|
115
|
+
* Used for request validation errors such as malformed parameters,
|
|
116
|
+
* missing required fields, or invalid parameter values.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link SigninServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
120
|
+
*
|
|
121
|
+
*
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export declare class PutResourcePermissionStatementCommand extends PutResourcePermissionStatementCommand_base {
|
|
125
|
+
/** @internal type navigation helper, not in runtime. */
|
|
126
|
+
protected static __types: {
|
|
127
|
+
api: {
|
|
128
|
+
input: PutResourcePermissionStatementInput;
|
|
129
|
+
output: PutResourcePermissionStatementOutput;
|
|
130
|
+
};
|
|
131
|
+
sdk: {
|
|
132
|
+
input: PutResourcePermissionStatementCommandInput;
|
|
133
|
+
output: PutResourcePermissionStatementCommandOutput;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}
|
|
@@ -1 +1,8 @@
|
|
|
1
1
|
export * from "./CreateOAuth2TokenCommand";
|
|
2
|
+
export * from "./DeleteConsoleAuthorizationConfigurationCommand";
|
|
3
|
+
export * from "./DeleteResourcePermissionStatementCommand";
|
|
4
|
+
export * from "./GetConsoleAuthorizationConfigurationCommand";
|
|
5
|
+
export * from "./GetResourcePolicyCommand";
|
|
6
|
+
export * from "./ListResourcePermissionStatementsCommand";
|
|
7
|
+
export * from "./PutConsoleAuthorizationConfigurationCommand";
|
|
8
|
+
export * from "./PutResourcePermissionStatementCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
11
11
|
export type { SigninExtensionConfiguration } from "./extensionConfiguration";
|
|
12
12
|
export * from "./commands";
|
|
13
13
|
export * from "./schemas/schemas_0";
|
|
14
|
+
export * from "./pagination";
|
|
14
15
|
export * from "./models/enums";
|
|
15
16
|
export * from "./models/errors";
|
|
16
17
|
export * from "./models/models_0";
|
|
@@ -7,6 +7,10 @@ export declare const OAuth2ErrorCode: {
|
|
|
7
7
|
* Authorization code has expired
|
|
8
8
|
*/
|
|
9
9
|
readonly AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED";
|
|
10
|
+
/**
|
|
11
|
+
* Request conflicts with current state of the resource
|
|
12
|
+
*/
|
|
13
|
+
readonly CONFLICT: "CONFLICT";
|
|
10
14
|
/**
|
|
11
15
|
* Insufficient permissions to perform this operation
|
|
12
16
|
*/
|
|
@@ -15,10 +19,18 @@ export declare const OAuth2ErrorCode: {
|
|
|
15
19
|
* The request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed
|
|
16
20
|
*/
|
|
17
21
|
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
22
|
+
/**
|
|
23
|
+
* Requested resource was not found
|
|
24
|
+
*/
|
|
25
|
+
readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
18
26
|
/**
|
|
19
27
|
* Internal server error occurred
|
|
20
28
|
*/
|
|
21
29
|
readonly SERVER_ERROR: "server_error";
|
|
30
|
+
/**
|
|
31
|
+
* Request would cause a service quota to be exceeded
|
|
32
|
+
*/
|
|
33
|
+
readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
|
|
22
34
|
/**
|
|
23
35
|
* Token has expired and needs to be refreshed
|
|
24
36
|
*/
|
|
@@ -26,6 +26,28 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
26
26
|
*/
|
|
27
27
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Error thrown when request conflicts with current state
|
|
31
|
+
*
|
|
32
|
+
* HTTP Status Code: 409 Conflict
|
|
33
|
+
*
|
|
34
|
+
* Used when the request conflicts with the current state of the resource
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare class ConflictException extends __BaseException {
|
|
38
|
+
readonly name: "ConflictException";
|
|
39
|
+
readonly $fault: "client";
|
|
40
|
+
/**
|
|
41
|
+
* OAuth 2.0 error code indicating conflict
|
|
42
|
+
* Will be CONFLICT
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
error: OAuth2ErrorCode | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
50
|
+
}
|
|
29
51
|
/**
|
|
30
52
|
* Error thrown when an internal server error occurs
|
|
31
53
|
*
|
|
@@ -100,3 +122,47 @@ export declare class ValidationException extends __BaseException {
|
|
|
100
122
|
*/
|
|
101
123
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
102
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Error thrown when requested resource is not found
|
|
127
|
+
*
|
|
128
|
+
* HTTP Status Code: 404 Not Found
|
|
129
|
+
*
|
|
130
|
+
* Used when the specified resource does not exist
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
134
|
+
readonly name: "ResourceNotFoundException";
|
|
135
|
+
readonly $fault: "client";
|
|
136
|
+
/**
|
|
137
|
+
* OAuth 2.0 error code indicating resource not found
|
|
138
|
+
* Will be RESOURCE_NOT_FOUND
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
error: OAuth2ErrorCode | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Error thrown when service quota is exceeded
|
|
149
|
+
*
|
|
150
|
+
* HTTP Status Code: 402 Payment Required (used as quota exceeded indicator)
|
|
151
|
+
*
|
|
152
|
+
* Used when the request would cause a service quota to be exceeded
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
156
|
+
readonly name: "ServiceQuotaExceededException";
|
|
157
|
+
readonly $fault: "client";
|
|
158
|
+
/**
|
|
159
|
+
* OAuth 2.0 error code indicating service quota exceeded
|
|
160
|
+
* Will be SERVICE_QUOTA_EXCEEDED
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
error: OAuth2ErrorCode | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
168
|
+
}
|
|
@@ -140,3 +140,291 @@ export interface CreateOAuth2TokenResponse {
|
|
|
140
140
|
*/
|
|
141
141
|
tokenOutput: CreateOAuth2TokenResponseBody | undefined;
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Input for DeleteConsoleAuthorizationConfiguration operation
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
export interface DeleteConsoleAuthorizationConfigurationInput {
|
|
148
|
+
/**
|
|
149
|
+
* Target account identifier
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
targetId?: string | undefined;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Output for DeleteConsoleAuthorizationConfiguration operation
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
export interface DeleteConsoleAuthorizationConfigurationOutput {
|
|
159
|
+
/**
|
|
160
|
+
* Target account identifier
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
targetId: string | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Authorization scope
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
scope: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Whether console authorization is enabled
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
consoleAuthorizationEnabled: boolean | undefined;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Input for DeleteResourcePermissionStatement operation
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
export interface DeleteResourcePermissionStatementInput {
|
|
180
|
+
/**
|
|
181
|
+
* Unique identifier of the permission statement to delete
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
statementId: string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* Idempotency token for the request
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
clientToken?: string | undefined;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Output for DeleteResourcePermissionStatement operation
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
export interface DeleteResourcePermissionStatementOutput {
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Input for GetConsoleAuthorizationConfiguration operation
|
|
199
|
+
* @public
|
|
200
|
+
*/
|
|
201
|
+
export interface GetConsoleAuthorizationConfigurationInput {
|
|
202
|
+
/**
|
|
203
|
+
* Target account identifier
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
206
|
+
targetId?: string | undefined;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Output for GetConsoleAuthorizationConfiguration operation
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export interface GetConsoleAuthorizationConfigurationOutput {
|
|
213
|
+
/**
|
|
214
|
+
* Target account identifier
|
|
215
|
+
* @public
|
|
216
|
+
*/
|
|
217
|
+
targetId: string | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Authorization scope
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
scope: string | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Whether console authorization is enabled
|
|
225
|
+
* @public
|
|
226
|
+
*/
|
|
227
|
+
consoleAuthorizationEnabled: boolean | undefined;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Input for GetResourcePolicy operation
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
export interface GetResourcePolicyInput {
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Individual policy statement within a resource-based policy
|
|
237
|
+
* @public
|
|
238
|
+
*/
|
|
239
|
+
export interface PolicyStatement {
|
|
240
|
+
/**
|
|
241
|
+
* Effect of the policy statement (Allow/Deny)
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
244
|
+
effect?: string | undefined;
|
|
245
|
+
/**
|
|
246
|
+
* Principal the statement applies to
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
249
|
+
principal?: Record<string, string> | undefined;
|
|
250
|
+
/**
|
|
251
|
+
* Actions the statement controls
|
|
252
|
+
* @public
|
|
253
|
+
*/
|
|
254
|
+
action?: string[] | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* Resource the statement applies to
|
|
257
|
+
* @public
|
|
258
|
+
*/
|
|
259
|
+
resource?: string | undefined;
|
|
260
|
+
/**
|
|
261
|
+
* Condition block for the statement
|
|
262
|
+
* @public
|
|
263
|
+
*/
|
|
264
|
+
condition?: Record<string, Record<string, string[]>> | undefined;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* SignIn resource-based policy document
|
|
268
|
+
* @public
|
|
269
|
+
*/
|
|
270
|
+
export interface SigninResourceBasedPolicy {
|
|
271
|
+
/**
|
|
272
|
+
* Policy version
|
|
273
|
+
* @public
|
|
274
|
+
*/
|
|
275
|
+
version?: string | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* Policy statements
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
statement?: PolicyStatement[] | undefined;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Output for GetResourcePolicy operation
|
|
284
|
+
* @public
|
|
285
|
+
*/
|
|
286
|
+
export interface GetResourcePolicyOutput {
|
|
287
|
+
/**
|
|
288
|
+
* The account's SignIn resource-based policy
|
|
289
|
+
* @public
|
|
290
|
+
*/
|
|
291
|
+
signinResourceBasedPolicy: SigninResourceBasedPolicy | undefined;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Input for ListResourcePermissionStatements operation
|
|
295
|
+
* @public
|
|
296
|
+
*/
|
|
297
|
+
export interface ListResourcePermissionStatementsInput {
|
|
298
|
+
/**
|
|
299
|
+
* Maximum number of results to return
|
|
300
|
+
* @public
|
|
301
|
+
*/
|
|
302
|
+
maxResults?: number | undefined;
|
|
303
|
+
/**
|
|
304
|
+
* Token for pagination
|
|
305
|
+
* @public
|
|
306
|
+
*/
|
|
307
|
+
nextToken?: string | undefined;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Summary of a permission statement
|
|
311
|
+
* @public
|
|
312
|
+
*/
|
|
313
|
+
export interface PermissionStatementSummary {
|
|
314
|
+
/**
|
|
315
|
+
* Unique identifier for the permission statement
|
|
316
|
+
* @public
|
|
317
|
+
*/
|
|
318
|
+
sid: string | undefined;
|
|
319
|
+
/**
|
|
320
|
+
* Condition block for the permission statement
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
condition?: Record<string, Record<string, string[]>> | undefined;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Output for ListResourcePermissionStatements operation
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
export interface ListResourcePermissionStatementsOutput {
|
|
330
|
+
/**
|
|
331
|
+
* List of permission statement summaries
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
permissionStatements: PermissionStatementSummary[] | undefined;
|
|
335
|
+
/**
|
|
336
|
+
* Token for next page of results
|
|
337
|
+
* @public
|
|
338
|
+
*/
|
|
339
|
+
nextToken?: string | undefined;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Input for PutConsoleAuthorizationConfiguration operation
|
|
343
|
+
* @public
|
|
344
|
+
*/
|
|
345
|
+
export interface PutConsoleAuthorizationConfigurationInput {
|
|
346
|
+
/**
|
|
347
|
+
* Target account identifier
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
350
|
+
targetId?: string | undefined;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Output for PutConsoleAuthorizationConfiguration operation
|
|
354
|
+
* @public
|
|
355
|
+
*/
|
|
356
|
+
export interface PutConsoleAuthorizationConfigurationOutput {
|
|
357
|
+
/**
|
|
358
|
+
* Target account identifier
|
|
359
|
+
* @public
|
|
360
|
+
*/
|
|
361
|
+
targetId: string | undefined;
|
|
362
|
+
/**
|
|
363
|
+
* Authorization scope
|
|
364
|
+
* @public
|
|
365
|
+
*/
|
|
366
|
+
scope: string | undefined;
|
|
367
|
+
/**
|
|
368
|
+
* Whether console authorization is enabled
|
|
369
|
+
* @public
|
|
370
|
+
*/
|
|
371
|
+
consoleAuthorizationEnabled: boolean | undefined;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Input for PutResourcePermissionStatement operation
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
377
|
+
export interface PutResourcePermissionStatementInput {
|
|
378
|
+
/**
|
|
379
|
+
* VPC identifier to restrict console access
|
|
380
|
+
* @public
|
|
381
|
+
*/
|
|
382
|
+
sourceVpc?: string | undefined;
|
|
383
|
+
/**
|
|
384
|
+
* SignIn VPC endpoint identifier
|
|
385
|
+
* @public
|
|
386
|
+
*/
|
|
387
|
+
signinSourceVpce?: string | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* Console VPC endpoint identifier
|
|
390
|
+
* @public
|
|
391
|
+
*/
|
|
392
|
+
consoleSourceVpce?: string | undefined;
|
|
393
|
+
/**
|
|
394
|
+
* Source IP address within VPC
|
|
395
|
+
* @public
|
|
396
|
+
*/
|
|
397
|
+
vpcSourceIp?: string | undefined;
|
|
398
|
+
/**
|
|
399
|
+
* Source IP address
|
|
400
|
+
* @public
|
|
401
|
+
*/
|
|
402
|
+
sourceIp?: string | undefined;
|
|
403
|
+
/**
|
|
404
|
+
* AWS region where the VPC and VPC endpoint reside
|
|
405
|
+
* Required when sourceVpc or signinSourceVpce/consoleSourceVpce is provided
|
|
406
|
+
* @public
|
|
407
|
+
*/
|
|
408
|
+
requestedRegion?: string | undefined;
|
|
409
|
+
/**
|
|
410
|
+
* Principal to exclude from the permission statement
|
|
411
|
+
* @public
|
|
412
|
+
*/
|
|
413
|
+
excludedPrincipal?: string | undefined;
|
|
414
|
+
/**
|
|
415
|
+
* Idempotency token for the request
|
|
416
|
+
* @public
|
|
417
|
+
*/
|
|
418
|
+
clientToken?: string | undefined;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Output for PutResourcePermissionStatement operation
|
|
422
|
+
* @public
|
|
423
|
+
*/
|
|
424
|
+
export interface PutResourcePermissionStatementOutput {
|
|
425
|
+
/**
|
|
426
|
+
* Unique identifier for the created permission statement
|
|
427
|
+
* @public
|
|
428
|
+
*/
|
|
429
|
+
statementId: string | undefined;
|
|
430
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListResourcePermissionStatementsCommandInput, ListResourcePermissionStatementsCommandOutput } from "../commands/ListResourcePermissionStatementsCommand";
|
|
3
|
+
import type { SigninPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateListResourcePermissionStatements: (config: SigninPaginationConfiguration, input: ListResourcePermissionStatementsCommandInput, ...rest: any[]) => Paginator<ListResourcePermissionStatementsCommandOutput>;
|
|
@@ -2,7 +2,10 @@ import { TypeRegistry } from "@smithy/core/schema";
|
|
|
2
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
3
|
export declare var SigninServiceException$: StaticErrorSchema;
|
|
4
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
|
+
export declare var ConflictException$: StaticErrorSchema;
|
|
5
6
|
export declare var InternalServerException$: StaticErrorSchema;
|
|
7
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
8
|
+
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
6
9
|
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
7
10
|
export declare var ValidationException$: StaticErrorSchema;
|
|
8
11
|
/**
|
|
@@ -16,4 +19,28 @@ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
|
|
|
16
19
|
export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
|
|
17
20
|
export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
18
21
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
22
|
+
export declare var DeleteConsoleAuthorizationConfigurationInput$: StaticStructureSchema;
|
|
23
|
+
export declare var DeleteConsoleAuthorizationConfigurationOutput$: StaticStructureSchema;
|
|
24
|
+
export declare var DeleteResourcePermissionStatementInput$: StaticStructureSchema;
|
|
25
|
+
export declare var DeleteResourcePermissionStatementOutput$: StaticStructureSchema;
|
|
26
|
+
export declare var GetConsoleAuthorizationConfigurationInput$: StaticStructureSchema;
|
|
27
|
+
export declare var GetConsoleAuthorizationConfigurationOutput$: StaticStructureSchema;
|
|
28
|
+
export declare var GetResourcePolicyInput$: StaticStructureSchema;
|
|
29
|
+
export declare var GetResourcePolicyOutput$: StaticStructureSchema;
|
|
30
|
+
export declare var ListResourcePermissionStatementsInput$: StaticStructureSchema;
|
|
31
|
+
export declare var ListResourcePermissionStatementsOutput$: StaticStructureSchema;
|
|
32
|
+
export declare var PermissionStatementSummary$: StaticStructureSchema;
|
|
33
|
+
export declare var PolicyStatement$: StaticStructureSchema;
|
|
34
|
+
export declare var PutConsoleAuthorizationConfigurationInput$: StaticStructureSchema;
|
|
35
|
+
export declare var PutConsoleAuthorizationConfigurationOutput$: StaticStructureSchema;
|
|
36
|
+
export declare var PutResourcePermissionStatementInput$: StaticStructureSchema;
|
|
37
|
+
export declare var PutResourcePermissionStatementOutput$: StaticStructureSchema;
|
|
38
|
+
export declare var SigninResourceBasedPolicy$: StaticStructureSchema;
|
|
19
39
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
|
40
|
+
export declare var DeleteConsoleAuthorizationConfiguration$: StaticOperationSchema;
|
|
41
|
+
export declare var DeleteResourcePermissionStatement$: StaticOperationSchema;
|
|
42
|
+
export declare var GetConsoleAuthorizationConfiguration$: StaticOperationSchema;
|
|
43
|
+
export declare var GetResourcePolicy$: StaticOperationSchema;
|
|
44
|
+
export declare var ListResourcePermissionStatements$: StaticOperationSchema;
|
|
45
|
+
export declare var PutConsoleAuthorizationConfiguration$: StaticOperationSchema;
|
|
46
|
+
export declare var PutResourcePermissionStatement$: StaticOperationSchema;
|