Interface RolesAnywhereAsyncClient

  • All Superinterfaces:
    AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

    @Generated("software.amazon.awssdk:codegen")
    @ThreadSafe
    public interface RolesAnywhereAsyncClient
    extends AwsClient
    Service client for accessing IAM Roles Anywhere asynchronously. This can be created using the static builder() method.

    Identity and Access Management Roles Anywhere provides a secure way for your workloads such as servers, containers, and applications that run outside of Amazon Web Services to obtain temporary Amazon Web Services credentials. Your workloads can use the same IAM policies and roles you have for native Amazon Web Services applications to access Amazon Web Services resources. Using IAM Roles Anywhere eliminates the need to manage long-term credentials for workloads running outside of Amazon Web Services.

    To use IAM Roles Anywhere, your workloads must use X.509 certificates issued by their certificate authority (CA). You register the CA with IAM Roles Anywhere as a trust anchor to establish trust between your public key infrastructure (PKI) and IAM Roles Anywhere. If you don't manage your own PKI system, you can use Private Certificate Authority to create a CA and then use that to establish trust with IAM Roles Anywhere.

    This guide describes the IAM Roles Anywhere operations that you can call programmatically. For more information about IAM Roles Anywhere, see the IAM Roles Anywhere User Guide.

    • Method Detail

      • createProfile

        default CompletableFuture<CreateProfileResponse> createProfile​(CreateProfileRequest createProfileRequest)

        Creates a profile, a list of the roles that Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.

        Required permissions: rolesanywhere:CreateProfile.

        Parameters:
        createProfileRequest -
        Returns:
        A Java Future containing the result of the CreateProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createProfile

        default CompletableFuture<CreateProfileResponse> createProfile​(Consumer<CreateProfileRequest.Builder> createProfileRequest)

        Creates a profile, a list of the roles that Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.

        Required permissions: rolesanywhere:CreateProfile.


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

        Parameters:
        createProfileRequest - A Consumer that will call methods on CreateProfileRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createTrustAnchor

        default CompletableFuture<CreateTrustAnchorResponse> createTrustAnchor​(CreateTrustAnchorRequest createTrustAnchorRequest)

        Creates a trust anchor to establish trust between IAM Roles Anywhere and your certificate authority (CA). You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials.

        Required permissions: rolesanywhere:CreateTrustAnchor.

        Parameters:
        createTrustAnchorRequest -
        Returns:
        A Java Future containing the result of the CreateTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createTrustAnchor

        default CompletableFuture<CreateTrustAnchorResponse> createTrustAnchor​(Consumer<CreateTrustAnchorRequest.Builder> createTrustAnchorRequest)

        Creates a trust anchor to establish trust between IAM Roles Anywhere and your certificate authority (CA). You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials.

        Required permissions: rolesanywhere:CreateTrustAnchor.


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

        Parameters:
        createTrustAnchorRequest - A Consumer that will call methods on CreateTrustAnchorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteCrl

        default CompletableFuture<DeleteCrlResponse> deleteCrl​(DeleteCrlRequest deleteCrlRequest)

        Deletes a certificate revocation list (CRL).

        Required permissions: rolesanywhere:DeleteCrl.

        Parameters:
        deleteCrlRequest -
        Returns:
        A Java Future containing the result of the DeleteCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteCrl

        default CompletableFuture<DeleteCrlResponse> deleteCrl​(Consumer<DeleteCrlRequest.Builder> deleteCrlRequest)

        Deletes a certificate revocation list (CRL).

        Required permissions: rolesanywhere:DeleteCrl.


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

        Parameters:
        deleteCrlRequest - A Consumer that will call methods on DeleteCrlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteProfile

        default CompletableFuture<DeleteProfileResponse> deleteProfile​(DeleteProfileRequest deleteProfileRequest)

        Deletes a profile.

        Required permissions: rolesanywhere:DeleteProfile.

        Parameters:
        deleteProfileRequest -
        Returns:
        A Java Future containing the result of the DeleteProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteProfile

        default CompletableFuture<DeleteProfileResponse> deleteProfile​(Consumer<DeleteProfileRequest.Builder> deleteProfileRequest)

        Deletes a profile.

        Required permissions: rolesanywhere:DeleteProfile.


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

        Parameters:
        deleteProfileRequest - A Consumer that will call methods on DeleteProfileRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteTrustAnchor

        default CompletableFuture<DeleteTrustAnchorResponse> deleteTrustAnchor​(DeleteTrustAnchorRequest deleteTrustAnchorRequest)

        Deletes a trust anchor.

        Required permissions: rolesanywhere:DeleteTrustAnchor.

        Parameters:
        deleteTrustAnchorRequest -
        Returns:
        A Java Future containing the result of the DeleteTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteTrustAnchor

        default CompletableFuture<DeleteTrustAnchorResponse> deleteTrustAnchor​(Consumer<DeleteTrustAnchorRequest.Builder> deleteTrustAnchorRequest)

        Deletes a trust anchor.

        Required permissions: rolesanywhere:DeleteTrustAnchor.


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

        Parameters:
        deleteTrustAnchorRequest - A Consumer that will call methods on DeleteTrustAnchorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableCrl

        default CompletableFuture<DisableCrlResponse> disableCrl​(DisableCrlRequest disableCrlRequest)

        Disables a certificate revocation list (CRL).

        Required permissions: rolesanywhere:DisableCrl.

        Parameters:
        disableCrlRequest -
        Returns:
        A Java Future containing the result of the DisableCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableCrl

        default CompletableFuture<DisableCrlResponse> disableCrl​(Consumer<DisableCrlRequest.Builder> disableCrlRequest)

        Disables a certificate revocation list (CRL).

        Required permissions: rolesanywhere:DisableCrl.


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

        Parameters:
        disableCrlRequest - A Consumer that will call methods on DisableCrlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisableCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableProfile

        default CompletableFuture<DisableProfileResponse> disableProfile​(DisableProfileRequest disableProfileRequest)

        Disables a profile. When disabled, temporary credential requests with this profile fail.

        Required permissions: rolesanywhere:DisableProfile.

        Parameters:
        disableProfileRequest -
        Returns:
        A Java Future containing the result of the DisableProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableProfile

        default CompletableFuture<DisableProfileResponse> disableProfile​(Consumer<DisableProfileRequest.Builder> disableProfileRequest)

        Disables a profile. When disabled, temporary credential requests with this profile fail.

        Required permissions: rolesanywhere:DisableProfile.


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

        Parameters:
        disableProfileRequest - A Consumer that will call methods on DisableProfileRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisableProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableTrustAnchor

        default CompletableFuture<DisableTrustAnchorResponse> disableTrustAnchor​(DisableTrustAnchorRequest disableTrustAnchorRequest)

        Disables a trust anchor. When disabled, temporary credential requests specifying this trust anchor are unauthorized.

        Required permissions: rolesanywhere:DisableTrustAnchor.

        Parameters:
        disableTrustAnchorRequest -
        Returns:
        A Java Future containing the result of the DisableTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableTrustAnchor

        default CompletableFuture<DisableTrustAnchorResponse> disableTrustAnchor​(Consumer<DisableTrustAnchorRequest.Builder> disableTrustAnchorRequest)

        Disables a trust anchor. When disabled, temporary credential requests specifying this trust anchor are unauthorized.

        Required permissions: rolesanywhere:DisableTrustAnchor.


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

        Parameters:
        disableTrustAnchorRequest - A Consumer that will call methods on DisableTrustAnchorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisableTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableCrl

        default CompletableFuture<EnableCrlResponse> enableCrl​(EnableCrlRequest enableCrlRequest)

        Enables a certificate revocation list (CRL). When enabled, certificates stored in the CRL are unauthorized to receive session credentials.

        Required permissions: rolesanywhere:EnableCrl.

        Parameters:
        enableCrlRequest -
        Returns:
        A Java Future containing the result of the EnableCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableCrl

        default CompletableFuture<EnableCrlResponse> enableCrl​(Consumer<EnableCrlRequest.Builder> enableCrlRequest)

        Enables a certificate revocation list (CRL). When enabled, certificates stored in the CRL are unauthorized to receive session credentials.

        Required permissions: rolesanywhere:EnableCrl.


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

        Parameters:
        enableCrlRequest - A Consumer that will call methods on EnableCrlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the EnableCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableProfile

        default CompletableFuture<EnableProfileResponse> enableProfile​(EnableProfileRequest enableProfileRequest)

        Enables temporary credential requests for a profile.

        Required permissions: rolesanywhere:EnableProfile.

        Parameters:
        enableProfileRequest -
        Returns:
        A Java Future containing the result of the EnableProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableProfile

        default CompletableFuture<EnableProfileResponse> enableProfile​(Consumer<EnableProfileRequest.Builder> enableProfileRequest)

        Enables temporary credential requests for a profile.

        Required permissions: rolesanywhere:EnableProfile.


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

        Parameters:
        enableProfileRequest - A Consumer that will call methods on EnableProfileRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the EnableProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableTrustAnchor

        default CompletableFuture<EnableTrustAnchorResponse> enableTrustAnchor​(EnableTrustAnchorRequest enableTrustAnchorRequest)

        Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation.

        Required permissions: rolesanywhere:EnableTrustAnchor.

        Parameters:
        enableTrustAnchorRequest -
        Returns:
        A Java Future containing the result of the EnableTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableTrustAnchor

        default CompletableFuture<EnableTrustAnchorResponse> enableTrustAnchor​(Consumer<EnableTrustAnchorRequest.Builder> enableTrustAnchorRequest)

        Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation.

        Required permissions: rolesanywhere:EnableTrustAnchor.


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

        Parameters:
        enableTrustAnchorRequest - A Consumer that will call methods on EnableTrustAnchorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the EnableTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getCrl

        default CompletableFuture<GetCrlResponse> getCrl​(GetCrlRequest getCrlRequest)

        Gets a certificate revocation list (CRL).

        Required permissions: rolesanywhere:GetCrl.

        Parameters:
        getCrlRequest -
        Returns:
        A Java Future containing the result of the GetCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getCrl

        default CompletableFuture<GetCrlResponse> getCrl​(Consumer<GetCrlRequest.Builder> getCrlRequest)

        Gets a certificate revocation list (CRL).

        Required permissions: rolesanywhere:GetCrl.


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

        Parameters:
        getCrlRequest - A Consumer that will call methods on GetCrlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getProfile

        default CompletableFuture<GetProfileResponse> getProfile​(GetProfileRequest getProfileRequest)

        Gets a profile.

        Required permissions: rolesanywhere:GetProfile.

        Parameters:
        getProfileRequest -
        Returns:
        A Java Future containing the result of the GetProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getProfile

        default CompletableFuture<GetProfileResponse> getProfile​(Consumer<GetProfileRequest.Builder> getProfileRequest)

        Gets a profile.

        Required permissions: rolesanywhere:GetProfile.


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

        Parameters:
        getProfileRequest - A Consumer that will call methods on GetProfileRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getSubject

        default CompletableFuture<GetSubjectResponse> getSubject​(GetSubjectRequest getSubjectRequest)

        Gets a subject, which associates a certificate identity with authentication attempts. The subject stores auditing information such as the status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication.

        Required permissions: rolesanywhere:GetSubject.

        Parameters:
        getSubjectRequest -
        Returns:
        A Java Future containing the result of the GetSubject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getSubject

        default CompletableFuture<GetSubjectResponse> getSubject​(Consumer<GetSubjectRequest.Builder> getSubjectRequest)

        Gets a subject, which associates a certificate identity with authentication attempts. The subject stores auditing information such as the status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication.

        Required permissions: rolesanywhere:GetSubject.


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

        Parameters:
        getSubjectRequest - A Consumer that will call methods on GetSubjectRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetSubject operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getTrustAnchor

        default CompletableFuture<GetTrustAnchorResponse> getTrustAnchor​(GetTrustAnchorRequest getTrustAnchorRequest)

        Gets a trust anchor.

        Required permissions: rolesanywhere:GetTrustAnchor.

        Parameters:
        getTrustAnchorRequest -
        Returns:
        A Java Future containing the result of the GetTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getTrustAnchor

        default CompletableFuture<GetTrustAnchorResponse> getTrustAnchor​(Consumer<GetTrustAnchorRequest.Builder> getTrustAnchorRequest)

        Gets a trust anchor.

        Required permissions: rolesanywhere:GetTrustAnchor.


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

        Parameters:
        getTrustAnchorRequest - A Consumer that will call methods on GetTrustAnchorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • importCrl

        default CompletableFuture<ImportCrlResponse> importCrl​(ImportCrlRequest importCrlRequest)

        Imports the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials.

        Required permissions: rolesanywhere:ImportCrl.

        Parameters:
        importCrlRequest -
        Returns:
        A Java Future containing the result of the ImportCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • importCrl

        default CompletableFuture<ImportCrlResponse> importCrl​(Consumer<ImportCrlRequest.Builder> importCrlRequest)

        Imports the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials.

        Required permissions: rolesanywhere:ImportCrl.


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

        Parameters:
        importCrlRequest - A Consumer that will call methods on ImportCrlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ImportCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listCrls

        default CompletableFuture<ListCrlsResponse> listCrls​(ListCrlsRequest listCrlsRequest)

        Lists all certificate revocation lists (CRL) in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListCrls.

        Parameters:
        listCrlsRequest -
        Returns:
        A Java Future containing the result of the ListCrls operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listCrls

        default CompletableFuture<ListCrlsResponse> listCrls​(Consumer<ListCrlsRequest.Builder> listCrlsRequest)

        Lists all certificate revocation lists (CRL) in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListCrls.


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

        Parameters:
        listCrlsRequest - A Consumer that will call methods on ListCrlsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListCrls operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listCrlsPaginator

        default ListCrlsPublisher listCrlsPaginator​(ListCrlsRequest listCrlsRequest)

        Lists all certificate revocation lists (CRL) in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListCrls.


        This is a variant of listCrls(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsPublisher publisher = client.listCrlsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsPublisher publisher = client.listCrlsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rolesanywhere.model.ListCrlsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of null 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 listCrls(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsRequest) operation.

        Parameters:
        listCrlsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listCrlsPaginator

        default ListCrlsPublisher listCrlsPaginator​(Consumer<ListCrlsRequest.Builder> listCrlsRequest)

        Lists all certificate revocation lists (CRL) in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListCrls.


        This is a variant of listCrls(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsPublisher publisher = client.listCrlsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsPublisher publisher = client.listCrlsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rolesanywhere.model.ListCrlsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of null 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 listCrls(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsRequest) operation.

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

        Parameters:
        listCrlsRequest - A Consumer that will call methods on ListCrlsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProfiles

        default CompletableFuture<ListProfilesResponse> listProfiles​(ListProfilesRequest listProfilesRequest)

        Lists all profiles in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListProfiles.

        Parameters:
        listProfilesRequest -
        Returns:
        A Java Future containing the result of the ListProfiles operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProfiles

        default CompletableFuture<ListProfilesResponse> listProfiles​(Consumer<ListProfilesRequest.Builder> listProfilesRequest)

        Lists all profiles in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListProfiles.


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

        Parameters:
        listProfilesRequest - A Consumer that will call methods on ListProfilesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListProfiles operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProfilesPaginator

        default ListProfilesPublisher listProfilesPaginator​(ListProfilesRequest listProfilesRequest)

        Lists all profiles in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListProfiles.


        This is a variant of listProfiles(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesPublisher publisher = client.listProfilesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesPublisher publisher = client.listProfilesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rolesanywhere.model.ListProfilesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of null 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 listProfiles(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesRequest) operation.

        Parameters:
        listProfilesRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listProfilesPaginator

        default ListProfilesPublisher listProfilesPaginator​(Consumer<ListProfilesRequest.Builder> listProfilesRequest)

        Lists all profiles in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListProfiles.


        This is a variant of listProfiles(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesPublisher publisher = client.listProfilesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesPublisher publisher = client.listProfilesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rolesanywhere.model.ListProfilesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of null 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 listProfiles(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesRequest) operation.

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

        Parameters:
        listProfilesRequest - A Consumer that will call methods on ListProfilesRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listSubjects

        default CompletableFuture<ListSubjectsResponse> listSubjects​(ListSubjectsRequest listSubjectsRequest)

        Lists the subjects in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListSubjects.

        Parameters:
        listSubjectsRequest -
        Returns:
        A Java Future containing the result of the ListSubjects operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listSubjects

        default CompletableFuture<ListSubjectsResponse> listSubjects​(Consumer<ListSubjectsRequest.Builder> listSubjectsRequest)

        Lists the subjects in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListSubjects.


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

        Parameters:
        listSubjectsRequest - A Consumer that will call methods on ListSubjectsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListSubjects operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listSubjectsPaginator

        default ListSubjectsPublisher listSubjectsPaginator​(ListSubjectsRequest listSubjectsRequest)

        Lists the subjects in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListSubjects.


        This is a variant of listSubjects(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsPublisher publisher = client.listSubjectsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsPublisher publisher = client.listSubjectsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of null 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 listSubjects(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsRequest) operation.

        Parameters:
        listSubjectsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listSubjectsPaginator

        default ListSubjectsPublisher listSubjectsPaginator​(Consumer<ListSubjectsRequest.Builder> listSubjectsRequest)

        Lists the subjects in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListSubjects.


        This is a variant of listSubjects(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsPublisher publisher = client.listSubjectsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsPublisher publisher = client.listSubjectsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of null 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 listSubjects(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsRequest) operation.

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

        Parameters:
        listSubjectsRequest - A Consumer that will call methods on ListSubjectsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(ListTagsForResourceRequest listTagsForResourceRequest)

        Lists the tags attached to the resource.

        Required permissions: rolesanywhere:ListTagsForResource.

        Parameters:
        listTagsForResourceRequest -
        Returns:
        A Java Future containing the result of the ListTagsForResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

        Lists the tags attached to the resource.

        Required permissions: rolesanywhere:ListTagsForResource.


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

        Parameters:
        listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTagsForResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTrustAnchors

        default CompletableFuture<ListTrustAnchorsResponse> listTrustAnchors​(ListTrustAnchorsRequest listTrustAnchorsRequest)

        Lists the trust anchors in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListTrustAnchors.

        Parameters:
        listTrustAnchorsRequest -
        Returns:
        A Java Future containing the result of the ListTrustAnchors operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTrustAnchors

        default CompletableFuture<ListTrustAnchorsResponse> listTrustAnchors​(Consumer<ListTrustAnchorsRequest.Builder> listTrustAnchorsRequest)

        Lists the trust anchors in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListTrustAnchors.


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

        Parameters:
        listTrustAnchorsRequest - A Consumer that will call methods on ListTrustAnchorsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTrustAnchors operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTrustAnchorsPaginator

        default ListTrustAnchorsPublisher listTrustAnchorsPaginator​(ListTrustAnchorsRequest listTrustAnchorsRequest)

        Lists the trust anchors in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListTrustAnchors.


        This is a variant of listTrustAnchors(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsPublisher publisher = client.listTrustAnchorsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsPublisher publisher = client.listTrustAnchorsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of null 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 listTrustAnchors(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsRequest) operation.

        Parameters:
        listTrustAnchorsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTrustAnchorsPaginator

        default ListTrustAnchorsPublisher listTrustAnchorsPaginator​(Consumer<ListTrustAnchorsRequest.Builder> listTrustAnchorsRequest)

        Lists the trust anchors in the authenticated account and Amazon Web Services Region.

        Required permissions: rolesanywhere:ListTrustAnchors.


        This is a variant of listTrustAnchors(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsPublisher publisher = client.listTrustAnchorsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsPublisher publisher = client.listTrustAnchorsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of null 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 listTrustAnchors(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsRequest) operation.

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

        Parameters:
        listTrustAnchorsRequest - A Consumer that will call methods on ListTrustAnchorsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • putNotificationSettings

        default CompletableFuture<PutNotificationSettingsResponse> putNotificationSettings​(PutNotificationSettingsRequest putNotificationSettingsRequest)

        Attaches a list of notification settings to a trust anchor.

        A notification setting includes information such as event name, threshold, status of the notification setting, and the channel to notify.

        Required permissions: rolesanywhere:PutNotificationSettings.

        Parameters:
        putNotificationSettingsRequest -
        Returns:
        A Java Future containing the result of the PutNotificationSettings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • putNotificationSettings

        default CompletableFuture<PutNotificationSettingsResponse> putNotificationSettings​(Consumer<PutNotificationSettingsRequest.Builder> putNotificationSettingsRequest)

        Attaches a list of notification settings to a trust anchor.

        A notification setting includes information such as event name, threshold, status of the notification setting, and the channel to notify.

        Required permissions: rolesanywhere:PutNotificationSettings.


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

        Parameters:
        putNotificationSettingsRequest - A Consumer that will call methods on PutNotificationSettingsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the PutNotificationSettings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • resetNotificationSettings

        default CompletableFuture<ResetNotificationSettingsResponse> resetNotificationSettings​(ResetNotificationSettingsRequest resetNotificationSettingsRequest)

        Resets the custom notification setting to IAM Roles Anywhere default setting.

        Required permissions: rolesanywhere:ResetNotificationSettings.

        Parameters:
        resetNotificationSettingsRequest -
        Returns:
        A Java Future containing the result of the ResetNotificationSettings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • resetNotificationSettings

        default CompletableFuture<ResetNotificationSettingsResponse> resetNotificationSettings​(Consumer<ResetNotificationSettingsRequest.Builder> resetNotificationSettingsRequest)

        Resets the custom notification setting to IAM Roles Anywhere default setting.

        Required permissions: rolesanywhere:ResetNotificationSettings.


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

        Parameters:
        resetNotificationSettingsRequest - A Consumer that will call methods on ResetNotificationSettingsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ResetNotificationSettings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(TagResourceRequest tagResourceRequest)

        Attaches tags to a resource.

        Required permissions: rolesanywhere:TagResource.

        Parameters:
        tagResourceRequest -
        Returns:
        A Java Future containing the result of the TagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • TooManyTagsException Too many tags.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(Consumer<TagResourceRequest.Builder> tagResourceRequest)

        Attaches tags to a resource.

        Required permissions: rolesanywhere:TagResource.


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

        Parameters:
        tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the TagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • TooManyTagsException Too many tags.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(UntagResourceRequest untagResourceRequest)

        Removes tags from the resource.

        Required permissions: rolesanywhere:UntagResource.

        Parameters:
        untagResourceRequest -
        Returns:
        A Java Future containing the result of the UntagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

        Removes tags from the resource.

        Required permissions: rolesanywhere:UntagResource.


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

        Parameters:
        untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UntagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateCrl

        default CompletableFuture<UpdateCrlResponse> updateCrl​(UpdateCrlRequest updateCrlRequest)

        Updates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials.

        Required permissions: rolesanywhere:UpdateCrl.

        Parameters:
        updateCrlRequest -
        Returns:
        A Java Future containing the result of the UpdateCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateCrl

        default CompletableFuture<UpdateCrlResponse> updateCrl​(Consumer<UpdateCrlRequest.Builder> updateCrlRequest)

        Updates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials.

        Required permissions: rolesanywhere:UpdateCrl.


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

        Parameters:
        updateCrlRequest - A Consumer that will call methods on UpdateCrlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateCrl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateProfile

        default CompletableFuture<UpdateProfileResponse> updateProfile​(UpdateProfileRequest updateProfileRequest)

        Updates a profile, a list of the roles that IAM Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.

        Required permissions: rolesanywhere:UpdateProfile.

        Parameters:
        updateProfileRequest -
        Returns:
        A Java Future containing the result of the UpdateProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateProfile

        default CompletableFuture<UpdateProfileResponse> updateProfile​(Consumer<UpdateProfileRequest.Builder> updateProfileRequest)

        Updates a profile, a list of the roles that IAM Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.

        Required permissions: rolesanywhere:UpdateProfile.


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

        Parameters:
        updateProfileRequest - A Consumer that will call methods on UpdateProfileRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateProfile operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateTrustAnchor

        default CompletableFuture<UpdateTrustAnchorResponse> updateTrustAnchor​(UpdateTrustAnchorRequest updateTrustAnchorRequest)

        Updates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials.

        Required permissions: rolesanywhere:UpdateTrustAnchor.

        Parameters:
        updateTrustAnchorRequest -
        Returns:
        A Java Future containing the result of the UpdateTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateTrustAnchor

        default CompletableFuture<UpdateTrustAnchorResponse> updateTrustAnchor​(Consumer<UpdateTrustAnchorRequest.Builder> updateTrustAnchorRequest)

        Updates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials.

        Required permissions: rolesanywhere:UpdateTrustAnchor.


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

        Parameters:
        updateTrustAnchorRequest - A Consumer that will call methods on UpdateTrustAnchorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateTrustAnchor operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.
        • ValidationException Validation exception error.
        • ResourceNotFoundException The resource could not be found.
        • AccessDeniedException You do not have sufficient access to perform this action.
        • 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.
        • RolesAnywhereException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation