Interface IamClient

    • Method Detail

      • createAccessKey

        default CreateAccessKeyResponse createAccessKey​(CreateAccessKeyRequest createAccessKeyRequest)
                                                 throws NoSuchEntityException,
                                                        LimitExceededException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        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. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials. This is true even if the Amazon Web Services account has no associated users.

        For information about quotas on the number of keys you can create, see IAM and STS quotas in the IAM User Guide.

        To ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.

        Parameters:
        createAccessKeyRequest -
        Returns:
        Result of the CreateAccessKey operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • createAccessKey

        default CreateAccessKeyResponse createAccessKey​(Consumer<CreateAccessKeyRequest.Builder> createAccessKeyRequest)
                                                 throws NoSuchEntityException,
                                                        LimitExceededException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        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. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials. This is true even if the Amazon Web Services account has no associated users.

        For information about quotas on the number of keys you can create, see IAM and STS quotas in the IAM User Guide.

        To ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.


        This is a convenience which creates an instance of the CreateAccessKeyRequest.Builder avoiding the need to create one manually via CreateAccessKeyRequest.builder()

        Parameters:
        createAccessKeyRequest - A Consumer that will call methods on CreateAccessKeyRequest.Builder to create a request.
        Returns:
        Result of the CreateAccessKey operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • createAccessKey

        default CreateAccessKeyResponse createAccessKey()
                                                 throws NoSuchEntityException,
                                                        LimitExceededException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        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. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials. This is true even if the Amazon Web Services account has no associated users.

        For information about quotas on the number of keys you can create, see IAM and STS quotas in the IAM User Guide.

        To ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.

        Returns:
        Result of the CreateAccessKey operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        createAccessKey(CreateAccessKeyRequest), AWS API Documentation
      • createOpenIDConnectProvider

        default CreateOpenIdConnectProviderResponse createOpenIDConnectProvider​(CreateOpenIdConnectProviderRequest createOpenIdConnectProviderRequest)
                                                                         throws InvalidInputException,
                                                                                EntityAlreadyExistsException,
                                                                                LimitExceededException,
                                                                                ConcurrentModificationException,
                                                                                ServiceFailureException,
                                                                                OpenIdIdpCommunicationErrorException,
                                                                                AwsServiceException,
                                                                                SdkClientException,
                                                                                IamException

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

        The OIDC provider that you create with this operation can be used as a principal in a role's trust policy. Such a policy establishes a trust relationship between Amazon Web Services and the OIDC provider.

        If you are using an OIDC identity provider from Google, Facebook, or Amazon Cognito, you don't need to create a separate IAM identity provider. These OIDC identity providers are already built-in to Amazon Web Services and are available for your use. Instead, you can move directly to creating new roles using your identity provider. To learn more, see Creating a role for web identity or OpenID connect federation in the IAM User Guide.

        When you create the IAM OIDC provider, you specify the following:

        • The URL of the OIDC identity provider (IdP) to trust

        • A list of client IDs (also known as audiences) that identify the application or applications allowed to authenticate using the OIDC provider

        • A list of tags that are attached to the specified IAM OIDC provider

        • A list of thumbprints of one or more server certificates that the IdP uses

        You get all of this information from the OIDC IdP you want to use to access Amazon Web Services.

        Amazon Web Services secures communication with OIDC identity providers (IdPs) using our library of trusted root certificate authorities (CAs) to verify the JSON Web Key Set (JWKS) endpoint's TLS certificate. If your OIDC IdP relies on a certificate that is not signed by one of these trusted CAs, only then we secure communication using the thumbprints set in the IdP's configuration.

        The trust for the OIDC provider is derived from the IAM provider that this operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged users.

        Parameters:
        createOpenIdConnectProviderRequest -
        Returns:
        Result of the CreateOpenIDConnectProvider operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        EntityAlreadyExistsException - The request was rejected because it attempted to create a resource that already exists.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        OpenIdIdpCommunicationErrorException - The request failed because IAM cannot connect to the OpenID Connect identity provider URL.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • createOpenIDConnectProvider

        default CreateOpenIdConnectProviderResponse createOpenIDConnectProvider​(Consumer<CreateOpenIdConnectProviderRequest.Builder> createOpenIdConnectProviderRequest)
                                                                         throws InvalidInputException,
                                                                                EntityAlreadyExistsException,
                                                                                LimitExceededException,
                                                                                ConcurrentModificationException,
                                                                                ServiceFailureException,
                                                                                OpenIdIdpCommunicationErrorException,
                                                                                AwsServiceException,
                                                                                SdkClientException,
                                                                                IamException

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

        The OIDC provider that you create with this operation can be used as a principal in a role's trust policy. Such a policy establishes a trust relationship between Amazon Web Services and the OIDC provider.

        If you are using an OIDC identity provider from Google, Facebook, or Amazon Cognito, you don't need to create a separate IAM identity provider. These OIDC identity providers are already built-in to Amazon Web Services and are available for your use. Instead, you can move directly to creating new roles using your identity provider. To learn more, see Creating a role for web identity or OpenID connect federation in the IAM User Guide.

        When you create the IAM OIDC provider, you specify the following:

        • The URL of the OIDC identity provider (IdP) to trust

        • A list of client IDs (also known as audiences) that identify the application or applications allowed to authenticate using the OIDC provider

        • A list of tags that are attached to the specified IAM OIDC provider

        • A list of thumbprints of one or more server certificates that the IdP uses

        You get all of this information from the OIDC IdP you want to use to access Amazon Web Services.

        Amazon Web Services secures communication with OIDC identity providers (IdPs) using our library of trusted root certificate authorities (CAs) to verify the JSON Web Key Set (JWKS) endpoint's TLS certificate. If your OIDC IdP relies on a certificate that is not signed by one of these trusted CAs, only then we secure communication using the thumbprints set in the IdP's configuration.

        The trust for the OIDC provider is derived from the IAM provider that this operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged users.


        This is a convenience which creates an instance of the CreateOpenIdConnectProviderRequest.Builder avoiding the need to create one manually via CreateOpenIdConnectProviderRequest.builder()

        Parameters:
        createOpenIdConnectProviderRequest - A Consumer that will call methods on CreateOpenIdConnectProviderRequest.Builder to create a request.
        Returns:
        Result of the CreateOpenIDConnectProvider operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        EntityAlreadyExistsException - The request was rejected because it attempted to create a resource that already exists.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        OpenIdIdpCommunicationErrorException - The request failed because IAM cannot connect to the OpenID Connect identity provider URL.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • createServiceLinkedRole

        default CreateServiceLinkedRoleResponse createServiceLinkedRole​(CreateServiceLinkedRoleRequest createServiceLinkedRoleRequest)
                                                                 throws InvalidInputException,
                                                                        LimitExceededException,
                                                                        NoSuchEntityException,
                                                                        ServiceFailureException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

        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.

        To attach a policy to this service-linked role, you must make the request using the Amazon Web Services service that depends on this role.

        Parameters:
        createServiceLinkedRoleRequest -
        Returns:
        Result of the CreateServiceLinkedRole operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteAccessKey

        default DeleteAccessKeyResponse deleteAccessKey​(DeleteAccessKeyRequest deleteAccessKeyRequest)
                                                 throws NoSuchEntityException,
                                                        LimitExceededException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        Deletes the access key pair associated with the specified IAM 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. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.

        Parameters:
        deleteAccessKeyRequest -
        Returns:
        Result of the DeleteAccessKey operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteInstanceProfile

        default DeleteInstanceProfileResponse deleteInstanceProfile​(DeleteInstanceProfileRequest deleteInstanceProfileRequest)
                                                             throws NoSuchEntityException,
                                                                    DeleteConflictException,
                                                                    LimitExceededException,
                                                                    ServiceFailureException,
                                                                    AwsServiceException,
                                                                    SdkClientException,
                                                                    IamException

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

        Make sure that you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

        For more information about instance profiles, see Using instance profiles in the IAM User Guide.

        Parameters:
        deleteInstanceProfileRequest -
        Returns:
        Result of the DeleteInstanceProfile operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        DeleteConflictException - The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteLoginProfile

        default DeleteLoginProfileResponse deleteLoginProfile​(DeleteLoginProfileRequest deleteLoginProfileRequest)
                                                       throws EntityTemporarilyUnmodifiableException,
                                                              NoSuchEntityException,
                                                              LimitExceededException,
                                                              ServiceFailureException,
                                                              AwsServiceException,
                                                              SdkClientException,
                                                              IamException

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

        You can use the CLI, the Amazon Web Services API, or the Users page in the IAM console to delete a password for any IAM user. You can use ChangePassword to update, but not delete, your own password in the My Security Credentials page in the Amazon Web Services Management Console.

        Deleting a user's password does not prevent a user from accessing Amazon Web Services through the command line interface or the API. To prevent all user access, you must also either make any access keys inactive or delete them. For more information about making keys inactive or deleting them, see UpdateAccessKey and DeleteAccessKey.

        Parameters:
        deleteLoginProfileRequest -
        Returns:
        Result of the DeleteLoginProfile operation returned by the service.
        Throws:
        EntityTemporarilyUnmodifiableException - The request was rejected because it referenced an entity that is temporarily unmodifiable, such as a user name that was deleted and then recreated. The error indicates that the request is likely to succeed if you try again after waiting several minutes. The error message describes the entity.
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteOpenIDConnectProvider

        default DeleteOpenIdConnectProviderResponse deleteOpenIDConnectProvider​(DeleteOpenIdConnectProviderRequest deleteOpenIdConnectProviderRequest)
                                                                         throws InvalidInputException,
                                                                                NoSuchEntityException,
                                                                                ServiceFailureException,
                                                                                AwsServiceException,
                                                                                SdkClientException,
                                                                                IamException

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

        Deleting an IAM OIDC provider resource does not update any roles that reference the provider as a principal in their trust policies. Any attempt to assume a role that references a deleted provider fails.

        This operation is idempotent; it does not fail or return an error if you call the operation for a provider that does not exist.

        Parameters:
        deleteOpenIdConnectProviderRequest -
        Returns:
        Result of the DeleteOpenIDConnectProvider operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteRole

        default DeleteRoleResponse deleteRole​(DeleteRoleRequest deleteRoleRequest)
                                       throws NoSuchEntityException,
                                              DeleteConflictException,
                                              LimitExceededException,
                                              UnmodifiableEntityException,
                                              ConcurrentModificationException,
                                              ServiceFailureException,
                                              AwsServiceException,
                                              SdkClientException,
                                              IamException

        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:

        Make sure that you do not have any Amazon EC2 instances running with the role you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

        Parameters:
        deleteRoleRequest -
        Returns:
        Result of the DeleteRole operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        DeleteConflictException - The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        UnmodifiableEntityException - The request was rejected because service-linked roles are protected Amazon Web Services resources. Only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteRolePermissionsBoundary

        default DeleteRolePermissionsBoundaryResponse deleteRolePermissionsBoundary​(DeleteRolePermissionsBoundaryRequest deleteRolePermissionsBoundaryRequest)
                                                                             throws NoSuchEntityException,
                                                                                    UnmodifiableEntityException,
                                                                                    ServiceFailureException,
                                                                                    AwsServiceException,
                                                                                    SdkClientException,
                                                                                    IamException

        Deletes the permissions boundary for the specified IAM role.

        You cannot set the boundary for a service-linked role.

        Deleting the permissions boundary for a role might increase its permissions. For example, it might allow anyone who assumes the role to perform all the actions granted in its permissions policies.

        Parameters:
        deleteRolePermissionsBoundaryRequest -
        Returns:
        Result of the DeleteRolePermissionsBoundary operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        UnmodifiableEntityException - The request was rejected because service-linked roles are protected Amazon Web Services resources. Only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteSSHPublicKey

        default DeleteSshPublicKeyResponse deleteSSHPublicKey​(DeleteSshPublicKeyRequest deleteSshPublicKeyRequest)
                                                       throws NoSuchEntityException,
                                                              AwsServiceException,
                                                              SdkClientException,
                                                              IamException

        Deletes the specified SSH public key.

        The SSH public key deleted by this operation is used only for authenticating the associated IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see Set up CodeCommit for SSH connections in the CodeCommit User Guide.

        Parameters:
        deleteSshPublicKeyRequest -
        Returns:
        Result of the DeleteSSHPublicKey operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteServerCertificate

        default DeleteServerCertificateResponse deleteServerCertificate​(DeleteServerCertificateRequest deleteServerCertificateRequest)
                                                                 throws NoSuchEntityException,
                                                                        DeleteConflictException,
                                                                        LimitExceededException,
                                                                        ServiceFailureException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

        Deletes the specified server certificate.

        For more information about working with server certificates, see Working with server certificates in the IAM User Guide. This topic also includes a list of Amazon Web Services services that can use the server certificates that you manage with IAM.

        If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn't detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, see DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.

        Parameters:
        deleteServerCertificateRequest -
        Returns:
        Result of the DeleteServerCertificate operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        DeleteConflictException - The request was rejected because it attempted to delete a resource that has attached subordinate entities. The error message describes these entities.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteServiceLinkedRole

        default DeleteServiceLinkedRoleResponse deleteServiceLinkedRole​(DeleteServiceLinkedRoleRequest deleteServiceLinkedRoleRequest)
                                                                 throws NoSuchEntityException,
                                                                        LimitExceededException,
                                                                        ServiceFailureException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

        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.

        If you submit a deletion request for a service-linked role whose linked service is still accessing a resource, then the deletion task fails. If it fails, the GetServiceLinkedRoleDeletionStatus operation returns the reason for the failure, usually including the resources that must be deleted. To delete the service-linked role, you must first remove those resources from the linked service and then submit the deletion request again. Resources are specific to the service that is linked to the role. For more information about removing resources from a service, see the Amazon Web Services documentation for your service.

        For more information about service-linked roles, see Roles terms and concepts: Amazon Web Services service-linked role in the IAM User Guide.

        Parameters:
        deleteServiceLinkedRoleRequest -
        Returns:
        Result of the DeleteServiceLinkedRole operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • deleteSigningCertificate

        default DeleteSigningCertificateResponse deleteSigningCertificate​(DeleteSigningCertificateRequest deleteSigningCertificateRequest)
                                                                   throws NoSuchEntityException,
                                                                          LimitExceededException,
                                                                          ConcurrentModificationException,
                                                                          ServiceFailureException,
                                                                          AwsServiceException,
                                                                          SdkClientException,
                                                                          IamException

        Deletes a signing certificate associated with the specified IAM 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. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated IAM users.

        Parameters:
        deleteSigningCertificateRequest -
        Returns:
        Result of the DeleteSigningCertificate operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • generateOrganizationsAccessReport

        default GenerateOrganizationsAccessReportResponse generateOrganizationsAccessReport​(GenerateOrganizationsAccessReportRequest generateOrganizationsAccessReportRequest)
                                                                                     throws ReportGenerationLimitExceededException,
                                                                                            AwsServiceException,
                                                                                            SdkClientException,
                                                                                            IamException

        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.

        To call this operation, you must be signed in using your Organizations management account credentials. You can use your long-term IAM user or root user credentials, or temporary credentials from assuming an IAM role. SCPs must be enabled for your organization root. You must have the required IAM and Organizations permissions. For more information, see Refining permissions using service last accessed data in the IAM User Guide.

        You can generate a service last accessed data report for entities by specifying only the entity's path. This data includes a list of services that are allowed by any service control policies (SCPs) that apply to the entity.

        You can generate a service last accessed data report for a policy by specifying an entity's path and an optional Organizations policy ID. This data includes a list of services that are allowed by the specified SCP.

        For each service in both report types, the data includes the most recent account activity that the policy allows to account principals in the entity or the entity's children. For important information about the data, reporting period, permissions required, troubleshooting, and supported Regions see Reducing permissions using service last accessed data in the IAM User Guide.

        The data includes all attempts to access Amazon Web Services, not just the successful ones. This includes all attempts that were made using the Amazon Web Services Management Console, the Amazon Web Services API through any of the SDKs, or any of the command line tools. An unexpected entry in the service last accessed data does not mean that an account has been compromised, because the request might have been denied. Refer to your CloudTrail logs as the authoritative source for information about all API calls and whether they were successful or denied access. For more information, see Logging IAM events with CloudTrail in the IAM User Guide.

        This operation returns a JobId. Use this parameter in the GetOrganizationsAccessReport operation to check the status of the report generation. To check the status of this request, use the JobId parameter in the GetOrganizationsAccessReport operation and test the JobStatus response parameter. When the job is complete, you can retrieve the report.

        To generate a service last accessed data report for entities, specify an entity path without specifying the optional Organizations policy ID. The type of entity that you specify determines the data returned in the report.

        • Root – When you specify the organizations root as the entity, the resulting report lists all of the services allowed by SCPs that are attached to your root. For each service, the report includes data for all accounts in your organization except the management account, because the management account is not limited by SCPs.

        • OU – When you specify an organizational unit (OU) as the entity, the resulting report lists all of the services allowed by SCPs that are attached to the OU and its parents. For each service, the report includes data for all accounts in the OU or its children. This data excludes the management account, because the management account is not limited by SCPs.

        • management account – When you specify the management account, the resulting report lists all Amazon Web Services services, because the management account is not limited by SCPs. For each service, the report includes data for only the management account.

        • Account – When you specify another account as the entity, the resulting report lists all of the services allowed by SCPs that are attached to the account and its parents. For each service, the report includes data for only the specified account.

        To generate a service last accessed data report for policies, specify an entity path and the optional Organizations policy ID. The type of entity that you specify determines the data returned for each service.

        • Root – When you specify the root entity and a policy ID, the resulting report lists all of the services that are allowed by the specified SCP. For each service, the report includes data for all accounts in your organization to which the SCP applies. This data excludes the management account, because the management account is not limited by SCPs. If the SCP is not attached to any entities in the organization, then the report will return a list of services with no data.

        • OU – When you specify an OU entity and a policy ID, the resulting report lists all of the services that are allowed by the specified SCP. For each service, the report includes data for all accounts in the OU or its children to which the SCP applies. This means that other accounts outside the OU that are affected by the SCP might not be included in the data. This data excludes the management account, because the management account is not limited by SCPs. If the SCP is not attached to the OU or one of its children, the report will return a list of services with no data.

        • management account – When you specify the management account, the resulting report lists all Amazon Web Services services, because the management account is not limited by SCPs. If you specify a policy ID in the CLI or API, the policy is ignored. For each service, the report includes data for only the management account.

        • Account – When you specify another account entity and a policy ID, the resulting report lists all of the services that are allowed by the specified SCP. For each service, the report includes data for only the specified account. This means that other accounts in the organization that are affected by the SCP might not be included in the data. If the SCP is not attached to the account, the report will return a list of services with no data.

        Service last accessed data does not use other policy types when determining whether a principal could access a service. These other policy types include identity-based policies, resource-based policies, access control lists, IAM permissions boundaries, and STS assume role policies. It only applies SCP logic. For more about the evaluation of policy types, see Evaluating policies in the IAM User Guide.

        For more information about service last accessed data, see Reducing policy scope by viewing user activity in the IAM User Guide.

        Parameters:
        generateOrganizationsAccessReportRequest -
        Returns:
        Result of the GenerateOrganizationsAccessReport operation returned by the service.
        Throws:
        ReportGenerationLimitExceededException - The request failed because the maximum number of concurrent requests for this account are already running.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • generateOrganizationsAccessReport

        default GenerateOrganizationsAccessReportResponse generateOrganizationsAccessReport​(Consumer<GenerateOrganizationsAccessReportRequest.Builder> generateOrganizationsAccessReportRequest)
                                                                                     throws ReportGenerationLimitExceededException,
                                                                                            AwsServiceException,
                                                                                            SdkClientException,
                                                                                            IamException

        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.

        To call this operation, you must be signed in using your Organizations management account credentials. You can use your long-term IAM user or root user credentials, or temporary credentials from assuming an IAM role. SCPs must be enabled for your organization root. You must have the required IAM and Organizations permissions. For more information, see Refining permissions using service last accessed data in the IAM User Guide.

        You can generate a service last accessed data report for entities by specifying only the entity's path. This data includes a list of services that are allowed by any service control policies (SCPs) that apply to the entity.

        You can generate a service last accessed data report for a policy by specifying an entity's path and an optional Organizations policy ID. This data includes a list of services that are allowed by the specified SCP.

        For each service in both report types, the data includes the most recent account activity that the policy allows to account principals in the entity or the entity's children. For important information about the data, reporting period, permissions required, troubleshooting, and supported Regions see Reducing permissions using service last accessed data in the IAM User Guide.

        The data includes all attempts to access Amazon Web Services, not just the successful ones. This includes all attempts that were made using the Amazon Web Services Management Console, the Amazon Web Services API through any of the SDKs, or any of the command line tools. An unexpected entry in the service last accessed data does not mean that an account has been compromised, because the request might have been denied. Refer to your CloudTrail logs as the authoritative source for information about all API calls and whether they were successful or denied access. For more information, see Logging IAM events with CloudTrail in the IAM User Guide.

        This operation returns a JobId. Use this parameter in the GetOrganizationsAccessReport operation to check the status of the report generation. To check the status of this request, use the JobId parameter in the GetOrganizationsAccessReport operation and test the JobStatus response parameter. When the job is complete, you can retrieve the report.

        To generate a service last accessed data report for entities, specify an entity path without specifying the optional Organizations policy ID. The type of entity that you specify determines the data returned in the report.

        • Root – When you specify the organizations root as the entity, the resulting report lists all of the services allowed by SCPs that are attached to your root. For each service, the report includes data for all accounts in your organization except the management account, because the management account is not limited by SCPs.

        • OU – When you specify an organizational unit (OU) as the entity, the resulting report lists all of the services allowed by SCPs that are attached to the OU and its parents. For each service, the report includes data for all accounts in the OU or its children. This data excludes the management account, because the management account is not limited by SCPs.

        • management account – When you specify the management account, the resulting report lists all Amazon Web Services services, because the management account is not limited by SCPs. For each service, the report includes data for only the management account.

        • Account – When you specify another account as the entity, the resulting report lists all of the services allowed by SCPs that are attached to the account and its parents. For each service, the report includes data for only the specified account.

        To generate a service last accessed data report for policies, specify an entity path and the optional Organizations policy ID. The type of entity that you specify determines the data returned for each service.

        • Root – When you specify the root entity and a policy ID, the resulting report lists all of the services that are allowed by the specified SCP. For each service, the report includes data for all accounts in your organization to which the SCP applies. This data excludes the management account, because the management account is not limited by SCPs. If the SCP is not attached to any entities in the organization, then the report will return a list of services with no data.

        • OU – When you specify an OU entity and a policy ID, the resulting report lists all of the services that are allowed by the specified SCP. For each service, the report includes data for all accounts in the OU or its children to which the SCP applies. This means that other accounts outside the OU that are affected by the SCP might not be included in the data. This data excludes the management account, because the management account is not limited by SCPs. If the SCP is not attached to the OU or one of its children, the report will return a list of services with no data.

        • management account – When you specify the management account, the resulting report lists all Amazon Web Services services, because the management account is not limited by SCPs. If you specify a policy ID in the CLI or API, the policy is ignored. For each service, the report includes data for only the management account.

        • Account – When you specify another account entity and a policy ID, the resulting report lists all of the services that are allowed by the specified SCP. For each service, the report includes data for only the specified account. This means that other accounts in the organization that are affected by the SCP might not be included in the data. If the SCP is not attached to the account, the report will return a list of services with no data.

        Service last accessed data does not use other policy types when determining whether a principal could access a service. These other policy types include identity-based policies, resource-based policies, access control lists, IAM permissions boundaries, and STS assume role policies. It only applies SCP logic. For more about the evaluation of policy types, see Evaluating policies in the IAM User Guide.

        For more information about service last accessed data, see Reducing policy scope by viewing user activity in the IAM User Guide.


        This is a convenience which creates an instance of the GenerateOrganizationsAccessReportRequest.Builder avoiding the need to create one manually via GenerateOrganizationsAccessReportRequest.builder()

        Parameters:
        generateOrganizationsAccessReportRequest - A Consumer that will call methods on GenerateOrganizationsAccessReportRequest.Builder to create a request.
        Returns:
        Result of the GenerateOrganizationsAccessReport operation returned by the service.
        Throws:
        ReportGenerationLimitExceededException - The request failed because the maximum number of concurrent requests for this account are already running.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • generateServiceLastAccessedDetails

        default GenerateServiceLastAccessedDetailsResponse generateServiceLastAccessedDetails​(GenerateServiceLastAccessedDetailsRequest generateServiceLastAccessedDetailsRequest)
                                                                                       throws NoSuchEntityException,
                                                                                              InvalidInputException,
                                                                                              AwsServiceException,
                                                                                              SdkClientException,
                                                                                              IamException

        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.

        The service last accessed data includes all attempts to access an Amazon Web Services API, not just the successful ones. This includes all attempts that were made using the Amazon Web Services Management Console, the Amazon Web Services API through any of the SDKs, or any of the command line tools. An unexpected entry in the service last accessed data does not mean that your account has been compromised, because the request might have been denied. Refer to your CloudTrail logs as the authoritative source for information about all API calls and whether they were successful or denied access. For more information, see Logging IAM events with CloudTrail in the IAM User Guide.

        The GenerateServiceLastAccessedDetails operation returns a JobId. Use this parameter in the following operations to retrieve the following details from your report:

        • GetServiceLastAccessedDetails – Use this operation for users, groups, roles, or policies to list every Amazon Web Services service that the resource could access using permissions policies. For each service, the response includes information about the most recent access attempt.

          The JobId returned by GenerateServiceLastAccessedDetail must be used by the same role within a session, or by the same user when used to call GetServiceLastAccessedDetail.

        • GetServiceLastAccessedDetailsWithEntities – Use this operation for groups and policies to list information about the associated entities (users or roles) that attempted to access a specific Amazon Web Services service.

        To check the status of the GenerateServiceLastAccessedDetails request, use the JobId parameter in the same operations and test the JobStatus response parameter.

        For additional information about the permissions policies that allow an identity (user, group, or role) to access specific services, use the ListPoliciesGrantingServiceAccess operation.

        Service last accessed data does not use other policy types when determining whether a resource could access a service. These other policy types include resource-based policies, access control lists, Organizations policies, IAM permissions boundaries, and STS assume role policies. It only applies permissions policy logic. For more about the evaluation of policy types, see Evaluating policies in the IAM User Guide.

        For more information about service and action last accessed data, see Reducing permissions using service last accessed data in the IAM User Guide.

        Parameters:
        generateServiceLastAccessedDetailsRequest -
        Returns:
        Result of the GenerateServiceLastAccessedDetails operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • generateServiceLastAccessedDetails

        default GenerateServiceLastAccessedDetailsResponse generateServiceLastAccessedDetails​(Consumer<GenerateServiceLastAccessedDetailsRequest.Builder> generateServiceLastAccessedDetailsRequest)
                                                                                       throws NoSuchEntityException,
                                                                                              InvalidInputException,
                                                                                              AwsServiceException,
                                                                                              SdkClientException,
                                                                                              IamException

        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.

        The service last accessed data includes all attempts to access an Amazon Web Services API, not just the successful ones. This includes all attempts that were made using the Amazon Web Services Management Console, the Amazon Web Services API through any of the SDKs, or any of the command line tools. An unexpected entry in the service last accessed data does not mean that your account has been compromised, because the request might have been denied. Refer to your CloudTrail logs as the authoritative source for information about all API calls and whether they were successful or denied access. For more information, see Logging IAM events with CloudTrail in the IAM User Guide.

        The GenerateServiceLastAccessedDetails operation returns a JobId. Use this parameter in the following operations to retrieve the following details from your report:

        • GetServiceLastAccessedDetails – Use this operation for users, groups, roles, or policies to list every Amazon Web Services service that the resource could access using permissions policies. For each service, the response includes information about the most recent access attempt.

          The JobId returned by GenerateServiceLastAccessedDetail must be used by the same role within a session, or by the same user when used to call GetServiceLastAccessedDetail.

        • GetServiceLastAccessedDetailsWithEntities – Use this operation for groups and policies to list information about the associated entities (users or roles) that attempted to access a specific Amazon Web Services service.

        To check the status of the GenerateServiceLastAccessedDetails request, use the JobId parameter in the same operations and test the JobStatus response parameter.

        For additional information about the permissions policies that allow an identity (user, group, or role) to access specific services, use the ListPoliciesGrantingServiceAccess operation.

        Service last accessed data does not use other policy types when determining whether a resource could access a service. These other policy types include resource-based policies, access control lists, Organizations policies, IAM permissions boundaries, and STS assume role policies. It only applies permissions policy logic. For more about the evaluation of policy types, see Evaluating policies in the IAM User Guide.

        For more information about service and action last accessed data, see Reducing permissions using service last accessed data in the IAM User Guide.


        This is a convenience which creates an instance of the GenerateServiceLastAccessedDetailsRequest.Builder avoiding the need to create one manually via GenerateServiceLastAccessedDetailsRequest.builder()

        Parameters:
        generateServiceLastAccessedDetailsRequest - A Consumer that will call methods on GenerateServiceLastAccessedDetailsRequest.Builder to create a request.
        Returns:
        Result of the GenerateServiceLastAccessedDetails operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getAccessKeyLastUsed

        default GetAccessKeyLastUsedResponse getAccessKeyLastUsed​(GetAccessKeyLastUsedRequest getAccessKeyLastUsedRequest)
                                                           throws AwsServiceException,
                                                                  SdkClientException,
                                                                  IamException

        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.

        Parameters:
        getAccessKeyLastUsedRequest -
        Returns:
        Result of the GetAccessKeyLastUsed operation returned by the service.
        Throws:
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getAccountAuthorizationDetails

        default GetAccountAuthorizationDetailsResponse getAccountAuthorizationDetails​(GetAccountAuthorizationDetailsRequest getAccountAuthorizationDetailsRequest)
                                                                               throws ServiceFailureException,
                                                                                      AwsServiceException,
                                                                                      SdkClientException,
                                                                                      IamException

        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.

        Policies returned by this operation are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.

        You can optionally filter the results using the Filter parameter. You can paginate the results using the MaxItems and Marker parameters.

        Parameters:
        getAccountAuthorizationDetailsRequest -
        Returns:
        Result of the GetAccountAuthorizationDetails operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getAccountAuthorizationDetails

        default GetAccountAuthorizationDetailsResponse getAccountAuthorizationDetails()
                                                                               throws ServiceFailureException,
                                                                                      AwsServiceException,
                                                                                      SdkClientException,
                                                                                      IamException

        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.

        Policies returned by this operation are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.

        You can optionally filter the results using the Filter parameter. You can paginate the results using the MaxItems and Marker parameters.

        Returns:
        Result of the GetAccountAuthorizationDetails operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        getAccountAuthorizationDetails(GetAccountAuthorizationDetailsRequest), AWS API Documentation
      • getAccountAuthorizationDetailsPaginator

        default GetAccountAuthorizationDetailsIterable getAccountAuthorizationDetailsPaginator()
                                                                                        throws ServiceFailureException,
                                                                                               AwsServiceException,
                                                                                               SdkClientException,
                                                                                               IamException

        This is a variant of getAccountAuthorizationDetails(software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client.getAccountAuthorizationDetailsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client
                     .getAccountAuthorizationDetailsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client.getAccountAuthorizationDetailsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getAccountAuthorizationDetails(software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        getAccountAuthorizationDetailsPaginator(GetAccountAuthorizationDetailsRequest), AWS API Documentation
      • getAccountAuthorizationDetailsPaginator

        default GetAccountAuthorizationDetailsIterable getAccountAuthorizationDetailsPaginator​(GetAccountAuthorizationDetailsRequest getAccountAuthorizationDetailsRequest)
                                                                                        throws ServiceFailureException,
                                                                                               AwsServiceException,
                                                                                               SdkClientException,
                                                                                               IamException

        This is a variant of getAccountAuthorizationDetails(software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client.getAccountAuthorizationDetailsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client
                     .getAccountAuthorizationDetailsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client.getAccountAuthorizationDetailsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getAccountAuthorizationDetails(software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsRequest) operation.

        Parameters:
        getAccountAuthorizationDetailsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getAccountAuthorizationDetailsPaginator

        default GetAccountAuthorizationDetailsIterable getAccountAuthorizationDetailsPaginator​(Consumer<GetAccountAuthorizationDetailsRequest.Builder> getAccountAuthorizationDetailsRequest)
                                                                                        throws ServiceFailureException,
                                                                                               AwsServiceException,
                                                                                               SdkClientException,
                                                                                               IamException

        This is a variant of getAccountAuthorizationDetails(software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client.getAccountAuthorizationDetailsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client
                     .getAccountAuthorizationDetailsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.GetAccountAuthorizationDetailsIterable responses = client.getAccountAuthorizationDetailsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getAccountAuthorizationDetails(software.amazon.awssdk.services.iam.model.GetAccountAuthorizationDetailsRequest) operation.


        This is a convenience which creates an instance of the GetAccountAuthorizationDetailsRequest.Builder avoiding the need to create one manually via GetAccountAuthorizationDetailsRequest.builder()

        Parameters:
        getAccountAuthorizationDetailsRequest - A Consumer that will call methods on GetAccountAuthorizationDetailsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getContextKeysForCustomPolicy

        default GetContextKeysForCustomPolicyResponse getContextKeysForCustomPolicy​(GetContextKeysForCustomPolicyRequest getContextKeysForCustomPolicyRequest)
                                                                             throws InvalidInputException,
                                                                                    AwsServiceException,
                                                                                    SdkClientException,
                                                                                    IamException

        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.

        Context keys are variables maintained by Amazon Web Services and its services that provide details about the context of an API query request. Context keys can be evaluated by testing against a value specified in an IAM policy. Use GetContextKeysForCustomPolicy to understand what key names and values you must supply when you call SimulateCustomPolicy. Note that all parameters are shown in unencoded form here for clarity but must be URL encoded to be included as a part of a real HTML request.

        Parameters:
        getContextKeysForCustomPolicyRequest -
        Returns:
        Result of the GetContextKeysForCustomPolicy operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getContextKeysForPrincipalPolicy

        default GetContextKeysForPrincipalPolicyResponse getContextKeysForPrincipalPolicy​(GetContextKeysForPrincipalPolicyRequest getContextKeysForPrincipalPolicyRequest)
                                                                                   throws NoSuchEntityException,
                                                                                          InvalidInputException,
                                                                                          AwsServiceException,
                                                                                          SdkClientException,
                                                                                          IamException

        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.

        You can optionally include a list of one or more additional policies, specified as strings. If you want to include only a list of policies by string, use GetContextKeysForCustomPolicy instead.

        Note: This operation discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use GetContextKeysForCustomPolicy instead.

        Context keys are variables maintained by Amazon Web Services and its services that provide details about the context of an API query request. Context keys can be evaluated by testing against a value in an IAM policy. Use GetContextKeysForPrincipalPolicy to understand what key names and values you must supply when you call SimulatePrincipalPolicy.

        Parameters:
        getContextKeysForPrincipalPolicyRequest -
        Returns:
        Result of the GetContextKeysForPrincipalPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getGroupPaginator

        default GetGroupIterable getGroupPaginator​(GetGroupRequest getGroupRequest)
                                            throws NoSuchEntityException,
                                                   ServiceFailureException,
                                                   AwsServiceException,
                                                   SdkClientException,
                                                   IamException

        This is a variant of getGroup(software.amazon.awssdk.services.iam.model.GetGroupRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.GetGroupIterable responses = client.getGroupPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.GetGroupIterable responses = client.getGroupPaginator(request);
             for (software.amazon.awssdk.services.iam.model.GetGroupResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.GetGroupIterable responses = client.getGroupPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getGroup(software.amazon.awssdk.services.iam.model.GetGroupRequest) operation.

        Parameters:
        getGroupRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getGroupPaginator

        default GetGroupIterable getGroupPaginator​(Consumer<GetGroupRequest.Builder> getGroupRequest)
                                            throws NoSuchEntityException,
                                                   ServiceFailureException,
                                                   AwsServiceException,
                                                   SdkClientException,
                                                   IamException

        This is a variant of getGroup(software.amazon.awssdk.services.iam.model.GetGroupRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.GetGroupIterable responses = client.getGroupPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.GetGroupIterable responses = client.getGroupPaginator(request);
             for (software.amazon.awssdk.services.iam.model.GetGroupResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.GetGroupIterable responses = client.getGroupPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getGroup(software.amazon.awssdk.services.iam.model.GetGroupRequest) operation.


        This is a convenience which creates an instance of the GetGroupRequest.Builder avoiding the need to create one manually via GetGroupRequest.builder()

        Parameters:
        getGroupRequest - A Consumer that will call methods on GetGroupRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getGroupPolicy

        default GetGroupPolicyResponse getGroupPolicy​(GetGroupPolicyRequest getGroupPolicyRequest)
                                               throws NoSuchEntityException,
                                                      ServiceFailureException,
                                                      AwsServiceException,
                                                      SdkClientException,
                                                      IamException

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

        Policies returned by this operation are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.

        An IAM group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

        For more information about policies, see Managed policies and inline policies in the IAM User Guide.

        Parameters:
        getGroupPolicyRequest -
        Returns:
        Result of the GetGroupPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getLoginProfile

        default GetLoginProfileResponse getLoginProfile​(GetLoginProfileRequest getLoginProfileRequest)
                                                 throws NoSuchEntityException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        If you create an IAM user with access to the console, the CreateDate reflects the date you created the initial password for the user.

        If you create an IAM user with programmatic access, and then later add a password for the user to access the Amazon Web Services Management Console, the CreateDate reflects the initial password creation date. A user with programmatic access does not have a login profile unless you create a password for the user to access the Amazon Web Services Management Console.

        Parameters:
        getLoginProfileRequest -
        Returns:
        Result of the GetLoginProfile operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getLoginProfile

        default GetLoginProfileResponse getLoginProfile​(Consumer<GetLoginProfileRequest.Builder> getLoginProfileRequest)
                                                 throws NoSuchEntityException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        If you create an IAM user with access to the console, the CreateDate reflects the date you created the initial password for the user.

        If you create an IAM user with programmatic access, and then later add a password for the user to access the Amazon Web Services Management Console, the CreateDate reflects the initial password creation date. A user with programmatic access does not have a login profile unless you create a password for the user to access the Amazon Web Services Management Console.


        This is a convenience which creates an instance of the GetLoginProfileRequest.Builder avoiding the need to create one manually via GetLoginProfileRequest.builder()

        Parameters:
        getLoginProfileRequest - A Consumer that will call methods on GetLoginProfileRequest.Builder to create a request.
        Returns:
        Result of the GetLoginProfile operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getOrganizationsAccessReport

        default GetOrganizationsAccessReportResponse getOrganizationsAccessReport​(GetOrganizationsAccessReportRequest getOrganizationsAccessReportRequest)
                                                                           throws NoSuchEntityException,
                                                                                  AwsServiceException,
                                                                                  SdkClientException,
                                                                                  IamException

        Retrieves the service last accessed data report for Organizations that was previously generated using the GenerateOrganizationsAccessReport operation. This operation retrieves the status of your report job and the report contents.

        Depending on the parameters that you passed when you generated the report, the data returned could include different information. For details, see GenerateOrganizationsAccessReport.

        To call this operation, you must be signed in to the management account in your organization. SCPs must be enabled for your organization root. You must have permissions to perform this operation. For more information, see Refining permissions using service last accessed data in the IAM User Guide.

        For each service that principals in an account (root user, IAM users, or IAM roles) could access using SCPs, the operation returns details about the most recent access attempt. If there was no attempt, the service is listed without details about the most recent attempt to access the service. If the operation fails, it returns the reason that it failed.

        By default, the list is sorted by service namespace.

        Parameters:
        getOrganizationsAccessReportRequest -
        Returns:
        Result of the GetOrganizationsAccessReport operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getRole

        default GetRoleResponse getRole​(GetRoleRequest getRoleRequest)
                                 throws NoSuchEntityException,
                                        ServiceFailureException,
                                        AwsServiceException,
                                        SdkClientException,
                                        IamException

        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.

        Policies returned by this operation are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.

        Parameters:
        getRoleRequest -
        Returns:
        Result of the GetRole operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getRole

        default GetRoleResponse getRole​(Consumer<GetRoleRequest.Builder> getRoleRequest)
                                 throws NoSuchEntityException,
                                        ServiceFailureException,
                                        AwsServiceException,
                                        SdkClientException,
                                        IamException

        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.

        Policies returned by this operation are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.


        This is a convenience which creates an instance of the GetRoleRequest.Builder avoiding the need to create one manually via GetRoleRequest.builder()

        Parameters:
        getRoleRequest - A Consumer that will call methods on GetRoleRequest.Builder to create a request.
        Returns:
        Result of the GetRole operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getRolePolicy

        default GetRolePolicyResponse getRolePolicy​(GetRolePolicyRequest getRolePolicyRequest)
                                             throws NoSuchEntityException,
                                                    ServiceFailureException,
                                                    AwsServiceException,
                                                    SdkClientException,
                                                    IamException

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

        Policies returned by this operation are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.

        An IAM role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.

        For more information about policies, see Managed policies and inline policies in the IAM User Guide.

        For more information about roles, see IAM roles in the IAM User Guide.

        Parameters:
        getRolePolicyRequest -
        Returns:
        Result of the GetRolePolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getServiceLastAccessedDetails

        default GetServiceLastAccessedDetailsResponse getServiceLastAccessedDetails​(GetServiceLastAccessedDetailsRequest getServiceLastAccessedDetailsRequest)
                                                                             throws NoSuchEntityException,
                                                                                    InvalidInputException,
                                                                                    AwsServiceException,
                                                                                    SdkClientException,
                                                                                    IamException

        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.

        Service last accessed data does not use other policy types when determining whether a resource could access a service. These other policy types include resource-based policies, access control lists, Organizations policies, IAM permissions boundaries, and STS assume role policies. It only applies permissions policy logic. For more about the evaluation of policy types, see Evaluating policies in the IAM User Guide.

        For each service that the resource could access using permissions policies, the operation returns details about the most recent access attempt. If there was no attempt, the service is listed without details about the most recent attempt to access the service. If the operation fails, the GetServiceLastAccessedDetails operation returns the reason that it failed.

        The GetServiceLastAccessedDetails operation returns a list of services. This list includes the number of entities that have attempted to access the service and the date and time of the last attempt. It also returns the ARN of the following entity, depending on the resource ARN that you used to generate the report:

        • User – Returns the user ARN that you used to generate the report

        • Group – Returns the ARN of the group member (user) that last attempted to access the service

        • Role – Returns the role ARN that you used to generate the report

        • Policy – Returns the ARN of the user or role that last used the policy to attempt to access the service

        By default, the list is sorted by service namespace.

        If you specified ACTION_LEVEL granularity when you generated the report, this operation returns service and action last accessed data. This includes the most recent access attempt for each tracked action within a service. Otherwise, this operation returns only service data.

        For more information about service and action last accessed data, see Reducing permissions using service last accessed data in the IAM User Guide.

        Parameters:
        getServiceLastAccessedDetailsRequest -
        Returns:
        Result of the GetServiceLastAccessedDetails operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getServiceLastAccessedDetails

        default GetServiceLastAccessedDetailsResponse getServiceLastAccessedDetails​(Consumer<GetServiceLastAccessedDetailsRequest.Builder> getServiceLastAccessedDetailsRequest)
                                                                             throws NoSuchEntityException,
                                                                                    InvalidInputException,
                                                                                    AwsServiceException,
                                                                                    SdkClientException,
                                                                                    IamException

        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.

        Service last accessed data does not use other policy types when determining whether a resource could access a service. These other policy types include resource-based policies, access control lists, Organizations policies, IAM permissions boundaries, and STS assume role policies. It only applies permissions policy logic. For more about the evaluation of policy types, see Evaluating policies in the IAM User Guide.

        For each service that the resource could access using permissions policies, the operation returns details about the most recent access attempt. If there was no attempt, the service is listed without details about the most recent attempt to access the service. If the operation fails, the GetServiceLastAccessedDetails operation returns the reason that it failed.

        The GetServiceLastAccessedDetails operation returns a list of services. This list includes the number of entities that have attempted to access the service and the date and time of the last attempt. It also returns the ARN of the following entity, depending on the resource ARN that you used to generate the report:

        • User – Returns the user ARN that you used to generate the report

        • Group – Returns the ARN of the group member (user) that last attempted to access the service

        • Role – Returns the role ARN that you used to generate the report

        • Policy – Returns the ARN of the user or role that last used the policy to attempt to access the service

        By default, the list is sorted by service namespace.

        If you specified ACTION_LEVEL granularity when you generated the report, this operation returns service and action last accessed data. This includes the most recent access attempt for each tracked action within a service. Otherwise, this operation returns only service data.

        For more information about service and action last accessed data, see Reducing permissions using service last accessed data in the IAM User Guide.


        This is a convenience which creates an instance of the GetServiceLastAccessedDetailsRequest.Builder avoiding the need to create one manually via GetServiceLastAccessedDetailsRequest.builder()

        Parameters:
        getServiceLastAccessedDetailsRequest - A Consumer that will call methods on GetServiceLastAccessedDetailsRequest.Builder to create a request.
        Returns:
        Result of the GetServiceLastAccessedDetails operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getServiceLastAccessedDetailsWithEntities

        default GetServiceLastAccessedDetailsWithEntitiesResponse getServiceLastAccessedDetailsWithEntities​(GetServiceLastAccessedDetailsWithEntitiesRequest getServiceLastAccessedDetailsWithEntitiesRequest)
                                                                                                     throws NoSuchEntityException,
                                                                                                            InvalidInputException,
                                                                                                            AwsServiceException,
                                                                                                            SdkClientException,
                                                                                                            IamException

        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.

        • Group – For a group report, this operation returns a list of users in the group that could have used the group’s policies in an attempt to access the service.

        • Policy – For a policy report, this operation returns a list of entities (users or roles) that could have used the policy in an attempt to access the service.

        You can also use this operation for user or role reports to retrieve details about those entities.

        If the operation fails, the GetServiceLastAccessedDetailsWithEntities operation returns the reason that it failed.

        By default, the list of associated entities is sorted by date, with the most recent access listed first.

        Parameters:
        getServiceLastAccessedDetailsWithEntitiesRequest -
        Returns:
        Result of the GetServiceLastAccessedDetailsWithEntities operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getServiceLastAccessedDetailsWithEntities

        default GetServiceLastAccessedDetailsWithEntitiesResponse getServiceLastAccessedDetailsWithEntities​(Consumer<GetServiceLastAccessedDetailsWithEntitiesRequest.Builder> getServiceLastAccessedDetailsWithEntitiesRequest)
                                                                                                     throws NoSuchEntityException,
                                                                                                            InvalidInputException,
                                                                                                            AwsServiceException,
                                                                                                            SdkClientException,
                                                                                                            IamException

        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.

        • Group – For a group report, this operation returns a list of users in the group that could have used the group’s policies in an attempt to access the service.

        • Policy – For a policy report, this operation returns a list of entities (users or roles) that could have used the policy in an attempt to access the service.

        You can also use this operation for user or role reports to retrieve details about those entities.

        If the operation fails, the GetServiceLastAccessedDetailsWithEntities operation returns the reason that it failed.

        By default, the list of associated entities is sorted by date, with the most recent access listed first.


        This is a convenience which creates an instance of the GetServiceLastAccessedDetailsWithEntitiesRequest.Builder avoiding the need to create one manually via GetServiceLastAccessedDetailsWithEntitiesRequest.builder()

        Parameters:
        getServiceLastAccessedDetailsWithEntitiesRequest - A Consumer that will call methods on GetServiceLastAccessedDetailsWithEntitiesRequest.Builder to create a request.
        Returns:
        Result of the GetServiceLastAccessedDetailsWithEntities operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getUser

        default GetUserResponse getUser​(GetUserRequest getUserRequest)
                                 throws NoSuchEntityException,
                                        ServiceFailureException,
                                        AwsServiceException,
                                        SdkClientException,
                                        IamException

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

        If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID used to sign the request to this operation.

        Parameters:
        getUserRequest -
        Returns:
        Result of the GetUser operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • getUserPolicy

        default GetUserPolicyResponse getUserPolicy​(GetUserPolicyRequest getUserPolicyRequest)
                                             throws NoSuchEntityException,
                                                    ServiceFailureException,
                                                    AwsServiceException,
                                                    SdkClientException,
                                                    IamException

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

        Policies returned by this operation are URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality.

        An IAM user can also have managed policies attached to it. To retrieve a managed policy document that is attached to a user, use GetPolicy to determine the policy's default version. Then use GetPolicyVersion to retrieve the policy document.

        For more information about policies, see Managed policies and inline policies in the IAM User Guide.

        Parameters:
        getUserPolicyRequest -
        Returns:
        Result of the GetUserPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAccessKeys

        default ListAccessKeysResponse listAccessKeys​(ListAccessKeysRequest listAccessKeysRequest)
                                               throws NoSuchEntityException,
                                                      ServiceFailureException,
                                                      AwsServiceException,
                                                      SdkClientException,
                                                      IamException

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

        Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

        If the UserName is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request. If a temporary access key is used, then UserName is required. If a long-term key is assigned to the user, then UserName is not required.

        This operation works for access keys under the Amazon Web Services account. If the Amazon Web Services account has no associated users, the root user returns it's own access key IDs by running this command.

        To ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user creation.

        Parameters:
        listAccessKeysRequest -
        Returns:
        Result of the ListAccessKeys operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAccessKeys

        default ListAccessKeysResponse listAccessKeys​(Consumer<ListAccessKeysRequest.Builder> listAccessKeysRequest)
                                               throws NoSuchEntityException,
                                                      ServiceFailureException,
                                                      AwsServiceException,
                                                      SdkClientException,
                                                      IamException

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

        Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

        If the UserName is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request. If a temporary access key is used, then UserName is required. If a long-term key is assigned to the user, then UserName is not required.

        This operation works for access keys under the Amazon Web Services account. If the Amazon Web Services account has no associated users, the root user returns it's own access key IDs by running this command.

        To ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user creation.


        This is a convenience which creates an instance of the ListAccessKeysRequest.Builder avoiding the need to create one manually via ListAccessKeysRequest.builder()

        Parameters:
        listAccessKeysRequest - A Consumer that will call methods on ListAccessKeysRequest.Builder to create a request.
        Returns:
        Result of the ListAccessKeys operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAccessKeys

        default ListAccessKeysResponse listAccessKeys()
                                               throws NoSuchEntityException,
                                                      ServiceFailureException,
                                                      AwsServiceException,
                                                      SdkClientException,
                                                      IamException

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

        Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

        If the UserName is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request. If a temporary access key is used, then UserName is required. If a long-term key is assigned to the user, then UserName is not required.

        This operation works for access keys under the Amazon Web Services account. If the Amazon Web Services account has no associated users, the root user returns it's own access key IDs by running this command.

        To ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user creation.

        Returns:
        Result of the ListAccessKeys operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listAccessKeys(ListAccessKeysRequest), AWS API Documentation
      • listAccessKeysPaginator

        default ListAccessKeysIterable listAccessKeysPaginator()
                                                        throws NoSuchEntityException,
                                                               ServiceFailureException,
                                                               AwsServiceException,
                                                               SdkClientException,
                                                               IamException

        This is a variant of listAccessKeys(software.amazon.awssdk.services.iam.model.ListAccessKeysRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAccessKeysResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAccessKeys(software.amazon.awssdk.services.iam.model.ListAccessKeysRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listAccessKeysPaginator(ListAccessKeysRequest), AWS API Documentation
      • listAccessKeysPaginator

        default ListAccessKeysIterable listAccessKeysPaginator​(ListAccessKeysRequest listAccessKeysRequest)
                                                        throws NoSuchEntityException,
                                                               ServiceFailureException,
                                                               AwsServiceException,
                                                               SdkClientException,
                                                               IamException

        This is a variant of listAccessKeys(software.amazon.awssdk.services.iam.model.ListAccessKeysRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAccessKeysResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAccessKeys(software.amazon.awssdk.services.iam.model.ListAccessKeysRequest) operation.

        Parameters:
        listAccessKeysRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAccessKeysPaginator

        default ListAccessKeysIterable listAccessKeysPaginator​(Consumer<ListAccessKeysRequest.Builder> listAccessKeysRequest)
                                                        throws NoSuchEntityException,
                                                               ServiceFailureException,
                                                               AwsServiceException,
                                                               SdkClientException,
                                                               IamException

        This is a variant of listAccessKeys(software.amazon.awssdk.services.iam.model.ListAccessKeysRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAccessKeysResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAccessKeysIterable responses = client.listAccessKeysPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAccessKeys(software.amazon.awssdk.services.iam.model.ListAccessKeysRequest) operation.


        This is a convenience which creates an instance of the ListAccessKeysRequest.Builder avoiding the need to create one manually via ListAccessKeysRequest.builder()

        Parameters:
        listAccessKeysRequest - A Consumer that will call methods on ListAccessKeysRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAccountAliasesPaginator

        default ListAccountAliasesIterable listAccountAliasesPaginator()
                                                                throws ServiceFailureException,
                                                                       AwsServiceException,
                                                                       SdkClientException,
                                                                       IamException

        This is a variant of listAccountAliases(software.amazon.awssdk.services.iam.model.ListAccountAliasesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client.listAccountAliasesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client
                     .listAccountAliasesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAccountAliasesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client.listAccountAliasesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAccountAliases(software.amazon.awssdk.services.iam.model.ListAccountAliasesRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listAccountAliasesPaginator(ListAccountAliasesRequest), AWS API Documentation
      • listAccountAliasesPaginator

        default ListAccountAliasesIterable listAccountAliasesPaginator​(ListAccountAliasesRequest listAccountAliasesRequest)
                                                                throws ServiceFailureException,
                                                                       AwsServiceException,
                                                                       SdkClientException,
                                                                       IamException

        This is a variant of listAccountAliases(software.amazon.awssdk.services.iam.model.ListAccountAliasesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client.listAccountAliasesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client
                     .listAccountAliasesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAccountAliasesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client.listAccountAliasesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAccountAliases(software.amazon.awssdk.services.iam.model.ListAccountAliasesRequest) operation.

        Parameters:
        listAccountAliasesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAccountAliasesPaginator

        default ListAccountAliasesIterable listAccountAliasesPaginator​(Consumer<ListAccountAliasesRequest.Builder> listAccountAliasesRequest)
                                                                throws ServiceFailureException,
                                                                       AwsServiceException,
                                                                       SdkClientException,
                                                                       IamException

        This is a variant of listAccountAliases(software.amazon.awssdk.services.iam.model.ListAccountAliasesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client.listAccountAliasesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client
                     .listAccountAliasesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAccountAliasesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAccountAliasesIterable responses = client.listAccountAliasesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAccountAliases(software.amazon.awssdk.services.iam.model.ListAccountAliasesRequest) operation.


        This is a convenience which creates an instance of the ListAccountAliasesRequest.Builder avoiding the need to create one manually via ListAccountAliasesRequest.builder()

        Parameters:
        listAccountAliasesRequest - A Consumer that will call methods on ListAccountAliasesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedGroupPolicies

        default ListAttachedGroupPoliciesResponse listAttachedGroupPolicies​(ListAttachedGroupPoliciesRequest listAttachedGroupPoliciesRequest)
                                                                     throws NoSuchEntityException,
                                                                            InvalidInputException,
                                                                            ServiceFailureException,
                                                                            AwsServiceException,
                                                                            SdkClientException,
                                                                            IamException

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

        An IAM group can also have inline policies embedded with it. To list the inline policies for a group, use ListGroupPolicies. For information about policies, see Managed policies and inline policies in the IAM User Guide.

        You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the operation returns an empty list.

        Parameters:
        listAttachedGroupPoliciesRequest -
        Returns:
        Result of the ListAttachedGroupPolicies operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedGroupPoliciesPaginator

        default ListAttachedGroupPoliciesIterable listAttachedGroupPoliciesPaginator​(ListAttachedGroupPoliciesRequest listAttachedGroupPoliciesRequest)
                                                                              throws NoSuchEntityException,
                                                                                     InvalidInputException,
                                                                                     ServiceFailureException,
                                                                                     AwsServiceException,
                                                                                     SdkClientException,
                                                                                     IamException

        This is a variant of listAttachedGroupPolicies(software.amazon.awssdk.services.iam.model.ListAttachedGroupPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedGroupPoliciesIterable responses = client.listAttachedGroupPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAttachedGroupPoliciesIterable responses = client
                     .listAttachedGroupPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAttachedGroupPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedGroupPoliciesIterable responses = client.listAttachedGroupPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAttachedGroupPolicies(software.amazon.awssdk.services.iam.model.ListAttachedGroupPoliciesRequest) operation.

        Parameters:
        listAttachedGroupPoliciesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedGroupPoliciesPaginator

        default ListAttachedGroupPoliciesIterable listAttachedGroupPoliciesPaginator​(Consumer<ListAttachedGroupPoliciesRequest.Builder> listAttachedGroupPoliciesRequest)
                                                                              throws NoSuchEntityException,
                                                                                     InvalidInputException,
                                                                                     ServiceFailureException,
                                                                                     AwsServiceException,
                                                                                     SdkClientException,
                                                                                     IamException

        This is a variant of listAttachedGroupPolicies(software.amazon.awssdk.services.iam.model.ListAttachedGroupPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedGroupPoliciesIterable responses = client.listAttachedGroupPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAttachedGroupPoliciesIterable responses = client
                     .listAttachedGroupPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAttachedGroupPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedGroupPoliciesIterable responses = client.listAttachedGroupPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAttachedGroupPolicies(software.amazon.awssdk.services.iam.model.ListAttachedGroupPoliciesRequest) operation.


        This is a convenience which creates an instance of the ListAttachedGroupPoliciesRequest.Builder avoiding the need to create one manually via ListAttachedGroupPoliciesRequest.builder()

        Parameters:
        listAttachedGroupPoliciesRequest - A Consumer that will call methods on ListAttachedGroupPoliciesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedRolePolicies

        default ListAttachedRolePoliciesResponse listAttachedRolePolicies​(ListAttachedRolePoliciesRequest listAttachedRolePoliciesRequest)
                                                                   throws NoSuchEntityException,
                                                                          InvalidInputException,
                                                                          ServiceFailureException,
                                                                          AwsServiceException,
                                                                          SdkClientException,
                                                                          IamException

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

        An IAM role can also have inline policies embedded with it. To list the inline policies for a role, use ListRolePolicies. For information about policies, see Managed policies and inline policies in the IAM User Guide.

        You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified role (or none that match the specified path prefix), the operation returns an empty list.

        Parameters:
        listAttachedRolePoliciesRequest -
        Returns:
        Result of the ListAttachedRolePolicies operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedRolePoliciesPaginator

        default ListAttachedRolePoliciesIterable listAttachedRolePoliciesPaginator​(ListAttachedRolePoliciesRequest listAttachedRolePoliciesRequest)
                                                                            throws NoSuchEntityException,
                                                                                   InvalidInputException,
                                                                                   ServiceFailureException,
                                                                                   AwsServiceException,
                                                                                   SdkClientException,
                                                                                   IamException

        This is a variant of listAttachedRolePolicies(software.amazon.awssdk.services.iam.model.ListAttachedRolePoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedRolePoliciesIterable responses = client.listAttachedRolePoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAttachedRolePoliciesIterable responses = client
                     .listAttachedRolePoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAttachedRolePoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedRolePoliciesIterable responses = client.listAttachedRolePoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAttachedRolePolicies(software.amazon.awssdk.services.iam.model.ListAttachedRolePoliciesRequest) operation.

        Parameters:
        listAttachedRolePoliciesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedRolePoliciesPaginator

        default ListAttachedRolePoliciesIterable listAttachedRolePoliciesPaginator​(Consumer<ListAttachedRolePoliciesRequest.Builder> listAttachedRolePoliciesRequest)
                                                                            throws NoSuchEntityException,
                                                                                   InvalidInputException,
                                                                                   ServiceFailureException,
                                                                                   AwsServiceException,
                                                                                   SdkClientException,
                                                                                   IamException

        This is a variant of listAttachedRolePolicies(software.amazon.awssdk.services.iam.model.ListAttachedRolePoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedRolePoliciesIterable responses = client.listAttachedRolePoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAttachedRolePoliciesIterable responses = client
                     .listAttachedRolePoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAttachedRolePoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedRolePoliciesIterable responses = client.listAttachedRolePoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAttachedRolePolicies(software.amazon.awssdk.services.iam.model.ListAttachedRolePoliciesRequest) operation.


        This is a convenience which creates an instance of the ListAttachedRolePoliciesRequest.Builder avoiding the need to create one manually via ListAttachedRolePoliciesRequest.builder()

        Parameters:
        listAttachedRolePoliciesRequest - A Consumer that will call methods on ListAttachedRolePoliciesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedUserPolicies

        default ListAttachedUserPoliciesResponse listAttachedUserPolicies​(ListAttachedUserPoliciesRequest listAttachedUserPoliciesRequest)
                                                                   throws NoSuchEntityException,
                                                                          InvalidInputException,
                                                                          ServiceFailureException,
                                                                          AwsServiceException,
                                                                          SdkClientException,
                                                                          IamException

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

        An IAM user can also have inline policies embedded with it. To list the inline policies for a user, use ListUserPolicies. For information about policies, see Managed policies and inline policies in the IAM User Guide.

        You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified group (or none that match the specified path prefix), the operation returns an empty list.

        Parameters:
        listAttachedUserPoliciesRequest -
        Returns:
        Result of the ListAttachedUserPolicies operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedUserPoliciesPaginator

        default ListAttachedUserPoliciesIterable listAttachedUserPoliciesPaginator​(ListAttachedUserPoliciesRequest listAttachedUserPoliciesRequest)
                                                                            throws NoSuchEntityException,
                                                                                   InvalidInputException,
                                                                                   ServiceFailureException,
                                                                                   AwsServiceException,
                                                                                   SdkClientException,
                                                                                   IamException

        This is a variant of listAttachedUserPolicies(software.amazon.awssdk.services.iam.model.ListAttachedUserPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedUserPoliciesIterable responses = client.listAttachedUserPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAttachedUserPoliciesIterable responses = client
                     .listAttachedUserPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAttachedUserPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedUserPoliciesIterable responses = client.listAttachedUserPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAttachedUserPolicies(software.amazon.awssdk.services.iam.model.ListAttachedUserPoliciesRequest) operation.

        Parameters:
        listAttachedUserPoliciesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listAttachedUserPoliciesPaginator

        default ListAttachedUserPoliciesIterable listAttachedUserPoliciesPaginator​(Consumer<ListAttachedUserPoliciesRequest.Builder> listAttachedUserPoliciesRequest)
                                                                            throws NoSuchEntityException,
                                                                                   InvalidInputException,
                                                                                   ServiceFailureException,
                                                                                   AwsServiceException,
                                                                                   SdkClientException,
                                                                                   IamException

        This is a variant of listAttachedUserPolicies(software.amazon.awssdk.services.iam.model.ListAttachedUserPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedUserPoliciesIterable responses = client.listAttachedUserPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListAttachedUserPoliciesIterable responses = client
                     .listAttachedUserPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListAttachedUserPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListAttachedUserPoliciesIterable responses = client.listAttachedUserPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAttachedUserPolicies(software.amazon.awssdk.services.iam.model.ListAttachedUserPoliciesRequest) operation.


        This is a convenience which creates an instance of the ListAttachedUserPoliciesRequest.Builder avoiding the need to create one manually via ListAttachedUserPoliciesRequest.builder()

        Parameters:
        listAttachedUserPoliciesRequest - A Consumer that will call methods on ListAttachedUserPoliciesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listEntitiesForPolicy

        default ListEntitiesForPolicyResponse listEntitiesForPolicy​(ListEntitiesForPolicyRequest listEntitiesForPolicyRequest)
                                                             throws NoSuchEntityException,
                                                                    InvalidInputException,
                                                                    ServiceFailureException,
                                                                    AwsServiceException,
                                                                    SdkClientException,
                                                                    IamException

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

        You can use the optional EntityFilter parameter to limit the results to a particular type of entity (users, groups, or roles). For example, to list only the roles that are attached to the specified policy, set EntityFilter to Role.

        You can paginate the results using the MaxItems and Marker parameters.

        Parameters:
        listEntitiesForPolicyRequest -
        Returns:
        Result of the ListEntitiesForPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listEntitiesForPolicyPaginator

        default ListEntitiesForPolicyIterable listEntitiesForPolicyPaginator​(ListEntitiesForPolicyRequest listEntitiesForPolicyRequest)
                                                                      throws NoSuchEntityException,
                                                                             InvalidInputException,
                                                                             ServiceFailureException,
                                                                             AwsServiceException,
                                                                             SdkClientException,
                                                                             IamException

        This is a variant of listEntitiesForPolicy(software.amazon.awssdk.services.iam.model.ListEntitiesForPolicyRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListEntitiesForPolicyIterable responses = client.listEntitiesForPolicyPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListEntitiesForPolicyIterable responses = client
                     .listEntitiesForPolicyPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListEntitiesForPolicyResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListEntitiesForPolicyIterable responses = client.listEntitiesForPolicyPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listEntitiesForPolicy(software.amazon.awssdk.services.iam.model.ListEntitiesForPolicyRequest) operation.

        Parameters:
        listEntitiesForPolicyRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listEntitiesForPolicyPaginator

        default ListEntitiesForPolicyIterable listEntitiesForPolicyPaginator​(Consumer<ListEntitiesForPolicyRequest.Builder> listEntitiesForPolicyRequest)
                                                                      throws NoSuchEntityException,
                                                                             InvalidInputException,
                                                                             ServiceFailureException,
                                                                             AwsServiceException,
                                                                             SdkClientException,
                                                                             IamException

        This is a variant of listEntitiesForPolicy(software.amazon.awssdk.services.iam.model.ListEntitiesForPolicyRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListEntitiesForPolicyIterable responses = client.listEntitiesForPolicyPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListEntitiesForPolicyIterable responses = client
                     .listEntitiesForPolicyPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListEntitiesForPolicyResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListEntitiesForPolicyIterable responses = client.listEntitiesForPolicyPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listEntitiesForPolicy(software.amazon.awssdk.services.iam.model.ListEntitiesForPolicyRequest) operation.


        This is a convenience which creates an instance of the ListEntitiesForPolicyRequest.Builder avoiding the need to create one manually via ListEntitiesForPolicyRequest.builder()

        Parameters:
        listEntitiesForPolicyRequest - A Consumer that will call methods on ListEntitiesForPolicyRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listGroupPoliciesPaginator

        default ListGroupPoliciesIterable listGroupPoliciesPaginator​(ListGroupPoliciesRequest listGroupPoliciesRequest)
                                                              throws NoSuchEntityException,
                                                                     ServiceFailureException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listGroupPolicies(software.amazon.awssdk.services.iam.model.ListGroupPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListGroupPoliciesIterable responses = client.listGroupPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListGroupPoliciesIterable responses = client
                     .listGroupPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListGroupPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListGroupPoliciesIterable responses = client.listGroupPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listGroupPolicies(software.amazon.awssdk.services.iam.model.ListGroupPoliciesRequest) operation.

        Parameters:
        listGroupPoliciesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listGroupPoliciesPaginator

        default ListGroupPoliciesIterable listGroupPoliciesPaginator​(Consumer<ListGroupPoliciesRequest.Builder> listGroupPoliciesRequest)
                                                              throws NoSuchEntityException,
                                                                     ServiceFailureException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listGroupPolicies(software.amazon.awssdk.services.iam.model.ListGroupPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListGroupPoliciesIterable responses = client.listGroupPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListGroupPoliciesIterable responses = client
                     .listGroupPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListGroupPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListGroupPoliciesIterable responses = client.listGroupPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listGroupPolicies(software.amazon.awssdk.services.iam.model.ListGroupPoliciesRequest) operation.


        This is a convenience which creates an instance of the ListGroupPoliciesRequest.Builder avoiding the need to create one manually via ListGroupPoliciesRequest.builder()

        Parameters:
        listGroupPoliciesRequest - A Consumer that will call methods on ListGroupPoliciesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listGroupsPaginator

        default ListGroupsIterable listGroupsPaginator()
                                                throws ServiceFailureException,
                                                       AwsServiceException,
                                                       SdkClientException,
                                                       IamException

        This is a variant of listGroups(software.amazon.awssdk.services.iam.model.ListGroupsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListGroupsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listGroups(software.amazon.awssdk.services.iam.model.ListGroupsRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listGroupsPaginator(ListGroupsRequest), AWS API Documentation
      • listGroupsPaginator

        default ListGroupsIterable listGroupsPaginator​(ListGroupsRequest listGroupsRequest)
                                                throws ServiceFailureException,
                                                       AwsServiceException,
                                                       SdkClientException,
                                                       IamException

        This is a variant of listGroups(software.amazon.awssdk.services.iam.model.ListGroupsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListGroupsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listGroups(software.amazon.awssdk.services.iam.model.ListGroupsRequest) operation.

        Parameters:
        listGroupsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listGroupsPaginator

        default ListGroupsIterable listGroupsPaginator​(Consumer<ListGroupsRequest.Builder> listGroupsRequest)
                                                throws ServiceFailureException,
                                                       AwsServiceException,
                                                       SdkClientException,
                                                       IamException

        This is a variant of listGroups(software.amazon.awssdk.services.iam.model.ListGroupsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListGroupsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsIterable responses = client.listGroupsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listGroups(software.amazon.awssdk.services.iam.model.ListGroupsRequest) operation.


        This is a convenience which creates an instance of the ListGroupsRequest.Builder avoiding the need to create one manually via ListGroupsRequest.builder()

        Parameters:
        listGroupsRequest - A Consumer that will call methods on ListGroupsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listGroupsForUserPaginator

        default ListGroupsForUserIterable listGroupsForUserPaginator​(ListGroupsForUserRequest listGroupsForUserRequest)
                                                              throws NoSuchEntityException,
                                                                     ServiceFailureException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listGroupsForUser(software.amazon.awssdk.services.iam.model.ListGroupsForUserRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsForUserIterable responses = client.listGroupsForUserPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListGroupsForUserIterable responses = client
                     .listGroupsForUserPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListGroupsForUserResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsForUserIterable responses = client.listGroupsForUserPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listGroupsForUser(software.amazon.awssdk.services.iam.model.ListGroupsForUserRequest) operation.

        Parameters:
        listGroupsForUserRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listGroupsForUserPaginator

        default ListGroupsForUserIterable listGroupsForUserPaginator​(Consumer<ListGroupsForUserRequest.Builder> listGroupsForUserRequest)
                                                              throws NoSuchEntityException,
                                                                     ServiceFailureException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listGroupsForUser(software.amazon.awssdk.services.iam.model.ListGroupsForUserRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsForUserIterable responses = client.listGroupsForUserPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListGroupsForUserIterable responses = client
                     .listGroupsForUserPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListGroupsForUserResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListGroupsForUserIterable responses = client.listGroupsForUserPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listGroupsForUser(software.amazon.awssdk.services.iam.model.ListGroupsForUserRequest) operation.


        This is a convenience which creates an instance of the ListGroupsForUserRequest.Builder avoiding the need to create one manually via ListGroupsForUserRequest.builder()

        Parameters:
        listGroupsForUserRequest - A Consumer that will call methods on ListGroupsForUserRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listInstanceProfileTagsPaginator

        default ListInstanceProfileTagsIterable listInstanceProfileTagsPaginator​(ListInstanceProfileTagsRequest listInstanceProfileTagsRequest)
                                                                          throws NoSuchEntityException,
                                                                                 ServiceFailureException,
                                                                                 AwsServiceException,
                                                                                 SdkClientException,
                                                                                 IamException

        This is a variant of listInstanceProfileTags(software.amazon.awssdk.services.iam.model.ListInstanceProfileTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfileTagsIterable responses = client.listInstanceProfileTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListInstanceProfileTagsIterable responses = client
                     .listInstanceProfileTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListInstanceProfileTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfileTagsIterable responses = client.listInstanceProfileTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInstanceProfileTags(software.amazon.awssdk.services.iam.model.ListInstanceProfileTagsRequest) operation.

        Parameters:
        listInstanceProfileTagsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listInstanceProfileTagsPaginator

        default ListInstanceProfileTagsIterable listInstanceProfileTagsPaginator​(Consumer<ListInstanceProfileTagsRequest.Builder> listInstanceProfileTagsRequest)
                                                                          throws NoSuchEntityException,
                                                                                 ServiceFailureException,
                                                                                 AwsServiceException,
                                                                                 SdkClientException,
                                                                                 IamException

        This is a variant of listInstanceProfileTags(software.amazon.awssdk.services.iam.model.ListInstanceProfileTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfileTagsIterable responses = client.listInstanceProfileTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListInstanceProfileTagsIterable responses = client
                     .listInstanceProfileTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListInstanceProfileTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfileTagsIterable responses = client.listInstanceProfileTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInstanceProfileTags(software.amazon.awssdk.services.iam.model.ListInstanceProfileTagsRequest) operation.


        This is a convenience which creates an instance of the ListInstanceProfileTagsRequest.Builder avoiding the need to create one manually via ListInstanceProfileTagsRequest.builder()

        Parameters:
        listInstanceProfileTagsRequest - A Consumer that will call methods on ListInstanceProfileTagsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listInstanceProfiles

        default ListInstanceProfilesResponse listInstanceProfiles​(ListInstanceProfilesRequest listInstanceProfilesRequest)
                                                           throws ServiceFailureException,
                                                                  AwsServiceException,
                                                                  SdkClientException,
                                                                  IamException

        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.

        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 an instance profile, see GetInstanceProfile.

        You can paginate the results using the MaxItems and Marker parameters.

        Parameters:
        listInstanceProfilesRequest -
        Returns:
        Result of the ListInstanceProfiles operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listInstanceProfiles

        default ListInstanceProfilesResponse listInstanceProfiles()
                                                           throws ServiceFailureException,
                                                                  AwsServiceException,
                                                                  SdkClientException,
                                                                  IamException

        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.

        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 an instance profile, see GetInstanceProfile.

        You can paginate the results using the MaxItems and Marker parameters.

        Returns:
        Result of the ListInstanceProfiles operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listInstanceProfiles(ListInstanceProfilesRequest), AWS API Documentation
      • listInstanceProfilesPaginator

        default ListInstanceProfilesIterable listInstanceProfilesPaginator()
                                                                    throws ServiceFailureException,
                                                                           AwsServiceException,
                                                                           SdkClientException,
                                                                           IamException

        This is a variant of listInstanceProfiles(software.amazon.awssdk.services.iam.model.ListInstanceProfilesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client.listInstanceProfilesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client
                     .listInstanceProfilesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListInstanceProfilesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client.listInstanceProfilesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInstanceProfiles(software.amazon.awssdk.services.iam.model.ListInstanceProfilesRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listInstanceProfilesPaginator(ListInstanceProfilesRequest), AWS API Documentation
      • listInstanceProfilesPaginator

        default ListInstanceProfilesIterable listInstanceProfilesPaginator​(ListInstanceProfilesRequest listInstanceProfilesRequest)
                                                                    throws ServiceFailureException,
                                                                           AwsServiceException,
                                                                           SdkClientException,
                                                                           IamException

        This is a variant of listInstanceProfiles(software.amazon.awssdk.services.iam.model.ListInstanceProfilesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client.listInstanceProfilesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client
                     .listInstanceProfilesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListInstanceProfilesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client.listInstanceProfilesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInstanceProfiles(software.amazon.awssdk.services.iam.model.ListInstanceProfilesRequest) operation.

        Parameters:
        listInstanceProfilesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listInstanceProfilesPaginator

        default ListInstanceProfilesIterable listInstanceProfilesPaginator​(Consumer<ListInstanceProfilesRequest.Builder> listInstanceProfilesRequest)
                                                                    throws ServiceFailureException,
                                                                           AwsServiceException,
                                                                           SdkClientException,
                                                                           IamException

        This is a variant of listInstanceProfiles(software.amazon.awssdk.services.iam.model.ListInstanceProfilesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client.listInstanceProfilesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client
                     .listInstanceProfilesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListInstanceProfilesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesIterable responses = client.listInstanceProfilesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInstanceProfiles(software.amazon.awssdk.services.iam.model.ListInstanceProfilesRequest) operation.


        This is a convenience which creates an instance of the ListInstanceProfilesRequest.Builder avoiding the need to create one manually via ListInstanceProfilesRequest.builder()

        Parameters:
        listInstanceProfilesRequest - A Consumer that will call methods on ListInstanceProfilesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listInstanceProfilesForRolePaginator

        default ListInstanceProfilesForRoleIterable listInstanceProfilesForRolePaginator​(ListInstanceProfilesForRoleRequest listInstanceProfilesForRoleRequest)
                                                                                  throws NoSuchEntityException,
                                                                                         ServiceFailureException,
                                                                                         AwsServiceException,
                                                                                         SdkClientException,
                                                                                         IamException

        This is a variant of listInstanceProfilesForRole(software.amazon.awssdk.services.iam.model.ListInstanceProfilesForRoleRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesForRoleIterable responses = client.listInstanceProfilesForRolePaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesForRoleIterable responses = client
                     .listInstanceProfilesForRolePaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListInstanceProfilesForRoleResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesForRoleIterable responses = client.listInstanceProfilesForRolePaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInstanceProfilesForRole(software.amazon.awssdk.services.iam.model.ListInstanceProfilesForRoleRequest) operation.

        Parameters:
        listInstanceProfilesForRoleRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listInstanceProfilesForRolePaginator

        default ListInstanceProfilesForRoleIterable listInstanceProfilesForRolePaginator​(Consumer<ListInstanceProfilesForRoleRequest.Builder> listInstanceProfilesForRoleRequest)
                                                                                  throws NoSuchEntityException,
                                                                                         ServiceFailureException,
                                                                                         AwsServiceException,
                                                                                         SdkClientException,
                                                                                         IamException

        This is a variant of listInstanceProfilesForRole(software.amazon.awssdk.services.iam.model.ListInstanceProfilesForRoleRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesForRoleIterable responses = client.listInstanceProfilesForRolePaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesForRoleIterable responses = client
                     .listInstanceProfilesForRolePaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListInstanceProfilesForRoleResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListInstanceProfilesForRoleIterable responses = client.listInstanceProfilesForRolePaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInstanceProfilesForRole(software.amazon.awssdk.services.iam.model.ListInstanceProfilesForRoleRequest) operation.


        This is a convenience which creates an instance of the ListInstanceProfilesForRoleRequest.Builder avoiding the need to create one manually via ListInstanceProfilesForRoleRequest.builder()

        Parameters:
        listInstanceProfilesForRoleRequest - A Consumer that will call methods on ListInstanceProfilesForRoleRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listMFADeviceTagsPaginator

        default ListMFADeviceTagsIterable listMFADeviceTagsPaginator​(ListMfaDeviceTagsRequest listMfaDeviceTagsRequest)
                                                              throws NoSuchEntityException,
                                                                     InvalidInputException,
                                                                     ServiceFailureException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listMFADeviceTags(software.amazon.awssdk.services.iam.model.ListMfaDeviceTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListMFADeviceTagsIterable responses = client.listMFADeviceTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListMFADeviceTagsIterable responses = client
                     .listMFADeviceTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListMfaDeviceTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListMFADeviceTagsIterable responses = client.listMFADeviceTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listMFADeviceTags(software.amazon.awssdk.services.iam.model.ListMfaDeviceTagsRequest) operation.

        Parameters:
        listMfaDeviceTagsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listMFADeviceTagsPaginator

        default ListMFADeviceTagsIterable listMFADeviceTagsPaginator​(Consumer<ListMfaDeviceTagsRequest.Builder> listMfaDeviceTagsRequest)
                                                              throws NoSuchEntityException,
                                                                     InvalidInputException,
                                                                     ServiceFailureException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listMFADeviceTags(software.amazon.awssdk.services.iam.model.ListMfaDeviceTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListMFADeviceTagsIterable responses = client.listMFADeviceTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListMFADeviceTagsIterable responses = client
                     .listMFADeviceTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListMfaDeviceTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListMFADeviceTagsIterable responses = client.listMFADeviceTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listMFADeviceTags(software.amazon.awssdk.services.iam.model.ListMfaDeviceTagsRequest) operation.


        This is a convenience which creates an instance of the ListMfaDeviceTagsRequest.Builder avoiding the need to create one manually via ListMfaDeviceTagsRequest.builder()

        Parameters:
        listMfaDeviceTagsRequest - A Consumer that will call methods on ListMfaDeviceTagsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listMFADevices

        default ListMfaDevicesResponse listMFADevices​(ListMfaDevicesRequest listMfaDevicesRequest)
                                               throws NoSuchEntityException,
                                                      ServiceFailureException,
                                                      AwsServiceException,
                                                      SdkClientException,
                                                      IamException

        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.

        You can paginate the results using the MaxItems and Marker parameters.

        Parameters:
        listMfaDevicesRequest -
        Returns:
        Result of the ListMFADevices operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listMFADevices

        default ListMfaDevicesResponse listMFADevices()
                                               throws NoSuchEntityException,
                                                      ServiceFailureException,
                                                      AwsServiceException,
                                                      SdkClientException,
                                                      IamException

        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.

        You can paginate the results using the MaxItems and Marker parameters.

        Returns:
        Result of the ListMFADevices operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listMFADevices(ListMfaDevicesRequest), AWS API Documentation
      • listMFADevicesPaginator

        default ListMFADevicesIterable listMFADevicesPaginator()
                                                        throws NoSuchEntityException,
                                                               ServiceFailureException,
                                                               AwsServiceException,
                                                               SdkClientException,
                                                               IamException

        This is a variant of listMFADevices(software.amazon.awssdk.services.iam.model.ListMfaDevicesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListMfaDevicesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listMFADevices(software.amazon.awssdk.services.iam.model.ListMfaDevicesRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listMFADevicesPaginator(ListMfaDevicesRequest), AWS API Documentation
      • listMFADevicesPaginator

        default ListMFADevicesIterable listMFADevicesPaginator​(ListMfaDevicesRequest listMfaDevicesRequest)
                                                        throws NoSuchEntityException,
                                                               ServiceFailureException,
                                                               AwsServiceException,
                                                               SdkClientException,
                                                               IamException

        This is a variant of listMFADevices(software.amazon.awssdk.services.iam.model.ListMfaDevicesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListMfaDevicesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listMFADevices(software.amazon.awssdk.services.iam.model.ListMfaDevicesRequest) operation.

        Parameters:
        listMfaDevicesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listMFADevicesPaginator

        default ListMFADevicesIterable listMFADevicesPaginator​(Consumer<ListMfaDevicesRequest.Builder> listMfaDevicesRequest)
                                                        throws NoSuchEntityException,
                                                               ServiceFailureException,
                                                               AwsServiceException,
                                                               SdkClientException,
                                                               IamException

        This is a variant of listMFADevices(software.amazon.awssdk.services.iam.model.ListMfaDevicesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListMfaDevicesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListMFADevicesIterable responses = client.listMFADevicesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listMFADevices(software.amazon.awssdk.services.iam.model.ListMfaDevicesRequest) operation.


        This is a convenience which creates an instance of the ListMfaDevicesRequest.Builder avoiding the need to create one manually via ListMfaDevicesRequest.builder()

        Parameters:
        listMfaDevicesRequest - A Consumer that will call methods on ListMfaDevicesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listOpenIDConnectProviderTagsPaginator

        default ListOpenIDConnectProviderTagsIterable listOpenIDConnectProviderTagsPaginator​(ListOpenIdConnectProviderTagsRequest listOpenIdConnectProviderTagsRequest)
                                                                                      throws NoSuchEntityException,
                                                                                             ServiceFailureException,
                                                                                             InvalidInputException,
                                                                                             AwsServiceException,
                                                                                             SdkClientException,
                                                                                             IamException

        This is a variant of listOpenIDConnectProviderTags(software.amazon.awssdk.services.iam.model.ListOpenIdConnectProviderTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListOpenIDConnectProviderTagsIterable responses = client.listOpenIDConnectProviderTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListOpenIDConnectProviderTagsIterable responses = client
                     .listOpenIDConnectProviderTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListOpenIdConnectProviderTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListOpenIDConnectProviderTagsIterable responses = client.listOpenIDConnectProviderTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listOpenIDConnectProviderTags(software.amazon.awssdk.services.iam.model.ListOpenIdConnectProviderTagsRequest) operation.

        Parameters:
        listOpenIdConnectProviderTagsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listOpenIDConnectProviders

        default ListOpenIdConnectProvidersResponse listOpenIDConnectProviders​(ListOpenIdConnectProvidersRequest listOpenIdConnectProvidersRequest)
                                                                       throws ServiceFailureException,
                                                                              AwsServiceException,
                                                                              SdkClientException,
                                                                              IamException

        Lists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services 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 an OIDC provider, see GetOpenIDConnectProvider.

        Parameters:
        listOpenIdConnectProvidersRequest -
        Returns:
        Result of the ListOpenIDConnectProviders operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPolicies

        default ListPoliciesResponse listPolicies​(ListPoliciesRequest listPoliciesRequest)
                                           throws ServiceFailureException,
                                                  AwsServiceException,
                                                  SdkClientException,
                                                  IamException

        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.

        You can filter the list of policies that is returned using the optional OnlyAttached, Scope, and PathPrefix parameters. For example, to list only the customer managed policies in your Amazon Web Services account, set Scope to Local. To list only Amazon Web Services managed policies, set Scope to AWS.

        You can paginate the results using the MaxItems and Marker parameters.

        For more information about managed policies, see Managed policies and inline policies in the IAM User Guide.

        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 customer manged policy, see GetPolicy.

        Parameters:
        listPoliciesRequest -
        Returns:
        Result of the ListPolicies operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPolicies

        default ListPoliciesResponse listPolicies​(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest)
                                           throws ServiceFailureException,
                                                  AwsServiceException,
                                                  SdkClientException,
                                                  IamException

        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.

        You can filter the list of policies that is returned using the optional OnlyAttached, Scope, and PathPrefix parameters. For example, to list only the customer managed policies in your Amazon Web Services account, set Scope to Local. To list only Amazon Web Services managed policies, set Scope to AWS.

        You can paginate the results using the MaxItems and Marker parameters.

        For more information about managed policies, see Managed policies and inline policies in the IAM User Guide.

        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 customer manged policy, see GetPolicy.


        This is a convenience which creates an instance of the ListPoliciesRequest.Builder avoiding the need to create one manually via ListPoliciesRequest.builder()

        Parameters:
        listPoliciesRequest - A Consumer that will call methods on ListPoliciesRequest.Builder to create a request.
        Returns:
        Result of the ListPolicies operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPolicies

        default ListPoliciesResponse listPolicies()
                                           throws ServiceFailureException,
                                                  AwsServiceException,
                                                  SdkClientException,
                                                  IamException

        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.

        You can filter the list of policies that is returned using the optional OnlyAttached, Scope, and PathPrefix parameters. For example, to list only the customer managed policies in your Amazon Web Services account, set Scope to Local. To list only Amazon Web Services managed policies, set Scope to AWS.

        You can paginate the results using the MaxItems and Marker parameters.

        For more information about managed policies, see Managed policies and inline policies in the IAM User Guide.

        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 customer manged policy, see GetPolicy.

        Returns:
        Result of the ListPolicies operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listPolicies(ListPoliciesRequest), AWS API Documentation
      • listPoliciesPaginator

        default ListPoliciesIterable listPoliciesPaginator()
                                                    throws ServiceFailureException,
                                                           AwsServiceException,
                                                           SdkClientException,
                                                           IamException

        This is a variant of listPolicies(software.amazon.awssdk.services.iam.model.ListPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listPolicies(software.amazon.awssdk.services.iam.model.ListPoliciesRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listPoliciesPaginator(ListPoliciesRequest), AWS API Documentation
      • listPoliciesPaginator

        default ListPoliciesIterable listPoliciesPaginator​(ListPoliciesRequest listPoliciesRequest)
                                                    throws ServiceFailureException,
                                                           AwsServiceException,
                                                           SdkClientException,
                                                           IamException

        This is a variant of listPolicies(software.amazon.awssdk.services.iam.model.ListPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listPolicies(software.amazon.awssdk.services.iam.model.ListPoliciesRequest) operation.

        Parameters:
        listPoliciesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPoliciesPaginator

        default ListPoliciesIterable listPoliciesPaginator​(Consumer<ListPoliciesRequest.Builder> listPoliciesRequest)
                                                    throws ServiceFailureException,
                                                           AwsServiceException,
                                                           SdkClientException,
                                                           IamException

        This is a variant of listPolicies(software.amazon.awssdk.services.iam.model.ListPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListPoliciesIterable responses = client.listPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listPolicies(software.amazon.awssdk.services.iam.model.ListPoliciesRequest) operation.


        This is a convenience which creates an instance of the ListPoliciesRequest.Builder avoiding the need to create one manually via ListPoliciesRequest.builder()

        Parameters:
        listPoliciesRequest - A Consumer that will call methods on ListPoliciesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPoliciesGrantingServiceAccess

        default ListPoliciesGrantingServiceAccessResponse listPoliciesGrantingServiceAccess​(ListPoliciesGrantingServiceAccessRequest listPoliciesGrantingServiceAccessRequest)
                                                                                     throws NoSuchEntityException,
                                                                                            InvalidInputException,
                                                                                            AwsServiceException,
                                                                                            SdkClientException,
                                                                                            IamException

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

        This operation does not use other policy types when determining whether a resource could access a service. These other policy types include resource-based policies, access control lists, Organizations policies, IAM permissions boundaries, and STS assume role policies. It only applies permissions policy logic. For more about the evaluation of policy types, see Evaluating policies in the IAM User Guide.

        The list of policies returned by the operation depends on the ARN of the identity that you provide.

        • User – The list of policies includes the managed and inline policies that are attached to the user directly. The list also includes any additional managed and inline policies that are attached to the group to which the user belongs.

        • Group – The list of policies includes only the managed and inline policies that are attached to the group directly. Policies that are attached to the group’s user are not included.

        • Role – The list of policies includes only the managed and inline policies that are attached to the role.

        For each managed policy, this operation returns the ARN and policy name. For each inline policy, it returns the policy name and the entity to which it is attached. Inline policies do not have an ARN. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.

        Policies that are attached to users and roles as permissions boundaries are not returned. To view which managed policy is currently used to set the permissions boundary for a user or role, use the GetUser or GetRole operations.

        Parameters:
        listPoliciesGrantingServiceAccessRequest -
        Returns:
        Result of the ListPoliciesGrantingServiceAccess operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPoliciesGrantingServiceAccess

        default ListPoliciesGrantingServiceAccessResponse listPoliciesGrantingServiceAccess​(Consumer<ListPoliciesGrantingServiceAccessRequest.Builder> listPoliciesGrantingServiceAccessRequest)
                                                                                     throws NoSuchEntityException,
                                                                                            InvalidInputException,
                                                                                            AwsServiceException,
                                                                                            SdkClientException,
                                                                                            IamException

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

        This operation does not use other policy types when determining whether a resource could access a service. These other policy types include resource-based policies, access control lists, Organizations policies, IAM permissions boundaries, and STS assume role policies. It only applies permissions policy logic. For more about the evaluation of policy types, see Evaluating policies in the IAM User Guide.

        The list of policies returned by the operation depends on the ARN of the identity that you provide.

        • User – The list of policies includes the managed and inline policies that are attached to the user directly. The list also includes any additional managed and inline policies that are attached to the group to which the user belongs.

        • Group – The list of policies includes only the managed and inline policies that are attached to the group directly. Policies that are attached to the group’s user are not included.

        • Role – The list of policies includes only the managed and inline policies that are attached to the role.

        For each managed policy, this operation returns the ARN and policy name. For each inline policy, it returns the policy name and the entity to which it is attached. Inline policies do not have an ARN. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.

        Policies that are attached to users and roles as permissions boundaries are not returned. To view which managed policy is currently used to set the permissions boundary for a user or role, use the GetUser or GetRole operations.


        This is a convenience which creates an instance of the ListPoliciesGrantingServiceAccessRequest.Builder avoiding the need to create one manually via ListPoliciesGrantingServiceAccessRequest.builder()

        Parameters:
        listPoliciesGrantingServiceAccessRequest - A Consumer that will call methods on ListPoliciesGrantingServiceAccessRequest.Builder to create a request.
        Returns:
        Result of the ListPoliciesGrantingServiceAccess operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPolicyTagsPaginator

        default ListPolicyTagsIterable listPolicyTagsPaginator​(ListPolicyTagsRequest listPolicyTagsRequest)
                                                        throws NoSuchEntityException,
                                                               ServiceFailureException,
                                                               InvalidInputException,
                                                               AwsServiceException,
                                                               SdkClientException,
                                                               IamException

        This is a variant of listPolicyTags(software.amazon.awssdk.services.iam.model.ListPolicyTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListPolicyTagsIterable responses = client.listPolicyTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListPolicyTagsIterable responses = client.listPolicyTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListPolicyTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListPolicyTagsIterable responses = client.listPolicyTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listPolicyTags(software.amazon.awssdk.services.iam.model.ListPolicyTagsRequest) operation.

        Parameters:
        listPolicyTagsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPolicyTagsPaginator

        default ListPolicyTagsIterable listPolicyTagsPaginator​(Consumer<ListPolicyTagsRequest.Builder> listPolicyTagsRequest)
                                                        throws NoSuchEntityException,
                                                               ServiceFailureException,
                                                               InvalidInputException,
                                                               AwsServiceException,
                                                               SdkClientException,
                                                               IamException

        This is a variant of listPolicyTags(software.amazon.awssdk.services.iam.model.ListPolicyTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListPolicyTagsIterable responses = client.listPolicyTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListPolicyTagsIterable responses = client.listPolicyTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListPolicyTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListPolicyTagsIterable responses = client.listPolicyTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listPolicyTags(software.amazon.awssdk.services.iam.model.ListPolicyTagsRequest) operation.


        This is a convenience which creates an instance of the ListPolicyTagsRequest.Builder avoiding the need to create one manually via ListPolicyTagsRequest.builder()

        Parameters:
        listPolicyTagsRequest - A Consumer that will call methods on ListPolicyTagsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPolicyVersionsPaginator

        default ListPolicyVersionsIterable listPolicyVersionsPaginator​(ListPolicyVersionsRequest listPolicyVersionsRequest)
                                                                throws NoSuchEntityException,
                                                                       InvalidInputException,
                                                                       ServiceFailureException,
                                                                       AwsServiceException,
                                                                       SdkClientException,
                                                                       IamException

        This is a variant of listPolicyVersions(software.amazon.awssdk.services.iam.model.ListPolicyVersionsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListPolicyVersionsIterable responses = client.listPolicyVersionsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListPolicyVersionsIterable responses = client
                     .listPolicyVersionsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListPolicyVersionsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListPolicyVersionsIterable responses = client.listPolicyVersionsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listPolicyVersions(software.amazon.awssdk.services.iam.model.ListPolicyVersionsRequest) operation.

        Parameters:
        listPolicyVersionsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listPolicyVersionsPaginator

        default ListPolicyVersionsIterable listPolicyVersionsPaginator​(Consumer<ListPolicyVersionsRequest.Builder> listPolicyVersionsRequest)
                                                                throws NoSuchEntityException,
                                                                       InvalidInputException,
                                                                       ServiceFailureException,
                                                                       AwsServiceException,
                                                                       SdkClientException,
                                                                       IamException

        This is a variant of listPolicyVersions(software.amazon.awssdk.services.iam.model.ListPolicyVersionsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListPolicyVersionsIterable responses = client.listPolicyVersionsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListPolicyVersionsIterable responses = client
                     .listPolicyVersionsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListPolicyVersionsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListPolicyVersionsIterable responses = client.listPolicyVersionsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listPolicyVersions(software.amazon.awssdk.services.iam.model.ListPolicyVersionsRequest) operation.


        This is a convenience which creates an instance of the ListPolicyVersionsRequest.Builder avoiding the need to create one manually via ListPolicyVersionsRequest.builder()

        Parameters:
        listPolicyVersionsRequest - A Consumer that will call methods on ListPolicyVersionsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listRolePoliciesPaginator

        default ListRolePoliciesIterable listRolePoliciesPaginator​(ListRolePoliciesRequest listRolePoliciesRequest)
                                                            throws NoSuchEntityException,
                                                                   ServiceFailureException,
                                                                   AwsServiceException,
                                                                   SdkClientException,
                                                                   IamException

        This is a variant of listRolePolicies(software.amazon.awssdk.services.iam.model.ListRolePoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListRolePoliciesIterable responses = client.listRolePoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListRolePoliciesIterable responses = client.listRolePoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListRolePoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListRolePoliciesIterable responses = client.listRolePoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listRolePolicies(software.amazon.awssdk.services.iam.model.ListRolePoliciesRequest) operation.

        Parameters:
        listRolePoliciesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listRolePoliciesPaginator

        default ListRolePoliciesIterable listRolePoliciesPaginator​(Consumer<ListRolePoliciesRequest.Builder> listRolePoliciesRequest)
                                                            throws NoSuchEntityException,
                                                                   ServiceFailureException,
                                                                   AwsServiceException,
                                                                   SdkClientException,
                                                                   IamException

        This is a variant of listRolePolicies(software.amazon.awssdk.services.iam.model.ListRolePoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListRolePoliciesIterable responses = client.listRolePoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListRolePoliciesIterable responses = client.listRolePoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListRolePoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListRolePoliciesIterable responses = client.listRolePoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listRolePolicies(software.amazon.awssdk.services.iam.model.ListRolePoliciesRequest) operation.


        This is a convenience which creates an instance of the ListRolePoliciesRequest.Builder avoiding the need to create one manually via ListRolePoliciesRequest.builder()

        Parameters:
        listRolePoliciesRequest - A Consumer that will call methods on ListRolePoliciesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listRoleTagsPaginator

        default ListRoleTagsIterable listRoleTagsPaginator​(ListRoleTagsRequest listRoleTagsRequest)
                                                    throws NoSuchEntityException,
                                                           ServiceFailureException,
                                                           AwsServiceException,
                                                           SdkClientException,
                                                           IamException

        This is a variant of listRoleTags(software.amazon.awssdk.services.iam.model.ListRoleTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListRoleTagsIterable responses = client.listRoleTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListRoleTagsIterable responses = client.listRoleTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListRoleTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListRoleTagsIterable responses = client.listRoleTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listRoleTags(software.amazon.awssdk.services.iam.model.ListRoleTagsRequest) operation.

        Parameters:
        listRoleTagsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listRoleTagsPaginator

        default ListRoleTagsIterable listRoleTagsPaginator​(Consumer<ListRoleTagsRequest.Builder> listRoleTagsRequest)
                                                    throws NoSuchEntityException,
                                                           ServiceFailureException,
                                                           AwsServiceException,
                                                           SdkClientException,
                                                           IamException

        This is a variant of listRoleTags(software.amazon.awssdk.services.iam.model.ListRoleTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListRoleTagsIterable responses = client.listRoleTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListRoleTagsIterable responses = client.listRoleTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListRoleTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListRoleTagsIterable responses = client.listRoleTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listRoleTags(software.amazon.awssdk.services.iam.model.ListRoleTagsRequest) operation.


        This is a convenience which creates an instance of the ListRoleTagsRequest.Builder avoiding the need to create one manually via ListRoleTagsRequest.builder()

        Parameters:
        listRoleTagsRequest - A Consumer that will call methods on ListRoleTagsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listRoles

        default ListRolesResponse listRoles​(ListRolesRequest listRolesRequest)
                                     throws ServiceFailureException,
                                            AwsServiceException,
                                            SdkClientException,
                                            IamException

        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.

        IAM resource-listing operations return a subset of the available attributes for the resource. This operation does not return the following attributes, even though they are an attribute of the returned object:

        • PermissionsBoundary

        • RoleLastUsed

        • Tags

        To view all of the information for a role, see GetRole.

        You can paginate the results using the MaxItems and Marker parameters.

        Parameters:
        listRolesRequest -
        Returns:
        Result of the ListRoles operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listRoles

        default ListRolesResponse listRoles​(Consumer<ListRolesRequest.Builder> listRolesRequest)
                                     throws ServiceFailureException,
                                            AwsServiceException,
                                            SdkClientException,
                                            IamException

        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.

        IAM resource-listing operations return a subset of the available attributes for the resource. This operation does not return the following attributes, even though they are an attribute of the returned object:

        • PermissionsBoundary

        • RoleLastUsed

        • Tags

        To view all of the information for a role, see GetRole.

        You can paginate the results using the MaxItems and Marker parameters.


        This is a convenience which creates an instance of the ListRolesRequest.Builder avoiding the need to create one manually via ListRolesRequest.builder()

        Parameters:
        listRolesRequest - A Consumer that will call methods on ListRolesRequest.Builder to create a request.
        Returns:
        Result of the ListRoles operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listRoles

        default ListRolesResponse listRoles()
                                     throws ServiceFailureException,
                                            AwsServiceException,
                                            SdkClientException,
                                            IamException

        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.

        IAM resource-listing operations return a subset of the available attributes for the resource. This operation does not return the following attributes, even though they are an attribute of the returned object:

        • PermissionsBoundary

        • RoleLastUsed

        • Tags

        To view all of the information for a role, see GetRole.

        You can paginate the results using the MaxItems and Marker parameters.

        Returns:
        Result of the ListRoles operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listRoles(ListRolesRequest), AWS API Documentation
      • listRolesPaginator

        default ListRolesIterable listRolesPaginator()
                                              throws ServiceFailureException,
                                                     AwsServiceException,
                                                     SdkClientException,
                                                     IamException

        This is a variant of listRoles(software.amazon.awssdk.services.iam.model.ListRolesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListRolesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listRoles(software.amazon.awssdk.services.iam.model.ListRolesRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listRolesPaginator(ListRolesRequest), AWS API Documentation
      • listRolesPaginator

        default ListRolesIterable listRolesPaginator​(ListRolesRequest listRolesRequest)
                                              throws ServiceFailureException,
                                                     AwsServiceException,
                                                     SdkClientException,
                                                     IamException

        This is a variant of listRoles(software.amazon.awssdk.services.iam.model.ListRolesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListRolesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listRoles(software.amazon.awssdk.services.iam.model.ListRolesRequest) operation.

        Parameters:
        listRolesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listRolesPaginator

        default ListRolesIterable listRolesPaginator​(Consumer<ListRolesRequest.Builder> listRolesRequest)
                                              throws ServiceFailureException,
                                                     AwsServiceException,
                                                     SdkClientException,
                                                     IamException

        This is a variant of listRoles(software.amazon.awssdk.services.iam.model.ListRolesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListRolesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListRolesIterable responses = client.listRolesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listRoles(software.amazon.awssdk.services.iam.model.ListRolesRequest) operation.


        This is a convenience which creates an instance of the ListRolesRequest.Builder avoiding the need to create one manually via ListRolesRequest.builder()

        Parameters:
        listRolesRequest - A Consumer that will call methods on ListRolesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSAMLProviderTagsPaginator

        default ListSAMLProviderTagsIterable listSAMLProviderTagsPaginator​(ListSamlProviderTagsRequest listSamlProviderTagsRequest)
                                                                    throws NoSuchEntityException,
                                                                           ServiceFailureException,
                                                                           InvalidInputException,
                                                                           AwsServiceException,
                                                                           SdkClientException,
                                                                           IamException

        This is a variant of listSAMLProviderTags(software.amazon.awssdk.services.iam.model.ListSamlProviderTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListSAMLProviderTagsIterable responses = client.listSAMLProviderTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListSAMLProviderTagsIterable responses = client
                     .listSAMLProviderTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListSamlProviderTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListSAMLProviderTagsIterable responses = client.listSAMLProviderTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSAMLProviderTags(software.amazon.awssdk.services.iam.model.ListSamlProviderTagsRequest) operation.

        Parameters:
        listSamlProviderTagsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSAMLProviderTagsPaginator

        default ListSAMLProviderTagsIterable listSAMLProviderTagsPaginator​(Consumer<ListSamlProviderTagsRequest.Builder> listSamlProviderTagsRequest)
                                                                    throws NoSuchEntityException,
                                                                           ServiceFailureException,
                                                                           InvalidInputException,
                                                                           AwsServiceException,
                                                                           SdkClientException,
                                                                           IamException

        This is a variant of listSAMLProviderTags(software.amazon.awssdk.services.iam.model.ListSamlProviderTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListSAMLProviderTagsIterable responses = client.listSAMLProviderTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListSAMLProviderTagsIterable responses = client
                     .listSAMLProviderTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListSamlProviderTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListSAMLProviderTagsIterable responses = client.listSAMLProviderTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSAMLProviderTags(software.amazon.awssdk.services.iam.model.ListSamlProviderTagsRequest) operation.


        This is a convenience which creates an instance of the ListSamlProviderTagsRequest.Builder avoiding the need to create one manually via ListSamlProviderTagsRequest.builder()

        Parameters:
        listSamlProviderTagsRequest - A Consumer that will call methods on ListSamlProviderTagsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSAMLProviders

        default ListSamlProvidersResponse listSAMLProviders​(ListSamlProvidersRequest listSamlProvidersRequest)
                                                     throws ServiceFailureException,
                                                            AwsServiceException,
                                                            SdkClientException,
                                                            IamException

        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.

        This operation requires Signature Version 4.

        Parameters:
        listSamlProvidersRequest -
        Returns:
        Result of the ListSAMLProviders operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSSHPublicKeys

        default ListSshPublicKeysResponse listSSHPublicKeys​(ListSshPublicKeysRequest listSshPublicKeysRequest)
                                                     throws NoSuchEntityException,
                                                            AwsServiceException,
                                                            SdkClientException,
                                                            IamException

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

        The SSH public keys returned by this operation are used only for authenticating the IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see Set up CodeCommit for SSH connections in the CodeCommit User Guide.

        Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

        Parameters:
        listSshPublicKeysRequest -
        Returns:
        Result of the ListSSHPublicKeys operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSSHPublicKeys

        default ListSshPublicKeysResponse listSSHPublicKeys()
                                                     throws NoSuchEntityException,
                                                            AwsServiceException,
                                                            SdkClientException,
                                                            IamException

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

        The SSH public keys returned by this operation are used only for authenticating the IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see Set up CodeCommit for SSH connections in the CodeCommit User Guide.

        Although each user is limited to a small number of keys, you can still paginate the results using the MaxItems and Marker parameters.

        Returns:
        Result of the ListSSHPublicKeys operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listSSHPublicKeys(ListSshPublicKeysRequest), AWS API Documentation
      • listSSHPublicKeysPaginator

        default ListSSHPublicKeysIterable listSSHPublicKeysPaginator()
                                                              throws NoSuchEntityException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listSSHPublicKeys(software.amazon.awssdk.services.iam.model.ListSshPublicKeysRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client.listSSHPublicKeysPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client
                     .listSSHPublicKeysPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListSshPublicKeysResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client.listSSHPublicKeysPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSSHPublicKeys(software.amazon.awssdk.services.iam.model.ListSshPublicKeysRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listSSHPublicKeysPaginator(ListSshPublicKeysRequest), AWS API Documentation
      • listSSHPublicKeysPaginator

        default ListSSHPublicKeysIterable listSSHPublicKeysPaginator​(ListSshPublicKeysRequest listSshPublicKeysRequest)
                                                              throws NoSuchEntityException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listSSHPublicKeys(software.amazon.awssdk.services.iam.model.ListSshPublicKeysRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client.listSSHPublicKeysPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client
                     .listSSHPublicKeysPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListSshPublicKeysResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client.listSSHPublicKeysPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSSHPublicKeys(software.amazon.awssdk.services.iam.model.ListSshPublicKeysRequest) operation.

        Parameters:
        listSshPublicKeysRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSSHPublicKeysPaginator

        default ListSSHPublicKeysIterable listSSHPublicKeysPaginator​(Consumer<ListSshPublicKeysRequest.Builder> listSshPublicKeysRequest)
                                                              throws NoSuchEntityException,
                                                                     AwsServiceException,
                                                                     SdkClientException,
                                                                     IamException

        This is a variant of listSSHPublicKeys(software.amazon.awssdk.services.iam.model.ListSshPublicKeysRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client.listSSHPublicKeysPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client
                     .listSSHPublicKeysPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListSshPublicKeysResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListSSHPublicKeysIterable responses = client.listSSHPublicKeysPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSSHPublicKeys(software.amazon.awssdk.services.iam.model.ListSshPublicKeysRequest) operation.


        This is a convenience which creates an instance of the ListSshPublicKeysRequest.Builder avoiding the need to create one manually via ListSshPublicKeysRequest.builder()

        Parameters:
        listSshPublicKeysRequest - A Consumer that will call methods on ListSshPublicKeysRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listServerCertificateTagsPaginator

        default ListServerCertificateTagsIterable listServerCertificateTagsPaginator​(ListServerCertificateTagsRequest listServerCertificateTagsRequest)
                                                                              throws NoSuchEntityException,
                                                                                     ServiceFailureException,
                                                                                     AwsServiceException,
                                                                                     SdkClientException,
                                                                                     IamException

        This is a variant of listServerCertificateTags(software.amazon.awssdk.services.iam.model.ListServerCertificateTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificateTagsIterable responses = client.listServerCertificateTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListServerCertificateTagsIterable responses = client
                     .listServerCertificateTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListServerCertificateTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificateTagsIterable responses = client.listServerCertificateTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listServerCertificateTags(software.amazon.awssdk.services.iam.model.ListServerCertificateTagsRequest) operation.

        Parameters:
        listServerCertificateTagsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listServerCertificateTagsPaginator

        default ListServerCertificateTagsIterable listServerCertificateTagsPaginator​(Consumer<ListServerCertificateTagsRequest.Builder> listServerCertificateTagsRequest)
                                                                              throws NoSuchEntityException,
                                                                                     ServiceFailureException,
                                                                                     AwsServiceException,
                                                                                     SdkClientException,
                                                                                     IamException

        This is a variant of listServerCertificateTags(software.amazon.awssdk.services.iam.model.ListServerCertificateTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificateTagsIterable responses = client.listServerCertificateTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListServerCertificateTagsIterable responses = client
                     .listServerCertificateTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListServerCertificateTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificateTagsIterable responses = client.listServerCertificateTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listServerCertificateTags(software.amazon.awssdk.services.iam.model.ListServerCertificateTagsRequest) operation.


        This is a convenience which creates an instance of the ListServerCertificateTagsRequest.Builder avoiding the need to create one manually via ListServerCertificateTagsRequest.builder()

        Parameters:
        listServerCertificateTagsRequest - A Consumer that will call methods on ListServerCertificateTagsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listServerCertificates

        default ListServerCertificatesResponse listServerCertificates​(ListServerCertificatesRequest listServerCertificatesRequest)
                                                               throws ServiceFailureException,
                                                                      AwsServiceException,
                                                                      SdkClientException,
                                                                      IamException

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

        You can paginate the results using the MaxItems and Marker parameters.

        For more information about working with server certificates, see Working with server certificates in the IAM User Guide. This topic also includes a list of Amazon Web Services services that can use the server certificates that you manage with IAM.

        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 servercertificate, see GetServerCertificate.

        Parameters:
        listServerCertificatesRequest -
        Returns:
        Result of the ListServerCertificates operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listServerCertificates

        default ListServerCertificatesResponse listServerCertificates()
                                                               throws ServiceFailureException,
                                                                      AwsServiceException,
                                                                      SdkClientException,
                                                                      IamException

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

        You can paginate the results using the MaxItems and Marker parameters.

        For more information about working with server certificates, see Working with server certificates in the IAM User Guide. This topic also includes a list of Amazon Web Services services that can use the server certificates that you manage with IAM.

        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 servercertificate, see GetServerCertificate.

        Returns:
        Result of the ListServerCertificates operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listServerCertificates(ListServerCertificatesRequest), AWS API Documentation
      • listServerCertificatesPaginator

        default ListServerCertificatesIterable listServerCertificatesPaginator()
                                                                        throws ServiceFailureException,
                                                                               AwsServiceException,
                                                                               SdkClientException,
                                                                               IamException

        This is a variant of listServerCertificates(software.amazon.awssdk.services.iam.model.ListServerCertificatesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client.listServerCertificatesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client
                     .listServerCertificatesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListServerCertificatesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client.listServerCertificatesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listServerCertificates(software.amazon.awssdk.services.iam.model.ListServerCertificatesRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listServerCertificatesPaginator(ListServerCertificatesRequest), AWS API Documentation
      • listServerCertificatesPaginator

        default ListServerCertificatesIterable listServerCertificatesPaginator​(ListServerCertificatesRequest listServerCertificatesRequest)
                                                                        throws ServiceFailureException,
                                                                               AwsServiceException,
                                                                               SdkClientException,
                                                                               IamException

        This is a variant of listServerCertificates(software.amazon.awssdk.services.iam.model.ListServerCertificatesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client.listServerCertificatesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client
                     .listServerCertificatesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListServerCertificatesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client.listServerCertificatesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listServerCertificates(software.amazon.awssdk.services.iam.model.ListServerCertificatesRequest) operation.

        Parameters:
        listServerCertificatesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listServerCertificatesPaginator

        default ListServerCertificatesIterable listServerCertificatesPaginator​(Consumer<ListServerCertificatesRequest.Builder> listServerCertificatesRequest)
                                                                        throws ServiceFailureException,
                                                                               AwsServiceException,
                                                                               SdkClientException,
                                                                               IamException

        This is a variant of listServerCertificates(software.amazon.awssdk.services.iam.model.ListServerCertificatesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client.listServerCertificatesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client
                     .listServerCertificatesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListServerCertificatesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListServerCertificatesIterable responses = client.listServerCertificatesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listServerCertificates(software.amazon.awssdk.services.iam.model.ListServerCertificatesRequest) operation.


        This is a convenience which creates an instance of the ListServerCertificatesRequest.Builder avoiding the need to create one manually via ListServerCertificatesRequest.builder()

        Parameters:
        listServerCertificatesRequest - A Consumer that will call methods on ListServerCertificatesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSigningCertificates

        default ListSigningCertificatesResponse listSigningCertificates​(ListSigningCertificatesRequest listSigningCertificatesRequest)
                                                                 throws NoSuchEntityException,
                                                                        ServiceFailureException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

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

        Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.

        If the UserName field is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request for this operation. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.

        Parameters:
        listSigningCertificatesRequest -
        Returns:
        Result of the ListSigningCertificates operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSigningCertificates

        default ListSigningCertificatesResponse listSigningCertificates​(Consumer<ListSigningCertificatesRequest.Builder> listSigningCertificatesRequest)
                                                                 throws NoSuchEntityException,
                                                                        ServiceFailureException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

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

        Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.

        If the UserName field is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request for this operation. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.


        This is a convenience which creates an instance of the ListSigningCertificatesRequest.Builder avoiding the need to create one manually via ListSigningCertificatesRequest.builder()

        Parameters:
        listSigningCertificatesRequest - A Consumer that will call methods on ListSigningCertificatesRequest.Builder to create a request.
        Returns:
        Result of the ListSigningCertificates operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSigningCertificates

        default ListSigningCertificatesResponse listSigningCertificates()
                                                                 throws NoSuchEntityException,
                                                                        ServiceFailureException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

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

        Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.

        If the UserName field is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request for this operation. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.

        Returns:
        Result of the ListSigningCertificates operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listSigningCertificates(ListSigningCertificatesRequest), AWS API Documentation
      • listSigningCertificatesPaginator

        default ListSigningCertificatesIterable listSigningCertificatesPaginator()
                                                                          throws NoSuchEntityException,
                                                                                 ServiceFailureException,
                                                                                 AwsServiceException,
                                                                                 SdkClientException,
                                                                                 IamException

        This is a variant of listSigningCertificates(software.amazon.awssdk.services.iam.model.ListSigningCertificatesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client.listSigningCertificatesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client
                     .listSigningCertificatesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListSigningCertificatesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client.listSigningCertificatesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSigningCertificates(software.amazon.awssdk.services.iam.model.ListSigningCertificatesRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listSigningCertificatesPaginator(ListSigningCertificatesRequest), AWS API Documentation
      • listSigningCertificatesPaginator

        default ListSigningCertificatesIterable listSigningCertificatesPaginator​(ListSigningCertificatesRequest listSigningCertificatesRequest)
                                                                          throws NoSuchEntityException,
                                                                                 ServiceFailureException,
                                                                                 AwsServiceException,
                                                                                 SdkClientException,
                                                                                 IamException

        This is a variant of listSigningCertificates(software.amazon.awssdk.services.iam.model.ListSigningCertificatesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client.listSigningCertificatesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client
                     .listSigningCertificatesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListSigningCertificatesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client.listSigningCertificatesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSigningCertificates(software.amazon.awssdk.services.iam.model.ListSigningCertificatesRequest) operation.

        Parameters:
        listSigningCertificatesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listSigningCertificatesPaginator

        default ListSigningCertificatesIterable listSigningCertificatesPaginator​(Consumer<ListSigningCertificatesRequest.Builder> listSigningCertificatesRequest)
                                                                          throws NoSuchEntityException,
                                                                                 ServiceFailureException,
                                                                                 AwsServiceException,
                                                                                 SdkClientException,
                                                                                 IamException

        This is a variant of listSigningCertificates(software.amazon.awssdk.services.iam.model.ListSigningCertificatesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client.listSigningCertificatesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client
                     .listSigningCertificatesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListSigningCertificatesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListSigningCertificatesIterable responses = client.listSigningCertificatesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSigningCertificates(software.amazon.awssdk.services.iam.model.ListSigningCertificatesRequest) operation.


        This is a convenience which creates an instance of the ListSigningCertificatesRequest.Builder avoiding the need to create one manually via ListSigningCertificatesRequest.builder()

        Parameters:
        listSigningCertificatesRequest - A Consumer that will call methods on ListSigningCertificatesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listUserPoliciesPaginator

        default ListUserPoliciesIterable listUserPoliciesPaginator​(ListUserPoliciesRequest listUserPoliciesRequest)
                                                            throws NoSuchEntityException,
                                                                   ServiceFailureException,
                                                                   AwsServiceException,
                                                                   SdkClientException,
                                                                   IamException

        This is a variant of listUserPolicies(software.amazon.awssdk.services.iam.model.ListUserPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListUserPoliciesIterable responses = client.listUserPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListUserPoliciesIterable responses = client.listUserPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListUserPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListUserPoliciesIterable responses = client.listUserPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listUserPolicies(software.amazon.awssdk.services.iam.model.ListUserPoliciesRequest) operation.

        Parameters:
        listUserPoliciesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listUserPoliciesPaginator

        default ListUserPoliciesIterable listUserPoliciesPaginator​(Consumer<ListUserPoliciesRequest.Builder> listUserPoliciesRequest)
                                                            throws NoSuchEntityException,
                                                                   ServiceFailureException,
                                                                   AwsServiceException,
                                                                   SdkClientException,
                                                                   IamException

        This is a variant of listUserPolicies(software.amazon.awssdk.services.iam.model.ListUserPoliciesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListUserPoliciesIterable responses = client.listUserPoliciesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListUserPoliciesIterable responses = client.listUserPoliciesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListUserPoliciesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListUserPoliciesIterable responses = client.listUserPoliciesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listUserPolicies(software.amazon.awssdk.services.iam.model.ListUserPoliciesRequest) operation.


        This is a convenience which creates an instance of the ListUserPoliciesRequest.Builder avoiding the need to create one manually via ListUserPoliciesRequest.builder()

        Parameters:
        listUserPoliciesRequest - A Consumer that will call methods on ListUserPoliciesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listUserTagsPaginator

        default ListUserTagsIterable listUserTagsPaginator​(ListUserTagsRequest listUserTagsRequest)
                                                    throws NoSuchEntityException,
                                                           ServiceFailureException,
                                                           AwsServiceException,
                                                           SdkClientException,
                                                           IamException

        This is a variant of listUserTags(software.amazon.awssdk.services.iam.model.ListUserTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListUserTagsIterable responses = client.listUserTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListUserTagsIterable responses = client.listUserTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListUserTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListUserTagsIterable responses = client.listUserTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listUserTags(software.amazon.awssdk.services.iam.model.ListUserTagsRequest) operation.

        Parameters:
        listUserTagsRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listUserTagsPaginator

        default ListUserTagsIterable listUserTagsPaginator​(Consumer<ListUserTagsRequest.Builder> listUserTagsRequest)
                                                    throws NoSuchEntityException,
                                                           ServiceFailureException,
                                                           AwsServiceException,
                                                           SdkClientException,
                                                           IamException

        This is a variant of listUserTags(software.amazon.awssdk.services.iam.model.ListUserTagsRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListUserTagsIterable responses = client.listUserTagsPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListUserTagsIterable responses = client.listUserTagsPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListUserTagsResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListUserTagsIterable responses = client.listUserTagsPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listUserTags(software.amazon.awssdk.services.iam.model.ListUserTagsRequest) operation.


        This is a convenience which creates an instance of the ListUserTagsRequest.Builder avoiding the need to create one manually via ListUserTagsRequest.builder()

        Parameters:
        listUserTagsRequest - A Consumer that will call methods on ListUserTagsRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listUsers

        default ListUsersResponse listUsers​(ListUsersRequest listUsersRequest)
                                     throws ServiceFailureException,
                                            AwsServiceException,
                                            SdkClientException,
                                            IamException

        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.

        IAM resource-listing operations return a subset of the available attributes for the resource. This operation does not return the following attributes, even though they are an attribute of the returned object:

        • PermissionsBoundary

        • Tags

        To view all of the information for a user, see GetUser.

        You can paginate the results using the MaxItems and Marker parameters.

        Parameters:
        listUsersRequest -
        Returns:
        Result of the ListUsers operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listUsers

        default ListUsersResponse listUsers​(Consumer<ListUsersRequest.Builder> listUsersRequest)
                                     throws ServiceFailureException,
                                            AwsServiceException,
                                            SdkClientException,
                                            IamException

        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.

        IAM resource-listing operations return a subset of the available attributes for the resource. This operation does not return the following attributes, even though they are an attribute of the returned object:

        • PermissionsBoundary

        • Tags

        To view all of the information for a user, see GetUser.

        You can paginate the results using the MaxItems and Marker parameters.


        This is a convenience which creates an instance of the ListUsersRequest.Builder avoiding the need to create one manually via ListUsersRequest.builder()

        Parameters:
        listUsersRequest - A Consumer that will call methods on ListUsersRequest.Builder to create a request.
        Returns:
        Result of the ListUsers operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listUsers

        default ListUsersResponse listUsers()
                                     throws ServiceFailureException,
                                            AwsServiceException,
                                            SdkClientException,
                                            IamException

        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.

        IAM resource-listing operations return a subset of the available attributes for the resource. This operation does not return the following attributes, even though they are an attribute of the returned object:

        • PermissionsBoundary

        • Tags

        To view all of the information for a user, see GetUser.

        You can paginate the results using the MaxItems and Marker parameters.

        Returns:
        Result of the ListUsers operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listUsers(ListUsersRequest), AWS API Documentation
      • listUsersPaginator

        default ListUsersIterable listUsersPaginator()
                                              throws ServiceFailureException,
                                                     AwsServiceException,
                                                     SdkClientException,
                                                     IamException

        This is a variant of listUsers(software.amazon.awssdk.services.iam.model.ListUsersRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListUsersResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listUsers(software.amazon.awssdk.services.iam.model.ListUsersRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listUsersPaginator(ListUsersRequest), AWS API Documentation
      • listUsersPaginator

        default ListUsersIterable listUsersPaginator​(ListUsersRequest listUsersRequest)
                                              throws ServiceFailureException,
                                                     AwsServiceException,
                                                     SdkClientException,
                                                     IamException

        This is a variant of listUsers(software.amazon.awssdk.services.iam.model.ListUsersRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListUsersResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listUsers(software.amazon.awssdk.services.iam.model.ListUsersRequest) operation.

        Parameters:
        listUsersRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listUsersPaginator

        default ListUsersIterable listUsersPaginator​(Consumer<ListUsersRequest.Builder> listUsersRequest)
                                              throws ServiceFailureException,
                                                     AwsServiceException,
                                                     SdkClientException,
                                                     IamException

        This is a variant of listUsers(software.amazon.awssdk.services.iam.model.ListUsersRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListUsersResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListUsersIterable responses = client.listUsersPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listUsers(software.amazon.awssdk.services.iam.model.ListUsersRequest) operation.


        This is a convenience which creates an instance of the ListUsersRequest.Builder avoiding the need to create one manually via ListUsersRequest.builder()

        Parameters:
        listUsersRequest - A Consumer that will call methods on ListUsersRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listVirtualMFADevices

        default ListVirtualMfaDevicesResponse listVirtualMFADevices​(ListVirtualMfaDevicesRequest listVirtualMfaDevicesRequest)
                                                             throws AwsServiceException,
                                                                    SdkClientException,
                                                                    IamException

        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.

        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 tag information for a virtual MFA device, see ListMFADeviceTags.

        You can paginate the results using the MaxItems and Marker parameters.

        Parameters:
        listVirtualMfaDevicesRequest -
        Returns:
        Result of the ListVirtualMFADevices operation returned by the service.
        Throws:
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listVirtualMFADevices

        default ListVirtualMfaDevicesResponse listVirtualMFADevices​(Consumer<ListVirtualMfaDevicesRequest.Builder> listVirtualMfaDevicesRequest)
                                                             throws AwsServiceException,
                                                                    SdkClientException,
                                                                    IamException

        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.

        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 tag information for a virtual MFA device, see ListMFADeviceTags.

        You can paginate the results using the MaxItems and Marker parameters.


        This is a convenience which creates an instance of the ListVirtualMfaDevicesRequest.Builder avoiding the need to create one manually via ListVirtualMfaDevicesRequest.builder()

        Parameters:
        listVirtualMfaDevicesRequest - A Consumer that will call methods on ListVirtualMfaDevicesRequest.Builder to create a request.
        Returns:
        Result of the ListVirtualMFADevices operation returned by the service.
        Throws:
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listVirtualMFADevices

        default ListVirtualMfaDevicesResponse listVirtualMFADevices()
                                                             throws AwsServiceException,
                                                                    SdkClientException,
                                                                    IamException

        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.

        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 tag information for a virtual MFA device, see ListMFADeviceTags.

        You can paginate the results using the MaxItems and Marker parameters.

        Returns:
        Result of the ListVirtualMFADevices operation returned by the service.
        Throws:
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listVirtualMFADevices(ListVirtualMfaDevicesRequest), AWS API Documentation
      • listVirtualMFADevicesPaginator

        default ListVirtualMFADevicesIterable listVirtualMFADevicesPaginator()
                                                                      throws AwsServiceException,
                                                                             SdkClientException,
                                                                             IamException

        This is a variant of listVirtualMFADevices(software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client.listVirtualMFADevicesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client
                     .listVirtualMFADevicesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client.listVirtualMFADevicesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listVirtualMFADevices(software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesRequest) operation.

        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        listVirtualMFADevicesPaginator(ListVirtualMfaDevicesRequest), AWS API Documentation
      • listVirtualMFADevicesPaginator

        default ListVirtualMFADevicesIterable listVirtualMFADevicesPaginator​(ListVirtualMfaDevicesRequest listVirtualMfaDevicesRequest)
                                                                      throws AwsServiceException,
                                                                             SdkClientException,
                                                                             IamException

        This is a variant of listVirtualMFADevices(software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client.listVirtualMFADevicesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client
                     .listVirtualMFADevicesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client.listVirtualMFADevicesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listVirtualMFADevices(software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesRequest) operation.

        Parameters:
        listVirtualMfaDevicesRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • listVirtualMFADevicesPaginator

        default ListVirtualMFADevicesIterable listVirtualMFADevicesPaginator​(Consumer<ListVirtualMfaDevicesRequest.Builder> listVirtualMfaDevicesRequest)
                                                                      throws AwsServiceException,
                                                                             SdkClientException,
                                                                             IamException

        This is a variant of listVirtualMFADevices(software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client.listVirtualMFADevicesPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client
                     .listVirtualMFADevicesPaginator(request);
             for (software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.ListVirtualMFADevicesIterable responses = client.listVirtualMFADevicesPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listVirtualMFADevices(software.amazon.awssdk.services.iam.model.ListVirtualMfaDevicesRequest) operation.


        This is a convenience which creates an instance of the ListVirtualMfaDevicesRequest.Builder avoiding the need to create one manually via ListVirtualMfaDevicesRequest.builder()

        Parameters:
        listVirtualMfaDevicesRequest - A Consumer that will call methods on ListVirtualMfaDevicesRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • putRolePermissionsBoundary

        default PutRolePermissionsBoundaryResponse putRolePermissionsBoundary​(PutRolePermissionsBoundaryRequest putRolePermissionsBoundaryRequest)
                                                                       throws NoSuchEntityException,
                                                                              InvalidInputException,
                                                                              UnmodifiableEntityException,
                                                                              PolicyNotAttachableException,
                                                                              ServiceFailureException,
                                                                              AwsServiceException,
                                                                              SdkClientException,
                                                                              IamException

        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.

        You cannot set the boundary for a service-linked role.

        Policies used as permissions boundaries do not provide permissions. You must also attach a permissions policy to the role. To learn how the effective permissions for a role are evaluated, see IAM JSON policy evaluation logic in the IAM User Guide.

        Parameters:
        putRolePermissionsBoundaryRequest -
        Returns:
        Result of the PutRolePermissionsBoundary operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        UnmodifiableEntityException - The request was rejected because service-linked roles are protected Amazon Web Services resources. Only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service.
        PolicyNotAttachableException - The request failed because Amazon Web Services service role policies can only be attached to the service-linked role for that service.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • putRolePolicy

        default PutRolePolicyResponse putRolePolicy​(PutRolePolicyRequest putRolePolicyRequest)
                                             throws LimitExceededException,
                                                    MalformedPolicyDocumentException,
                                                    NoSuchEntityException,
                                                    UnmodifiableEntityException,
                                                    ServiceFailureException,
                                                    AwsServiceException,
                                                    SdkClientException,
                                                    IamException

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

        When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole . You can update a role's trust policy using UpdateAssumeRolePolicy . For more information about roles, see IAM roles in the IAM User Guide.

        A role can also have a managed policy attached to it. To attach a managed policy to a role, use AttachRolePolicy . To create a new managed policy, use CreatePolicy . For information about policies, see Managed policies and inline policies in the IAM User Guide.

        For information about the maximum number of inline policies that you can embed with a role, see IAM and STS quotas in the IAM User Guide.

        Because policy documents can be large, you should use POST rather than GET when calling PutRolePolicy. For general information about using the Query API with IAM, see Making query requests in the IAM User Guide.

        Parameters:
        putRolePolicyRequest -
        Returns:
        Result of the PutRolePolicy operation returned by the service.
        Throws:
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        MalformedPolicyDocumentException - The request was rejected because the policy document was malformed. The error message describes the specific error.
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        UnmodifiableEntityException - The request was rejected because service-linked roles are protected Amazon Web Services resources. Only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • putUserPermissionsBoundary

        default PutUserPermissionsBoundaryResponse putUserPermissionsBoundary​(PutUserPermissionsBoundaryRequest putUserPermissionsBoundaryRequest)
                                                                       throws NoSuchEntityException,
                                                                              InvalidInputException,
                                                                              PolicyNotAttachableException,
                                                                              ServiceFailureException,
                                                                              AwsServiceException,
                                                                              SdkClientException,
                                                                              IamException

        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.

        Policies that are used as permissions boundaries do not provide permissions. You must also attach a permissions policy to the user. To learn how the effective permissions for a user are evaluated, see IAM JSON policy evaluation logic in the IAM User Guide.

        Parameters:
        putUserPermissionsBoundaryRequest -
        Returns:
        Result of the PutUserPermissionsBoundary operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyNotAttachableException - The request failed because Amazon Web Services service role policies can only be attached to the service-linked role for that service.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • removeRoleFromInstanceProfile

        default RemoveRoleFromInstanceProfileResponse removeRoleFromInstanceProfile​(RemoveRoleFromInstanceProfileRequest removeRoleFromInstanceProfileRequest)
                                                                             throws NoSuchEntityException,
                                                                                    LimitExceededException,
                                                                                    UnmodifiableEntityException,
                                                                                    ServiceFailureException,
                                                                                    AwsServiceException,
                                                                                    SdkClientException,
                                                                                    IamException

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

        Make sure that you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance might break any applications running on the instance.

        For more information about roles, see IAM roles in the IAM User Guide. For more information about instance profiles, see Using instance profiles in the IAM User Guide.

        Parameters:
        removeRoleFromInstanceProfileRequest -
        Returns:
        Result of the RemoveRoleFromInstanceProfile operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        UnmodifiableEntityException - The request was rejected because service-linked roles are protected Amazon Web Services resources. Only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • resetServiceSpecificCredential

        default ResetServiceSpecificCredentialResponse resetServiceSpecificCredential​(ResetServiceSpecificCredentialRequest resetServiceSpecificCredentialRequest)
                                                                               throws NoSuchEntityException,
                                                                                      AwsServiceException,
                                                                                      SdkClientException,
                                                                                      IamException

        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.

        Parameters:
        resetServiceSpecificCredentialRequest -
        Returns:
        Result of the ResetServiceSpecificCredential operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • setSecurityTokenServicePreferences

        default SetSecurityTokenServicePreferencesResponse setSecurityTokenServicePreferences​(SetSecurityTokenServicePreferencesRequest setSecurityTokenServicePreferencesRequest)
                                                                                       throws ServiceFailureException,
                                                                                              AwsServiceException,
                                                                                              SdkClientException,
                                                                                              IamException

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

        By default, Security Token Service (STS) is available as a global service, and all STS requests go to a single endpoint at https://sts.amazonaws.com. Amazon Web Services recommends using Regional STS endpoints to reduce latency, build in redundancy, and increase session token availability. For information about Regional endpoints for STS, see Security Token Service endpoints and quotas in the Amazon Web Services General Reference.

        If you make an STS call to the global endpoint, the resulting session tokens might be valid in some Regions but not others. It depends on the version that is set in this operation. Version 1 tokens are valid only in Amazon Web Services Regions that are available by default. These tokens do not work in manually enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in all Regions. However, version 2 tokens are longer and might affect systems where you temporarily store tokens. For information, see Activating and deactivating STS in an Amazon Web Services Region in the IAM User Guide.

        To view the current session token version, see the GlobalEndpointTokenVersion entry in the response of the GetAccountSummary operation.

        Parameters:
        setSecurityTokenServicePreferencesRequest -
        Returns:
        Result of the SetSecurityTokenServicePreferences operation returned by the service.
        Throws:
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • simulateCustomPolicy

        default SimulateCustomPolicyResponse simulateCustomPolicy​(SimulateCustomPolicyRequest simulateCustomPolicyRequest)
                                                           throws InvalidInputException,
                                                                  PolicyEvaluationException,
                                                                  AwsServiceException,
                                                                  SdkClientException,
                                                                  IamException

        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.

        The simulation does not perform the API operations; it only checks the authorization to determine if the simulated policies allow or deny the operations. You can simulate resources that don't exist in your account.

        If you want to simulate existing policies that are attached to an IAM user, group, or role, use SimulatePrincipalPolicy instead.

        Context keys are variables that are maintained by Amazon Web Services and its services and which provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForCustomPolicy.

        If the output is long, you can use MaxItems and Marker parameters to paginate the results.

        The IAM policy simulator evaluates statements in the identity-based policy and the inputs that you provide during simulation. The policy simulator results can differ from your live Amazon Web Services environment. We recommend that you check your policies against your live Amazon Web Services environment after testing using the policy simulator to confirm that you have the desired results. For more information about using the policy simulator, see Testing IAM policies with the IAM policy simulator in the IAM User Guide.

        Parameters:
        simulateCustomPolicyRequest -
        Returns:
        Result of the SimulateCustomPolicy operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyEvaluationException - The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • simulateCustomPolicy

        default SimulateCustomPolicyResponse simulateCustomPolicy​(Consumer<SimulateCustomPolicyRequest.Builder> simulateCustomPolicyRequest)
                                                           throws InvalidInputException,
                                                                  PolicyEvaluationException,
                                                                  AwsServiceException,
                                                                  SdkClientException,
                                                                  IamException

        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.

        The simulation does not perform the API operations; it only checks the authorization to determine if the simulated policies allow or deny the operations. You can simulate resources that don't exist in your account.

        If you want to simulate existing policies that are attached to an IAM user, group, or role, use SimulatePrincipalPolicy instead.

        Context keys are variables that are maintained by Amazon Web Services and its services and which provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForCustomPolicy.

        If the output is long, you can use MaxItems and Marker parameters to paginate the results.

        The IAM policy simulator evaluates statements in the identity-based policy and the inputs that you provide during simulation. The policy simulator results can differ from your live Amazon Web Services environment. We recommend that you check your policies against your live Amazon Web Services environment after testing using the policy simulator to confirm that you have the desired results. For more information about using the policy simulator, see Testing IAM policies with the IAM policy simulator in the IAM User Guide.


        This is a convenience which creates an instance of the SimulateCustomPolicyRequest.Builder avoiding the need to create one manually via SimulateCustomPolicyRequest.builder()

        Parameters:
        simulateCustomPolicyRequest - A Consumer that will call methods on SimulateCustomPolicyRequest.Builder to create a request.
        Returns:
        Result of the SimulateCustomPolicy operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyEvaluationException - The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • simulateCustomPolicyPaginator

        default SimulateCustomPolicyIterable simulateCustomPolicyPaginator​(SimulateCustomPolicyRequest simulateCustomPolicyRequest)
                                                                    throws InvalidInputException,
                                                                           PolicyEvaluationException,
                                                                           AwsServiceException,
                                                                           SdkClientException,
                                                                           IamException

        This is a variant of simulateCustomPolicy(software.amazon.awssdk.services.iam.model.SimulateCustomPolicyRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.SimulateCustomPolicyIterable responses = client.simulateCustomPolicyPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.SimulateCustomPolicyIterable responses = client
                     .simulateCustomPolicyPaginator(request);
             for (software.amazon.awssdk.services.iam.model.SimulateCustomPolicyResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.SimulateCustomPolicyIterable responses = client.simulateCustomPolicyPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the simulateCustomPolicy(software.amazon.awssdk.services.iam.model.SimulateCustomPolicyRequest) operation.

        Parameters:
        simulateCustomPolicyRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyEvaluationException - The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • simulateCustomPolicyPaginator

        default SimulateCustomPolicyIterable simulateCustomPolicyPaginator​(Consumer<SimulateCustomPolicyRequest.Builder> simulateCustomPolicyRequest)
                                                                    throws InvalidInputException,
                                                                           PolicyEvaluationException,
                                                                           AwsServiceException,
                                                                           SdkClientException,
                                                                           IamException

        This is a variant of simulateCustomPolicy(software.amazon.awssdk.services.iam.model.SimulateCustomPolicyRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.SimulateCustomPolicyIterable responses = client.simulateCustomPolicyPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.SimulateCustomPolicyIterable responses = client
                     .simulateCustomPolicyPaginator(request);
             for (software.amazon.awssdk.services.iam.model.SimulateCustomPolicyResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.SimulateCustomPolicyIterable responses = client.simulateCustomPolicyPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the simulateCustomPolicy(software.amazon.awssdk.services.iam.model.SimulateCustomPolicyRequest) operation.


        This is a convenience which creates an instance of the SimulateCustomPolicyRequest.Builder avoiding the need to create one manually via SimulateCustomPolicyRequest.builder()

        Parameters:
        simulateCustomPolicyRequest - A Consumer that will call methods on SimulateCustomPolicyRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyEvaluationException - The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • simulatePrincipalPolicy

        default SimulatePrincipalPolicyResponse simulatePrincipalPolicy​(SimulatePrincipalPolicyRequest simulatePrincipalPolicyRequest)
                                                                 throws NoSuchEntityException,
                                                                        InvalidInputException,
                                                                        PolicyEvaluationException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

        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.

        You can optionally include a list of one or more additional policies specified as strings to include in the simulation. If you want to simulate only policies specified as strings, use SimulateCustomPolicy instead.

        You can also optionally include one resource-based policy to be evaluated with each of the resources included in the simulation for IAM users only.

        The simulation does not perform the API operations; it only checks the authorization to determine if the simulated policies allow or deny the operations.

        Note: This operation discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use SimulateCustomPolicy instead.

        Context keys are variables maintained by Amazon Web Services and its services that provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForPrincipalPolicy.

        If the output is long, you can use the MaxItems and Marker parameters to paginate the results.

        The IAM policy simulator evaluates statements in the identity-based policy and the inputs that you provide during simulation. The policy simulator results can differ from your live Amazon Web Services environment. We recommend that you check your policies against your live Amazon Web Services environment after testing using the policy simulator to confirm that you have the desired results. For more information about using the policy simulator, see Testing IAM policies with the IAM policy simulator in the IAM User Guide.

        Parameters:
        simulatePrincipalPolicyRequest -
        Returns:
        Result of the SimulatePrincipalPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyEvaluationException - The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • simulatePrincipalPolicy

        default SimulatePrincipalPolicyResponse simulatePrincipalPolicy​(Consumer<SimulatePrincipalPolicyRequest.Builder> simulatePrincipalPolicyRequest)
                                                                 throws NoSuchEntityException,
                                                                        InvalidInputException,
                                                                        PolicyEvaluationException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

        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.

        You can optionally include a list of one or more additional policies specified as strings to include in the simulation. If you want to simulate only policies specified as strings, use SimulateCustomPolicy instead.

        You can also optionally include one resource-based policy to be evaluated with each of the resources included in the simulation for IAM users only.

        The simulation does not perform the API operations; it only checks the authorization to determine if the simulated policies allow or deny the operations.

        Note: This operation discloses information about the permissions granted to other users. If you do not want users to see other user's permissions, then consider allowing them to use SimulateCustomPolicy instead.

        Context keys are variables maintained by Amazon Web Services and its services that provide details about the context of an API query request. You can use the Condition element of an IAM policy to evaluate context keys. To get the list of context keys that the policies require for correct simulation, use GetContextKeysForPrincipalPolicy.

        If the output is long, you can use the MaxItems and Marker parameters to paginate the results.

        The IAM policy simulator evaluates statements in the identity-based policy and the inputs that you provide during simulation. The policy simulator results can differ from your live Amazon Web Services environment. We recommend that you check your policies against your live Amazon Web Services environment after testing using the policy simulator to confirm that you have the desired results. For more information about using the policy simulator, see Testing IAM policies with the IAM policy simulator in the IAM User Guide.


        This is a convenience which creates an instance of the SimulatePrincipalPolicyRequest.Builder avoiding the need to create one manually via SimulatePrincipalPolicyRequest.builder()

        Parameters:
        simulatePrincipalPolicyRequest - A Consumer that will call methods on SimulatePrincipalPolicyRequest.Builder to create a request.
        Returns:
        Result of the SimulatePrincipalPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyEvaluationException - The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • simulatePrincipalPolicyPaginator

        default SimulatePrincipalPolicyIterable simulatePrincipalPolicyPaginator​(SimulatePrincipalPolicyRequest simulatePrincipalPolicyRequest)
                                                                          throws NoSuchEntityException,
                                                                                 InvalidInputException,
                                                                                 PolicyEvaluationException,
                                                                                 AwsServiceException,
                                                                                 SdkClientException,
                                                                                 IamException

        This is a variant of simulatePrincipalPolicy(software.amazon.awssdk.services.iam.model.SimulatePrincipalPolicyRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.SimulatePrincipalPolicyIterable responses = client.simulatePrincipalPolicyPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.SimulatePrincipalPolicyIterable responses = client
                     .simulatePrincipalPolicyPaginator(request);
             for (software.amazon.awssdk.services.iam.model.SimulatePrincipalPolicyResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.SimulatePrincipalPolicyIterable responses = client.simulatePrincipalPolicyPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the simulatePrincipalPolicy(software.amazon.awssdk.services.iam.model.SimulatePrincipalPolicyRequest) operation.

        Parameters:
        simulatePrincipalPolicyRequest -
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyEvaluationException - The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • simulatePrincipalPolicyPaginator

        default SimulatePrincipalPolicyIterable simulatePrincipalPolicyPaginator​(Consumer<SimulatePrincipalPolicyRequest.Builder> simulatePrincipalPolicyRequest)
                                                                          throws NoSuchEntityException,
                                                                                 InvalidInputException,
                                                                                 PolicyEvaluationException,
                                                                                 AwsServiceException,
                                                                                 SdkClientException,
                                                                                 IamException

        This is a variant of simulatePrincipalPolicy(software.amazon.awssdk.services.iam.model.SimulatePrincipalPolicyRequest) operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.

        When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.

        The following are few ways to iterate through the response pages:

        1) Using a Stream
         
         software.amazon.awssdk.services.iam.paginators.SimulatePrincipalPolicyIterable responses = client.simulatePrincipalPolicyPaginator(request);
         responses.stream().forEach(....);
         
         
        2) Using For loop
         {
             @code
             software.amazon.awssdk.services.iam.paginators.SimulatePrincipalPolicyIterable responses = client
                     .simulatePrincipalPolicyPaginator(request);
             for (software.amazon.awssdk.services.iam.model.SimulatePrincipalPolicyResponse response : responses) {
                 // do something;
             }
         }
         
        3) Use iterator directly
         
         software.amazon.awssdk.services.iam.paginators.SimulatePrincipalPolicyIterable responses = client.simulatePrincipalPolicyPaginator(request);
         responses.iterator().forEachRemaining(....);
         
         

        Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the simulatePrincipalPolicy(software.amazon.awssdk.services.iam.model.SimulatePrincipalPolicyRequest) operation.


        This is a convenience which creates an instance of the SimulatePrincipalPolicyRequest.Builder avoiding the need to create one manually via SimulatePrincipalPolicyRequest.builder()

        Parameters:
        simulatePrincipalPolicyRequest - A Consumer that will call methods on SimulatePrincipalPolicyRequest.Builder to create a request.
        Returns:
        A custom iterable that can be used to iterate through all the response pages.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        PolicyEvaluationException - The request failed because a provided policy could not be successfully evaluated. An additional detailed message indicates the source of the failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagInstanceProfile

        default TagInstanceProfileResponse tagInstanceProfile​(TagInstanceProfileRequest tagInstanceProfileRequest)
                                                       throws NoSuchEntityException,
                                                              InvalidInputException,
                                                              LimitExceededException,
                                                              ConcurrentModificationException,
                                                              ServiceFailureException,
                                                              AwsServiceException,
                                                              SdkClientException,
                                                              IamException

        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.

        Each tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM instance profile that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        Parameters:
        tagInstanceProfileRequest -
        Returns:
        Result of the TagInstanceProfile operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagInstanceProfile

        default TagInstanceProfileResponse tagInstanceProfile​(Consumer<TagInstanceProfileRequest.Builder> tagInstanceProfileRequest)
                                                       throws NoSuchEntityException,
                                                              InvalidInputException,
                                                              LimitExceededException,
                                                              ConcurrentModificationException,
                                                              ServiceFailureException,
                                                              AwsServiceException,
                                                              SdkClientException,
                                                              IamException

        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.

        Each tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM instance profile that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.


        This is a convenience which creates an instance of the TagInstanceProfileRequest.Builder avoiding the need to create one manually via TagInstanceProfileRequest.builder()

        Parameters:
        tagInstanceProfileRequest - A Consumer that will call methods on TagInstanceProfileRequest.Builder to create a request.
        Returns:
        Result of the TagInstanceProfile operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagMFADevice

        default TagMfaDeviceResponse tagMFADevice​(TagMfaDeviceRequest tagMfaDeviceRequest)
                                           throws InvalidInputException,
                                                  NoSuchEntityException,
                                                  LimitExceededException,
                                                  ConcurrentModificationException,
                                                  ServiceFailureException,
                                                  AwsServiceException,
                                                  SdkClientException,
                                                  IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM virtual MFA device that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        Parameters:
        tagMfaDeviceRequest -
        Returns:
        Result of the TagMFADevice operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagMFADevice

        default TagMfaDeviceResponse tagMFADevice​(Consumer<TagMfaDeviceRequest.Builder> tagMfaDeviceRequest)
                                           throws InvalidInputException,
                                                  NoSuchEntityException,
                                                  LimitExceededException,
                                                  ConcurrentModificationException,
                                                  ServiceFailureException,
                                                  AwsServiceException,
                                                  SdkClientException,
                                                  IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM virtual MFA device that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.


        This is a convenience which creates an instance of the TagMfaDeviceRequest.Builder avoiding the need to create one manually via TagMfaDeviceRequest.builder()

        Parameters:
        tagMfaDeviceRequest - A Consumer that will call methods on TagMfaDeviceRequest.Builder to create a request.
        Returns:
        Result of the TagMFADevice operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagOpenIDConnectProvider

        default TagOpenIdConnectProviderResponse tagOpenIDConnectProvider​(TagOpenIdConnectProviderRequest tagOpenIdConnectProviderRequest)
                                                                   throws NoSuchEntityException,
                                                                          LimitExceededException,
                                                                          InvalidInputException,
                                                                          ConcurrentModificationException,
                                                                          ServiceFailureException,
                                                                          AwsServiceException,
                                                                          SdkClientException,
                                                                          IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM identity-based and resource-based policies. You can use tags to restrict access to only an OIDC provider that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        Parameters:
        tagOpenIdConnectProviderRequest -
        Returns:
        Result of the TagOpenIDConnectProvider operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagOpenIDConnectProvider

        default TagOpenIdConnectProviderResponse tagOpenIDConnectProvider​(Consumer<TagOpenIdConnectProviderRequest.Builder> tagOpenIdConnectProviderRequest)
                                                                   throws NoSuchEntityException,
                                                                          LimitExceededException,
                                                                          InvalidInputException,
                                                                          ConcurrentModificationException,
                                                                          ServiceFailureException,
                                                                          AwsServiceException,
                                                                          SdkClientException,
                                                                          IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM identity-based and resource-based policies. You can use tags to restrict access to only an OIDC provider that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.


        This is a convenience which creates an instance of the TagOpenIdConnectProviderRequest.Builder avoiding the need to create one manually via TagOpenIdConnectProviderRequest.builder()

        Parameters:
        tagOpenIdConnectProviderRequest - A Consumer that will call methods on TagOpenIdConnectProviderRequest.Builder to create a request.
        Returns:
        Result of the TagOpenIDConnectProvider operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagPolicy

        default TagPolicyResponse tagPolicy​(TagPolicyRequest tagPolicyRequest)
                                     throws NoSuchEntityException,
                                            LimitExceededException,
                                            InvalidInputException,
                                            ConcurrentModificationException,
                                            ServiceFailureException,
                                            AwsServiceException,
                                            SdkClientException,
                                            IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM customer managed policy that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        Parameters:
        tagPolicyRequest -
        Returns:
        Result of the TagPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagPolicy

        default TagPolicyResponse tagPolicy​(Consumer<TagPolicyRequest.Builder> tagPolicyRequest)
                                     throws NoSuchEntityException,
                                            LimitExceededException,
                                            InvalidInputException,
                                            ConcurrentModificationException,
                                            ServiceFailureException,
                                            AwsServiceException,
                                            SdkClientException,
                                            IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM customer managed policy that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.


        This is a convenience which creates an instance of the TagPolicyRequest.Builder avoiding the need to create one manually via TagPolicyRequest.builder()

        Parameters:
        tagPolicyRequest - A Consumer that will call methods on TagPolicyRequest.Builder to create a request.
        Returns:
        Result of the TagPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagRole

        default TagRoleResponse tagRole​(TagRoleRequest tagRoleRequest)
                                 throws NoSuchEntityException,
                                        LimitExceededException,
                                        InvalidInputException,
                                        ConcurrentModificationException,
                                        ServiceFailureException,
                                        AwsServiceException,
                                        SdkClientException,
                                        IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM role that has a specified tag attached. You can also restrict access to only those resources that have a certain tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • Cost allocation - Use tags to help track which individuals and teams are using which Amazon Web Services resources.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        For more information about tagging, see Tagging IAM identities in the IAM User Guide.

        Parameters:
        tagRoleRequest -
        Returns:
        Result of the TagRole operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagRole

        default TagRoleResponse tagRole​(Consumer<TagRoleRequest.Builder> tagRoleRequest)
                                 throws NoSuchEntityException,
                                        LimitExceededException,
                                        InvalidInputException,
                                        ConcurrentModificationException,
                                        ServiceFailureException,
                                        AwsServiceException,
                                        SdkClientException,
                                        IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM role that has a specified tag attached. You can also restrict access to only those resources that have a certain tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • Cost allocation - Use tags to help track which individuals and teams are using which Amazon Web Services resources.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        For more information about tagging, see Tagging IAM identities in the IAM User Guide.


        This is a convenience which creates an instance of the TagRoleRequest.Builder avoiding the need to create one manually via TagRoleRequest.builder()

        Parameters:
        tagRoleRequest - A Consumer that will call methods on TagRoleRequest.Builder to create a request.
        Returns:
        Result of the TagRole operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagSAMLProvider

        default TagSamlProviderResponse tagSAMLProvider​(TagSamlProviderRequest tagSamlProviderRequest)
                                                 throws NoSuchEntityException,
                                                        LimitExceededException,
                                                        InvalidInputException,
                                                        ConcurrentModificationException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only a SAML identity provider that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        Parameters:
        tagSamlProviderRequest -
        Returns:
        Result of the TagSAMLProvider operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagSAMLProvider

        default TagSamlProviderResponse tagSAMLProvider​(Consumer<TagSamlProviderRequest.Builder> tagSamlProviderRequest)
                                                 throws NoSuchEntityException,
                                                        LimitExceededException,
                                                        InvalidInputException,
                                                        ConcurrentModificationException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only a SAML identity provider that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.


        This is a convenience which creates an instance of the TagSamlProviderRequest.Builder avoiding the need to create one manually via TagSamlProviderRequest.builder()

        Parameters:
        tagSamlProviderRequest - A Consumer that will call methods on TagSamlProviderRequest.Builder to create a request.
        Returns:
        Result of the TagSAMLProvider operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagServerCertificate

        default TagServerCertificateResponse tagServerCertificate​(TagServerCertificateRequest tagServerCertificateRequest)
                                                           throws NoSuchEntityException,
                                                                  InvalidInputException,
                                                                  LimitExceededException,
                                                                  ConcurrentModificationException,
                                                                  ServiceFailureException,
                                                                  AwsServiceException,
                                                                  SdkClientException,
                                                                  IamException

        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.

        For certificates in a Region supported by Certificate Manager (ACM), we recommend that you don't use IAM server certificates. Instead, use ACM to provision, manage, and deploy your server certificates. For more information about IAM server certificates, Working with server certificates in the IAM User Guide.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only a server certificate that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • Cost allocation - Use tags to help track which individuals and teams are using which Amazon Web Services resources.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        Parameters:
        tagServerCertificateRequest -
        Returns:
        Result of the TagServerCertificate operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagServerCertificate

        default TagServerCertificateResponse tagServerCertificate​(Consumer<TagServerCertificateRequest.Builder> tagServerCertificateRequest)
                                                           throws NoSuchEntityException,
                                                                  InvalidInputException,
                                                                  LimitExceededException,
                                                                  ConcurrentModificationException,
                                                                  ServiceFailureException,
                                                                  AwsServiceException,
                                                                  SdkClientException,
                                                                  IamException

        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.

        For certificates in a Region supported by Certificate Manager (ACM), we recommend that you don't use IAM server certificates. Instead, use ACM to provision, manage, and deploy your server certificates. For more information about IAM server certificates, Working with server certificates in the IAM User Guide.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM user-based and resource-based policies. You can use tags to restrict access to only a server certificate that has a specified tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • Cost allocation - Use tags to help track which individuals and teams are using which Amazon Web Services resources.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.


        This is a convenience which creates an instance of the TagServerCertificateRequest.Builder avoiding the need to create one manually via TagServerCertificateRequest.builder()

        Parameters:
        tagServerCertificateRequest - A Consumer that will call methods on TagServerCertificateRequest.Builder to create a request.
        Returns:
        Result of the TagServerCertificate operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagUser

        default TagUserResponse tagUser​(TagUserRequest tagUserRequest)
                                 throws NoSuchEntityException,
                                        LimitExceededException,
                                        InvalidInputException,
                                        ConcurrentModificationException,
                                        ServiceFailureException,
                                        AwsServiceException,
                                        SdkClientException,
                                        IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM identity-based and resource-based policies. You can use tags to restrict access to only an IAM requesting user that has a specified tag attached. You can also restrict access to only those resources that have a certain tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • Cost allocation - Use tags to help track which individuals and teams are using which Amazon Web Services resources.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        For more information about tagging, see Tagging IAM identities in the IAM User Guide.

        Parameters:
        tagUserRequest -
        Returns:
        Result of the TagUser operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • tagUser

        default TagUserResponse tagUser​(Consumer<TagUserRequest.Builder> tagUserRequest)
                                 throws NoSuchEntityException,
                                        LimitExceededException,
                                        InvalidInputException,
                                        ConcurrentModificationException,
                                        ServiceFailureException,
                                        AwsServiceException,
                                        SdkClientException,
                                        IamException

        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.

        A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

        • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

        • Access control - Include tags in IAM identity-based and resource-based policies. You can use tags to restrict access to only an IAM requesting user that has a specified tag attached. You can also restrict access to only those resources that have a certain tag attached. For examples of policies that show how to use tags to control access, see Control access using IAM tags in the IAM User Guide.

        • Cost allocation - Use tags to help track which individuals and teams are using which Amazon Web Services resources.

        • If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

        • Amazon Web Services always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

        For more information about tagging, see Tagging IAM identities in the IAM User Guide.


        This is a convenience which creates an instance of the TagUserRequest.Builder avoiding the need to create one manually via TagUserRequest.builder()

        Parameters:
        tagUserRequest - A Consumer that will call methods on TagUserRequest.Builder to create a request.
        Returns:
        Result of the TagUser operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        ConcurrentModificationException - The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateAccessKey

        default UpdateAccessKeyResponse updateAccessKey​(UpdateAccessKeyRequest updateAccessKeyRequest)
                                                 throws NoSuchEntityException,
                                                        LimitExceededException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        If the UserName is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request. If a temporary access key is used, then UserName is required. If a long-term key is assigned to the user, then UserName is not required. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.

        For information about rotating keys, see Managing keys and certificates in the IAM User Guide.

        Parameters:
        updateAccessKeyRequest -
        Returns:
        Result of the UpdateAccessKey operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateAccessKey

        default UpdateAccessKeyResponse updateAccessKey​(Consumer<UpdateAccessKeyRequest.Builder> updateAccessKeyRequest)
                                                 throws NoSuchEntityException,
                                                        LimitExceededException,
                                                        ServiceFailureException,
                                                        AwsServiceException,
                                                        SdkClientException,
                                                        IamException

        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.

        If the UserName is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request. If a temporary access key is used, then UserName is required. If a long-term key is assigned to the user, then UserName is not required. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.

        For information about rotating keys, see Managing keys and certificates in the IAM User Guide.


        This is a convenience which creates an instance of the UpdateAccessKeyRequest.Builder avoiding the need to create one manually via UpdateAccessKeyRequest.builder()

        Parameters:
        updateAccessKeyRequest - A Consumer that will call methods on UpdateAccessKeyRequest.Builder to create a request.
        Returns:
        Result of the UpdateAccessKey operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateAccountPasswordPolicy

        default UpdateAccountPasswordPolicyResponse updateAccountPasswordPolicy​(UpdateAccountPasswordPolicyRequest updateAccountPasswordPolicyRequest)
                                                                         throws NoSuchEntityException,
                                                                                MalformedPolicyDocumentException,
                                                                                LimitExceededException,
                                                                                ServiceFailureException,
                                                                                AwsServiceException,
                                                                                SdkClientException,
                                                                                IamException

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

        This operation does not support partial updates. No parameters are required, but if you do not specify a parameter, that parameter's value reverts to its default value. See the Request Parameters section for each parameter's default value. Also note that some parameters do not allow the default parameter to be explicitly set. Instead, to invoke the default value, do not include that parameter when you invoke the operation.

        For more information about using a password policy, see Managing an IAM password policy in the IAM User Guide.

        Parameters:
        updateAccountPasswordPolicyRequest -
        Returns:
        Result of the UpdateAccountPasswordPolicy operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        MalformedPolicyDocumentException - The request was rejected because the policy document was malformed. The error message describes the specific error.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateGroup

        default UpdateGroupResponse updateGroup​(UpdateGroupRequest updateGroupRequest)
                                         throws NoSuchEntityException,
                                                EntityAlreadyExistsException,
                                                LimitExceededException,
                                                ServiceFailureException,
                                                AwsServiceException,
                                                SdkClientException,
                                                IamException

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

        You should understand the implications of changing a group's path or name. For more information, see Renaming users and groups in the IAM User Guide.

        The person making the request (the principal), must have permission to change the role group with the old name and the new name. For example, to change the group named Managers to MGRs, the principal must have a policy that allows them to update both groups. If the principal has permission to update the Managers group, but not the MGRs group, then the update fails. For more information about permissions, see Access management.

        Parameters:
        updateGroupRequest -
        Returns:
        Result of the UpdateGroup operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        EntityAlreadyExistsException - The request was rejected because it attempted to create a resource that already exists.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateOpenIDConnectProviderThumbprint

        default UpdateOpenIdConnectProviderThumbprintResponse updateOpenIDConnectProviderThumbprint​(UpdateOpenIdConnectProviderThumbprintRequest updateOpenIdConnectProviderThumbprintRequest)
                                                                                             throws InvalidInputException,
                                                                                                    NoSuchEntityException,
                                                                                                    ServiceFailureException,
                                                                                                    AwsServiceException,
                                                                                                    SdkClientException,
                                                                                                    IamException

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

        The list that you pass with this operation completely replaces the existing list of thumbprints. (The lists are not merged.)

        Typically, you need to update a thumbprint only when the identity provider certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal fails until the certificate thumbprint is updated.

        Amazon Web Services secures communication with OIDC identity providers (IdPs) using our library of trusted root certificate authorities (CAs) to verify the JSON Web Key Set (JWKS) endpoint's TLS certificate. If your OIDC IdP relies on a certificate that is not signed by one of these trusted CAs, only then we secure communication using the thumbprints set in the IdP's configuration.

        Trust for the OIDC provider is derived from the provider certificate and is validated by the thumbprint. Therefore, it is best to limit access to the UpdateOpenIDConnectProviderThumbprint operation to highly privileged users.

        Parameters:
        updateOpenIdConnectProviderThumbprintRequest -
        Returns:
        Result of the UpdateOpenIDConnectProviderThumbprint operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateOpenIDConnectProviderThumbprint

        default UpdateOpenIdConnectProviderThumbprintResponse updateOpenIDConnectProviderThumbprint​(Consumer<UpdateOpenIdConnectProviderThumbprintRequest.Builder> updateOpenIdConnectProviderThumbprintRequest)
                                                                                             throws InvalidInputException,
                                                                                                    NoSuchEntityException,
                                                                                                    ServiceFailureException,
                                                                                                    AwsServiceException,
                                                                                                    SdkClientException,
                                                                                                    IamException

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

        The list that you pass with this operation completely replaces the existing list of thumbprints. (The lists are not merged.)

        Typically, you need to update a thumbprint only when the identity provider certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal fails until the certificate thumbprint is updated.

        Amazon Web Services secures communication with OIDC identity providers (IdPs) using our library of trusted root certificate authorities (CAs) to verify the JSON Web Key Set (JWKS) endpoint's TLS certificate. If your OIDC IdP relies on a certificate that is not signed by one of these trusted CAs, only then we secure communication using the thumbprints set in the IdP's configuration.

        Trust for the OIDC provider is derived from the provider certificate and is validated by the thumbprint. Therefore, it is best to limit access to the UpdateOpenIDConnectProviderThumbprint operation to highly privileged users.


        This is a convenience which creates an instance of the UpdateOpenIdConnectProviderThumbprintRequest.Builder avoiding the need to create one manually via UpdateOpenIdConnectProviderThumbprintRequest.builder()

        Parameters:
        updateOpenIdConnectProviderThumbprintRequest - A Consumer that will call methods on UpdateOpenIdConnectProviderThumbprintRequest.Builder to create a request.
        Returns:
        Result of the UpdateOpenIDConnectProviderThumbprint operation returned by the service.
        Throws:
        InvalidInputException - The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateRoleDescription

        default UpdateRoleDescriptionResponse updateRoleDescription​(UpdateRoleDescriptionRequest updateRoleDescriptionRequest)
                                                             throws NoSuchEntityException,
                                                                    UnmodifiableEntityException,
                                                                    ServiceFailureException,
                                                                    AwsServiceException,
                                                                    SdkClientException,
                                                                    IamException

        Use UpdateRole instead.

        Modifies only the description of a role. This operation performs the same function as the Description parameter in the UpdateRole operation.

        Parameters:
        updateRoleDescriptionRequest -
        Returns:
        Result of the UpdateRoleDescription operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        UnmodifiableEntityException - The request was rejected because service-linked roles are protected Amazon Web Services resources. Only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateSSHPublicKey

        default UpdateSshPublicKeyResponse updateSSHPublicKey​(UpdateSshPublicKeyRequest updateSshPublicKeyRequest)
                                                       throws NoSuchEntityException,
                                                              AwsServiceException,
                                                              SdkClientException,
                                                              IamException

        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.

        The SSH public key affected by this operation is used only for authenticating the associated IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see Set up CodeCommit for SSH connections in the CodeCommit User Guide.

        Parameters:
        updateSshPublicKeyRequest -
        Returns:
        Result of the UpdateSSHPublicKey operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateServerCertificate

        default UpdateServerCertificateResponse updateServerCertificate​(UpdateServerCertificateRequest updateServerCertificateRequest)
                                                                 throws NoSuchEntityException,
                                                                        EntityAlreadyExistsException,
                                                                        LimitExceededException,
                                                                        ServiceFailureException,
                                                                        AwsServiceException,
                                                                        SdkClientException,
                                                                        IamException

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

        For more information about working with server certificates, see Working with server certificates in the IAM User Guide. This topic also includes a list of Amazon Web Services services that can use the server certificates that you manage with IAM.

        You should understand the implications of changing a server certificate's path or name. For more information, see Renaming a server certificate in the IAM User Guide.

        The person making the request (the principal), must have permission to change the server certificate with the old name and the new name. For example, to change the certificate named ProductionCert to ProdCert, the principal must have a policy that allows them to update both certificates. If the principal has permission to update the ProductionCert group, but not the ProdCert certificate, then the update fails. For more information about permissions, see Access management in the IAM User Guide.

        Parameters:
        updateServerCertificateRequest -
        Returns:
        Result of the UpdateServerCertificate operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        EntityAlreadyExistsException - The request was rejected because it attempted to create a resource that already exists.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateServiceSpecificCredential

        default UpdateServiceSpecificCredentialResponse updateServiceSpecificCredential​(UpdateServiceSpecificCredentialRequest updateServiceSpecificCredentialRequest)
                                                                                 throws NoSuchEntityException,
                                                                                        AwsServiceException,
                                                                                        SdkClientException,
                                                                                        IamException

        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.

        Parameters:
        updateServiceSpecificCredentialRequest -
        Returns:
        Result of the UpdateServiceSpecificCredential operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • updateSigningCertificate

        default UpdateSigningCertificateResponse updateSigningCertificate​(UpdateSigningCertificateRequest updateSigningCertificateRequest)
                                                                   throws NoSuchEntityException,
                                                                          LimitExceededException,
                                                                          ServiceFailureException,
                                                                          AwsServiceException,
                                                                          SdkClientException,
                                                                          IamException

        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.

        If the UserName field is not specified, the user name is determined implicitly based on the Amazon Web Services access key ID used to sign the request. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.

        Parameters:
        updateSigningCertificateRequest -
        Returns:
        Result of the UpdateSigningCertificate operation returned by the service.
        Throws:
        NoSuchEntityException - The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
        LimitExceededException - The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
        ServiceFailureException - The request processing has failed because of an unknown error, exception or failure.
        SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        IamException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        AwsServiceException
        See Also:
        AWS API Documentation
      • waiter

        default IamWaiter waiter()
        Create an instance of IamWaiter using this client.

        Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.

        Returns:
        an instance of IamWaiter