@aws-sdk/client-iam 3.1108.0 → 3.1110.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 +28 -0
- package/dist-cjs/index.js +285 -27
- package/dist-es/IAM.js +8 -0
- package/dist-es/commands/AcquireRoleCommand.js +4 -0
- package/dist-es/commands/GetAccountPropertiesCommand.js +4 -0
- package/dist-es/commands/GetRoleTemplateVersionCommand.js +4 -0
- package/dist-es/commands/PutAccountPropertiesCommand.js +4 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/enums.js +14 -3
- package/dist-es/models/errors.js +52 -16
- package/dist-es/schemas/schemas_0.js +176 -8
- package/dist-types/IAM.d.ts +29 -0
- package/dist-types/IAMClient.d.ts +6 -2
- package/dist-types/commands/AcquireRoleCommand.d.ts +154 -0
- package/dist-types/commands/CreateInstanceProfileCommand.d.ts +4 -0
- package/dist-types/commands/CreateRoleCommand.d.ts +4 -0
- package/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +4 -0
- package/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +4 -0
- package/dist-types/commands/GetAccountPropertiesCommand.d.ts +84 -0
- package/dist-types/commands/GetInstanceProfileCommand.d.ts +4 -0
- package/dist-types/commands/GetRoleCommand.d.ts +4 -0
- package/dist-types/commands/GetRoleTemplateVersionCommand.d.ts +135 -0
- package/dist-types/commands/ListInstanceProfilesCommand.d.ts +4 -0
- package/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +4 -0
- package/dist-types/commands/ListRolesCommand.d.ts +4 -0
- package/dist-types/commands/PutAccountPropertiesCommand.d.ts +88 -0
- package/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/commands/TagServerCertificateCommand.d.ts +1 -1
- package/dist-types/commands/TagUserCommand.d.ts +1 -1
- package/dist-types/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/dist-types/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/commands/UntagPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UntagRoleCommand.d.ts +1 -1
- package/dist-types/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/dist-types/commands/UntagUserCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/enums.d.ts +38 -11
- package/dist-types/models/errors.d.ts +58 -18
- package/dist-types/models/models_0.d.ts +508 -511
- package/dist-types/models/models_1.d.ts +358 -0
- package/dist-types/schemas/schemas_0.d.ts +21 -0
- package/dist-types/ts3.4/IAM.d.ts +66 -0
- package/dist-types/ts3.4/IAMClient.d.ts +21 -0
- package/dist-types/ts3.4/commands/AcquireRoleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAccountPropertiesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetRoleTemplateVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutAccountPropertiesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagRoleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/enums.d.ts +18 -5
- package/dist-types/ts3.4/models/errors.d.ts +23 -8
- package/dist-types/ts3.4/models/models_0.d.ts +100 -89
- package/dist-types/ts3.4/models/models_1.d.ts +64 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutAccountPropertiesRequest, PutAccountPropertiesResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutAccountPropertiesCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutAccountPropertiesCommandInput extends PutAccountPropertiesRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutAccountPropertiesCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutAccountPropertiesCommandOutput extends PutAccountPropertiesResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutAccountPropertiesCommand_base: {
|
|
22
|
+
new (input: PutAccountPropertiesCommandInput): import("@smithy/core/client").CommandImpl<PutAccountPropertiesCommandInput, PutAccountPropertiesCommandOutput, import("..").IAMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutAccountPropertiesCommandInput): import("@smithy/core/client").CommandImpl<PutAccountPropertiesCommandInput, PutAccountPropertiesCommandOutput, import("..").IAMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Sets account-level properties for the caller's Amazon Web Services account. Account properties are
|
|
28
|
+
* configuration settings that control account-wide IAM features such as Role
|
|
29
|
+
* Manager.</p>
|
|
30
|
+
* <p>Specify properties as key-value pairs in
|
|
31
|
+
* <code>Namespace/PropertyName</code> format. All properties in a single request must
|
|
32
|
+
* belong to the same namespace. Use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetAccountProperties.html">GetAccountProperties</a> to view the current properties.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { IAMClient, PutAccountPropertiesCommand } from "@aws-sdk/client-iam"; // ES Modules import
|
|
37
|
+
* // const { IAMClient, PutAccountPropertiesCommand } = require("@aws-sdk/client-iam"); // CommonJS import
|
|
38
|
+
* // import type { IAMClientConfig } from "@aws-sdk/client-iam";
|
|
39
|
+
* const config = {}; // type is IAMClientConfig
|
|
40
|
+
* const client = new IAMClient(config);
|
|
41
|
+
* const input = { // PutAccountPropertiesRequest
|
|
42
|
+
* Properties: { // accountPropertiesMapType // required
|
|
43
|
+
* "<keys>": "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* const command = new PutAccountPropertiesCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // {};
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param PutAccountPropertiesCommandInput - {@link PutAccountPropertiesCommandInput}
|
|
53
|
+
* @returns {@link PutAccountPropertiesCommandOutput}
|
|
54
|
+
* @see {@link PutAccountPropertiesCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link PutAccountPropertiesCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConcurrentModificationException} (client fault)
|
|
59
|
+
* <p>The request was rejected because multiple requests to change this object were submitted
|
|
60
|
+
* simultaneously. Wait a few minutes and submit your request again.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
63
|
+
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
64
|
+
* input parameter.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ServiceFailureException} (server fault)
|
|
67
|
+
* <p>The request processing has failed because of an unknown error, exception or
|
|
68
|
+
* failure.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link IAMServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class PutAccountPropertiesCommand extends PutAccountPropertiesCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: PutAccountPropertiesRequest;
|
|
81
|
+
output: {};
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: PutAccountPropertiesCommandInput;
|
|
85
|
+
output: PutAccountPropertiesCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -65,6 +65,10 @@ declare const UpdateRoleDescriptionCommand_base: {
|
|
|
65
65
|
* // LastUsedDate: new Date("TIMESTAMP"),
|
|
66
66
|
* // Region: "STRING_VALUE",
|
|
67
67
|
* // },
|
|
68
|
+
* // SourceRoleTemplate: { // SourceRoleTemplate
|
|
69
|
+
* // TemplateArn: "STRING_VALUE", // required
|
|
70
|
+
* // TemplateMinorVersion: Number("int"), // required
|
|
71
|
+
* // },
|
|
68
72
|
* // },
|
|
69
73
|
* // };
|
|
70
74
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./AcceptDelegationRequestCommand";
|
|
2
|
+
export * from "./AcquireRoleCommand";
|
|
2
3
|
export * from "./AddClientIDToOpenIDConnectProviderCommand";
|
|
3
4
|
export * from "./AddRoleToInstanceProfileCommand";
|
|
4
5
|
export * from "./AddUserToGroupCommand";
|
|
@@ -62,6 +63,7 @@ export * from "./GenerateServiceLastAccessedDetailsCommand";
|
|
|
62
63
|
export * from "./GetAccessKeyLastUsedCommand";
|
|
63
64
|
export * from "./GetAccountAuthorizationDetailsCommand";
|
|
64
65
|
export * from "./GetAccountPasswordPolicyCommand";
|
|
66
|
+
export * from "./GetAccountPropertiesCommand";
|
|
65
67
|
export * from "./GetAccountSummaryCommand";
|
|
66
68
|
export * from "./GetContextKeysForCustomPolicyCommand";
|
|
67
69
|
export * from "./GetContextKeysForPrincipalPolicyCommand";
|
|
@@ -80,6 +82,7 @@ export * from "./GetPolicyCommand";
|
|
|
80
82
|
export * from "./GetPolicyVersionCommand";
|
|
81
83
|
export * from "./GetRoleCommand";
|
|
82
84
|
export * from "./GetRolePolicyCommand";
|
|
85
|
+
export * from "./GetRoleTemplateVersionCommand";
|
|
83
86
|
export * from "./GetSAMLProviderCommand";
|
|
84
87
|
export * from "./GetSSHPublicKeyCommand";
|
|
85
88
|
export * from "./GetServerCertificateCommand";
|
|
@@ -124,6 +127,7 @@ export * from "./ListUserPoliciesCommand";
|
|
|
124
127
|
export * from "./ListUserTagsCommand";
|
|
125
128
|
export * from "./ListUsersCommand";
|
|
126
129
|
export * from "./ListVirtualMFADevicesCommand";
|
|
130
|
+
export * from "./PutAccountPropertiesCommand";
|
|
127
131
|
export * from "./PutGroupPolicyCommand";
|
|
128
132
|
export * from "./PutRolePermissionsBoundaryCommand";
|
|
129
133
|
export * from "./PutRolePolicyCommand";
|
|
@@ -23,6 +23,17 @@ export declare const StatusType: {
|
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
export type StatusType = (typeof StatusType)[keyof typeof StatusType];
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* @enum
|
|
29
|
+
*/
|
|
30
|
+
export declare const PermissionsBoundaryAttachmentType: {
|
|
31
|
+
readonly Policy: "PermissionsBoundaryPolicy";
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export type PermissionsBoundaryAttachmentType = (typeof PermissionsBoundaryAttachmentType)[keyof typeof PermissionsBoundaryAttachmentType];
|
|
26
37
|
/**
|
|
27
38
|
* @public
|
|
28
39
|
* @enum
|
|
@@ -48,17 +59,6 @@ export declare const AssignmentStatusType: {
|
|
|
48
59
|
* @public
|
|
49
60
|
*/
|
|
50
61
|
export type AssignmentStatusType = (typeof AssignmentStatusType)[keyof typeof AssignmentStatusType];
|
|
51
|
-
/**
|
|
52
|
-
* @public
|
|
53
|
-
* @enum
|
|
54
|
-
*/
|
|
55
|
-
export declare const PermissionsBoundaryAttachmentType: {
|
|
56
|
-
readonly Policy: "PermissionsBoundaryPolicy";
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* @public
|
|
60
|
-
*/
|
|
61
|
-
export type PermissionsBoundaryAttachmentType = (typeof PermissionsBoundaryAttachmentType)[keyof typeof PermissionsBoundaryAttachmentType];
|
|
62
62
|
/**
|
|
63
63
|
* @public
|
|
64
64
|
* @enum
|
|
@@ -263,6 +263,33 @@ export declare const JobStatusType: {
|
|
|
263
263
|
* @public
|
|
264
264
|
*/
|
|
265
265
|
export type JobStatusType = (typeof JobStatusType)[keyof typeof JobStatusType];
|
|
266
|
+
/**
|
|
267
|
+
* @public
|
|
268
|
+
* @enum
|
|
269
|
+
*/
|
|
270
|
+
export declare const ManagedByTypeType: {
|
|
271
|
+
readonly Service: "Service";
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* @public
|
|
275
|
+
*/
|
|
276
|
+
export type ManagedByTypeType = (typeof ManagedByTypeType)[keyof typeof ManagedByTypeType];
|
|
277
|
+
/**
|
|
278
|
+
* @public
|
|
279
|
+
* @enum
|
|
280
|
+
*/
|
|
281
|
+
export declare const ParameterTypeType: {
|
|
282
|
+
readonly Arn: "Arn";
|
|
283
|
+
readonly ArnList: "ArnList";
|
|
284
|
+
readonly Number: "Number";
|
|
285
|
+
readonly NumberList: "NumberList";
|
|
286
|
+
readonly String: "String";
|
|
287
|
+
readonly StringList: "StringList";
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* @public
|
|
291
|
+
*/
|
|
292
|
+
export type ParameterTypeType = (typeof ParameterTypeType)[keyof typeof ParameterTypeType];
|
|
266
293
|
/**
|
|
267
294
|
* @public
|
|
268
295
|
* @enum
|
|
@@ -54,6 +54,19 @@ export declare class AccountNotManagementOrDelegatedAdministratorException exten
|
|
|
54
54
|
*/
|
|
55
55
|
constructor(opts: __ExceptionOptionType<AccountNotManagementOrDelegatedAdministratorException, __BaseException>);
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* <p>The request was rejected because it attempted to create a resource that already
|
|
59
|
+
* exists.</p>
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export declare class EntityAlreadyExistsException extends __BaseException {
|
|
63
|
+
readonly name: "EntityAlreadyExistsException";
|
|
64
|
+
readonly $fault: "client";
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
constructor(opts: __ExceptionOptionType<EntityAlreadyExistsException, __BaseException>);
|
|
69
|
+
}
|
|
57
70
|
/**
|
|
58
71
|
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
59
72
|
* input parameter.</p>
|
|
@@ -81,17 +94,57 @@ export declare class LimitExceededException extends __BaseException {
|
|
|
81
94
|
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
82
95
|
}
|
|
83
96
|
/**
|
|
84
|
-
* <p>The request was rejected because
|
|
85
|
-
*
|
|
97
|
+
* <p>The request was rejected because the policy document was malformed. The error message
|
|
98
|
+
* describes the specific error.</p>
|
|
86
99
|
* @public
|
|
87
100
|
*/
|
|
88
|
-
export declare class
|
|
89
|
-
readonly name: "
|
|
101
|
+
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
102
|
+
readonly name: "MalformedPolicyDocumentException";
|
|
90
103
|
readonly $fault: "client";
|
|
91
104
|
/**
|
|
92
105
|
* @internal
|
|
93
106
|
*/
|
|
94
|
-
constructor(opts: __ExceptionOptionType<
|
|
107
|
+
constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* <p>The request was rejected because the resulting role name conflicts with an existing role
|
|
111
|
+
* in the account.</p>
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
export declare class NameConflictException extends __BaseException {
|
|
115
|
+
readonly name: "NameConflictException";
|
|
116
|
+
readonly $fault: "client";
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
constructor(opts: __ExceptionOptionType<NameConflictException, __BaseException>);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* <p>The request was rejected because someone modified the role template while the service was
|
|
124
|
+
* creating the role. Wait a few minutes and try the request again.</p>
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export declare class RoleModifiedException extends __BaseException {
|
|
128
|
+
readonly name: "RoleModifiedException";
|
|
129
|
+
readonly $fault: "client";
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
constructor(opts: __ExceptionOptionType<RoleModifiedException, __BaseException>);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* <p>The request was rejected because the specified role template is disabled. A disabled
|
|
137
|
+
* role template cannot be used to create new roles. Contact your administrator to enable the
|
|
138
|
+
* role template, or use a different role template.</p>
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export declare class RoleTemplateDisabledException extends __BaseException {
|
|
142
|
+
readonly name: "RoleTemplateDisabledException";
|
|
143
|
+
readonly $fault: "client";
|
|
144
|
+
/**
|
|
145
|
+
* @internal
|
|
146
|
+
*/
|
|
147
|
+
constructor(opts: __ExceptionOptionType<RoleTemplateDisabledException, __BaseException>);
|
|
95
148
|
}
|
|
96
149
|
/**
|
|
97
150
|
* <p>The request was rejected because service-linked roles are protected Amazon Web Services resources. Only
|
|
@@ -175,19 +228,6 @@ export declare class OpenIdIdpCommunicationErrorException extends __BaseExceptio
|
|
|
175
228
|
*/
|
|
176
229
|
constructor(opts: __ExceptionOptionType<OpenIdIdpCommunicationErrorException, __BaseException>);
|
|
177
230
|
}
|
|
178
|
-
/**
|
|
179
|
-
* <p>The request was rejected because the policy document was malformed. The error message
|
|
180
|
-
* describes the specific error.</p>
|
|
181
|
-
* @public
|
|
182
|
-
*/
|
|
183
|
-
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
184
|
-
readonly name: "MalformedPolicyDocumentException";
|
|
185
|
-
readonly $fault: "client";
|
|
186
|
-
/**
|
|
187
|
-
* @internal
|
|
188
|
-
*/
|
|
189
|
-
constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
|
|
190
|
-
}
|
|
191
231
|
/**
|
|
192
232
|
* <p>The specified service does not support service-specific credentials.</p>
|
|
193
233
|
* @public
|