Interface CredentialBrokerControlAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface CredentialBrokerControlAsyncClient extends AwsClient
Service client for accessing AWS IAM CredentialBroker Control asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

AWS IAM CredentialBroker Control

AWS IAM CredentialBroker obtains, refreshes, authorizes and vaults credentials issued by external identity providers and authorization servers on behalf of your workloads, so the workloads never handle long-lived secrets directly.

  • Field Details

  • Method Details

    • createCredentialProvider

      default CompletableFuture<CreateCredentialProviderResponse> createCredentialProvider(CreateCredentialProviderRequest createCredentialProviderRequest)

      Creates a CredentialProvider under a parent CredentialProviderPool. The provider type is determined by which member of providerConfigurationInput you set: oauthConfiguration creates an OAUTH provider, apiKeyConfiguration an API_KEY provider. Set exactly one. The operation always returns 202 Accepted.

      Creation is asynchronous. The provider is returned with a transitional status and reaches READY or FAILED on its own; poll GetCredentialProvider to observe the transition.

      Credentials this provider caches are encrypted under the parent pool's encryption configuration unless the provider overrides it. Within oauthConfiguration, set providerEncryptionConfiguration to a customer managed key to use that key in place of the pool's, or to inheritFromPool to follow the pool. A provider cannot select service-managed encryption on its own, the only way to use the service-owned key is to inherit it from a pool configured that way. An OAuth provider's response reports which applies in encryptionSource, as INHERITED or PROVIDER_OVERRIDE, alongside the resolved encryptionConfiguration.

      Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it: secretsmanager:GetSecretValue and secretsmanager:DescribeSecret when the provider references a secret you own; secretsmanager:CreateSecret when you supply the credential value instead, so that the service stores it in a secret it creates; and kms:CreateGrant, kms:DescribeKey, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo, kms:Encrypt, and kms:Decrypt when a customer managed KMS key is in use.

      Parameters:
      createCredentialProviderRequest -
      Returns:
      A Java Future containing the result of the CreateCredentialProvider operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and nothing was created or changed. Delete resources that are no longer needed, or request a quota increase in Service Quotas using serviceCode and quotaCode, then retry.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCredentialProvider

      default CompletableFuture<CreateCredentialProviderResponse> createCredentialProvider(Consumer<CreateCredentialProviderRequest.Builder> createCredentialProviderRequest)

      Creates a CredentialProvider under a parent CredentialProviderPool. The provider type is determined by which member of providerConfigurationInput you set: oauthConfiguration creates an OAUTH provider, apiKeyConfiguration an API_KEY provider. Set exactly one. The operation always returns 202 Accepted.

      Creation is asynchronous. The provider is returned with a transitional status and reaches READY or FAILED on its own; poll GetCredentialProvider to observe the transition.

      Credentials this provider caches are encrypted under the parent pool's encryption configuration unless the provider overrides it. Within oauthConfiguration, set providerEncryptionConfiguration to a customer managed key to use that key in place of the pool's, or to inheritFromPool to follow the pool. A provider cannot select service-managed encryption on its own, the only way to use the service-owned key is to inherit it from a pool configured that way. An OAuth provider's response reports which applies in encryptionSource, as INHERITED or PROVIDER_OVERRIDE, alongside the resolved encryptionConfiguration.

      Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it: secretsmanager:GetSecretValue and secretsmanager:DescribeSecret when the provider references a secret you own; secretsmanager:CreateSecret when you supply the credential value instead, so that the service stores it in a secret it creates; and kms:CreateGrant, kms:DescribeKey, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo, kms:Encrypt, and kms:Decrypt when a customer managed KMS key is in use.


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

      Parameters:
      createCredentialProviderRequest - A Consumer that will call methods on CreateCredentialProviderRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateCredentialProvider operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and nothing was created or changed. Delete resources that are no longer needed, or request a quota increase in Service Quotas using serviceCode and quotaCode, then retry.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCredentialProviderPool

      default CompletableFuture<CreateCredentialProviderPoolResponse> createCredentialProviderPool(CreateCredentialProviderPoolRequest createCredentialProviderPoolRequest)

      Creates a CredentialProviderPool. The customer provides the pool name; the service generates the pool id and ARN.

      Creation is asynchronous. The operation returns the pool with a transitional status, and the pool reaches READY or FAILED on its own; poll GetCredentialProviderPool to observe the transition.

      The encryption configuration you set here governs every credential provider in the pool: a provider encrypts the credentials it caches under the pool's configuration unless it overrides that with a customer managed key of its own. A provider that inherits follows the pool, so setting or changing the pool's key later moves those providers onto the new key, while a provider that set its own key is unaffected.

      Required permissions: this operation needs additional permissions depending on how you configure the pool. If you associate an IAM Identity Center instance, you also need sso:CreateApplication, sso:PutApplicationAuthenticationMethod, sso:PutApplicationGrant, and sso:PutApplicationAssignmentConfiguration. If you encrypt with a customer managed KMS key, you also need kms:CreateGrant and kms:DescribeKey on that key.

      Parameters:
      createCredentialProviderPoolRequest -
      Returns:
      A Java Future containing the result of the CreateCredentialProviderPool operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and nothing was created or changed. Delete resources that are no longer needed, or request a quota increase in Service Quotas using serviceCode and quotaCode, then retry.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createCredentialProviderPool

      default CompletableFuture<CreateCredentialProviderPoolResponse> createCredentialProviderPool(Consumer<CreateCredentialProviderPoolRequest.Builder> createCredentialProviderPoolRequest)

      Creates a CredentialProviderPool. The customer provides the pool name; the service generates the pool id and ARN.

      Creation is asynchronous. The operation returns the pool with a transitional status, and the pool reaches READY or FAILED on its own; poll GetCredentialProviderPool to observe the transition.

      The encryption configuration you set here governs every credential provider in the pool: a provider encrypts the credentials it caches under the pool's configuration unless it overrides that with a customer managed key of its own. A provider that inherits follows the pool, so setting or changing the pool's key later moves those providers onto the new key, while a provider that set its own key is unaffected.

      Required permissions: this operation needs additional permissions depending on how you configure the pool. If you associate an IAM Identity Center instance, you also need sso:CreateApplication, sso:PutApplicationAuthenticationMethod, sso:PutApplicationGrant, and sso:PutApplicationAssignmentConfiguration. If you encrypt with a customer managed KMS key, you also need kms:CreateGrant and kms:DescribeKey on that key.


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

      Parameters:
      createCredentialProviderPoolRequest - A Consumer that will call methods on CreateCredentialProviderPoolRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateCredentialProviderPool operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and nothing was created or changed. Delete resources that are no longer needed, or request a quota increase in Service Quotas using serviceCode and quotaCode, then retry.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCredentialProvider

      default CompletableFuture<DeleteCredentialProviderResponse> deleteCredentialProvider(DeleteCredentialProviderRequest deleteCredentialProviderRequest)

      Accepts an asynchronous request to delete a CredentialProvider of any provider type.

      The operation is idempotent. Poll GetCredentialProvider until it returns a resource-not-found error to observe that deletion has finished.

      Required permissions: in addition to permission for this operation, the service performs secretsmanager:DeleteSecret on your behalf, but only when the provider's credential is held in a secret the service created. A provider that references a secret you own leaves that secret untouched.

      Parameters:
      deleteCredentialProviderRequest -
      Returns:
      A Java Future containing the result of the DeleteCredentialProvider operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCredentialProvider

      default CompletableFuture<DeleteCredentialProviderResponse> deleteCredentialProvider(Consumer<DeleteCredentialProviderRequest.Builder> deleteCredentialProviderRequest)

      Accepts an asynchronous request to delete a CredentialProvider of any provider type.

      The operation is idempotent. Poll GetCredentialProvider until it returns a resource-not-found error to observe that deletion has finished.

      Required permissions: in addition to permission for this operation, the service performs secretsmanager:DeleteSecret on your behalf, but only when the provider's credential is held in a secret the service created. A provider that references a secret you own leaves that secret untouched.


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

      Parameters:
      deleteCredentialProviderRequest - A Consumer that will call methods on DeleteCredentialProviderRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteCredentialProvider operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCredentialProviderPool

      default CompletableFuture<DeleteCredentialProviderPoolResponse> deleteCredentialProviderPool(DeleteCredentialProviderPoolRequest deleteCredentialProviderPoolRequest)

      Deletes a CredentialProviderPool. Deletion is asynchronous; the pool transitions to DELETING.

      The operation is idempotent. Poll GetCredentialProviderPool until it returns a resource-not-found error to observe that deletion has finished.

      Required permissions: in addition to permission for this operation, the service performs sso:DeleteApplication on your behalf, but only when the pool is associated with an IAM Identity Center instance.

      Parameters:
      deleteCredentialProviderPoolRequest -
      Returns:
      A Java Future containing the result of the DeleteCredentialProviderPool operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteCredentialProviderPool

      default CompletableFuture<DeleteCredentialProviderPoolResponse> deleteCredentialProviderPool(Consumer<DeleteCredentialProviderPoolRequest.Builder> deleteCredentialProviderPoolRequest)

      Deletes a CredentialProviderPool. Deletion is asynchronous; the pool transitions to DELETING.

      The operation is idempotent. Poll GetCredentialProviderPool until it returns a resource-not-found error to observe that deletion has finished.

      Required permissions: in addition to permission for this operation, the service performs sso:DeleteApplication on your behalf, but only when the pool is associated with an IAM Identity Center instance.


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

      Parameters:
      deleteCredentialProviderPoolRequest - A Consumer that will call methods on DeleteCredentialProviderPoolRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteCredentialProviderPool operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCredentialProvider

      default CompletableFuture<GetCredentialProviderResponse> getCredentialProvider(GetCredentialProviderRequest getCredentialProviderRequest)

      Retrieves a CredentialProvider of any provider type. Credential material is never returned: the response reports the Amazon Resource Name of the secret holding each credential, not its value. Nor does the response include the provider's tags; call ListTagsForResource for those.

      This is also the operation to poll while an asynchronous create, update, or delete settles: status reports the transition. Once a delete finishes the provider no longer exists, so this operation returns ResourceNotFoundException rather than a deleted status.

      Parameters:
      getCredentialProviderRequest -
      Returns:
      A Java Future containing the result of the GetCredentialProvider operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCredentialProvider

      default CompletableFuture<GetCredentialProviderResponse> getCredentialProvider(Consumer<GetCredentialProviderRequest.Builder> getCredentialProviderRequest)

      Retrieves a CredentialProvider of any provider type. Credential material is never returned: the response reports the Amazon Resource Name of the secret holding each credential, not its value. Nor does the response include the provider's tags; call ListTagsForResource for those.

      This is also the operation to poll while an asynchronous create, update, or delete settles: status reports the transition. Once a delete finishes the provider no longer exists, so this operation returns ResourceNotFoundException rather than a deleted status.


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

      Parameters:
      getCredentialProviderRequest - A Consumer that will call methods on GetCredentialProviderRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCredentialProvider operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCredentialProviderPool

      default CompletableFuture<GetCredentialProviderPoolResponse> getCredentialProviderPool(GetCredentialProviderPoolRequest getCredentialProviderPoolRequest)

      Retrieves a CredentialProviderPool by identifier. The response does not include the pool's tags; call ListTagsForResource for those.

      This is also the operation to poll while an asynchronous create, update, or delete settles: status reports the transition. Once a delete finishes the pool no longer exists, so this operation returns ResourceNotFoundException rather than a deleted status.

      Parameters:
      getCredentialProviderPoolRequest -
      Returns:
      A Java Future containing the result of the GetCredentialProviderPool operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCredentialProviderPool

      default CompletableFuture<GetCredentialProviderPoolResponse> getCredentialProviderPool(Consumer<GetCredentialProviderPoolRequest.Builder> getCredentialProviderPoolRequest)

      Retrieves a CredentialProviderPool by identifier. The response does not include the pool's tags; call ListTagsForResource for those.

      This is also the operation to poll while an asynchronous create, update, or delete settles: status reports the transition. Once a delete finishes the pool no longer exists, so this operation returns ResourceNotFoundException rather than a deleted status.


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

      Parameters:
      getCredentialProviderPoolRequest - A Consumer that will call methods on GetCredentialProviderPoolRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCredentialProviderPool operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCredentialProviderPools

      default CompletableFuture<ListCredentialProviderPoolsResponse> listCredentialProviderPools(ListCredentialProviderPoolsRequest listCredentialProviderPoolsRequest)

      Lists the CredentialProviderPools in your account, optionally filtered by name substring. Each entry is a summary that omits the pool's encryption and IAM Identity Center configuration; call GetCredentialProviderPool for a single pool's full detail.

      Parameters:
      listCredentialProviderPoolsRequest -
      Returns:
      A Java Future containing the result of the ListCredentialProviderPools operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCredentialProviderPools

      default CompletableFuture<ListCredentialProviderPoolsResponse> listCredentialProviderPools(Consumer<ListCredentialProviderPoolsRequest.Builder> listCredentialProviderPoolsRequest)

      Lists the CredentialProviderPools in your account, optionally filtered by name substring. Each entry is a summary that omits the pool's encryption and IAM Identity Center configuration; call GetCredentialProviderPool for a single pool's full detail.


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

      Parameters:
      listCredentialProviderPoolsRequest - A Consumer that will call methods on ListCredentialProviderPoolsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCredentialProviderPools operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCredentialProviderPoolsPaginator

      default ListCredentialProviderPoolsPublisher listCredentialProviderPoolsPaginator(ListCredentialProviderPoolsRequest listCredentialProviderPoolsRequest)

      This is a variant of listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest) 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.credentialbrokercontrol.paginators.ListCredentialProviderPoolsPublisher publisher = client.listCredentialProviderPoolsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsPublisher publisher = client.listCredentialProviderPoolsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse 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 maxResults 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 listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest) operation.

      Parameters:
      listCredentialProviderPoolsRequest -
      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCredentialProviderPoolsPaginator

      default ListCredentialProviderPoolsPublisher listCredentialProviderPoolsPaginator(Consumer<ListCredentialProviderPoolsRequest.Builder> listCredentialProviderPoolsRequest)

      This is a variant of listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest) 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.credentialbrokercontrol.paginators.ListCredentialProviderPoolsPublisher publisher = client.listCredentialProviderPoolsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsPublisher publisher = client.listCredentialProviderPoolsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse 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 maxResults 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 listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest) operation.


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

      Parameters:
      listCredentialProviderPoolsRequest - A Consumer that will call methods on ListCredentialProviderPoolsRequest.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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCredentialProviders

      default CompletableFuture<ListCredentialProvidersResponse> listCredentialProviders(ListCredentialProvidersRequest listCredentialProvidersRequest)

      Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type. Each entry is a summary that omits the provider's type-specific configuration; call GetCredentialProvider for a single provider's full detail.

      Results are returned in no particular order, and the order may change between calls. Do not rely on it.

      Parameters:
      listCredentialProvidersRequest -
      Returns:
      A Java Future containing the result of the ListCredentialProviders operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCredentialProviders

      default CompletableFuture<ListCredentialProvidersResponse> listCredentialProviders(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest)

      Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type. Each entry is a summary that omits the provider's type-specific configuration; call GetCredentialProvider for a single provider's full detail.

      Results are returned in no particular order, and the order may change between calls. Do not rely on it.


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

      Parameters:
      listCredentialProvidersRequest - A Consumer that will call methods on ListCredentialProvidersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCredentialProviders operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCredentialProvidersPaginator

      default ListCredentialProvidersPublisher listCredentialProvidersPaginator(ListCredentialProvidersRequest listCredentialProvidersRequest)

      This is a variant of listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest) 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.credentialbrokercontrol.paginators.ListCredentialProvidersPublisher publisher = client.listCredentialProvidersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersPublisher publisher = client.listCredentialProvidersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse 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 maxResults 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 listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest) operation.

      Parameters:
      listCredentialProvidersRequest -
      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCredentialProvidersPaginator

      default ListCredentialProvidersPublisher listCredentialProvidersPaginator(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest)

      This is a variant of listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest) 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.credentialbrokercontrol.paginators.ListCredentialProvidersPublisher publisher = client.listCredentialProvidersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersPublisher publisher = client.listCredentialProvidersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse 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 maxResults 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 listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest) operation.


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

      Parameters:
      listCredentialProvidersRequest - A Consumer that will call methods on ListCredentialProvidersRequest.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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      Lists the tags attached to a credential provider pool or a credential provider. Returns an empty map when the resource has no tags.

      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

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

      Lists the tags attached to a credential provider pool or a credential provider. Returns an empty map when the resource has no tags.


      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds or replaces tags on a credential provider pool or a credential provider. A key that is already present on the resource has its value overwritten; keys that are not named are left alone. Takes effect immediately.

      The operation is idempotent.

      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

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

      Adds or replaces tags on a credential provider pool or a credential provider. A key that is already present on the resource has its value overwritten; keys that are not named are left alone. Takes effect immediately.

      The operation is idempotent.


      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Removes tags from a credential provider pool or a credential provider. Keys that are not present on the resource are ignored, so removing the same keys twice succeeds. Takes effect immediately.

      The operation is idempotent.

      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

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

      Removes tags from a credential provider pool or a credential provider. Keys that are not present on the resource are ignored, so removing the same keys twice succeeds. Takes effect immediately.

      The operation is idempotent.


      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. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCredentialProvider

      default CompletableFuture<UpdateCredentialProviderResponse> updateCredentialProvider(UpdateCredentialProviderRequest updateCredentialProviderRequest)

      Updates a CredentialProvider asynchronously. Supply only the fields to change; omitted fields are left unchanged (partial update). The configuration member you set must match the provider's existing type — an update cannot change the provider type.

      The operation is idempotent. It returns the provider with a transitional status; poll GetCredentialProvider to observe the transition.

      Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it: secretsmanager:GetSecretValue and secretsmanager:DescribeSecret when the provider references a secret you own; secretsmanager:CreateSecret and secretsmanager:PutSecretValue when you supply the credential value instead, so that the service stores it in a secret it creates or updates; secretsmanager:DeleteSecret when an update leaves a service-created secret no longer needed; and kms:CreateGrant, kms:DescribeKey, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo, kms:Encrypt, and kms:Decrypt when a customer managed KMS key is in use.

      Parameters:
      updateCredentialProviderRequest -
      Returns:
      A Java Future containing the result of the UpdateCredentialProvider operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCredentialProvider

      default CompletableFuture<UpdateCredentialProviderResponse> updateCredentialProvider(Consumer<UpdateCredentialProviderRequest.Builder> updateCredentialProviderRequest)

      Updates a CredentialProvider asynchronously. Supply only the fields to change; omitted fields are left unchanged (partial update). The configuration member you set must match the provider's existing type — an update cannot change the provider type.

      The operation is idempotent. It returns the provider with a transitional status; poll GetCredentialProvider to observe the transition.

      Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it: secretsmanager:GetSecretValue and secretsmanager:DescribeSecret when the provider references a secret you own; secretsmanager:CreateSecret and secretsmanager:PutSecretValue when you supply the credential value instead, so that the service stores it in a secret it creates or updates; secretsmanager:DeleteSecret when an update leaves a service-created secret no longer needed; and kms:CreateGrant, kms:DescribeKey, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo, kms:Encrypt, and kms:Decrypt when a customer managed KMS key is in use.


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

      Parameters:
      updateCredentialProviderRequest - A Consumer that will call methods on UpdateCredentialProviderRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateCredentialProvider operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCredentialProviderPool

      default CompletableFuture<UpdateCredentialProviderPoolResponse> updateCredentialProviderPool(UpdateCredentialProviderPoolRequest updateCredentialProviderPoolRequest)

      Updates a CredentialProviderPool. Partial update, only provided fields are modified; omitted fields are left unchanged.

      The update is applied asynchronously and the operation is idempotent. The operation returns the pool with a transitional status; poll GetCredentialProviderPool to observe the transition.

      Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it: sso:CreateApplication, sso:PutApplicationAuthenticationMethod, sso:PutApplicationGrant, and sso:PutApplicationAssignmentConfiguration when the request associates an IAM Identity Center instance; sso:DeleteApplication when it disassociates one; and kms:CreateGrant, kms:DescribeKey, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo, kms:Encrypt, and kms:Decrypt when it sets or changes a customer managed KMS key, which re-encrypts the pool's stored credentials under that key.

      Parameters:
      updateCredentialProviderPoolRequest -
      Returns:
      A Java Future containing the result of the UpdateCredentialProviderPool operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and nothing was created or changed. Delete resources that are no longer needed, or request a quota increase in Service Quotas using serviceCode and quotaCode, then retry.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateCredentialProviderPool

      default CompletableFuture<UpdateCredentialProviderPoolResponse> updateCredentialProviderPool(Consumer<UpdateCredentialProviderPoolRequest.Builder> updateCredentialProviderPoolRequest)

      Updates a CredentialProviderPool. Partial update, only provided fields are modified; omitted fields are left unchanged.

      The update is applied asynchronously and the operation is idempotent. The operation returns the pool with a transitional status; poll GetCredentialProviderPool to observe the transition.

      Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it: sso:CreateApplication, sso:PutApplicationAuthenticationMethod, sso:PutApplicationGrant, and sso:PutApplicationAssignmentConfiguration when the request associates an IAM Identity Center instance; sso:DeleteApplication when it disassociates one; and kms:CreateGrant, kms:DescribeKey, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo, kms:Encrypt, and kms:Decrypt when it sets or changes a customer managed KMS key, which re-encrypts the pool's stored credentials under that key.


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

      Parameters:
      updateCredentialProviderPoolRequest - A Consumer that will call methods on UpdateCredentialProviderPoolRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateCredentialProviderPool operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and nothing was created or changed. Delete resources that are no longer needed, or request a quota increase in Service Quotas using serviceCode and quotaCode, then retry.
      • ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when it is present.
      • ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
      • InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
      • AccessDeniedException The caller is not authorized to perform the request, or a resource the request depends on refused access. reason distinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.
      • ConflictException The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).
      • ValidationException The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use reason to branch in code and message for the human-readable detail of which field or combination of fields was at fault.
      • 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.
      • CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • waiter

      Create an instance of CredentialBrokerControlAsyncWaiter using this client.

      Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.

      Returns:
      an instance of CredentialBrokerControlAsyncWaiter
    • serviceClientConfiguration

      default CredentialBrokerControlServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      Create a CredentialBrokerControlAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a CredentialBrokerControlAsyncClient.