IamClient

interface IamClient : SdkClient

Identity and Access Management

Identity and Access Management (IAM) is a web service for securely controlling access to Amazon Web Services services. With IAM, you can centrally manage users, security credentials such as access keys, and permissions that control which Amazon Web Services resources users and applications can access. For more information about IAM, see Identity and Access Management (IAM) and the Identity and Access Management User Guide.

Properties

Link copied to clipboard
abstract override val config: IamClient.Config

IamClient's configuration

Functions

Link copied to clipboard

Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.

Link copied to clipboard

Adds the specified IAM role to the specified instance profile. An instance profile can contain only one role, and this quota cannot be increased. You can remove the existing role and then add a different role to an instance profile. You must then wait for the change to appear across all of Amazon Web Services because of eventual consistency. To force the change, you must disassociate the instance profile and then associate the instance profile, or you can stop your instance and then restart it.

Link copied to clipboard

Adds the specified user to the specified group.

Link copied to clipboard

Attaches the specified managed policy to the specified IAM group.

Link copied to clipboard

Attaches the specified managed policy to the specified IAM role. When you attach a managed policy to a role, the managed policy becomes part of the role's permission (access) policy.

Link copied to clipboard

Attaches the specified managed policy to the specified user.

Link copied to clipboard

Changes the password of the IAM user who is calling this operation. This operation can be performed using the CLI, the Amazon Web Services API, or the My Security Credentials page in the Amazon Web Services Management Console. The Amazon Web Services account root user password is not affected by this operation.

Link copied to clipboard
abstract suspend fun createAccessKey(input: CreateAccessKeyRequest = CreateAccessKeyRequest { }): CreateAccessKeyResponse

Creates a new Amazon Web Services secret access key and corresponding Amazon Web Services access key ID for the specified user. The default status for new keys is Active.

Link copied to clipboard

Creates an alias for your Amazon Web Services account. For information about using an Amazon Web Services account alias, see Creating, deleting, and listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User Guide.

Link copied to clipboard
abstract suspend fun createGroup(input: CreateGroupRequest): CreateGroupResponse

Creates a new group.

Link copied to clipboard

Creates a new instance profile. For information about instance profiles, see Using roles for applications on Amazon EC2 in the IAM User Guide, and Instance profiles in the Amazon EC2 User Guide.

Link copied to clipboard
abstract suspend fun createLoginProfile(input: CreateLoginProfileRequest = CreateLoginProfileRequest { }): CreateLoginProfileResponse

Creates a password for the specified IAM user. A password allows an IAM user to access Amazon Web Services services through the Amazon Web Services Management Console.

Link copied to clipboard

Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

Link copied to clipboard

Creates a new managed policy for your Amazon Web Services account.

Link copied to clipboard

Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.

Link copied to clipboard
abstract suspend fun createRole(input: CreateRoleRequest): CreateRoleResponse

Creates a new role for your Amazon Web Services account.

Link copied to clipboard

Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.

Link copied to clipboard

Creates an IAM role that is linked to a specific Amazon Web Services service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your Amazon Web Services resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed. For more information, see Using service-linked roles in the IAM User Guide.

Link copied to clipboard

Generates a set of credentials consisting of a user name and password that can be used to access the service specified in the request. These credentials are generated by IAM, and can be used only for the specified service.

Link copied to clipboard
abstract suspend fun createUser(input: CreateUserRequest): CreateUserResponse

Creates a new IAM user for your Amazon Web Services account.

Link copied to clipboard

Creates a new virtual MFA device for the Amazon Web Services account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, see Using a virtual MFA device in the IAM User Guide.

Link copied to clipboard

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

Link copied to clipboard

Deletes the access key pair associated with the specified IAM user.

Link copied to clipboard

Deletes the specified Amazon Web Services account alias. For information about using an Amazon Web Services account alias, see Creating, deleting, and listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User Guide.

Link copied to clipboard
abstract suspend fun deleteAccountPasswordPolicy(input: DeleteAccountPasswordPolicyRequest = DeleteAccountPasswordPolicyRequest { }): DeleteAccountPasswordPolicyResponse

Deletes the password policy for the Amazon Web Services account. There are no parameters.

Link copied to clipboard
abstract suspend fun deleteGroup(input: DeleteGroupRequest): DeleteGroupResponse

Deletes the specified IAM group. The group must not contain any users or have any attached policies.

Link copied to clipboard

Deletes the specified inline policy that is embedded in the specified IAM group.

Link copied to clipboard

Deletes the specified instance profile. The instance profile must not have an associated role.

Link copied to clipboard
abstract suspend fun deleteLoginProfile(input: DeleteLoginProfileRequest = DeleteLoginProfileRequest { }): DeleteLoginProfileResponse

Deletes the password for the specified IAM user or root user, For more information, see Managing passwords for IAM users.

Link copied to clipboard

Deletes an OpenID Connect identity provider (IdP) resource object in IAM.

Link copied to clipboard

Deletes the specified managed policy.

Link copied to clipboard

Deletes the specified version from the specified managed policy.

Link copied to clipboard
abstract suspend fun deleteRole(input: DeleteRoleRequest): DeleteRoleResponse

Deletes the specified role. Unlike the Amazon Web Services Management Console, when you delete a role programmatically, you must delete the items attached to the role manually, or the deletion fails. For more information, see Deleting an IAM role. Before attempting to delete a role, remove the following attached items:

Link copied to clipboard

Deletes the permissions boundary for the specified IAM role.

Link copied to clipboard

Deletes the specified inline policy that is embedded in the specified IAM role.

Link copied to clipboard

Deletes a SAML provider resource in IAM.

Link copied to clipboard

Deletes the specified server certificate.

Link copied to clipboard

Submits a service-linked role deletion request and returns a DeletionTaskId, which you can use to check the status of the deletion. Before you call this operation, confirm that the role has no active sessions and that any resources used by the role in the linked service are deleted. If you call this operation more than once for the same service-linked role and an earlier deletion task is not complete, then the DeletionTaskId of the earlier request is returned.

Link copied to clipboard

Deletes the specified service-specific credential.

Link copied to clipboard

Deletes a signing certificate associated with the specified IAM user.

Link copied to clipboard

Deletes the specified SSH public key.

Link copied to clipboard
abstract suspend fun deleteUser(input: DeleteUserRequest): DeleteUserResponse

Deletes the specified IAM user. Unlike the Amazon Web Services Management Console, when you delete a user programmatically, you must delete the items attached to the user manually, or the deletion fails. For more information, see Deleting an IAM user. Before attempting to delete a user, remove the following items:

Link copied to clipboard

Deletes the permissions boundary for the specified IAM user.

Link copied to clipboard

