@aws-sdk/client-iam 3.839.0 → 3.840.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +41 -1
- package/dist-es/models/models_0.js +2 -0
- package/dist-es/protocols/Aws_query.js +38 -0
- package/dist-types/commands/ChangePasswordCommand.d.ts +5 -4
- package/dist-types/commands/CreateAccessKeyCommand.d.ts +1 -1
- package/dist-types/commands/CreateLoginProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/commands/CreatePolicyVersionCommand.d.ts +1 -1
- package/dist-types/commands/CreateServiceSpecificCredentialCommand.d.ts +10 -8
- package/dist-types/commands/CreateVirtualMFADeviceCommand.d.ts +4 -3
- package/dist-types/commands/DeleteGroupPolicyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteLoginProfileCommand.d.ts +5 -4
- package/dist-types/commands/DeletePolicyCommand.d.ts +5 -7
- package/dist-types/commands/DeletePolicyVersionCommand.d.ts +2 -2
- package/dist-types/commands/DeleteRoleCommand.d.ts +4 -4
- package/dist-types/commands/DeleteRolePolicyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteServiceLinkedRoleCommand.d.ts +1 -1
- package/dist-types/commands/DeleteUserCommand.d.ts +9 -9
- package/dist-types/commands/DeleteUserPolicyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteVirtualMFADeviceCommand.d.ts +1 -1
- package/dist-types/commands/DetachGroupPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DetachRolePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DetachUserPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +1 -1
- package/dist-types/commands/DisableOrganizationsRootSessionsCommand.d.ts +1 -1
- package/dist-types/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +1 -1
- package/dist-types/commands/EnableOrganizationsRootSessionsCommand.d.ts +1 -1
- package/dist-types/commands/GenerateOrganizationsAccessReportCommand.d.ts +5 -5
- package/dist-types/commands/GenerateServiceLastAccessedDetailsCommand.d.ts +6 -6
- package/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +2 -1
- package/dist-types/commands/GetContextKeysForCustomPolicyCommand.d.ts +4 -4
- package/dist-types/commands/GetContextKeysForPrincipalPolicyCommand.d.ts +4 -3
- package/dist-types/commands/GetCredentialReportCommand.d.ts +4 -4
- package/dist-types/commands/GetGroupPolicyCommand.d.ts +4 -3
- package/dist-types/commands/GetOrganizationsAccessReportCommand.d.ts +4 -5
- package/dist-types/commands/GetPolicyCommand.d.ts +4 -4
- package/dist-types/commands/GetPolicyVersionCommand.d.ts +5 -3
- package/dist-types/commands/GetRoleCommand.d.ts +2 -1
- package/dist-types/commands/GetRolePolicyCommand.d.ts +5 -4
- package/dist-types/commands/GetSSHPublicKeyCommand.d.ts +1 -1
- package/dist-types/commands/GetServiceLinkedRoleDeletionStatusCommand.d.ts +2 -2
- package/dist-types/commands/GetUserPolicyCommand.d.ts +5 -4
- package/dist-types/commands/ListAccessKeysCommand.d.ts +1 -1
- package/dist-types/commands/ListAttachedGroupPoliciesCommand.d.ts +2 -2
- package/dist-types/commands/ListAttachedRolePoliciesCommand.d.ts +2 -2
- package/dist-types/commands/ListAttachedUserPoliciesCommand.d.ts +2 -2
- package/dist-types/commands/ListGroupPoliciesCommand.d.ts +3 -3
- package/dist-types/commands/ListInstanceProfilesCommand.d.ts +2 -1
- package/dist-types/commands/ListOpenIDConnectProvidersCommand.d.ts +1 -1
- package/dist-types/commands/ListOrganizationsFeaturesCommand.d.ts +1 -1
- package/dist-types/commands/ListPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListPoliciesGrantingServiceAccessCommand.d.ts +1 -1
- package/dist-types/commands/ListRolePoliciesCommand.d.ts +3 -3
- package/dist-types/commands/ListRolesCommand.d.ts +1 -1
- package/dist-types/commands/ListSAMLProvidersCommand.d.ts +1 -1
- package/dist-types/commands/ListSSHPublicKeysCommand.d.ts +1 -1
- package/dist-types/commands/ListServerCertificatesCommand.d.ts +2 -1
- package/dist-types/commands/ListServiceSpecificCredentialsCommand.d.ts +9 -2
- package/dist-types/commands/ListSigningCertificatesCommand.d.ts +1 -1
- package/dist-types/commands/ListUserPoliciesCommand.d.ts +3 -3
- package/dist-types/commands/ListUsersCommand.d.ts +1 -1
- package/dist-types/commands/ListVirtualMFADevicesCommand.d.ts +1 -1
- package/dist-types/commands/PutGroupPolicyCommand.d.ts +4 -4
- package/dist-types/commands/ResetServiceSpecificCredentialCommand.d.ts +6 -3
- package/dist-types/commands/SetDefaultPolicyVersionCommand.d.ts +1 -1
- package/dist-types/commands/SetSecurityTokenServicePreferencesCommand.d.ts +1 -1
- package/dist-types/commands/SimulateCustomPolicyCommand.d.ts +2 -2
- package/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +3 -4
- package/dist-types/commands/UpdateAccessKeyCommand.d.ts +5 -1
- package/dist-types/commands/UpdateLoginProfileCommand.d.ts +3 -3
- package/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSSHPublicKeyCommand.d.ts +5 -1
- package/dist-types/commands/UpdateServiceSpecificCredentialCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSigningCertificateCommand.d.ts +5 -1
- package/dist-types/commands/UploadSSHPublicKeyCommand.d.ts +1 -1
- package/dist-types/commands/UploadSigningCertificateCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +241 -181
- package/dist-types/models/models_1.d.ts +20 -23
- package/dist-types/ts3.4/models/models_0.d.ts +15 -3
- package/package.json +12 -12
|
@@ -46,12 +46,15 @@ declare const ResetServiceSpecificCredentialCommand_base: {
|
|
|
46
46
|
* // { // ResetServiceSpecificCredentialResponse
|
|
47
47
|
* // ServiceSpecificCredential: { // ServiceSpecificCredential
|
|
48
48
|
* // CreateDate: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // ExpirationDate: new Date("TIMESTAMP"),
|
|
49
50
|
* // ServiceName: "STRING_VALUE", // required
|
|
50
|
-
* // ServiceUserName: "STRING_VALUE",
|
|
51
|
-
* // ServicePassword: "STRING_VALUE",
|
|
51
|
+
* // ServiceUserName: "STRING_VALUE",
|
|
52
|
+
* // ServicePassword: "STRING_VALUE",
|
|
53
|
+
* // ServiceCredentialAlias: "STRING_VALUE",
|
|
54
|
+
* // ServiceCredentialSecret: "STRING_VALUE",
|
|
52
55
|
* // ServiceSpecificCredentialId: "STRING_VALUE", // required
|
|
53
56
|
* // UserName: "STRING_VALUE", // required
|
|
54
|
-
* // Status: "Active" || "Inactive", // required
|
|
57
|
+
* // Status: "Active" || "Inactive" || "Expired", // required
|
|
55
58
|
* // },
|
|
56
59
|
* // };
|
|
57
60
|
*
|
|
@@ -30,7 +30,7 @@ declare const SetDefaultPolicyVersionCommand_base: {
|
|
|
30
30
|
* <p>Sets the specified version of the specified policy as the policy's default (operative)
|
|
31
31
|
* version.</p>
|
|
32
32
|
* <p>This operation affects all users, groups, and roles that the policy is attached to. To
|
|
33
|
-
* list the users, groups, and roles that the policy is attached to, use <a>ListEntitiesForPolicy</a>.</p>
|
|
33
|
+
* list the users, groups, and roles that the policy is attached to, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_ListEntitiesForPolicy.html">ListEntitiesForPolicy</a>.</p>
|
|
34
34
|
* <p>For information about managed policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed policies and inline
|
|
35
35
|
* policies</a> in the <i>IAM User Guide</i>.</p>
|
|
36
36
|
* @example
|
|
@@ -45,7 +45,7 @@ declare const SetSecurityTokenServicePreferencesCommand_base: {
|
|
|
45
45
|
* deactivating STS in an Amazon Web Services Region</a> in the
|
|
46
46
|
* <i>IAM User Guide</i>.</p>
|
|
47
47
|
* <p>To view the current session token version, see the
|
|
48
|
-
* <code>GlobalEndpointTokenVersion</code> entry in the response of the <a>GetAccountSummary</a> operation.</p>
|
|
48
|
+
* <code>GlobalEndpointTokenVersion</code> entry in the response of the <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetAccountSummary.html">GetAccountSummary</a> operation.</p>
|
|
49
49
|
* @example
|
|
50
50
|
* Use a bare-bones client and the command you need to make an API call.
|
|
51
51
|
* ```javascript
|
|
@@ -35,11 +35,11 @@ declare const SimulateCustomPolicyCommand_base: {
|
|
|
35
35
|
* to determine if the simulated policies allow or deny the operations. You can simulate
|
|
36
36
|
* resources that don't exist in your account.</p>
|
|
37
37
|
* <p>If you want to simulate existing policies that are attached to an IAM user, group,
|
|
38
|
-
* or role, use <a>SimulatePrincipalPolicy</a> instead.</p>
|
|
38
|
+
* or role, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_SimulatePrincipalPolicy.html">SimulatePrincipalPolicy</a> instead.</p>
|
|
39
39
|
* <p>Context keys are variables that are maintained by Amazon Web Services and its services and which
|
|
40
40
|
* provide details about the context of an API query request. You can use the
|
|
41
41
|
* <code>Condition</code> element of an IAM policy to evaluate context keys. To get
|
|
42
|
-
* the list of context keys that the policies require for correct simulation, use <a>GetContextKeysForCustomPolicy</a>.</p>
|
|
42
|
+
* the list of context keys that the policies require for correct simulation, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetContextKeysForCustomPolicy.html">GetContextKeysForCustomPolicy</a>.</p>
|
|
43
43
|
* <p>If the output is long, you can use <code>MaxItems</code> and <code>Marker</code>
|
|
44
44
|
* parameters to paginate the results.</p>
|
|
45
45
|
* <note>
|
|
@@ -34,7 +34,7 @@ declare const SimulatePrincipalPolicyCommand_base: {
|
|
|
34
34
|
* You can simulate resources that don't exist in your account.</p>
|
|
35
35
|
* <p>You can optionally include a list of one or more additional policies specified as
|
|
36
36
|
* strings to include in the simulation. If you want to simulate only policies specified as
|
|
37
|
-
* strings, use <a>SimulateCustomPolicy</a> instead.</p>
|
|
37
|
+
* strings, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_SimulateCustomPolicy.html">SimulateCustomPolicy</a> instead.</p>
|
|
38
38
|
* <p>You can also optionally include one resource-based policy to be evaluated with each of
|
|
39
39
|
* the resources included in the simulation for IAM users only.</p>
|
|
40
40
|
* <p>The simulation does not perform the API operations; it only checks the authorization
|
|
@@ -42,12 +42,11 @@ declare const SimulatePrincipalPolicyCommand_base: {
|
|
|
42
42
|
* <p>
|
|
43
43
|
* <b>Note:</b> This operation discloses information about the
|
|
44
44
|
* permissions granted to other users. If you do not want users to see other user's
|
|
45
|
-
* permissions, then consider allowing them to use <a>SimulateCustomPolicy</a>
|
|
46
|
-
* instead.</p>
|
|
45
|
+
* permissions, then consider allowing them to use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_SimulateCustomPolicy.html">SimulateCustomPolicy</a> instead.</p>
|
|
47
46
|
* <p>Context keys are variables maintained by Amazon Web Services and its services that provide details
|
|
48
47
|
* about the context of an API query request. You can use the <code>Condition</code>
|
|
49
48
|
* element of an IAM policy to evaluate context keys. To get the list of context keys
|
|
50
|
-
* that the policies require for correct simulation, use <a>GetContextKeysForPrincipalPolicy</a>.</p>
|
|
49
|
+
* that the policies require for correct simulation, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetContextKeysForPrincipalPolicy.html">GetContextKeysForPrincipalPolicy</a>.</p>
|
|
51
50
|
* <p>If the output is long, you can use the <code>MaxItems</code> and <code>Marker</code>
|
|
52
51
|
* parameters to paginate the results.</p>
|
|
53
52
|
* <note>
|
|
@@ -47,7 +47,7 @@ declare const UpdateAccessKeyCommand_base: {
|
|
|
47
47
|
* const input = { // UpdateAccessKeyRequest
|
|
48
48
|
* UserName: "STRING_VALUE",
|
|
49
49
|
* AccessKeyId: "STRING_VALUE", // required
|
|
50
|
-
* Status: "Active" || "Inactive", // required
|
|
50
|
+
* Status: "Active" || "Inactive" || "Expired", // required
|
|
51
51
|
* };
|
|
52
52
|
* const command = new UpdateAccessKeyCommand(input);
|
|
53
53
|
* const response = await client.send(command);
|
|
@@ -61,6 +61,10 @@ declare const UpdateAccessKeyCommand_base: {
|
|
|
61
61
|
* @see {@link UpdateAccessKeyCommandOutput} for command's `response` shape.
|
|
62
62
|
* @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
|
|
63
63
|
*
|
|
64
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
65
|
+
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
66
|
+
* input parameter.</p>
|
|
67
|
+
*
|
|
64
68
|
* @throws {@link LimitExceededException} (client fault)
|
|
65
69
|
* <p>The request was rejected because it attempted to create resources beyond the current
|
|
66
70
|
* Amazon Web Services account limits. The error message describes the limit exceeded.</p>
|
|
@@ -29,9 +29,9 @@ declare const UpdateLoginProfileCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Changes the password for the specified IAM user. You can use the CLI, the Amazon Web Services
|
|
31
31
|
* API, or the <b>Users</b> page in the IAM console to change
|
|
32
|
-
* the password for any IAM user. Use <a>ChangePassword</a> to
|
|
33
|
-
* password in the <b>My Security Credentials</b>
|
|
34
|
-
* Amazon Web Services Management Console.</p>
|
|
32
|
+
* the password for any IAM user. Use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_ChangePassword.html">ChangePassword</a> to
|
|
33
|
+
* change your own password in the <b>My Security Credentials</b>
|
|
34
|
+
* page in the Amazon Web Services Management Console.</p>
|
|
35
35
|
* <p>For more information about modifying passwords, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_ManagingLogins.html">Managing passwords</a> in the
|
|
36
36
|
* <i>IAM User Guide</i>.</p>
|
|
37
37
|
* @example
|
|
@@ -27,7 +27,7 @@ declare const UpdateRoleDescriptionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Use <a>UpdateRole</a> instead.</p>
|
|
30
|
+
* <p>Use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateRole.html">UpdateRole</a> instead.</p>
|
|
31
31
|
* <p>Modifies only the description of a role. This operation performs the same function as
|
|
32
32
|
* the <code>Description</code> parameter in the <code>UpdateRole</code> operation.</p>
|
|
33
33
|
* @example
|
|
@@ -43,7 +43,7 @@ declare const UpdateSSHPublicKeyCommand_base: {
|
|
|
43
43
|
* const input = { // UpdateSSHPublicKeyRequest
|
|
44
44
|
* UserName: "STRING_VALUE", // required
|
|
45
45
|
* SSHPublicKeyId: "STRING_VALUE", // required
|
|
46
|
-
* Status: "Active" || "Inactive", // required
|
|
46
|
+
* Status: "Active" || "Inactive" || "Expired", // required
|
|
47
47
|
* };
|
|
48
48
|
* const command = new UpdateSSHPublicKeyCommand(input);
|
|
49
49
|
* const response = await client.send(command);
|
|
@@ -57,6 +57,10 @@ declare const UpdateSSHPublicKeyCommand_base: {
|
|
|
57
57
|
* @see {@link UpdateSSHPublicKeyCommandOutput} for command's `response` shape.
|
|
58
58
|
* @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
|
|
59
59
|
*
|
|
60
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
61
|
+
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
62
|
+
* input parameter.</p>
|
|
63
|
+
*
|
|
60
64
|
* @throws {@link NoSuchEntityException} (client fault)
|
|
61
65
|
* <p>The request was rejected because it referenced a resource entity that does not exist. The
|
|
62
66
|
* error message describes the resource.</p>
|
|
@@ -40,7 +40,7 @@ declare const UpdateServiceSpecificCredentialCommand_base: {
|
|
|
40
40
|
* const input = { // UpdateServiceSpecificCredentialRequest
|
|
41
41
|
* UserName: "STRING_VALUE",
|
|
42
42
|
* ServiceSpecificCredentialId: "STRING_VALUE", // required
|
|
43
|
-
* Status: "Active" || "Inactive", // required
|
|
43
|
+
* Status: "Active" || "Inactive" || "Expired", // required
|
|
44
44
|
* };
|
|
45
45
|
* const command = new UpdateServiceSpecificCredentialCommand(input);
|
|
46
46
|
* const response = await client.send(command);
|
|
@@ -44,7 +44,7 @@ declare const UpdateSigningCertificateCommand_base: {
|
|
|
44
44
|
* const input = { // UpdateSigningCertificateRequest
|
|
45
45
|
* UserName: "STRING_VALUE",
|
|
46
46
|
* CertificateId: "STRING_VALUE", // required
|
|
47
|
-
* Status: "Active" || "Inactive", // required
|
|
47
|
+
* Status: "Active" || "Inactive" || "Expired", // required
|
|
48
48
|
* };
|
|
49
49
|
* const command = new UpdateSigningCertificateCommand(input);
|
|
50
50
|
* const response = await client.send(command);
|
|
@@ -58,6 +58,10 @@ declare const UpdateSigningCertificateCommand_base: {
|
|
|
58
58
|
* @see {@link UpdateSigningCertificateCommandOutput} for command's `response` shape.
|
|
59
59
|
* @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
|
|
60
60
|
*
|
|
61
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
62
|
+
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
|
|
63
|
+
* input parameter.</p>
|
|
64
|
+
*
|
|
61
65
|
* @throws {@link LimitExceededException} (client fault)
|
|
62
66
|
* <p>The request was rejected because it attempted to create resources beyond the current
|
|
63
67
|
* Amazon Web Services account limits. The error message describes the limit exceeded.</p>
|
|
@@ -50,7 +50,7 @@ declare const UploadSSHPublicKeyCommand_base: {
|
|
|
50
50
|
* // SSHPublicKeyId: "STRING_VALUE", // required
|
|
51
51
|
* // Fingerprint: "STRING_VALUE", // required
|
|
52
52
|
* // SSHPublicKeyBody: "STRING_VALUE", // required
|
|
53
|
-
* // Status: "Active" || "Inactive", // required
|
|
53
|
+
* // Status: "Active" || "Inactive" || "Expired", // required
|
|
54
54
|
* // UploadDate: new Date("TIMESTAMP"),
|
|
55
55
|
* // },
|
|
56
56
|
* // };
|
|
@@ -64,7 +64,7 @@ declare const UploadSigningCertificateCommand_base: {
|
|
|
64
64
|
* // UserName: "STRING_VALUE", // required
|
|
65
65
|
* // CertificateId: "STRING_VALUE", // required
|
|
66
66
|
* // CertificateBody: "STRING_VALUE", // required
|
|
67
|
-
* // Status: "Active" || "Inactive", // required
|
|
67
|
+
* // Status: "Active" || "Inactive" || "Expired", // required
|
|
68
68
|
* // UploadDate: new Date("TIMESTAMP"),
|
|
69
69
|
* // },
|
|
70
70
|
* // };
|