Deletes the specified inline policy that is embedded in the specified IAM user.

Link copied to clipboard

Deletes a virtual MFA device.

Link copied to clipboard

Removes the specified managed policy from the specified IAM group.

Link copied to clipboard

Removes the specified managed policy from the specified role.

Link copied to clipboard

Removes the specified managed policy from the specified user.

Disables the management of privileged root user credentials across member accounts in your organization. When you disable this feature, the management account and the delegated administrator for IAM can no longer manage root user credentials for member accounts in your organization.

Link copied to clipboard
abstract suspend fun disableOrganizationsRootSessions(input: DisableOrganizationsRootSessionsRequest = DisableOrganizationsRootSessionsRequest { }): DisableOrganizationsRootSessionsResponse

Disables root user sessions for privileged tasks across member accounts in your organization. When you disable this feature, the management account and the delegated administrator for IAM can no longer perform privileged tasks on member accounts in your organization.

Link copied to clipboard

Enables the specified MFA device and associates it with the specified IAM user. When enabled, the MFA device is required for every subsequent login by the IAM user associated with the device.

Enables the management of privileged root user credentials across member accounts in your organization. When you enable root credentials management for centralized root access, the management account and the delegated administrator for IAM can manage root user credentials for member accounts in your organization.

Link copied to clipboard
abstract suspend fun enableOrganizationsRootSessions(input: EnableOrganizationsRootSessionsRequest = EnableOrganizationsRootSessionsRequest { }): EnableOrganizationsRootSessionsResponse

Allows the management account or delegated administrator to perform privileged tasks on member accounts in your organization. For more information, see Centrally manage root access for member accounts in the Identity and Access Management User Guide.

Link copied to clipboard
abstract suspend fun generateCredentialReport(input: GenerateCredentialReportRequest = GenerateCredentialReportRequest { }): GenerateCredentialReportResponse

Generates a credential report for the Amazon Web Services account. For more information about the credential report, see Getting credential reports in the IAM User Guide.

Link copied to clipboard

Generates a report for service last accessed data for Organizations. You can generate a report for any entities (organization root, organizational unit, or account) or policies in your organization.

Link copied to clipboard

Generates a report that includes details about when an IAM resource (user, group, role, or policy) was last used in an attempt to access Amazon Web Services services. Recent activity usually appears within four hours. IAM reports activity for at least the last 400 days, or less if your Region began supporting this feature within the last year. For more information, see Regions where data is tracked. For more information about services and actions for which action last accessed information is displayed, see IAM action last accessed information services and actions.

Link copied to clipboard

Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the Amazon Web Services service and Region that were specified in the last request made with that key.

Link copied to clipboard
abstract suspend fun getAccountAuthorizationDetails(input: GetAccountAuthorizationDetailsRequest = GetAccountAuthorizationDetailsRequest { }): GetAccountAuthorizationDetailsResponse

Retrieves information about all IAM users, groups, roles, and policies in your Amazon Web Services account, including their relationships to one another. Use this operation to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.

Link copied to clipboard
abstract suspend fun getAccountPasswordPolicy(input: GetAccountPasswordPolicyRequest = GetAccountPasswordPolicyRequest { }): GetAccountPasswordPolicyResponse

Retrieves the password policy for the Amazon Web Services account. This tells you the complexity requirements and mandatory rotation periods for the IAM user passwords in your account. For more information about using a password policy, see Managing an IAM password policy.

Link copied to clipboard
abstract suspend fun getAccountSummary(input: GetAccountSummaryRequest = GetAccountSummaryRequest { }): GetAccountSummaryResponse

Retrieves information about IAM entity usage and IAM quotas in the Amazon Web Services account.

Link copied to clipboard

Gets a list of all of the context keys referenced in the input policies. The policies are supplied as a list of one or more strings. To get the context keys from policies associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy.

Link copied to clipboard

Gets a list of all of the context keys referenced in all the IAM policies that are attached to the specified IAM entity. The entity can be an IAM user, group, or role. If you specify a user, then the request also includes all of the policies attached to groups that the user is a member of.

Link copied to clipboard
abstract suspend fun getCredentialReport(input: GetCredentialReportRequest = GetCredentialReportRequest { }): GetCredentialReportResponse

Retrieves a credential report for the Amazon Web Services account. For more information about the credential report, see Getting credential reports in the IAM User Guide.

Link copied to clipboard
abstract suspend fun getGroup(input: GetGroupRequest): GetGroupResponse

Returns a list of IAM users that are in the specified IAM group. You can paginate the results using the MaxItems and Marker parameters.

Link copied to clipboard

Retrieves the specified inline policy document that is embedded in the specified IAM group.

Link copied to clipboard

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see Using instance profiles in the IAM User Guide.

Link copied to clipboard
abstract suspend fun getLoginProfile(input: GetLoginProfileRequest = GetLoginProfileRequest { }): GetLoginProfileResponse

Retrieves the user name for the specified IAM user. A login profile is created when you create a password for the user to access the Amazon Web Services Management Console. If the user does not exist or does not have a password, the operation returns a 404 (NoSuchEntity) error.

Link copied to clipboard

Retrieves information about an MFA device for a specified user.

Link copied to clipboard

Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM.

Link copied to clipboard

Retrieves the service last accessed data report for Organizations that was previously generated using the <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GenerateOrganizationsAccessReport.html">GenerateOrganizationsAccessReport</a> operation. This operation retrieves the status of your report job and the report contents.

Link copied to clipboard
abstract suspend fun getPolicy(input: GetPolicyRequest): GetPolicyResponse

Retrieves information about the specified managed policy, including the policy's default version and the total number of IAM users, groups, and roles to which the policy is attached. To retrieve the list of the specific users, groups, and roles that the policy is attached to, use ListEntitiesForPolicy. This operation returns metadata about the policy. To retrieve the actual policy document for a specific version of the policy, use GetPolicyVersion.

Link copied to clipboard

Retrieves information about the specified version of the specified managed policy, including the policy document.

Link copied to clipboard
abstract suspend fun getRole(input: GetRoleRequest): GetRoleResponse

Retrieves information about the specified role, including the role's path, GUID, ARN, and the role's trust policy that grants permission to assume the role. For more information about roles, see IAM roles in the IAM User Guide.

Link copied to clipboard

Retrieves the specified inline policy document that is embedded with the specified IAM role.

Link copied to clipboard

Returns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated.

Link copied to clipboard

Retrieves information about the specified server certificate stored in IAM.

Link copied to clipboard

Retrieves a service last accessed report that was created using the GenerateServiceLastAccessedDetails operation. You can use the JobId parameter in GetServiceLastAccessedDetails to retrieve the status of your report job. When the report is complete, you can retrieve the generated report. The report includes a list of Amazon Web Services services that the resource (user, group, role, or managed policy) can access.

After you generate a group or policy report using the GenerateServiceLastAccessedDetails operation, you can use the JobId parameter in GetServiceLastAccessedDetailsWithEntities. This operation retrieves the status of your report job and a list of entities that could have used group or policy permissions to access the specified service.

Link copied to clipboard

Retrieves the status of your service-linked role deletion. After you use DeleteServiceLinkedRole to submit a service-linked role for deletion, you can use the DeletionTaskId parameter in GetServiceLinkedRoleDeletionStatus to check the status of the deletion. If the deletion fails, this operation returns the reason that it failed, if that information is returned by the service.

Link copied to clipboard

Retrieves the specified SSH public key, including metadata about the key.

Link copied to clipboard
abstract suspend fun getUser(input: GetUserRequest = GetUserRequest { }): GetUserResponse

Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.

Link copied to clipboard

Retrieves the specified inline policy document that is embedded in the specified IAM user.

Link copied to clipboard
abstract suspend fun listAccessKeys(input: ListAccessKeysRequest = ListAccessKeysRequest { }): ListAccessKeysResponse

Returns information about the access key IDs associated with the specified IAM user. If there is none, the operation returns an empty list.

Link copied to clipboard
abstract suspend fun listAccountAliases(input: ListAccountAliasesRequest = ListAccountAliasesRequest { }): ListAccountAliasesResponse

Lists the account alias associated with the Amazon Web Services account (Note: you can have only one). For information about using an Amazon Web Services account alias, see Creating, deleting, and listing an Amazon Web Services account alias in the IAM User Guide.

Link copied to clipboard

Lists all managed policies that are attached to the specified IAM group.

Link copied to clipboard

Lists all managed policies that are attached to the specified IAM role.

Link copied to clipboard

Lists all managed policies that are attached to the specified IAM user.

Link copied to clipboard

Lists all IAM users, groups, and roles that the specified managed policy is attached to.

Link copied to clipboard

Lists the names of the inline policies that are embedded in the specified IAM group.

Link copied to clipboard
abstract suspend fun listGroups(input: ListGroupsRequest = ListGroupsRequest { }): ListGroupsResponse

Lists the IAM groups that have the specified path prefix.

Link copied to clipboard

Lists the IAM groups that the specified IAM user belongs to.

Link copied to clipboard
abstract suspend fun listInstanceProfiles(input: ListInstanceProfilesRequest = ListInstanceProfilesRequest { }): ListInstanceProfilesResponse

Lists the instance profiles that have the specified path prefix. If there are none, the operation returns an empty list. For more information about instance profiles, see Using instance profiles in the IAM User Guide.

Link copied to clipboard

Lists the instance profiles that have the specified associated IAM role. If there are none, the operation returns an empty list. For more information about instance profiles, go to Using instance profiles in the IAM User Guide.

Link copied to clipboard

Lists the tags that are attached to the specified IAM instance profile. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
abstract suspend fun listMfaDevices(input: ListMfaDevicesRequest = ListMfaDevicesRequest { }): ListMfaDevicesResponse

Lists the MFA devices for an IAM user. If the request includes a IAM user name, then this operation lists all the MFA devices associated with the specified user. If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request for this operation.

Link copied to clipboard

Lists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
abstract suspend fun listOpenIdConnectProviders(input: ListOpenIdConnectProvidersRequest = ListOpenIdConnectProvidersRequest { }): ListOpenIdConnectProvidersResponse

Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services account.

Link copied to clipboard

Lists the tags that are attached to the specified OpenID Connect (OIDC)-compatible identity provider. The returned list of tags is sorted by tag key. For more information, see About web identity federation.

Link copied to clipboard
abstract suspend fun listOrganizationsFeatures(input: ListOrganizationsFeaturesRequest = ListOrganizationsFeaturesRequest { }): ListOrganizationsFeaturesResponse

Lists the centralized root access features enabled for your organization. For more information, see Centrally manage root access for member accounts.

Link copied to clipboard
abstract suspend fun listPolicies(input: ListPoliciesRequest = ListPoliciesRequest { }): ListPoliciesResponse

Lists all the managed policies that are available in your Amazon Web Services account, including your own customer-defined managed policies and all Amazon Web Services managed policies.

Link copied to clipboard

Retrieves a list of policies that the IAM identity (user, group, or role) can use to access each specified service.

Link copied to clipboard

Lists the tags that are attached to the specified IAM customer managed policy. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Lists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.

Link copied to clipboard

Lists the names of the inline policies that are embedded in the specified IAM role.

Link copied to clipboard
abstract suspend fun listRoles(input: ListRolesRequest = ListRolesRequest { }): ListRolesResponse

Lists the IAM roles that have the specified path prefix. If there are none, the operation returns an empty list. For more information about roles, see IAM roles in the IAM User Guide.

Link copied to clipboard

Lists the tags that are attached to the specified role. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
abstract suspend fun listSamlProviders(input: ListSamlProvidersRequest = ListSamlProvidersRequest { }): ListSamlProvidersResponse

Lists the SAML provider resource objects defined in IAM in the account. IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a SAML provider, see GetSAMLProvider.

Link copied to clipboard

Lists the tags that are attached to the specified Security Assertion Markup Language (SAML) identity provider. The returned list of tags is sorted by tag key. For more information, see About SAML 2.0-based federation.

Link copied to clipboard
abstract suspend fun listServerCertificates(input: ListServerCertificatesRequest = ListServerCertificatesRequest { }): ListServerCertificatesResponse

Lists the server certificates stored in IAM that have the specified path prefix. If none exist, the operation returns an empty list.

Link copied to clipboard

Lists the tags that are attached to the specified IAM server certificate. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
abstract suspend fun listServiceSpecificCredentials(input: ListServiceSpecificCredentialsRequest = ListServiceSpecificCredentialsRequest { }): ListServiceSpecificCredentialsResponse

Returns information about the service-specific credentials associated with the specified IAM user. If none exists, the operation returns an empty list. The service-specific credentials returned by this operation are used only for authenticating the IAM user to a specific service. For more information about using service-specific credentials to authenticate to an Amazon Web Services service, see Set up service-specific credentials in the CodeCommit User Guide.

Link copied to clipboard
abstract suspend fun listSigningCertificates(input: ListSigningCertificatesRequest = ListSigningCertificatesRequest { }): ListSigningCertificatesResponse

Returns information about the signing certificates associated with the specified IAM user. If none exists, the operation returns an empty list.

Link copied to clipboard
abstract suspend fun listSshPublicKeys(input: ListSshPublicKeysRequest = ListSshPublicKeysRequest { }): ListSshPublicKeysResponse

Returns information about the SSH public keys associated with the specified IAM user. If none exists, the operation returns an empty list.

Link copied to clipboard

Lists the names of the inline policies embedded in the specified IAM user.

Link copied to clipboard
abstract suspend fun listUsers(input: ListUsersRequest = ListUsersRequest { }): ListUsersResponse

Lists the IAM users that have the specified path prefix. If no path prefix is specified, the operation returns all users in the Amazon Web Services account. If there are none, the operation returns an empty list.

Link copied to clipboard

Lists the tags that are attached to the specified IAM user. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
abstract suspend fun listVirtualMfaDevices(input: ListVirtualMfaDevicesRequest = ListVirtualMfaDevicesRequest { }): ListVirtualMfaDevicesResponse

Lists the virtual MFA devices defined in the Amazon Web Services account by assignment status. If you do not specify an assignment status, the operation returns a list of all virtual MFA devices. Assignment status can be Assigned, Unassigned, or Any.

Link copied to clipboard

Adds or updates an inline policy document that is embedded in the specified IAM group.

Link copied to clipboard

Adds or updates the policy that is specified as the IAM role's permissions boundary. You can use an Amazon Web Services managed policy or a customer managed policy to set the boundary for a role. Use the boundary to control the maximum permissions that the role can have. Setting a permissions boundary is an advanced feature that can affect the permissions for the role.

Link copied to clipboard

Adds or updates an inline policy document that is embedded in the specified IAM role.

Link copied to clipboard

Adds or updates the policy that is specified as the IAM user's permissions boundary. You can use an Amazon Web Services managed policy or a customer managed policy to set the boundary for a user. Use the boundary to control the maximum permissions that the user can have. Setting a permissions boundary is an advanced feature that can affect the permissions for the user.

Link copied to clipboard

Adds or updates an inline policy document that is embedded in the specified IAM user.

Link copied to clipboard

Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.

Link copied to clipboard

Removes the specified IAM role from the specified Amazon EC2 instance profile.

Link copied to clipboard

Removes the specified user from the specified group.

Link copied to clipboard

Resets the password for a service-specific credential. The new password is Amazon Web Services generated and cryptographically strong. It cannot be configured by the user. Resetting the password immediately invalidates the previous password associated with this user.

Link copied to clipboard

Synchronizes the specified MFA device with its IAM resource object on the Amazon Web Services servers.

Link copied to clipboard

Sets the specified version of the specified policy as the policy's default (operative) version.

Link copied to clipboard

Sets the specified version of the global endpoint token as the token version used for the Amazon Web Services account.

Link copied to clipboard

Simulate how a set of IAM policies and optionally a resource-based policy works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions. The policies are provided as strings.

Link copied to clipboard

Simulate how a set of IAM policies attached to an IAM entity works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions. The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the policies that are attached to groups that the user belongs to. You can simulate resources that don't exist in your account.

Link copied to clipboard

Adds one or more tags to an IAM instance profile. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Adds one or more tags to an IAM virtual multi-factor authentication (MFA) device. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Adds one or more tags to an OpenID Connect (OIDC)-compatible identity provider. For more information about these providers, see About web identity federation. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard
abstract suspend fun tagPolicy(input: TagPolicyRequest): TagPolicyResponse

Adds one or more tags to an IAM customer managed policy. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard
abstract suspend fun tagRole(input: TagRoleRequest): TagRoleResponse

Adds one or more tags to an IAM role. The role can be a regular role or a service-linked role. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Adds one or more tags to a Security Assertion Markup Language (SAML) identity provider. For more information about these providers, see About SAML 2.0-based federation . If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Adds one or more tags to an IAM server certificate. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard
abstract suspend fun tagUser(input: TagUserRequest): TagUserResponse

Adds one or more tags to an IAM user. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Removes the specified tags from the IAM instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Removes the specified tags from the IAM virtual multi-factor authentication (MFA) device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Removes the specified tags from the specified OpenID Connect (OIDC)-compatible identity provider in IAM. For more information about OIDC providers, see About web identity federation. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
abstract suspend fun untagPolicy(input: UntagPolicyRequest): UntagPolicyResponse

Removes the specified tags from the customer managed policy. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
abstract suspend fun untagRole(input: UntagRoleRequest): UntagRoleResponse

Removes the specified tags from the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Removes the specified tags from the specified Security Assertion Markup Language (SAML) identity provider in IAM. For more information about these providers, see About web identity federation. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Removes the specified tags from the IAM server certificate. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
abstract suspend fun untagUser(input: UntagUserRequest): UntagUserResponse

Removes the specified tags from the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Changes the status of the specified access key from Active to Inactive, or vice versa. This operation can be used to disable a user's key as part of a key rotation workflow.

Link copied to clipboard
abstract suspend fun updateAccountPasswordPolicy(input: UpdateAccountPasswordPolicyRequest = UpdateAccountPasswordPolicyRequest { }): UpdateAccountPasswordPolicyResponse

Updates the password policy settings for the Amazon Web Services account.

Link copied to clipboard

Updates the policy that grants an IAM entity permission to assume a role. This is typically referred to as the "role trust policy". For more information about roles, see Using roles to delegate permissions and federate identities.

Link copied to clipboard
abstract suspend fun updateGroup(input: UpdateGroupRequest): UpdateGroupResponse

Updates the name and/or the path of the specified IAM group.

Link copied to clipboard

Changes the password for the specified IAM user. You can use the CLI, the Amazon Web Services API, or the Users page in the IAM console to change the password for any IAM user. Use ChangePassword to change your own password in the My Security Credentials page in the Amazon Web Services Management Console.

Link copied to clipboard

Replaces the existing list of server certificate thumbprints associated with an OpenID Connect (OIDC) provider resource object with a new list of thumbprints.

Link copied to clipboard
abstract suspend fun updateRole(input: UpdateRoleRequest): UpdateRoleResponse

Updates the description or maximum session duration setting of a role.

Link copied to clipboard
Link copied to clipboard

Updates the metadata document, SAML encryption settings, and private keys for an existing SAML provider. To rotate private keys, add your new private key and then remove the old key in a separate request.

Link copied to clipboard

Updates the name and/or the path of the specified server certificate stored in IAM.

Link copied to clipboard

Sets the status of a service-specific credential to Active or Inactive. Service-specific credentials that are inactive cannot be used for authentication to the service. This operation can be used to disable a user's service-specific credential as part of a credential rotation work flow.

Link copied to clipboard

Changes the status of the specified user signing certificate from active to disabled, or vice versa. This operation can be used to disable an IAM user's signing certificate as part of a certificate rotation work flow.

Link copied to clipboard

Sets the status of an IAM user's SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This operation can be used to disable a user's SSH public key as part of a key rotation work flow.

Link copied to clipboard
abstract suspend fun updateUser(input: UpdateUserRequest): UpdateUserResponse

Updates the name and/or the path of the specified IAM user.

Link copied to clipboard

Uploads a server certificate entity for the Amazon Web Services account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.

Link copied to clipboard

Uploads an X.509 signing certificate and associates it with the specified IAM user. Some Amazon Web Services services require you to use certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is Active.

Link copied to clipboard

Uploads an SSH public key and associates it with the specified IAM user.

Inherited functions

Link copied to clipboard

Adds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.

Link copied to clipboard

Adds the specified IAM role to the specified instance profile. An instance profile can contain only one role, and this quota cannot be increased. You can remove the existing role and then add a different role to an instance profile. You must then wait for the change to appear across all of Amazon Web Services because of eventual consistency. To force the change, you must disassociate the instance profile and then associate the instance profile, or you can stop your instance and then restart it.

Link copied to clipboard

Adds the specified user to the specified group.

Link copied to clipboard

Attaches the specified managed policy to the specified IAM group.

Link copied to clipboard

Attaches the specified managed policy to the specified IAM role. When you attach a managed policy to a role, the managed policy becomes part of the role's permission (access) policy.

Link copied to clipboard

Attaches the specified managed policy to the specified user.

Link copied to clipboard

Changes the password of the IAM user who is calling this operation. This operation can be performed using the CLI, the Amazon Web Services API, or the My Security Credentials page in the Amazon Web Services Management Console. The Amazon Web Services account root user password is not affected by this operation.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Creates a new Amazon Web Services secret access key and corresponding Amazon Web Services access key ID for the specified user. The default status for new keys is Active.

Link copied to clipboard

Creates an alias for your Amazon Web Services account. For information about using an Amazon Web Services account alias, see Creating, deleting, and listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User Guide.

Link copied to clipboard
inline suspend fun IamClient.createGroup(crossinline block: CreateGroupRequest.Builder.() -> Unit): CreateGroupResponse

Creates a new group.

Link copied to clipboard

Creates a new instance profile. For information about instance profiles, see Using roles for applications on Amazon EC2 in the IAM User Guide, and Instance profiles in the Amazon EC2 User Guide.

Link copied to clipboard

Creates a password for the specified IAM user. A password allows an IAM user to access Amazon Web Services services through the Amazon Web Services Management Console.

Link copied to clipboard

Creates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

Link copied to clipboard
inline suspend fun IamClient.createPolicy(crossinline block: CreatePolicyRequest.Builder.() -> Unit): CreatePolicyResponse

Creates a new managed policy for your Amazon Web Services account.

Link copied to clipboard

Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.

Link copied to clipboard
inline suspend fun IamClient.createRole(crossinline block: CreateRoleRequest.Builder.() -> Unit): CreateRoleResponse

Creates a new role for your Amazon Web Services account.

Link copied to clipboard

Creates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.

Link copied to clipboard

Creates an IAM role that is linked to a specific Amazon Web Services service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your Amazon Web Services resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed. For more information, see Using service-linked roles in the IAM User Guide.

Link copied to clipboard

Generates a set of credentials consisting of a user name and password that can be used to access the service specified in the request. These credentials are generated by IAM, and can be used only for the specified service.

Link copied to clipboard
inline suspend fun IamClient.createUser(crossinline block: CreateUserRequest.Builder.() -> Unit): CreateUserResponse

Creates a new IAM user for your Amazon Web Services account.

Link copied to clipboard

Creates a new virtual MFA device for the Amazon Web Services account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, see Using a virtual MFA device in the IAM User Guide.

Link copied to clipboard

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

Link copied to clipboard

Deletes the access key pair associated with the specified IAM user.

Link copied to clipboard

Deletes the specified Amazon Web Services account alias. For information about using an Amazon Web Services account alias, see Creating, deleting, and listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User Guide.

Link copied to clipboard

Deletes the password policy for the Amazon Web Services account. There are no parameters.

Link copied to clipboard
inline suspend fun IamClient.deleteGroup(crossinline block: DeleteGroupRequest.Builder.() -> Unit): DeleteGroupResponse

Deletes the specified IAM group. The group must not contain any users or have any attached policies.

Link copied to clipboard

Deletes the specified inline policy that is embedded in the specified IAM group.

Link copied to clipboard

Deletes the specified instance profile. The instance profile must not have an associated role.

Link copied to clipboard

Deletes the password for the specified IAM user or root user, For more information, see Managing passwords for IAM users.

Link copied to clipboard

Deletes an OpenID Connect identity provider (IdP) resource object in IAM.

Link copied to clipboard
inline suspend fun IamClient.deletePolicy(crossinline block: DeletePolicyRequest.Builder.() -> Unit): DeletePolicyResponse

Deletes the specified managed policy.

Link copied to clipboard

Deletes the specified version from the specified managed policy.

Link copied to clipboard
inline suspend fun IamClient.deleteRole(crossinline block: DeleteRoleRequest.Builder.() -> Unit): DeleteRoleResponse

Deletes the specified role. Unlike the Amazon Web Services Management Console, when you delete a role programmatically, you must delete the items attached to the role manually, or the deletion fails. For more information, see Deleting an IAM role. Before attempting to delete a role, remove the following attached items:

Link copied to clipboard

Deletes the permissions boundary for the specified IAM role.

Link copied to clipboard

Deletes the specified inline policy that is embedded in the specified IAM role.

Link copied to clipboard

Deletes a SAML provider resource in IAM.

Link copied to clipboard

Deletes the specified server certificate.

Link copied to clipboard

Submits a service-linked role deletion request and returns a DeletionTaskId, which you can use to check the status of the deletion. Before you call this operation, confirm that the role has no active sessions and that any resources used by the role in the linked service are deleted. If you call this operation more than once for the same service-linked role and an earlier deletion task is not complete, then the DeletionTaskId of the earlier request is returned.

Link copied to clipboard

Deletes the specified service-specific credential.

Link copied to clipboard

Deletes a signing certificate associated with the specified IAM user.

Link copied to clipboard

Deletes the specified SSH public key.

Link copied to clipboard
inline suspend fun IamClient.deleteUser(crossinline block: DeleteUserRequest.Builder.() -> Unit): DeleteUserResponse

Deletes the specified IAM user. Unlike the Amazon Web Services Management Console, when you delete a user programmatically, you must delete the items attached to the user manually, or the deletion fails. For more information, see Deleting an IAM user. Before attempting to delete a user, remove the following items:

Link copied to clipboard

Deletes the permissions boundary for the specified IAM user.

Link copied to clipboard

Deletes the specified inline policy that is embedded in the specified IAM user.

Link copied to clipboard

Deletes a virtual MFA device.

Link copied to clipboard

Removes the specified managed policy from the specified IAM group.

Link copied to clipboard

Removes the specified managed policy from the specified role.

Link copied to clipboard

Removes the specified managed policy from the specified user.

Disables the management of privileged root user credentials across member accounts in your organization. When you disable this feature, the management account and the delegated administrator for IAM can no longer manage root user credentials for member accounts in your organization.

Link copied to clipboard

Disables root user sessions for privileged tasks across member accounts in your organization. When you disable this feature, the management account and the delegated administrator for IAM can no longer perform privileged tasks on member accounts in your organization.

Link copied to clipboard

Enables the specified MFA device and associates it with the specified IAM user. When enabled, the MFA device is required for every subsequent login by the IAM user associated with the device.

Enables the management of privileged root user credentials across member accounts in your organization. When you enable root credentials management for centralized root access, the management account and the delegated administrator for IAM can manage root user credentials for member accounts in your organization.

Link copied to clipboard

Allows the management account or delegated administrator to perform privileged tasks on member accounts in your organization. For more information, see Centrally manage root access for member accounts in the Identity and Access Management User Guide.

Link copied to clipboard

Generates a credential report for the Amazon Web Services account. For more information about the credential report, see Getting credential reports in the IAM User Guide.

Link copied to clipboard

Generates a report for service last accessed data for Organizations. You can generate a report for any entities (organization root, organizational unit, or account) or policies in your organization.

Link copied to clipboard

Generates a report that includes details about when an IAM resource (user, group, role, or policy) was last used in an attempt to access Amazon Web Services services. Recent activity usually appears within four hours. IAM reports activity for at least the last 400 days, or less if your Region began supporting this feature within the last year. For more information, see Regions where data is tracked. For more information about services and actions for which action last accessed information is displayed, see IAM action last accessed information services and actions.

Link copied to clipboard

Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the Amazon Web Services service and Region that were specified in the last request made with that key.

Link copied to clipboard

Retrieves information about all IAM users, groups, roles, and policies in your Amazon Web Services account, including their relationships to one another. Use this operation to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.

Link copied to clipboard

Retrieves the password policy for the Amazon Web Services account. This tells you the complexity requirements and mandatory rotation periods for the IAM user passwords in your account. For more information about using a password policy, see Managing an IAM password policy.

Link copied to clipboard

Retrieves information about IAM entity usage and IAM quotas in the Amazon Web Services account.

Link copied to clipboard

Gets a list of all of the context keys referenced in the input policies. The policies are supplied as a list of one or more strings. To get the context keys from policies associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy.

Link copied to clipboard

Gets a list of all of the context keys referenced in all the IAM policies that are attached to the specified IAM entity. The entity can be an IAM user, group, or role. If you specify a user, then the request also includes all of the policies attached to groups that the user is a member of.

Link copied to clipboard

Retrieves a credential report for the Amazon Web Services account. For more information about the credential report, see Getting credential reports in the IAM User Guide.

Link copied to clipboard
inline suspend fun IamClient.getGroup(crossinline block: GetGroupRequest.Builder.() -> Unit): GetGroupResponse

Returns a list of IAM users that are in the specified IAM group. You can paginate the results using the MaxItems and Marker parameters.

Link copied to clipboard
Link copied to clipboard

Retrieves the specified inline policy document that is embedded in the specified IAM group.

Link copied to clipboard

Retrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role. For more information about instance profiles, see Using instance profiles in the IAM User Guide.

Link copied to clipboard

Retrieves the user name for the specified IAM user. A login profile is created when you create a password for the user to access the Amazon Web Services Management Console. If the user does not exist or does not have a password, the operation returns a 404 (NoSuchEntity) error.

Link copied to clipboard
inline suspend fun IamClient.getMfaDevice(crossinline block: GetMfaDeviceRequest.Builder.() -> Unit): GetMfaDeviceResponse

Retrieves information about an MFA device for a specified user.

Link copied to clipboard

Returns information about the specified OpenID Connect (OIDC) provider resource object in IAM.

Link copied to clipboard

Retrieves the service last accessed data report for Organizations that was previously generated using the <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_GenerateOrganizationsAccessReport.html">GenerateOrganizationsAccessReport</a> operation. This operation retrieves the status of your report job and the report contents.

Link copied to clipboard
inline suspend fun IamClient.getPolicy(crossinline block: GetPolicyRequest.Builder.() -> Unit): GetPolicyResponse

Retrieves information about the specified managed policy, including the policy's default version and the total number of IAM users, groups, and roles to which the policy is attached. To retrieve the list of the specific users, groups, and roles that the policy is attached to, use ListEntitiesForPolicy. This operation returns metadata about the policy. To retrieve the actual policy document for a specific version of the policy, use GetPolicyVersion.

Link copied to clipboard

Retrieves information about the specified version of the specified managed policy, including the policy document.

Link copied to clipboard
inline suspend fun IamClient.getRole(crossinline block: GetRoleRequest.Builder.() -> Unit): GetRoleResponse

Retrieves information about the specified role, including the role's path, GUID, ARN, and the role's trust policy that grants permission to assume the role. For more information about roles, see IAM roles in the IAM User Guide.

Link copied to clipboard
inline suspend fun IamClient.getRolePolicy(crossinline block: GetRolePolicyRequest.Builder.() -> Unit): GetRolePolicyResponse

Retrieves the specified inline policy document that is embedded with the specified IAM role.

Link copied to clipboard

Returns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated.

Link copied to clipboard

Retrieves information about the specified server certificate stored in IAM.

Link copied to clipboard

Retrieves a service last accessed report that was created using the GenerateServiceLastAccessedDetails operation. You can use the JobId parameter in GetServiceLastAccessedDetails to retrieve the status of your report job. When the report is complete, you can retrieve the generated report. The report includes a list of Amazon Web Services services that the resource (user, group, role, or managed policy) can access.

After you generate a group or policy report using the GenerateServiceLastAccessedDetails operation, you can use the JobId parameter in GetServiceLastAccessedDetailsWithEntities. This operation retrieves the status of your report job and a list of entities that could have used group or policy permissions to access the specified service.

Link copied to clipboard

Retrieves the status of your service-linked role deletion. After you use DeleteServiceLinkedRole to submit a service-linked role for deletion, you can use the DeletionTaskId parameter in GetServiceLinkedRoleDeletionStatus to check the status of the deletion. If the deletion fails, this operation returns the reason that it failed, if that information is returned by the service.

Link copied to clipboard

Retrieves the specified SSH public key, including metadata about the key.

Link copied to clipboard
inline suspend fun IamClient.getUser(crossinline block: GetUserRequest.Builder.() -> Unit): GetUserResponse

Retrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.

Link copied to clipboard
inline suspend fun IamClient.getUserPolicy(crossinline block: GetUserPolicyRequest.Builder.() -> Unit): GetUserPolicyResponse

Retrieves the specified inline policy document that is embedded in the specified IAM user.

Link copied to clipboard

Returns information about the access key IDs associated with the specified IAM user. If there is none, the operation returns an empty list.

Link copied to clipboard
Link copied to clipboard

Lists the account alias associated with the Amazon Web Services account (Note: you can have only one). For information about using an Amazon Web Services account alias, see Creating, deleting, and listing an Amazon Web Services account alias in the IAM User Guide.

Link copied to clipboard

Lists all managed policies that are attached to the specified IAM group.

Link copied to clipboard

Lists all managed policies that are attached to the specified IAM role.

Link copied to clipboard

Lists all managed policies that are attached to the specified IAM user.

Link copied to clipboard

Lists all IAM users, groups, and roles that the specified managed policy is attached to.

Link copied to clipboard

Lists the names of the inline policies that are embedded in the specified IAM group.

Link copied to clipboard
inline suspend fun IamClient.listGroups(crossinline block: ListGroupsRequest.Builder.() -> Unit): ListGroupsResponse

Lists the IAM groups that have the specified path prefix.

Link copied to clipboard

Lists the IAM groups that the specified IAM user belongs to.

Link copied to clipboard
fun IamClient.listGroupsPaginated(initialRequest: ListGroupsRequest = ListGroupsRequest { }): Flow<ListGroupsResponse>

Paginate over ListGroupsResponse results.

Link copied to clipboard

Lists the instance profiles that have the specified path prefix. If there are none, the operation returns an empty list. For more information about instance profiles, see Using instance profiles in the IAM User Guide.

Link copied to clipboard

Lists the instance profiles that have the specified associated IAM role. If there are none, the operation returns an empty list. For more information about instance profiles, go to Using instance profiles in the IAM User Guide.

Link copied to clipboard

Lists the tags that are attached to the specified IAM instance profile. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Lists the MFA devices for an IAM user. If the request includes a IAM user name, then this operation lists all the MFA devices associated with the specified user. If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request for this operation.

Link copied to clipboard
Link copied to clipboard

Lists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services account.

Link copied to clipboard

Lists the tags that are attached to the specified OpenID Connect (OIDC)-compatible identity provider. The returned list of tags is sorted by tag key. For more information, see About web identity federation.

Link copied to clipboard

Lists the centralized root access features enabled for your organization. For more information, see Centrally manage root access for member accounts.

Link copied to clipboard
inline suspend fun IamClient.listPolicies(crossinline block: ListPoliciesRequest.Builder.() -> Unit): ListPoliciesResponse

Lists all the managed policies that are available in your Amazon Web Services account, including your own customer-defined managed policies and all Amazon Web Services managed policies.

Link copied to clipboard

Retrieves a list of policies that the IAM identity (user, group, or role) can use to access each specified service.

Link copied to clipboard
Link copied to clipboard

Lists the tags that are attached to the specified IAM customer managed policy. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Lists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.

Link copied to clipboard

Lists the names of the inline policies that are embedded in the specified IAM role.

Link copied to clipboard
inline suspend fun IamClient.listRoles(crossinline block: ListRolesRequest.Builder.() -> Unit): ListRolesResponse

Lists the IAM roles that have the specified path prefix. If there are none, the operation returns an empty list. For more information about roles, see IAM roles in the IAM User Guide.

Link copied to clipboard
fun IamClient.listRolesPaginated(initialRequest: ListRolesRequest = ListRolesRequest { }): Flow<ListRolesResponse>

Paginate over ListRolesResponse results.

Link copied to clipboard
inline suspend fun IamClient.listRoleTags(crossinline block: ListRoleTagsRequest.Builder.() -> Unit): ListRoleTagsResponse

Lists the tags that are attached to the specified role. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Lists the SAML provider resource objects defined in IAM in the account. IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view all of the information for a SAML provider, see GetSAMLProvider.

Link copied to clipboard

Lists the tags that are attached to the specified Security Assertion Markup Language (SAML) identity provider. The returned list of tags is sorted by tag key. For more information, see About SAML 2.0-based federation.

Link copied to clipboard

Lists the server certificates stored in IAM that have the specified path prefix. If none exist, the operation returns an empty list.

Link copied to clipboard

Lists the tags that are attached to the specified IAM server certificate. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Returns information about the service-specific credentials associated with the specified IAM user. If none exists, the operation returns an empty list. The service-specific credentials returned by this operation are used only for authenticating the IAM user to a specific service. For more information about using service-specific credentials to authenticate to an Amazon Web Services service, see Set up service-specific credentials in the CodeCommit User Guide.

Link copied to clipboard

Returns information about the signing certificates associated with the specified IAM user. If none exists, the operation returns an empty list.

Link copied to clipboard

Returns information about the SSH public keys associated with the specified IAM user. If none exists, the operation returns an empty list.

Link copied to clipboard

Lists the names of the inline policies embedded in the specified IAM user.

Link copied to clipboard
inline suspend fun IamClient.listUsers(crossinline block: ListUsersRequest.Builder.() -> Unit): ListUsersResponse

Lists the IAM users that have the specified path prefix. If no path prefix is specified, the operation returns all users in the Amazon Web Services account. If there are none, the operation returns an empty list.

Link copied to clipboard
fun IamClient.listUsersPaginated(initialRequest: ListUsersRequest = ListUsersRequest { }): Flow<ListUsersResponse>

Paginate over ListUsersResponse results.

Link copied to clipboard
inline suspend fun IamClient.listUserTags(crossinline block: ListUserTagsRequest.Builder.() -> Unit): ListUserTagsResponse

Lists the tags that are attached to the specified IAM user. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Lists the virtual MFA devices defined in the Amazon Web Services account by assignment status. If you do not specify an assignment status, the operation returns a list of all virtual MFA devices. Assignment status can be Assigned, Unassigned, or Any.

Link copied to clipboard

Adds or updates an inline policy document that is embedded in the specified IAM group.

Link copied to clipboard

Adds or updates the policy that is specified as the IAM role's permissions boundary. You can use an Amazon Web Services managed policy or a customer managed policy to set the boundary for a role. Use the boundary to control the maximum permissions that the role can have. Setting a permissions boundary is an advanced feature that can affect the permissions for the role.

Link copied to clipboard
inline suspend fun IamClient.putRolePolicy(crossinline block: PutRolePolicyRequest.Builder.() -> Unit): PutRolePolicyResponse

Adds or updates an inline policy document that is embedded in the specified IAM role.

Link copied to clipboard

Adds or updates the policy that is specified as the IAM user's permissions boundary. You can use an Amazon Web Services managed policy or a customer managed policy to set the boundary for a user. Use the boundary to control the maximum permissions that the user can have. Setting a permissions boundary is an advanced feature that can affect the permissions for the user.

Link copied to clipboard
inline suspend fun IamClient.putUserPolicy(crossinline block: PutUserPolicyRequest.Builder.() -> Unit): PutUserPolicyResponse

Adds or updates an inline policy document that is embedded in the specified IAM user.

Link copied to clipboard

Removes the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.

Link copied to clipboard

Removes the specified IAM role from the specified Amazon EC2 instance profile.

Link copied to clipboard

Removes the specified user from the specified group.

Link copied to clipboard

Resets the password for a service-specific credential. The new password is Amazon Web Services generated and cryptographically strong. It cannot be configured by the user. Resetting the password immediately invalidates the previous password associated with this user.

Link copied to clipboard

Synchronizes the specified MFA device with its IAM resource object on the Amazon Web Services servers.

Link copied to clipboard

Sets the specified version of the specified policy as the policy's default (operative) version.

Link copied to clipboard

Sets the specified version of the global endpoint token as the token version used for the Amazon Web Services account.

Link copied to clipboard

Simulate how a set of IAM policies and optionally a resource-based policy works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions. The policies are provided as strings.

Link copied to clipboard

Simulate how a set of IAM policies attached to an IAM entity works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions. The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the policies that are attached to groups that the user belongs to. You can simulate resources that don't exist in your account.

Link copied to clipboard

Adds one or more tags to an IAM instance profile. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard
inline suspend fun IamClient.tagMfaDevice(crossinline block: TagMfaDeviceRequest.Builder.() -> Unit): TagMfaDeviceResponse

Adds one or more tags to an IAM virtual multi-factor authentication (MFA) device. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Adds one or more tags to an OpenID Connect (OIDC)-compatible identity provider. For more information about these providers, see About web identity federation. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard
inline suspend fun IamClient.tagPolicy(crossinline block: TagPolicyRequest.Builder.() -> Unit): TagPolicyResponse

Adds one or more tags to an IAM customer managed policy. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard
inline suspend fun IamClient.tagRole(crossinline block: TagRoleRequest.Builder.() -> Unit): TagRoleResponse

Adds one or more tags to an IAM role. The role can be a regular role or a service-linked role. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Adds one or more tags to a Security Assertion Markup Language (SAML) identity provider. For more information about these providers, see About SAML 2.0-based federation . If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Adds one or more tags to an IAM server certificate. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard
inline suspend fun IamClient.tagUser(crossinline block: TagUserRequest.Builder.() -> Unit): TagUserResponse

Adds one or more tags to an IAM user. If a tag with the same key name already exists, then that tag is overwritten with the new value.

Link copied to clipboard

Removes the specified tags from the IAM instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Removes the specified tags from the IAM virtual multi-factor authentication (MFA) device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Removes the specified tags from the specified OpenID Connect (OIDC)-compatible identity provider in IAM. For more information about OIDC providers, see About web identity federation. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
inline suspend fun IamClient.untagPolicy(crossinline block: UntagPolicyRequest.Builder.() -> Unit): UntagPolicyResponse

Removes the specified tags from the customer managed policy. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
inline suspend fun IamClient.untagRole(crossinline block: UntagRoleRequest.Builder.() -> Unit): UntagRoleResponse

Removes the specified tags from the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Removes the specified tags from the specified Security Assertion Markup Language (SAML) identity provider in IAM. For more information about these providers, see About web identity federation. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Removes the specified tags from the IAM server certificate. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard
inline suspend fun IamClient.untagUser(crossinline block: UntagUserRequest.Builder.() -> Unit): UntagUserResponse

Removes the specified tags from the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Link copied to clipboard

Changes the status of the specified access key from Active to Inactive, or vice versa. This operation can be used to disable a user's key as part of a key rotation workflow.

Link copied to clipboard

Updates the password policy settings for the Amazon Web Services account.

Link copied to clipboard

Updates the policy that grants an IAM entity permission to assume a role. This is typically referred to as the "role trust policy". For more information about roles, see Using roles to delegate permissions and federate identities.

Link copied to clipboard
inline suspend fun IamClient.updateGroup(crossinline block: UpdateGroupRequest.Builder.() -> Unit): UpdateGroupResponse

Updates the name and/or the path of the specified IAM group.

Link copied to clipboard

Changes the password for the specified IAM user. You can use the CLI, the Amazon Web Services API, or the Users page in the IAM console to change the password for any IAM user. Use ChangePassword to change your own password in the My Security Credentials page in the Amazon Web Services Management Console.

Link copied to clipboard

Replaces the existing list of server certificate thumbprints associated with an OpenID Connect (OIDC) provider resource object with a new list of thumbprints.

Link copied to clipboard
inline suspend fun IamClient.updateRole(crossinline block: UpdateRoleRequest.Builder.() -> Unit): UpdateRoleResponse

Updates the description or maximum session duration setting of a role.

Link copied to clipboard
Link copied to clipboard

Updates the metadata document, SAML encryption settings, and private keys for an existing SAML provider. To rotate private keys, add your new private key and then remove the old key in a separate request.

Link copied to clipboard

Updates the name and/or the path of the specified server certificate stored in IAM.

Link copied to clipboard

Sets the status of a service-specific credential to Active or Inactive. Service-specific credentials that are inactive cannot be used for authentication to the service. This operation can be used to disable a user's service-specific credential as part of a credential rotation work flow.

Link copied to clipboard

Changes the status of the specified user signing certificate from active to disabled, or vice versa. This operation can be used to disable an IAM user's signing certificate as part of a certificate rotation work flow.

Link copied to clipboard

Sets the status of an IAM user's SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This operation can be used to disable a user's SSH public key as part of a key rotation work flow.

Link copied to clipboard
inline suspend fun IamClient.updateUser(crossinline block: UpdateUserRequest.Builder.() -> Unit): UpdateUserResponse

Updates the name and/or the path of the specified IAM user.

Link copied to clipboard

Uploads a server certificate entity for the Amazon Web Services account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.

Link copied to clipboard

Uploads an X.509 signing certificate and associates it with the specified IAM user. Some Amazon Web Services services require you to use certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is Active.

Link copied to clipboard

Uploads an SSH public key and associates it with the specified IAM user.

Link copied to clipboard
suspend fun IamClient.waitUntilUserExists(request: GetUserRequest = GetUserRequest { }, retryStrategy: RetryStrategy? = null): Outcome<GetUserResponse>
Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.